SAP UPSCU_CHECK_UPSSTS_PHASE Function Module for
UPSCU_CHECK_UPSSTS_PHASE is a standard upscu check upssts phase SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for upscu check upssts phase FM, simply by entering the name UPSCU_CHECK_UPSSTS_PHASE into the relevant SAP transaction such as SE37 or SE38.
Function Group: UPSCU
Program Name: SAPLUPSCU
Main Program: SAPLUPSCU
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function UPSCU_CHECK_UPSSTS_PHASE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'UPSCU_CHECK_UPSSTS_PHASE'".
EXPORTING
IM_INSTID = "ALE Distribution Packet: ID for Instantiation
IM_UPSNAM = "ALE Distribution Packet: Name
IM_OWNER = "ALE Distribution Packet : Owner
IM_LOGSYS = "ALE Distribution Packet : Partner
IM_DIRECT = "ALE Distribution Packet: Distribution Direction
* IS_NEW = KUPS_FALSE "
* IS_RELEASED = KUPS_FALSE "
* IS_SENT = KUPS_FALSE "
* IS_POSTED = KUPS_FALSE "
EXCEPTIONS
FAILING_INSTANCE = 1 TRUE = 2 FALSE = 3 ERROR = 4
IMPORTING Parameters details for UPSCU_CHECK_UPSSTS_PHASE
IM_INSTID - ALE Distribution Packet: ID for Instantiation
Data type: UPS_INSTIDOptional: No
Call by Reference: Yes
IM_UPSNAM - ALE Distribution Packet: Name
Data type: API_UPSHDR-UPSNAMOptional: No
Call by Reference: Yes
IM_OWNER - ALE Distribution Packet : Owner
Data type: API_UPSHDR-OWNEROptional: No
Call by Reference: Yes
IM_LOGSYS - ALE Distribution Packet : Partner
Data type: API_UPSHDR-LOGSYSOptional: No
Call by Reference: Yes
IM_DIRECT - ALE Distribution Packet: Distribution Direction
Data type: API_UPSHDR-DIRECTOptional: No
Call by Reference: Yes
IS_NEW -
Data type: XFELDDefault: KUPS_FALSE
Optional: Yes
Call by Reference: Yes
IS_RELEASED -
Data type: XFELDDefault: KUPS_FALSE
Optional: Yes
Call by Reference: Yes
IS_SENT -
Data type: XFELDDefault: KUPS_FALSE
Optional: Yes
Call by Reference: Yes
IS_POSTED -
Data type: XFELDDefault: KUPS_FALSE
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
FAILING_INSTANCE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TRUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FALSE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for UPSCU_CHECK_UPSSTS_PHASE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_im_instid | TYPE UPS_INSTID, " | |||
| lv_failing_instance | TYPE UPS_INSTID, " | |||
| lv_true | TYPE UPS_INSTID, " | |||
| lv_im_upsnam | TYPE API_UPSHDR-UPSNAM, " | |||
| lv_false | TYPE API_UPSHDR, " | |||
| lv_im_owner | TYPE API_UPSHDR-OWNER, " | |||
| lv_error | TYPE API_UPSHDR, " | |||
| lv_im_logsys | TYPE API_UPSHDR-LOGSYS, " | |||
| lv_im_direct | TYPE API_UPSHDR-DIRECT, " | |||
| lv_is_new | TYPE XFELD, " KUPS_FALSE | |||
| lv_is_released | TYPE XFELD, " KUPS_FALSE | |||
| lv_is_sent | TYPE XFELD, " KUPS_FALSE | |||
| lv_is_posted | TYPE XFELD. " KUPS_FALSE |
|   CALL FUNCTION 'UPSCU_CHECK_UPSSTS_PHASE' " |
| EXPORTING | ||
| IM_INSTID | = lv_im_instid | |
| IM_UPSNAM | = lv_im_upsnam | |
| IM_OWNER | = lv_im_owner | |
| IM_LOGSYS | = lv_im_logsys | |
| IM_DIRECT | = lv_im_direct | |
| IS_NEW | = lv_is_new | |
| IS_RELEASED | = lv_is_released | |
| IS_SENT | = lv_is_sent | |
| IS_POSTED | = lv_is_posted | |
| EXCEPTIONS | ||
| FAILING_INSTANCE = 1 | ||
| TRUE = 2 | ||
| FALSE = 3 | ||
| ERROR = 4 | ||
| . " UPSCU_CHECK_UPSSTS_PHASE | ||
ABAP code using 7.40 inline data declarations to call FM UPSCU_CHECK_UPSSTS_PHASE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single UPSNAM FROM API_UPSHDR INTO @DATA(ld_im_upsnam). | ||||
| "SELECT single OWNER FROM API_UPSHDR INTO @DATA(ld_im_owner). | ||||
| "SELECT single LOGSYS FROM API_UPSHDR INTO @DATA(ld_im_logsys). | ||||
| "SELECT single DIRECT FROM API_UPSHDR INTO @DATA(ld_im_direct). | ||||
| DATA(ld_is_new) | = KUPS_FALSE. | |||
| DATA(ld_is_released) | = KUPS_FALSE. | |||
| DATA(ld_is_sent) | = KUPS_FALSE. | |||
| DATA(ld_is_posted) | = KUPS_FALSE. | |||
Search for further information about these or an SAP related objects