SAP Reports / Programs | Materials Management | Purchasing | Basic Functions(MM-PUR-GF) SAP MM

BBP_ES_MASTERDATA_EXTRACT SAP ABAP Report - Extraction of Master Data for SAP Sourcing







BBP_ES_MASTERDATA_EXTRACT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to extract the following Customizing data from SAP ERP into XML files that can be imported to SAP Sourcing: Company codes Purchasing organizations Purchasing groups Payment terms Material groups Plants Condition types The format of the XML data is specific to the needs of SAP Sourcing...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter BBP_ES_MASTERDATA_EXTRACT 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

BBP_ES_MAST_DOWNLOAD - BBP_ES_ERP_INT


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 BBP_ES_MASTERDATA_EXTRACT. "Basic submit
SUBMIT BBP_ES_MASTERDATA_EXTRACT AND RETURN. "Return to original report after report execution complete
SUBMIT BBP_ES_MASTERDATA_EXTRACT 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: P_VEND = Vendor
Selection Text: P_REPVER = Report Version
Selection Text: P_R2 = Save on Application Server At
Selection Text: P_R1 = Save on Local PC At
Selection Text: P_PORG = Purchasing Organization
Selection Text: P_PC = Folder for Save on Local PC
Selection Text: P_NOVREC = No of records in a xml file
Selection Text: P_NOMREC = No of records in a xml file
Selection Text: P_MTYPE = D .
Selection Text: P_MATNR = D .
Selection Text: P_MATKL = Material Group
Selection Text: P_MAT = Material
Selection Text: P_LIFNR = Vendor Number
Selection Text: P_LANGU = D .
Selection Text: P_FVEND = Filename for Vendor
Selection Text: P_FMATNR = Filename for Material
Selection Text: P_COMCOD = Company Code
Selection Text: P_APP = Folder for Save on App. Server
Title: Extraction of Master Data for SAP Sourcing
Text Symbol: 021 = Version 2 - SAP Sourcing Wave 9 and Above
Text Symbol: 020 = Version 1 - SAP Sourcing Wave 7 and 8
Text Symbol: 010 = Customizing Objects
Text Symbol: 008 = Element "&1" could not be created while processing customizing object &2
Text Symbol: 006 = Log
Text Symbol: 004 = Common Data
Text Symbol: 003 = Master Data for Download
Text Symbol: 002 = Vendor
Text Symbol: 001 = Material


INCLUDES used within this REPORT BBP_ES_MASTERDATA_EXTRACT

INCLUDE BBP_ES_MAS_EXT_CONSTANTS. " CONSTANTS FOR XML TAGS
INCLUDE BBP_ES_MAS_EXT_COMMON. " COMMON ROUTINES
INCLUDE BBP_ES_MAS_EXT_RESTRICT_SEF01. " RESTRICTION FOR SELECT-OPTIONS
INCLUDE BBP_ES_MAS_EXT_LOGSYS. " LOGICAL SYSTEM INFORMATION
INCLUDE BBP_ES_MAS_EXT_MAT_PROVIF01. " MATERIAL INFORMAITON
INCLUDE BBP_ES_MAS_EXT_VEN_PROVIF01. " VENDOR INFORMATION
INCLUDE BBP_ES_MAS_EXT_TST_TO_DATTIME. " CONVERT THE TIMESTAMP TO DATE AND TIME
INCLUDE BBP_ES_MAS_EXT_REP_VERSION. " FILL THE REPORT VERSION INFORMATION


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:

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_logical_filename CHANGING physical_filename = lv_test_filename EXCEPTIONS logical_filename_not_found = 1 validation_failed = 2 OTHERS = 3.

CLSE_SELECT_USR01 CALL FUNCTION 'CLSE_SELECT_USR01' EXPORTING username = sy-uname IMPORTING x_usr01 = gs_x_usr01.

BBP_ES_LOG CALL FUNCTION 'BBP_ES_LOG' EXPORTING it_return = gt_prot.



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