SAP UPS_BUNDLE_EXECUTE Function Module for Copy of the identically named report to the synchronous execution









UPS_BUNDLE_EXECUTE is a standard ups bundle execute SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Copy of the identically named report to the synchronous execution processing and below is the pattern details for this FM, 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 ups bundle execute FM, simply by entering the name UPS_BUNDLE_EXECUTE into the relevant SAP transaction such as SE37 or SE38.

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



Function UPS_BUNDLE_EXECUTE 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 'UPS_BUNDLE_EXECUTE'"Copy of the identically named report to the synchronous execution
EXPORTING
BUNDLE = "Planning Sequence
TEILPLAN = "Subplan in STS
VERSION = "Planning Session/Version
ORGVL = "Org. Value for Status and Tracking System

TABLES
ET_RETURN = "Return Parameter

EXCEPTIONS
ERROR_POST = 1 ERROR_EXECUTE = 2
.



IMPORTING Parameters details for UPS_BUNDLE_EXECUTE

BUNDLE - Planning Sequence

Data type: UPF_BSTEPS-BUNDLE
Optional: No
Call by Reference: Yes

TEILPLAN - Subplan in STS

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

VERSION - Planning Session/Version

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

ORGVL - Org. Value for Status and Tracking System

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

TABLES Parameters details for UPS_BUNDLE_EXECUTE

ET_RETURN - Return Parameter

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

EXCEPTIONS details

ERROR_POST - Error during API_SEMBPS_POST

Data type:
Optional: No
Call by Reference: Yes

ERROR_EXECUTE - Error during Execute via API

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for UPS_BUNDLE_EXECUTE 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_bundle  TYPE UPF_BSTEPS-BUNDLE, "   
lt_et_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_error_post  TYPE BAPIRET2, "   
lv_teilplan  TYPE UPS_Y_TEILPLAN, "   
lv_error_execute  TYPE UPS_Y_TEILPLAN, "   
lv_version  TYPE UPS_Y_VERSION, "   
lv_orgvl  TYPE UPS_Y_ORGVL. "   

  CALL FUNCTION 'UPS_BUNDLE_EXECUTE'  "Copy of the identically named report to the synchronous execution
    EXPORTING
         BUNDLE = lv_bundle
         TEILPLAN = lv_teilplan
         VERSION = lv_version
         ORGVL = lv_orgvl
    TABLES
         ET_RETURN = lt_et_return
    EXCEPTIONS
        ERROR_POST = 1
        ERROR_EXECUTE = 2
. " UPS_BUNDLE_EXECUTE




ABAP code using 7.40 inline data declarations to call FM UPS_BUNDLE_EXECUTE

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 BUNDLE FROM UPF_BSTEPS INTO @DATA(ld_bundle).
 
 
 
 
 
 
 


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!