SAP Reports / Programs | Cross-Application Components | General Application Functions | Document Builder(CA-GTF-DOB) SAP CA

/IPRO/TEST_DOCUMENT_SAVE SAP ABAP Report - This report will test the DOCB_DOCUMENT_SAVE service







/IPRO/TEST_DOCUMENT_SAVE 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 /IPRO/TEST_DOCUMENT_SAVE 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 /IPRO/TEST_DOCUMENT_SAVE. "Basic submit
SUBMIT /IPRO/TEST_DOCUMENT_SAVE AND RETURN. "Return to original report after report execution complete
SUBMIT /IPRO/TEST_DOCUMENT_SAVE 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_CONT = Select Content
Selection Text: P_DOC = Select Document ID
Selection Text: P_VARXML = Provide Variable Tree
Title: This report will test the DOCB_DOCUMENT_SAVE service
Text Symbol: 100 = Select Microsoft Word XML file
Text Symbol: 101 = Select Variable XML file


INCLUDES used within this REPORT /IPRO/TEST_DOCUMENT_SAVE

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:

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = p_doc IMPORTING output = p_doc.

SCMS_BINARY_TO_XSTRING CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = lv_len IMPORTING buffer = lx_data TABLES binary_tab = lt_tab EXCEPTIONS failed = 1 OTHERS = 2.

/IPRO/GET_DOCUMENT_DETAILS CALL FUNCTION '/IPRO/GET_DOCUMENT_DETAILS' EXPORTING piv_docmnt = lv_guid piv_return_content = 'X' piv_docsl = '' piv_content = p_cont piv_action = '03' * PIV_LANGUAGE = * PIV_DOCMNT_ID = IMPORTING pev_doc_hdr = ls_doc_header pev_doc = lv_doc_data * PET_MESSAGE = * PET_AUTH_USERS = * PET_AUTH_ORGS = pev_doc_details = lv_doc_detail * PET_REVIEWERS = * PET_APPROVERS = .

SCMS_BINARY_TO_XSTRING CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = lv_len IMPORTING buffer = lv_doc_detail TABLES binary_tab = lt_tab EXCEPTIONS failed = 1 OTHERS = 2.

DOCB_DOCUMENT_SAVE CALL FUNCTION 'DOCB_DOCUMENT_SAVE' EXPORTING piv_doc_binary = piv_document piv_doc_xml = lv_doc_detail * PIT_AUTH_USERS = * PIT_AUTH_ORGS = piv_action = '03' * PIT_REVIEWERS = * PIT_APPROVERS = IMPORTING * PEV_DOC_ID = pet_message = lt_messages CHANGING pcv_dochdr = ls_doc_header.



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 /IPRO/TEST_DOCUMENT_SAVE or its description.