SAP Function Modules

BROWSE_STEP_DATA SAP Function module







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

Associated Function Group: CPDMOBJECTBROWSER
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BROWSE_STEP_DATA - BROWSE STEP DATA





CALL FUNCTION 'BROWSE_STEP_DATA' "
  TABLES
    step_structure =            " pdm_tree      Structure of Tree in Product Structure Browser
    step_data =                 " pdm_step_data  STEP Data in Product Structure Browser
*   document_data_inp =         " pdm_document  Document Data in Product Structure Browser
*   material_data_inp =         " pdm_material  Material Data in Product Structure Browser
*   billofdoc_data_inp =        " pdm_billofdoc  Document Structure Header Data in Product Structure Browser
*   billofmat_data_inp =        " pdm_billofmat  Material BOM Header Data in Product Structure Browser
*   charact_data_inp =          " pdm_charact   Characteristics Data in Product Structure Browser
*   ecm_data_inp =              " pdm_ecm       Change Master Data in Product Structure Browser
*   objclass_data_inp =         " pdm_objclass  Object Class Data in Product Structure Browser
    .  "  BROWSE_STEP_DATA

ABAP code example for Function Module BROWSE_STEP_DATA





The ABAP code below is a full code listing to execute function module BROWSE_STEP_DATA 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:
it_step_structure  TYPE STANDARD TABLE OF PDM_TREE,"TABLES PARAM
wa_step_structure  LIKE LINE OF it_step_structure ,
it_step_data  TYPE STANDARD TABLE OF PDM_STEP_DATA,"TABLES PARAM
wa_step_data  LIKE LINE OF it_step_data ,
it_document_data_inp  TYPE STANDARD TABLE OF PDM_DOCUMENT,"TABLES PARAM
wa_document_data_inp  LIKE LINE OF it_document_data_inp ,
it_material_data_inp  TYPE STANDARD TABLE OF PDM_MATERIAL,"TABLES PARAM
wa_material_data_inp  LIKE LINE OF it_material_data_inp ,
it_billofdoc_data_inp  TYPE STANDARD TABLE OF PDM_BILLOFDOC,"TABLES PARAM
wa_billofdoc_data_inp  LIKE LINE OF it_billofdoc_data_inp ,
it_billofmat_data_inp  TYPE STANDARD TABLE OF PDM_BILLOFMAT,"TABLES PARAM
wa_billofmat_data_inp  LIKE LINE OF it_billofmat_data_inp ,
it_charact_data_inp  TYPE STANDARD TABLE OF PDM_CHARACT,"TABLES PARAM
wa_charact_data_inp  LIKE LINE OF it_charact_data_inp ,
it_ecm_data_inp  TYPE STANDARD TABLE OF PDM_ECM,"TABLES PARAM
wa_ecm_data_inp  LIKE LINE OF it_ecm_data_inp ,
it_objclass_data_inp  TYPE STANDARD TABLE OF PDM_OBJCLASS,"TABLES PARAM
wa_objclass_data_inp  LIKE LINE OF it_objclass_data_inp .


"populate fields of struture and append to itab
append wa_step_structure to it_step_structure.

"populate fields of struture and append to itab
append wa_step_data to it_step_data.

"populate fields of struture and append to itab
append wa_document_data_inp to it_document_data_inp.

"populate fields of struture and append to itab
append wa_material_data_inp to it_material_data_inp.

"populate fields of struture and append to itab
append wa_billofdoc_data_inp to it_billofdoc_data_inp.

"populate fields of struture and append to itab
append wa_billofmat_data_inp to it_billofmat_data_inp.

"populate fields of struture and append to itab
append wa_charact_data_inp to it_charact_data_inp.

"populate fields of struture and append to itab
append wa_ecm_data_inp to it_ecm_data_inp.

"populate fields of struture and append to itab
append wa_objclass_data_inp to it_objclass_data_inp. . CALL FUNCTION 'BROWSE_STEP_DATA' TABLES step_structure = it_step_structure step_data = it_step_data * document_data_inp = it_document_data_inp * material_data_inp = it_material_data_inp * billofdoc_data_inp = it_billofdoc_data_inp * billofmat_data_inp = it_billofmat_data_inp * charact_data_inp = it_charact_data_inp * ecm_data_inp = it_ecm_data_inp * objclass_data_inp = it_objclass_data_inp . " BROWSE_STEP_DATA
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:
it_step_structure  TYPE STANDARD TABLE OF PDM_TREE ,
wa_step_structure  LIKE LINE OF it_step_structure,
it_step_data  TYPE STANDARD TABLE OF PDM_STEP_DATA ,
wa_step_data  LIKE LINE OF it_step_data,
it_document_data_inp  TYPE STANDARD TABLE OF PDM_DOCUMENT ,
wa_document_data_inp  LIKE LINE OF it_document_data_inp,
it_material_data_inp  TYPE STANDARD TABLE OF PDM_MATERIAL ,
wa_material_data_inp  LIKE LINE OF it_material_data_inp,
it_billofdoc_data_inp  TYPE STANDARD TABLE OF PDM_BILLOFDOC ,
wa_billofdoc_data_inp  LIKE LINE OF it_billofdoc_data_inp,
it_billofmat_data_inp  TYPE STANDARD TABLE OF PDM_BILLOFMAT ,
wa_billofmat_data_inp  LIKE LINE OF it_billofmat_data_inp,
it_charact_data_inp  TYPE STANDARD TABLE OF PDM_CHARACT ,
wa_charact_data_inp  LIKE LINE OF it_charact_data_inp,
it_ecm_data_inp  TYPE STANDARD TABLE OF PDM_ECM ,
wa_ecm_data_inp  LIKE LINE OF it_ecm_data_inp,
it_objclass_data_inp  TYPE STANDARD TABLE OF PDM_OBJCLASS ,
wa_objclass_data_inp  LIKE LINE OF it_objclass_data_inp.


"populate fields of struture and append to itab
append wa_step_structure to it_step_structure.

"populate fields of struture and append to itab
append wa_step_data to it_step_data.

"populate fields of struture and append to itab
append wa_document_data_inp to it_document_data_inp.

"populate fields of struture and append to itab
append wa_material_data_inp to it_material_data_inp.

"populate fields of struture and append to itab
append wa_billofdoc_data_inp to it_billofdoc_data_inp.

"populate fields of struture and append to itab
append wa_billofmat_data_inp to it_billofmat_data_inp.

"populate fields of struture and append to itab
append wa_charact_data_inp to it_charact_data_inp.

"populate fields of struture and append to itab
append wa_ecm_data_inp to it_ecm_data_inp.

"populate fields of struture and append to itab
append wa_objclass_data_inp to it_objclass_data_inp.

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