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

UPSF00 SAP ABAP INCLUDE - documentation and ABAP source code







UPSF00 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 UPSF00 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 UPSF00. "Basic submit
SUBMIT UPSF00 AND RETURN. "Return to original report after report execution complete
SUBMIT UPSF00 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 UPSF00

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_PACKAGE_MAINTAIN CALL FUNCTION 'UPSCU_PACKAGE_MAINTAIN' EXPORTING IM_INSTID = unity IMT_APIITM = it_apiitm IMT_APISRC = it_apisrc IMT_APIPRE = it_apipre FLG_COMMIT_AND_WAIT = kups_false FLG_APPL_LOG = kups_false FLG_LOCK_PACKAGE = kups_false FLG_MSG_COLLECT = kups_false FLG_SET_UPSSTS_NEW = p_upssts_new FLG_SYNC_OBJLIST = flg-item_cng FLG_SRC_IMPORT = kups_true FLG_PRE_IMPORT = kups_true IM_VRGNG = glv_vrgng CHANGING CH_APIHDR = is_apihdr EXCEPTIONS others = 1 .

UPSCU_CONSTRUCTOR CALL FUNCTION 'UPSCU_CONSTRUCTOR' EXPORTING IM_PACKAGENAME = upshdr-upsnam IM_OWNER = upshdr-owner IM_PARTNER = upshdr-logsys IM_DIRECTION = upshdr-direct FLG_ERROR_IF_NOT_EXIST = flg_error_if_not_exist FLG_ERROR_IF_EXIST = flg_error_if_exist FLG_DIALOG = kups_true "UPSAP IM_EDITMODE = glv_editmode IMPORTING EX_INSTID = unity EXCEPTIONS DISPLAY_ONLY = 1 others = 10.

UPSCU_PROVIDE_DATA CALL FUNCTION 'UPSCU_PROVIDE_DATA' EXPORTING IM_INSTID = unity IMPORTING EX_UNITY_ITM = source_itm EX_ORIGINAL_HDR = source_hdr EX_CURRENT_UPSNUM = l_upsnum EX_UNITY_SRC = source_src * EX_UNITY_PRE = source_pre EXCEPTIONS others = 1 .

UPSCU_CHECK_UPSSTS_PHASE CALL FUNCTION 'UPSCU_CHECK_UPSSTS_PHASE' EXPORTING IM_INSTID = unity IM_UPSNAM = source_hdr-upsnam IM_OWNER = source_hdr-owner IM_LOGSYS = source_hdr-logsys IM_DIRECT = source_hdr-direct IS_RELEASED = kups_true EXCEPTIONS TRUE = 0 others = 1 .

UPSCU_PACKAGE_DATA_PROVIDE CALL FUNCTION 'UPSCU_PACKAGE_DATA_PROVIDE' EXPORTING IM_INSTID = unity IM_UPSNAM = upshdr-upsnam IMPORTING EX_OUTHDR = source_hdr EXT_OUTITM = source_itm EXT_OUTSRC = source_src EXCEPTIONS others = 1 .

UPSCU_PACKAGE_CREATE CALL FUNCTION 'UPSCU_PACKAGE_CREATE' EXPORTING IM_INSTID = unity_cpy IMT_APIITM = it_apiitm IMT_APISRC = it_apisrc IMT_APIPRE = it_apipre FLG_COMMIT_AND_WAIT = kups_false * FLG_LOCK_PACKAGE = ' ' * FLG_SET_UPSSTS_NEW = ' ' IM_VRGNG = kups_vrgng_new CHANGING CH_APIHDR = is_apihdr EXCEPTIONS others = 1 .

UPSCU_FREE CALL FUNCTION 'UPSCU_FREE' EXPORTING IM_INSTID = unity.

UPSCU_FREE CALL FUNCTION 'UPSCU_FREE' EXPORTING IM_INSTID = unity.

UPSCU_ALE_UPDATE CALL FUNCTION 'UPSCU_ALE_UPDATE' EXPORTING IM_INSTID = unity FLG_DOCNUM_UPDATE = p_docnum FLG_SERIAL_UPDATE = p_serial FLG_COMMIT_AND_WAIT = kups_false EXCEPTIONS others = 1 .

UPSIFMW_STATUS_ROLE CALL FUNCTION 'UPSIFMW_STATUS_ROLE' EXPORTING IM_STATUS = p_status IMPORTING EX_ROLE = l_role.

UPSCU_POST CALL FUNCTION 'UPSCU_POST' EXPORTING IM_INSTID = unity FLG_DOCNUM_UPDATE = kups_true * FLG_COMMIT_AND_WAIT = kups_true FLG_APPL_LOG = kups_true FLG_SET_ALL_OBSOLETE = kups_true EXCEPTIONS OTHERS = 0.

UPSST_PUSH CALL FUNCTION 'UPSST_PUSH' EXPORTING IM_TCODE = p_tcode IM_UPSHDR = p_upshdr.

UPSST_PULL CALL FUNCTION 'UPSST_PULL' EXPORTING IM_DIRECT = p_direct CHANGING CH_TCODE = p_tcode CH_UPSHDR = upshdr EXCEPTIONS NO_CURRENT_ENTRY = 1 REACHED_BOTTOM = 2 REACHED_TOP = 3 OTHERS = 99.

UPSST_SELECTION CALL FUNCTION 'UPSST_SELECTION' EXPORTING FLG_SIMULATION = kups_false CHANGING CH_UPSHDR = upshdr CH_TCODE = p_tcode EXCEPTIONS OTHERS = 0.

UPSST_UPDATE CALL FUNCTION 'UPSST_UPDATE' EXPORTING IM_UPDATE = p_upd.

UPSCU_SET_UPSSTS_RELEASED CALL FUNCTION 'UPSCU_SET_UPSSTS_RELEASED' EXPORTING IM_INSTID = unity FLG_COMMIT_AND_WAIT = kups_false EXCEPTIONS SERIAL_INCOMPLETE = 1 others = 10 .

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = text-020 TEXT_QUESTION = text-021 DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = ' ' IMPORTING ANSWER = l_answer EXCEPTIONS OTHERS = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM'"--> complete note 917596 EXPORTING TITLEBAR = 'UPS' * DIAGNOSE_OBJECT = ' ' text_question = text-013 * POPUP_TYPE = IMPORTING ANSWER = l_answer .

UPSCU_SET_UPSSTS_REJECTED





CALL FUNCTION 'UPSCU_SET_UPSSTS_REJECTED' EXPORTING IM_INSTID = unity FLG_COMMIT_AND_WAIT = kups_false EXCEPTIONS DOCNUM_UNKNOWN = 1 "n_1470590 others = 10.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = text-030 TEXT_QUESTION = text-031 DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = ' ' IMPORTING ANSWER = l_answer EXCEPTIONS OTHERS = 0.

UPSCU_SET_UPSSTS_APPROVED CALL FUNCTION 'UPSCU_SET_UPSSTS_APPROVED' EXPORTING IM_INSTID = unity FLG_COMMIT_AND_WAIT = kups_false EXCEPTIONS DOCNUM_UNKNOWN = 1 others = 10 .

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = text-030 TEXT_QUESTION = text-031 DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = ' ' IMPORTING ANSWER = l_answer EXCEPTIONS OTHERS = 0.



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