SAP UPSCU_PACKAGE_DATA_PROVIDE Function Module for
UPSCU_PACKAGE_DATA_PROVIDE is a standard upscu package data provide 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 package data provide FM, simply by entering the name UPSCU_PACKAGE_DATA_PROVIDE 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_PACKAGE_DATA_PROVIDE 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_PACKAGE_DATA_PROVIDE'".
EXPORTING
IM_INSTID = "ALE Distribution Packet: ID for Instantiation
IM_UPSNAM = "ALE Distribution Packet: Name
* FLG_REFRESH = KUPS_FALSE "
IMPORTING
EX_OUTHDR = "ALE Distribution Packet: Header Data (Output Structure)
EXT_OUTSTS = "ALE Distribution Unit: Status History (Output Structure)
EXT_OUTSRC = "
EXT_OUTPRE = "ALE Distribution Packet: Predecessor (Output Structure)
EXT_OUTITM = "
EX_UPSNUM = "ALE Distribution Packet : Number
EXCEPTIONS
NOT_FOUND = 1 FAILING_INSTANCE = 2
IMPORTING Parameters details for UPSCU_PACKAGE_DATA_PROVIDE
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
FLG_REFRESH -
Data type: XFELDDefault: KUPS_FALSE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for UPSCU_PACKAGE_DATA_PROVIDE
EX_OUTHDR - ALE Distribution Packet: Header Data (Output Structure)
Data type: OUT_UPSHDROptional: No
Call by Reference: Yes
EXT_OUTSTS - ALE Distribution Unit: Status History (Output Structure)
Data type: OUT_TUPSSTSOptional: No
Call by Reference: Yes
EXT_OUTSRC -
Data type: OUT_TUPSSRCOptional: No
Call by Reference: Yes
EXT_OUTPRE - ALE Distribution Packet: Predecessor (Output Structure)
Data type: OUT_TUPSPREOptional: No
Call by Reference: Yes
EXT_OUTITM -
Data type: OUT_TUPSITMOptional: No
Call by Reference: Yes
EX_UPSNUM - ALE Distribution Packet : Number
Data type: UPSHDR-UPSNUMOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - Packet does not exist in the unit
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FAILING_INSTANCE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for UPSCU_PACKAGE_DATA_PROVIDE 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_ex_outhdr | TYPE OUT_UPSHDR, " | |||
| lv_im_instid | TYPE UPS_INSTID, " | |||
| lv_not_found | TYPE UPS_INSTID, " | |||
| lv_im_upsnam | TYPE API_UPSHDR-UPSNAM, " | |||
| lv_ext_outsts | TYPE OUT_TUPSSTS, " | |||
| lv_failing_instance | TYPE OUT_TUPSSTS, " | |||
| lv_ext_outsrc | TYPE OUT_TUPSSRC, " | |||
| lv_flg_refresh | TYPE XFELD, " KUPS_FALSE | |||
| lv_ext_outpre | TYPE OUT_TUPSPRE, " | |||
| lv_ext_outitm | TYPE OUT_TUPSITM, " | |||
| lv_ex_upsnum | TYPE UPSHDR-UPSNUM. " |
|   CALL FUNCTION 'UPSCU_PACKAGE_DATA_PROVIDE' " |
| EXPORTING | ||
| IM_INSTID | = lv_im_instid | |
| IM_UPSNAM | = lv_im_upsnam | |
| FLG_REFRESH | = lv_flg_refresh | |
| IMPORTING | ||
| EX_OUTHDR | = lv_ex_outhdr | |
| EXT_OUTSTS | = lv_ext_outsts | |
| EXT_OUTSRC | = lv_ext_outsrc | |
| EXT_OUTPRE | = lv_ext_outpre | |
| EXT_OUTITM | = lv_ext_outitm | |
| EX_UPSNUM | = lv_ex_upsnum | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| FAILING_INSTANCE = 2 | ||
| . " UPSCU_PACKAGE_DATA_PROVIDE | ||
ABAP code using 7.40 inline data declarations to call FM UPSCU_PACKAGE_DATA_PROVIDE
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). | ||||
| DATA(ld_flg_refresh) | = KUPS_FALSE. | |||
| "SELECT single UPSNUM FROM UPSHDR INTO @DATA(ld_ex_upsnum). | ||||
Search for further information about these or an SAP related objects