SAP SD_ITEM_CHANGE_STATUS Function Module for NOTRANSL: Betriebswirtschaftl. Vorgang zu Objekttyp VBP durchführen









SD_ITEM_CHANGE_STATUS is a standard sd item change status SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Betriebswirtschaftl. Vorgang zu Objekttyp VBP durchführen 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 sd item change status FM, simply by entering the name SD_ITEM_CHANGE_STATUS into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_ITEM_CHANGE_STATUS 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 'SD_ITEM_CHANGE_STATUS'"NOTRANSL: Betriebswirtschaftl. Vorgang zu Objekttyp VBP durchführen
EXPORTING
I_VRGNG = "
* I_DOCUMENT_NUMBER = "Document Number
* I_ITEM_NUMBER = "Item
* I_VBAP = "
* I_VBAK = "
* I_EXTERNAL_CALL = ' ' "
* I_CHECK_ONLY = ' ' "
* I_SLOPPY_CHECK = ' ' "

TABLES
* FXVBFA = "
* FXVBAPF = "
* FXVBUP = "
* FXVBEP = "

EXCEPTIONS
NO_STATUS_OBJECT = 1 NO_ACTIVITY = 2 MISSING_DATA = 3 NOT_ALLOWED = 4 FATAL_ERROR = 5
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLV45P_002 User Exit: Transfer of Conditions into Cost

IMPORTING Parameters details for SD_ITEM_CHANGE_STATUS

I_VRGNG -

Data type: TJ01-VRGNG
Optional: No
Call by Reference: No ( called with pass by value option)

I_DOCUMENT_NUMBER - Document Number

Data type: VBAP-VBELN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ITEM_NUMBER - Item

Data type: VBAP-POSNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VBAP -

Data type: VBAP
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VBAK -

Data type: VBAK
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_EXTERNAL_CALL -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHECK_ONLY -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SLOPPY_CHECK -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SD_ITEM_CHANGE_STATUS

FXVBFA -

Data type: VBFAVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBAPF -

Data type: VBAPF
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBUP -

Data type: VBUPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBEP -

Data type: VBEPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_STATUS_OBJECT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_ACTIVITY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MISSING_DATA - Data Missing

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NOT_ALLOWED - Transaction not allowed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FATAL_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SD_ITEM_CHANGE_STATUS 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:
lt_fxvbfa  TYPE STANDARD TABLE OF VBFAVB, "   
lv_i_vrgng  TYPE TJ01-VRGNG, "   
lv_no_status_object  TYPE TJ01, "   
lt_fxvbapf  TYPE STANDARD TABLE OF VBAPF, "   
lv_no_activity  TYPE VBAPF, "   
lv_i_document_number  TYPE VBAP-VBELN, "   
lt_fxvbup  TYPE STANDARD TABLE OF VBUPVB, "   
lv_missing_data  TYPE VBUPVB, "   
lv_i_item_number  TYPE VBAP-POSNR, "   
lt_fxvbep  TYPE STANDARD TABLE OF VBEPVB, "   
lv_i_vbap  TYPE VBAP, "   
lv_not_allowed  TYPE VBAP, "   
lv_i_vbak  TYPE VBAK, "   
lv_fatal_error  TYPE VBAK, "   
lv_i_external_call  TYPE VBAK, "   SPACE
lv_i_check_only  TYPE VBAK, "   SPACE
lv_i_sloppy_check  TYPE VBAK. "   SPACE

  CALL FUNCTION 'SD_ITEM_CHANGE_STATUS'  "NOTRANSL: Betriebswirtschaftl. Vorgang zu Objekttyp VBP durchführen
    EXPORTING
         I_VRGNG = lv_i_vrgng
         I_DOCUMENT_NUMBER = lv_i_document_number
         I_ITEM_NUMBER = lv_i_item_number
         I_VBAP = lv_i_vbap
         I_VBAK = lv_i_vbak
         I_EXTERNAL_CALL = lv_i_external_call
         I_CHECK_ONLY = lv_i_check_only
         I_SLOPPY_CHECK = lv_i_sloppy_check
    TABLES
         FXVBFA = lt_fxvbfa
         FXVBAPF = lt_fxvbapf
         FXVBUP = lt_fxvbup
         FXVBEP = lt_fxvbep
    EXCEPTIONS
        NO_STATUS_OBJECT = 1
        NO_ACTIVITY = 2
        MISSING_DATA = 3
        NOT_ALLOWED = 4
        FATAL_ERROR = 5
. " SD_ITEM_CHANGE_STATUS




ABAP code using 7.40 inline data declarations to call FM SD_ITEM_CHANGE_STATUS

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 VRGNG FROM TJ01 INTO @DATA(ld_i_vrgng).
 
 
 
 
"SELECT single VBELN FROM VBAP INTO @DATA(ld_i_document_number).
 
 
 
"SELECT single POSNR FROM VBAP INTO @DATA(ld_i_item_number).
 
 
 
 
 
 
DATA(ld_i_external_call) = ' '.
 
DATA(ld_i_check_only) = ' '.
 
DATA(ld_i_sloppy_check) = ' '.
 


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!