SAP Reports / Programs | Cross-Application Components | General Application Functions | Records and Case Management(CA-GTF-RCM) SAP CA

RMPS_POST_API_DEMO SAP ABAP Report - Demo Report for Incoming Post Item APIs







RMPS_POST_API_DEMO 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 RMPS_POST_API_DEMO 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 RMPS_POST_API_DEMO. "Basic submit
SUBMIT RMPS_POST_API_DEMO AND RETURN. "Return to original report after report execution complete
SUBMIT RMPS_POST_API_DEMO 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: PG_ARCH = Create Archive Link Document
Selection Text: PG_MAIL = Create E-Mail
Selection Text: P_ACTIV = 1st Process Route Activity
Selection Text: P_AGENT = 1st Process Route Agent
Selection Text: P_ATTN1 = Attribute Name
Selection Text: P_ATTN2 = Attribute Name
Selection Text: P_ATTN3 = Attribute Name
Selection Text: P_ATTV1 = Attrib.Value
Selection Text: P_ATTV2 = Attrib.Value
Selection Text: P_ATTV3 = Attrib.Value
Selection Text: P_CHATT = Change attributes
Selection Text: P_CHPTH = Change Process Route
Selection Text: P_DECL = Declare IPI
Selection Text: P_DELE = Delete Incoming Post Item
Selection Text: P_DOCTYP = D Document Type
Selection Text: P_FILE = D File Path
Selection Text: P_FOLDER = Case
Selection Text: P_NOPATH = No Process Route
Selection Text: P_PCLASS = Document Class Part
Selection Text: P_PDOCID = Document Key Part
Selection Text: P_PESDIS = Display Incoming Post Item
Title: Demo Report for Incoming Post Item APIs
Text Symbol: T12 = Test Mail for API Demo
Text Symbol: T11 = Create E-Mail for API Demo
Text Symbol: T10 = Select File for Incoming Post Item
Text Symbol: T06 = Declare (TNA only)
Text Symbol: A01 = Attribute 1
Text Symbol: A02 = Attribute 2
Text Symbol: A03 = Attribute 3
Text Symbol: A04 = Record Bank
Text Symbol: A05 = Case
Text Symbol: M01 = Error when creating e-mail
Text Symbol: M02 = E-mail
Text Symbol: M03 = Successfully Created
Text Symbol: M04 = No file specified for creating the archive link document
Text Symbol: M05 = Incoming post item could not be created
Text Symbol: M06 = Errors:
Text Symbol: M07 = Incoming post item created successfully





Text Symbol: M08 = Changing the process route failed
Text Symbol: M09 = Process route successfully changed
Text Symbol: M10 = Deleting the incoming post item failed
Text Symbol: M11 = Incoming post item deleted successfully
Text Symbol: M12 = Displaying the incoming post item failed
Text Symbol: M13 = Changing the attributes failed
Text Symbol: M14 = Attributes changed successfully
Text Symbol: M15 = Declaration failed
Text Symbol: M16 = Incoming post item successfully declared
Text Symbol: T01 = Incoming Object
Text Symbol: T02 = Incoming Post Item
Text Symbol: T03 = Change Process Route
Text Symbol: T04 = Delete
Text Symbol: T05 = Change attributes


INCLUDES used within this REPORT RMPS_POST_API_DEMO

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:

RMPS_POST_CREATE_SAPMAIL_API CALL FUNCTION 'RMPS_POST_CREATE_SAPMAIL_API' EXPORTING im_subject = 'Testmail für API Demo'(t12) " Add a mail subject IMPORTING ex_send_request_id = l_mail_id " Unique Key of the created E-Mail TABLES im_file_tab = lt_files ex_return_tab = lt_return im_mail_text = lt_mail_text.

RMPS_POST_CREATE_API CALL FUNCTION 'RMPS_POST_CREATE_API' EXPORTING im_doctype = p_doctyp " document type that determines the customizing (Tab.: RMPSPEINDOCTYP)

RMPS_POST_EDIT_FIRST_POS_API CALL FUNCTION 'RMPS_POST_EDIT_FIRST_POS_API' EXPORTING im_actarea = 'RMPSPE' " The activity area of the process route is always 'RMPSPE' for inbound documents im_path_id = l_pes_pathid " Unique Id of the created process route im_new_agent = p_agent " New agent of the first process route step im_activity = p_activ " New activity of the first process route step IMPORTING ex_return = ls_return.

RMPS_POST_CHANGE_PROPS_API CALL FUNCTION 'RMPS_POST_CHANGE_PROPS_API' "#EC * EXPORTING im_objectid = l_bapi_docid " PES key field document id im_documentclass = l_bapi_class " PES key field document class * IM_WHOLE_DOCUMENT = ' ' " Set this parameter to 'X' if you want so change LOIO Props * IM_DOC_CONTEXT = " Not used at the moment IMPORTING ex_return = ls_return TABLES tab_properties = lt_props " new property values EXCEPTIONS internal_error = 1 OTHERS = 2 .

RMPS_API_DECLARE_KPRO CALL FUNCTION 'RMPS_API_DECLARE_KPRO' EXPORTING im_object_class = l_bapi_class " PES key field document class im_object_id = l_bapi_docid " PES key field document id im_folder_guid = p_folder " Folder means take the first open part of this folder im_part_class = p_pclass " if you specify the part by document class and id im_part_id = p_pdocid " the document is assigned to exactly this part IMPORTING ex_return = ls_return.

RMPS_POST_DELETE_API CALL FUNCTION 'RMPS_POST_DELETE_API' EXPORTING im_doc_id = l_bapi_docid " PES key field document id im_doc_class = l_bapi_class " PES key field document class im_check_authority = if_srm=>false " bypass the authority check IMPORTING ex_return = ls_return.



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