SAP Reports / Programs | Cross-Application Components | General Application Functions | Distribution Unit / Distribution Packet(CA-GTF-UPS) SAP CA

UPSF04 SAP ABAP INCLUDE - documentation and ABAP source code







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


INCLUDES used within this REPORT UPSF04

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:

UPSCU_CHECK_PROCESS_ALLOWED CALL FUNCTION 'UPSCU_CHECK_PROCESS_ALLOWED' EXPORTING IM_INSTID = unity IM_VRGNG = kups_vrgng_post EXCEPTIONS NOT_ALLOWED = 1 others = 0.

UPSCP_OBJECT_VERIFY_OBJKEY CALL FUNCTION 'UPSCP_OBJECT_VERIFY_OBJKEY' EXPORTING IM_CALLMODE = kups_distribution FLG_MSGCOLLECT = kups_false IM_DIRECT = gls_unity-direct TABLES IT_APIITM = it_apiitm EXCEPTIONS INVALID_OBJKEY = 1 OTHERS = 0.

UPSCP_OBJECT_VERIFY_EXISTENCE CALL FUNCTION 'UPSCP_OBJECT_VERIFY_EXISTENCE' EXPORTING IM_CALLMODE = kups_distribution IM_DLOCK = l_dlock TABLES it_outitm = it_outitm IT_ITMMSG = it_itmmsg. "note0526128

UPSCP_OBJECT_DISPLAY CALL FUNCTION 'UPSCP_OBJECT_DISPLAY' EXPORTING im_objtyp = it_dynitems-objtyp im_objid = it_dynitems-objid im_objval = it_dynitems-objval im_mescod = it_dynitems-mescod im_callmode = kups_distribution EXCEPTIONS others = 1.

UPSIFMW_DISPLAY_MASS CALL FUNCTION 'UPSIFMW_DISPLAY_MASS' EXPORTING IMT_DOCKEY = it_dockey EXCEPTIONS OTHERS = 1.

UPSCP_OBJECT_DISPLAY_APPLOG CALL FUNCTION 'UPSCP_OBJECT_DISPLAY_APPLOG' TABLES IT_OUTITM = it_outitm EXCEPTIONS OTHERS = 1.

UPSCU_POST CALL FUNCTION 'UPSCU_POST' EXPORTING IM_INSTID = unity FLG_COMMIT_AND_WAIT = kups_true FLG_APPL_LOG = kups_true IM_POST_ALL = kups_true TABLES IM_OUTITM = it_outitm EXCEPTIONS OTHERS = 1.

UPSPO_FILTER CALL FUNCTION 'UPSPO_FILTER' TABLES CH_SOHIELEV = sohielev CH_SOINSLEV = soinslev CH_SOSUBLEV = sosublev CH_SOOBJTYP = soobjtyp CH_SOOBJID = soobjid CH_SOOBJVAL = soobjval CH_SODOCNUM = sodocnum CH_SOSTATUS = sostatus CHANGING CH_PAHIDDEL = pahiddel EXCEPTIONS CANCEL = 1.

UPSPO_POSITION CALL FUNCTION 'UPSPO_POSITION' TABLES IT_ITEMS = it_dynitems CHANGING EX_TABIX = hlp_tabix EXCEPTIONS others = 1.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = 'SAPUPS' dynumb = '1100' TABLES dynpfields = dyn_fields EXCEPTIONS OTHERS = 1 .

UPSCP_OBJECT_KEY_MAINTAIN CALL FUNCTION 'UPSCP_OBJECT_KEY_MAINTAIN' EXPORTING IM_OBJTYP = l_objtyp IM_CALLMODE = kups_distribution FLG_CHANGE = l_change IM_DLOCK = l_dlock CHANGING CH_OBJID = l_objid CH_OBJVAL = l_objval CH_MESCOD = l_mescod EXCEPTIONS others = 1 .

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = 'SAPUPS' dynumb = '1100' TABLES dynpfields = dyn_fields EXCEPTIONS OTHERS = 0.

UPSCP_ITEM_DATA_EXPAND CALL FUNCTION 'UPSCP_ITEM_DATA_EXPAND' EXPORTING FLG_DSCRPT = kups_true FLG_IDOC = kups_true IM_DIRECT = gls_unity-direct IM_DLOCK = l_dlock TABLES CHT_OUTITM = it_outitm.



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