SAP Reports / Programs | Cross-Application Components | Global Batch Traceability(CA-GBT) SAP CA

/GBT/R_ERP_PLANT_RETRIEVE SAP ABAP Report - Retrieve Plant Master from ERP







/GBT/R_ERP_PLANT_RETRIEVE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter /GBT/R_ERP_PLANT_RETRIEVE into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

/GBT/PLANT_RETRIEVE - Retrieve Plant Master from ERP


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT /GBT/R_ERP_PLANT_RETRIEVE. "Basic submit
SUBMIT /GBT/R_ERP_PLANT_RETRIEVE AND RETURN. "Return to original report after report execution complete
SUBMIT /GBT/R_ERP_PLANT_RETRIEVE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: PA_LSYS = D .
Title: Retrieve Plant Master from ERP
Text Symbol: 001 = Get Plants from Logical System
Text Symbol: 002 = Number of Plants to Retrieve
Text Symbol: 004 = Save Plants as Business Partner


INCLUDES used within this REPORT /GBT/R_ERP_PLANT_RETRIEVE

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = lv_percentage_total text = iv_text.

RFC_READ_TABLE CALL FUNCTION 'RFC_READ_TABLE' DESTINATION gv_rfcdest EXPORTING query_table = 'T001W' TABLES options = lt_options fields = lt_fields data = lt_data EXCEPTIONS table_not_available = 1 table_without_data = 2 option_not_valid = 3 field_not_valid = 4 not_authorized = 5 data_buffer_exceeded = 6 OTHERS = 7.

/GBTINT/RFC_DLG_GET_PLANT CALL FUNCTION '/GBTINT/RFC_DLG_GET_PLANT' DESTINATION gv_rfcdest EXPORTING it_plant_key = lt_plant_key IMPORTING ev_xplant_adredi = lv_xstring et_bapiret2 = lt_bapiret2 EXCEPTIONS OTHERS = 1.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

DD_DTEL_GET CALL FUNCTION 'DD_DTEL_GET' EXPORTING langu = sy-langu roll_name = 'WERKS_D' TABLES dd04t_tab_a = lt_dd04t EXCEPTIONS OTHERS = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name /GBT/R_ERP_PLANT_RETRIEVE or its description.