SAP Function Modules

IBAPI_PROC_LOAD_TRACE SAP Function module







IBAPI_PROC_LOAD_TRACE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name IBAPI_PROC_LOAD_TRACE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: IBAPI_ALM_ORDER_PROCESSING
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM IBAPI_PROC_LOAD_TRACE - IBAPI PROC LOAD TRACE





CALL FUNCTION 'IBAPI_PROC_LOAD_TRACE' "
  EXPORTING
    iv_filename =               " string
  IMPORTING
    et_methods =                " bapi_alm_order_method_t  Table with Processing Methods BAPI Interface
    et_header =                 " almb_caufvd_tab_int  Table with Order Header Data BAPI Interface
    et_header_up =              " almb_caufvd_up_tab_int  Table with Update Flags for Order Header BAPI Interface
    et_header_srv =             " almb_caufvd_srv_tab_int  Table with Service Data
    et_header_srv_up =          " almb_caufvd_srv_up_tab_int
    et_userstatus =             " almb_userstatus
    et_partner =                " almb_partner_tab  Table with Partner Data
    et_partner_up =             " almb_partner_up_tab  Table with Update Flags for Partner
    et_operation =              " almb_afvgd_tab
    et_operation_up =           " almb_afvgd_up_tab
    et_relation =               " almb_afabd_tab
    et_relation_up =            " almb_afabd_up_tab
    et_component =              " almb_resbd_tab
    et_component_up =           " almb_resbd_up_tab
    et_text =                   " almb_text_tab
    et_text_lines =             " tlinetab      Table with text lines
  EXCEPTIONS
    READ_ERROR = 1              "
    .  "  IBAPI_PROC_LOAD_TRACE

ABAP code example for Function Module IBAPI_PROC_LOAD_TRACE





The ABAP code below is a full code listing to execute function module IBAPI_PROC_LOAD_TRACE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_et_methods  TYPE BAPI_ALM_ORDER_METHOD_T ,
ld_et_header  TYPE ALMB_CAUFVD_TAB_INT ,
ld_et_header_up  TYPE ALMB_CAUFVD_UP_TAB_INT ,
ld_et_header_srv  TYPE ALMB_CAUFVD_SRV_TAB_INT ,
ld_et_header_srv_up  TYPE ALMB_CAUFVD_SRV_UP_TAB_INT ,
ld_et_userstatus  TYPE ALMB_USERSTATUS ,
ld_et_partner  TYPE ALMB_PARTNER_TAB ,
ld_et_partner_up  TYPE ALMB_PARTNER_UP_TAB ,
ld_et_operation  TYPE ALMB_AFVGD_TAB ,
ld_et_operation_up  TYPE ALMB_AFVGD_UP_TAB ,
ld_et_relation  TYPE ALMB_AFABD_TAB ,
ld_et_relation_up  TYPE ALMB_AFABD_UP_TAB ,
ld_et_component  TYPE ALMB_RESBD_TAB ,
ld_et_component_up  TYPE ALMB_RESBD_UP_TAB ,
ld_et_text  TYPE ALMB_TEXT_TAB ,
ld_et_text_lines  TYPE TLINETAB .

DATA(ld_iv_filename) = 'Check type of data required'. . CALL FUNCTION 'IBAPI_PROC_LOAD_TRACE' EXPORTING iv_filename = ld_iv_filename IMPORTING et_methods = ld_et_methods et_header = ld_et_header et_header_up = ld_et_header_up et_header_srv = ld_et_header_srv et_header_srv_up = ld_et_header_srv_up et_userstatus = ld_et_userstatus et_partner = ld_et_partner et_partner_up = ld_et_partner_up et_operation = ld_et_operation et_operation_up = ld_et_operation_up et_relation = ld_et_relation et_relation_up = ld_et_relation_up et_component = ld_et_component et_component_up = ld_et_component_up et_text = ld_et_text et_text_lines = ld_et_text_lines EXCEPTIONS READ_ERROR = 1 . " IBAPI_PROC_LOAD_TRACE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_et_methods  TYPE BAPI_ALM_ORDER_METHOD_T ,
ld_iv_filename  TYPE STRING ,
ld_et_header  TYPE ALMB_CAUFVD_TAB_INT ,
ld_et_header_up  TYPE ALMB_CAUFVD_UP_TAB_INT ,
ld_et_header_srv  TYPE ALMB_CAUFVD_SRV_TAB_INT ,
ld_et_header_srv_up  TYPE ALMB_CAUFVD_SRV_UP_TAB_INT ,
ld_et_userstatus  TYPE ALMB_USERSTATUS ,
ld_et_partner  TYPE ALMB_PARTNER_TAB ,
ld_et_partner_up  TYPE ALMB_PARTNER_UP_TAB ,
ld_et_operation  TYPE ALMB_AFVGD_TAB ,
ld_et_operation_up  TYPE ALMB_AFVGD_UP_TAB ,
ld_et_relation  TYPE ALMB_AFABD_TAB ,
ld_et_relation_up  TYPE ALMB_AFABD_UP_TAB ,
ld_et_component  TYPE ALMB_RESBD_TAB ,
ld_et_component_up  TYPE ALMB_RESBD_UP_TAB ,
ld_et_text  TYPE ALMB_TEXT_TAB ,
ld_et_text_lines  TYPE TLINETAB .

ld_iv_filename = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name IBAPI_PROC_LOAD_TRACE or its description.