SAP Function Modules

PPEBAPITOOLS_GET_OBJECTLIST SAP Function module







PPEBAPITOOLS_GET_OBJECTLIST 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 PPEBAPITOOLS_GET_OBJECTLIST into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM PPEBAPITOOLS_GET_OBJECTLIST - PPEBAPITOOLS GET OBJECTLIST





CALL FUNCTION 'PPEBAPITOOLS_GET_OBJECTLIST' "
  EXPORTING
    im_ppeguid_tab =            " pbapi_headerid_tab
*   im_depdata_flg = SPACE      " xfeld
*   im_apo_cif = SPACE          " xfeld
*   im_caller = SPACE           " char1
*   im_changeno = SPACE         " xfeld
*   im_msg_handling = 'A'       " char1
*   im_logsys_caller =          " logsys
*   im_nodel_duplicate = SPACE  " char1
*   im_read_outdated = SPACE    " char1
  IMPORTING
    object_ids_hs =             " pbapi_chng_obj_hs_tab
    object_ids =                " pbapi_chng_obj_tab
    object_ids_out =            " pbapi_chng_obj_tab
* TABLES
*   activitynodedata =          " bapi1179_act_nodedata
*   activityaltdata =           " bapi1179_act_altdata
*   componentnodedata =         " bapi1176_cmp_nodedata
*   componentvariantdata =      " bapi1176_cmp_variantdata
*   componentvariantclassdiff =   " bapi1176_cmp_classdiff
*   colornodedata =             " bapi1176_cmp_colnodedata
*   colorvariantdata =          " bapi1176_cmp_colvardata
*   ppe_header =                " bapi_ppe_header
*   coproduct =                 " bapi_ppe_coproduct
*   componentrelation =         " bapi1176_cmp_relation
*   return =                    " bapiret2
    .  "  PPEBAPITOOLS_GET_OBJECTLIST

ABAP code example for Function Module PPEBAPITOOLS_GET_OBJECTLIST





The ABAP code below is a full code listing to execute function module PPEBAPITOOLS_GET_OBJECTLIST 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_object_ids_hs  TYPE PBAPI_CHNG_OBJ_HS_TAB ,
ld_object_ids  TYPE PBAPI_CHNG_OBJ_TAB ,
ld_object_ids_out  TYPE PBAPI_CHNG_OBJ_TAB ,
it_activitynodedata  TYPE STANDARD TABLE OF BAPI1179_ACT_NODEDATA,"TABLES PARAM
wa_activitynodedata  LIKE LINE OF it_activitynodedata ,
it_activityaltdata  TYPE STANDARD TABLE OF BAPI1179_ACT_ALTDATA,"TABLES PARAM
wa_activityaltdata  LIKE LINE OF it_activityaltdata ,
it_componentnodedata  TYPE STANDARD TABLE OF BAPI1176_CMP_NODEDATA,"TABLES PARAM
wa_componentnodedata  LIKE LINE OF it_componentnodedata ,
it_componentvariantdata  TYPE STANDARD TABLE OF BAPI1176_CMP_VARIANTDATA,"TABLES PARAM
wa_componentvariantdata  LIKE LINE OF it_componentvariantdata ,
it_componentvariantclassdiff  TYPE STANDARD TABLE OF BAPI1176_CMP_CLASSDIFF,"TABLES PARAM
wa_componentvariantclassdiff  LIKE LINE OF it_componentvariantclassdiff ,
it_colornodedata  TYPE STANDARD TABLE OF BAPI1176_CMP_COLNODEDATA,"TABLES PARAM
wa_colornodedata  LIKE LINE OF it_colornodedata ,
it_colorvariantdata  TYPE STANDARD TABLE OF BAPI1176_CMP_COLVARDATA,"TABLES PARAM
wa_colorvariantdata  LIKE LINE OF it_colorvariantdata ,
it_ppe_header  TYPE STANDARD TABLE OF BAPI_PPE_HEADER,"TABLES PARAM
wa_ppe_header  LIKE LINE OF it_ppe_header ,
it_coproduct  TYPE STANDARD TABLE OF BAPI_PPE_COPRODUCT,"TABLES PARAM
wa_coproduct  LIKE LINE OF it_coproduct ,
it_componentrelation  TYPE STANDARD TABLE OF BAPI1176_CMP_RELATION,"TABLES PARAM
wa_componentrelation  LIKE LINE OF it_componentrelation ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .

DATA(ld_im_ppeguid_tab) = 'Check type of data required'.
DATA(ld_im_depdata_flg) = 'Check type of data required'.
DATA(ld_im_apo_cif) = 'Check type of data required'.
DATA(ld_im_caller) = 'Check type of data required'.
DATA(ld_im_changeno) = 'Check type of data required'.
DATA(ld_im_msg_handling) = 'Check type of data required'.
DATA(ld_im_logsys_caller) = '20210129'.
DATA(ld_im_nodel_duplicate) = 'some text here'.
DATA(ld_im_read_outdated) = 'some text here'.

"populate fields of struture and append to itab
append wa_activitynodedata to it_activitynodedata.

"populate fields of struture and append to itab
append wa_activityaltdata to it_activityaltdata.

"populate fields of struture and append to itab
append wa_componentnodedata to it_componentnodedata.

"populate fields of struture and append to itab
append wa_componentvariantdata to it_componentvariantdata.

"populate fields of struture and append to itab
append wa_componentvariantclassdiff to it_componentvariantclassdiff.

"populate fields of struture and append to itab
append wa_colornodedata to it_colornodedata.

"populate fields of struture and append to itab
append wa_colorvariantdata to it_colorvariantdata.

