SAP Reports / Programs

PFDBGENXML SAP ABAP Report - Testing redirecting of PFDB report to a XML file







PFDBGENXML 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 PFDBGENXML into the relevant SAP transactions such as SE38 or SE80


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 PFDBGENXML. "Basic submit
SUBMIT PFDBGENXML AND RETURN. "Return to original report after report execution complete
SUBMIT PFDBGENXML VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Testing redirecting of PFDB report to a XML file
Text Symbol: 100 = Cannot retrieve report ID. Check report name.
Text Symbol: 101 = Error in clearing defintion of report variant.
Text Symbol: 102 = Error in clearing content of report variant.
Text Symbol: 103 = Error in loading definition of report variant.
Text Symbol: 104 = Error in generating content of report variant.
Text Symbol: 105 = Error in loading content of report variant.
Text Symbol: 106 = Internal Error: unknown error in loading report.
Text Symbol: 107 = Error in opening file:
Text Symbol: 108 = System message:
Text Symbol: 109 = Process terminated. No file has been created.
Text Symbol: 110 = Error in closing file:
Text Symbol: 111 = Process terminated. File may be invalid.
Text Symbol: 112 = Process finished successfully.
Text Symbol: 113 = Please check the file at


INCLUDES used within this REPORT PFDBGENXML

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:

SALP_RVAR_GET_ID *CALL FUNCTION 'SALP_RVAR_GET_ID' * EXPORTING * RVAR_NAME = p_rname * IMPORTING * RVARID = rvarid * EXCEPTIONS * SELECT_ID_ERROR = 1 * OTHERS = 2.

SALP_RVAR_LOAD *CALL FUNCTION 'SALP_RVAR_LOAD' * EXPORTING * IN_RVARID = rvarid * IMPORTING * RVAR_CONDEF = sap_rvar_cdef * RVAR_GLOBAL_SETTING = sap_rvar_global_setting * RVAR_CONTENT = sap_rvar_content * EXCEPTIONS * CLEAR_CONDEF_ERROR = 1 * CLEAR_CONTENT_ERROR = 2 * LOAD_CONDEF_ERROR = 3 * GEN_CONTENT_ERROR = 4 * LOAD_CONTENT_ERROR = 5 * OTHERS = 6.



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