SAP UPSCP_DATA_PROVIDE_EXTERN Function Module for









UPSCP_DATA_PROVIDE_EXTERN is a standard upscp data provide extern 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 upscp data provide extern FM, simply by entering the name UPSCP_DATA_PROVIDE_EXTERN into the relevant SAP transaction such as SE37 or SE38.

Function Group: UPSCP
Program Name: SAPLUPSCP
Main Program: SAPLUPSCP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function UPSCP_DATA_PROVIDE_EXTERN 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 'UPSCP_DATA_PROVIDE_EXTERN'"
EXPORTING
* FLG_SKIP_ITEMS = KUPS_FALSE "Only output header data
IM_INSTID = "ALE Distribution Packet: ID for Instantiation
* FLG_REFRESH = KUPS_FALSE "
* FLG_DSCRPT = KUPS_FALSE "
* FLG_IDOC = KUPS_FALSE "

IMPORTING
EX_OUTHDR = "ALE Distribution Packet: Header Data (Output Structure)
EXT_OUTSRC = "
EXT_OUTPRE = "ALE Distribution Packet: Predecessor (Output Structure)
EXT_OUTITM = "
EXT_OUTSTS = "ALE Distribution Unit: Status History (Output Structure)
EX_UPSNUM = "ALE Distribution Packet : Number
EX_STSPHASE = "

EXCEPTIONS
NO_DATA_AVAILABLE = 1 FAILING_INSTANCE = 2
.



IMPORTING Parameters details for UPSCP_DATA_PROVIDE_EXTERN

FLG_SKIP_ITEMS - Only output header data

Data type: XFELD
Default: KUPS_FALSE
Optional: Yes
Call by Reference: Yes

IM_INSTID - ALE Distribution Packet: ID for Instantiation

Data type: UPS_INSTID
Optional: No
Call by Reference: Yes

FLG_REFRESH -

Data type: XFELD
Default: KUPS_FALSE
Optional: Yes
Call by Reference: Yes

FLG_DSCRPT -

Data type: XFELD
Default: KUPS_FALSE
Optional: Yes
Call by Reference: Yes

FLG_IDOC -

Data type: XFELD
Default: KUPS_FALSE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for UPSCP_DATA_PROVIDE_EXTERN

EX_OUTHDR - ALE Distribution Packet: Header Data (Output Structure)

Data type: OUT_UPSHDR
Optional: No
Call by Reference: Yes

EXT_OUTSRC -

Data type: OUT_TUPSSRC
Optional: No
Call by Reference: Yes

EXT_OUTPRE - ALE Distribution Packet: Predecessor (Output Structure)

Data type: OUT_TUPSPRE
Optional: No
Call by Reference: Yes

EXT_OUTITM -

Data type: OUT_TUPSITM
Optional: No
Call by Reference: Yes

EXT_OUTSTS - ALE Distribution Unit: Status History (Output Structure)

Data type: OUT_TUPSSTS
Optional: No
Call by Reference: Yes

EX_UPSNUM - ALE Distribution Packet : Number

Data type: UPSHDR-UPSNUM
Optional: No
Call by Reference: Yes

EX_STSPHASE -

Data type: UPSHDR-STSPHASE
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_DATA_AVAILABLE - No data exists for the distribution packet

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 UPSCP_DATA_PROVIDE_EXTERN 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_flg_skip_items  TYPE XFELD, "   KUPS_FALSE
lv_no_data_available  TYPE XFELD, "   
lv_im_instid  TYPE UPS_INSTID, "   
lv_ext_outsrc  TYPE OUT_TUPSSRC, "   
lv_failing_instance  TYPE OUT_TUPSSRC, "   
lv_ext_outpre  TYPE OUT_TUPSPRE, "   
lv_flg_refresh  TYPE XFELD, "   KUPS_FALSE
lv_ext_outitm  TYPE OUT_TUPSITM, "   
lv_flg_dscrpt  TYPE XFELD, "   KUPS_FALSE
lv_flg_idoc  TYPE XFELD, "   KUPS_FALSE
lv_ext_outsts  TYPE OUT_TUPSSTS, "   
lv_ex_upsnum  TYPE UPSHDR-UPSNUM, "   
lv_ex_stsphase  TYPE UPSHDR-STSPHASE. "   

  CALL FUNCTION 'UPSCP_DATA_PROVIDE_EXTERN'  "
    EXPORTING
         FLG_SKIP_ITEMS = lv_flg_skip_items
         IM_INSTID = lv_im_instid
         FLG_REFRESH = lv_flg_refresh
         FLG_DSCRPT = lv_flg_dscrpt
         FLG_IDOC = lv_flg_idoc
    IMPORTING
         EX_OUTHDR = lv_ex_outhdr
         EXT_OUTSRC = lv_ext_outsrc
         EXT_OUTPRE = lv_ext_outpre
         EXT_OUTITM = lv_ext_outitm
         EXT_OUTSTS = lv_ext_outsts
         EX_UPSNUM = lv_ex_upsnum
         EX_STSPHASE = lv_ex_stsphase
    EXCEPTIONS
        NO_DATA_AVAILABLE = 1
        FAILING_INSTANCE = 2
. " UPSCP_DATA_PROVIDE_EXTERN




ABAP code using 7.40 inline data declarations to call FM UPSCP_DATA_PROVIDE_EXTERN

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.

 
DATA(ld_flg_skip_items) = KUPS_FALSE.
 
 
 
 
 
 
DATA(ld_flg_refresh) = KUPS_FALSE.
 
 
DATA(ld_flg_dscrpt) = KUPS_FALSE.
 
DATA(ld_flg_idoc) = KUPS_FALSE.
 
 
"SELECT single UPSNUM FROM UPSHDR INTO @DATA(ld_ex_upsnum).
 
"SELECT single STSPHASE FROM UPSHDR INTO @DATA(ld_ex_stsphase).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!