"populate fields of struture and append to itab
append wa_ppe_header to it_ppe_header.

"populate fields of struture and append to itab
append wa_coproduct to it_coproduct.

"populate fields of struture and append to itab
append wa_componentrelation to it_componentrelation.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'PPEBAPITOOLS_GET_OBJECTLIST' EXPORTING im_ppeguid_tab = ld_im_ppeguid_tab * im_depdata_flg = ld_im_depdata_flg * im_apo_cif = ld_im_apo_cif * im_caller = ld_im_caller * im_changeno = ld_im_changeno * im_msg_handling = ld_im_msg_handling * im_logsys_caller = ld_im_logsys_caller * im_nodel_duplicate = ld_im_nodel_duplicate * im_read_outdated = ld_im_read_outdated IMPORTING object_ids_hs = ld_object_ids_hs object_ids = ld_object_ids object_ids_out = ld_object_ids_out * TABLES * activitynodedata = it_activitynodedata * activityaltdata = it_activityaltdata * componentnodedata = it_componentnodedata * componentvariantdata = it_componentvariantdata * componentvariantclassdiff = it_componentvariantclassdiff * colornodedata = it_colornodedata * colorvariantdata = it_colorvariantdata * ppe_header = it_ppe_header * coproduct = it_coproduct * componentrelation = it_componentrelation * return = it_return . " PPEBAPITOOLS_GET_OBJECTLIST
IF SY-SUBRC EQ 0. "All OK 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_object_ids_hs  TYPE PBAPI_CHNG_OBJ_HS_TAB ,
ld_im_ppeguid_tab  TYPE PBAPI_HEADERID_TAB ,
it_activitynodedata  TYPE STANDARD TABLE OF BAPI1179_ACT_NODEDATA ,
wa_activitynodedata  LIKE LINE OF it_activitynodedata,
ld_object_ids  TYPE PBAPI_CHNG_OBJ_TAB ,
ld_im_depdata_flg  TYPE XFELD ,
it_activityaltdata  TYPE STANDARD TABLE OF BAPI1179_ACT_ALTDATA ,
wa_activityaltdata  LIKE LINE OF it_activityaltdata,
ld_object_ids_out  TYPE PBAPI_CHNG_OBJ_TAB ,
ld_im_apo_cif  TYPE XFELD ,
it_componentnodedata  TYPE STANDARD TABLE OF BAPI1176_CMP_NODEDATA ,
wa_componentnodedata  LIKE LINE OF it_componentnodedata,
ld_im_caller  TYPE CHAR1 ,
it_componentvariantdata  TYPE STANDARD TABLE OF BAPI1176_CMP_VARIANTDATA ,
wa_componentvariantdata  LIKE LINE OF it_componentvariantdata,
ld_im_changeno  TYPE XFELD ,
it_componentvariantclassdiff  TYPE STANDARD TABLE OF BAPI1176_CMP_CLASSDIFF ,
wa_componentvariantclassdiff  LIKE LINE OF it_componentvariantclassdiff,
ld_im_msg_handling  TYPE CHAR1 ,
it_colornodedata  TYPE STANDARD TABLE OF BAPI1176_CMP_COLNODEDATA ,
wa_colornodedata  LIKE LINE OF it_colornodedata,
ld_im_logsys_caller  TYPE LOGSYS ,
it_colorvariantdata  TYPE STANDARD TABLE OF BAPI1176_CMP_COLVARDATA ,
wa_colorvariantdata  LIKE LINE OF it_colorvariantdata,
ld_im_nodel_duplicate  TYPE CHAR1 ,
it_ppe_header  TYPE STANDARD TABLE OF BAPI_PPE_HEADER ,
wa_ppe_header  LIKE LINE OF it_ppe_header,
it_coproduct  TYPE STANDARD TABLE OF BAPI_PPE_COPRODUCT ,
wa_coproduct  LIKE LINE OF it_coproduct,
ld_im_read_outdated  TYPE CHAR1 ,
it_componentrelation  TYPE STANDARD TABLE OF BAPI1176_CMP_RELATION ,
wa_componentrelation  LIKE LINE OF it_componentrelation,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.

ld_im_ppeguid_tab = 'some text here'.

"populate fields of struture and append to itab
append wa_activitynodedata to it_activitynodedata.
ld_im_depdata_flg = 'some text here'.

"populate fields of struture and append to itab
append wa_activityaltdata to it_activityaltdata.
ld_im_apo_cif = 'some text here'.

"populate fields of struture and append to itab
append wa_componentnodedata to it_componentnodedata.
ld_im_caller = 'some text here'.

"populate fields of struture and append to itab
append wa_componentvariantdata to it_componentvariantdata.
ld_im_changeno = 'some text here'.

"populate fields of struture and append to itab
append wa_componentvariantclassdiff to it_componentvariantclassdiff.
ld_im_msg_handling = 'some text here'.

"populate fields of struture and append to itab
append wa_colornodedata to it_colornodedata.
ld_im_logsys_caller = '20210129'.

"populate fields of struture and append to itab
append wa_colorvariantdata to it_colorvariantdata.
ld_im_nodel_duplicate = 'some text here'.

"populate fields of struture and append to itab
append wa_ppe_header to it_ppe_header.

"populate fields of struture and append to itab
append wa_coproduct to it_coproduct.
ld_im_read_outdated = 'some text here'.

"populate fields of struture and append to itab
append wa_componentrelation to it_componentrelation.

"populate fields of struture and append to itab
append wa_return to it_return.

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 PPEBAPITOOLS_GET_OBJECTLIST or its description.