Calling custom Infotype method from ABAP report


Hi Experts,
I am working on an application where i need to call a method of a custom defined infotype.
I have done this -->
1. Create a custom infotype 9111
2. SAP creates a class of that infotype ZCL_HRPA_INFOTYPE_9111
3. Inside this method there are few inherited method which provide me functionality of insert , update , delete
i want to call methods IF_HRPA_INFTY_BL~MODIFY,
However when i call these method from abap report this method does not work.
where as when i try to insert an entry using PA30 transaction it works.
Does anyone know why does this happen and what is the solution?
Ashish Shah


This is the code we are using. Just calling the read and modify methods of the check class. Very simple actually .. we just want once update/insert to work but it does not.
FIELD-SYMBOLS <p9106> TYPE p9106.
DATA : infty_container_tab TYPE hrpad_infty_container_tab ,
       message_list        TYPE REF TO cl_hrpa_message_list,
     w_ok type boole_d  ,
     ref_class TYPE REF TO ZCL_HRPA_INFOTYPE_9106,
     container        TYPE REF TO if_hrpa_infty_container,
     it9106_container TYPE REF TO cl_hrpa_infotype_container,
     p9106_ref        TYPE REF TO data,
    busilog type ref to if_hrpa_masterdata_bl.
CREATE OBJECT  message_list.
        CREATE OBJECT ref_class
            tclas = 'A'
            infty = '9106'.
      CATCH cx_hrpa_violated_assertion .
        write :/ 'Error during initialization'.
call method cl_hrpa_masterdata_bl=>get_instance
     masterdata_bl = busilog.
    tclas           = 'A'
    pernr           = 'XXXXXXXX'
    infty           = '9106'
    begda           = sy-datum
    endda           = sy-datum
    no_auth_check   = abap_true
    message_handler = message_list
    container_tab   = infty_container_tab
    is_ok           = w_ok.
CATCH cx_hrpa_violated_assertion .
   WRITE :/ 'Infotype could not be read'.
*" Fill the local structure with container data:
  loop at infty_container_tab into container.
    it9106_container ?= container.
    CALL METHOD it9106_container->primary_record_ref
        pnnnn_ref =  p9106_ref.
     CATCH cx_hrpa_violated_assertion .
    ASSIGN p9106_ref->* to <p9106>.
    write :/ <p9106> .
*" Just change some field values of the record
  <p9106>-C1name2 = 'Test name'.
  <p9106>-C2name2 = 'Test name 2 3 4'.
data : return TYPE BAPIRETURN1,
       return1 TYPE BAPIRETURN1.
   number        = <p9106>-pernr
  RETURN        = return1
*PERFORM do_nothing(sapfp50p).
The container itself is modified
  container ?= it9106_container->modify_primary_record( <p9106> ).
CREATE OBJECT message_list.
the invocation - errors are always fatal !!!
  DATA : lx_exception  TYPE REF TO cx_root,
         update_mode type HRPAD_UPDATE_MODE,
         massn type massn,
         massg type massg.
           old_container =                   it9106_container
           massn                          = massn
           massg                         = massg
           update_mode =                 update_mode
           no_auth_check =                   'X'
           message_handler =                 message_list
           is_ok =                           w_ok
           container =                       container
    CATCH cx_hrpa_violated_assertion INTO lx_exception.
      RAISE EXCEPTION TYPE cx_wd_no_handler
        EXPORTING previous = lx_exception.
I have also tried by instantiating the cl_hrpa_masterdata_bl and then calling the methods on that object...... makes no difference.
I used this link to proceed with the modifications:
The funny thing is that the WHOLE logic executes without any error messages or dumps or anything. I have now debugged almost every line of code that these methods call. PA30 works just fine. HR_INFOTYPE_OPERATION does not .. that's a whole differnt story.

November 30, -0001

Calling custom Infotype method from ABAP report

Hi Experts, I am working on an application where i need to call a method of a custom defined infotype. I have done this --> 1. Create a custom infotype 9111 2. SAP creates a class of that infotype ZCL_HRPA_INFOTYPE_9111 3. Inside this method there ar

Calling custom Infotype method from Webdynpro Abap

Hi Experts, I am working on an application where i need to call a method of a custom defined infotype. I have done this --> 1. Create a custom infotype 9111 2. SAP creates a class of that infotype ZCL_HRPA_INFOTYPE_9111 3. Inside this method there ar

IP - Is it possible to call exit planning function from ABAP Report..

Hi All, Greetings. Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module. If somebody here has been doing it before,

Method class for calling/executing VB script from abap

Hi All, I need to call a vb script from abap. This vb script performs some function then. For executing this VB script i use the method CL CL_GUI_FRONTEND_SERVICES=>Execute. Now i need to pass data to the vb script in the from of a structure/workarea

How to create .csv file from ABAP report

Hi We have a requirement to generate .csv file from abap report. Currently user saves data from abap report to spreadsheet(.xls format) in desktop.  Then opens excel file and save as .csv format.  Need option to save directly in .csv format instead o

How to call an ejb method from jsp?

Hi, everyone! Inside my JSP, I4m using scripts in order to show and receive information, that is, a form.But I don4t Know if I can use the same variables from the script in order to call the 'set' methods from my EJB. Could anyone show me an example?

Call a Java Function From Abap

Hi, I need to call a java function from ABAP,  I have a WAS 640 to deploy the module. I have found this tutorial... [ABAP calls Java via RFC|/people/thorsten.franz3/blog/2008/11/21/abap-calls-java-via-rfc-1-introduction] The problem is that it uses a

Calling view controller method from component controller method

Hi, Is there any way to call view controller method from component controller method? Thanks,Hi Khandal. You should not make you component controller dependent from a view controller. But what you can do is to define an event in the component control

How to call a bean method from javascript event

Hi, I could not find material on how to call a bean method from javascript, any help would be appreciated. RalphHi, Basically, I would like to call a method that I have written in the page java bean, or in the session bean, or application bean, or an

BSP App call from ABAP report.

Hello, I need to call /IRM/GCRM_WS BSP application through ABAP Report. Call trnasaction '/IRM/GCRM_WS' does work fine. How can i call it for a particular document as we do it with set parameter before call transaction? pls provide ideas. Rgds.Hi, th

Calling a BSP page from ABAP programme

Dear Friends...         I am cslling a BSP... from an ABAP program... for that I have used this class and also a function module to ckeck.. actually from the abap program it invoks the BSP page very nicely and as my logic for invoking the BSP is a pa

How to call a static method from an event handler

Hi,    I'm trying to call a static method of class I designed.  But I don't know how to do it.  This method will be called from an event handler of a web dynpro for Abap application. Can somebody help me? Thx in advance. Hamza.To clearly specify the

How to trigger an xi communication from abap report?

Hello, I would like to ask if there is a blog, howto or something about How to trigger the communication in an abap programm. The communication will be either rfc->ftp or rfc->jdbc. So how can I tell XI to call that rfc to start the communication (f

Calling Procedure or Function from Interative Report

Hi All - Is it possible to call a procedure/function from "Region Source" of Interact Report page. Basically the report I want to show would be little difficult if I use SQL alone. So wanted to check is there is a way I can call a SQL procedure/

Print html file with barcode from abap report

hi i am printing html file from abap program using gui_execute. i am using netscape.exe , its printing first time and when reprint its not working basically html file contains gif file which has fedex barcode. could you please let me know how to prin

Calling an ejbLoad method from a JSP

Hi, I am creating an auction web site. To handle a user adding items for an auction I am using BMP Entity beans. I have successfully created an entity bean to add an item to my database. However my problem is retrieving this information back form the

Calling custom OAF page from JSP page in Oracle apps

Hi, I am working on a requirement to call a Custom OAF page from a JSP page in Oracle apps 11.5.10. I have registered the OAF page and defined a function for it. When we call this OAF page from JSP (without parameter), the page opens up URL: http://A

Calling a remote method from a link

I've been programming in Java for a few years, but I'm quite new at using JSP. I have a Java class that has methods to do some manipulations in a remote database. I'd like to invoke one of its public methods from a JSP page when I click on the correc

How to call a C function calling a Java Method from another C function ?

Hi everyone, I'm just starting to learn JNI and my problem is that I don't know if it is possible to call a C function calling a Java Method (or doing anything else with JNI) from another C function. In fact, after receiving datas in a socket made by

Calling Custom Internet Service from Template

Hi, Can anybody let me know what's  the process to call the custom internet service from existing internet service's Template  in new window  ? Thanks, SachinI have also tried to remove the commons-logging dependency and then I got this error: org.ap