SAP ORDER_CHANGE_FOR_ACTIVITY Function Module for NOTRANSL: Durchführen vorgegebener Aktionen auf Aufträgen (Löschvorm, Lösc









ORDER_CHANGE_FOR_ACTIVITY is a standard order change for activity 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: Durchführen vorgegebener Aktionen auf Aufträgen (Löschvorm, Lösc 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 order change for activity FM, simply by entering the name ORDER_CHANGE_FOR_ACTIVITY into the relevant SAP transaction such as SE37 or SE38.

Function Group: CORE
Program Name: SAPLCORE
Main Program: SAPLCORE
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ORDER_CHANGE_FOR_ACTIVITY 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 'ORDER_CHANGE_FOR_ACTIVITY'"NOTRANSL: Durchführen vorgegebener Aktionen auf Aufträgen (Löschvorm, Lösc
EXPORTING
* FLG_COST = ' ' "Cost
* TESTRUN = ' ' "Indicator: Test run
* FLG_CAPA = ' ' "Indicator: Recreate capacities
* INIT_TABLES = ' ' "Indicator: Initialize order tables
* MAXNUMBER = 0 "Maximum number of orders
* FLG_BTCH = ' ' "Indicator: Execute batch determination
* FLG_PERFORM_COMMIT = 'X' "
* EXPORT_MSG_TO_MEMORY = 'X' "
* CALLED_AS_RFC = ' ' "
* FLG_TECL = ' ' "
* FLG_CLOS = ' ' "
* FLG_LKZ = ' ' "Set indicator deletion status
* FLG_PRNT = ' ' "
* FLG_TECR = ' ' "
* I_FLG_INIT_PROTOCOL = ' ' "General Indicator
* I_FLG_NO_DIALOG = ' ' "General Indicator
* I_FLG_NO_ORDER_POST = ' ' "General Indicator
* I_FLG_SUMMARY_MSG = ' ' "General Indicator
* FLG_LVM = ' ' "Indicator: Set Deletion Flag
* FLG_RELE = ' ' "Indicator: Release
* FLG_TERM = ' ' "Indicator: Scheduling
* FLG_VERF = ' ' "Indicator: Check availability
* FLG_LVS = ' ' "
* INTERVALL = ' ' "Time interval for deletion indicator
* SELID = ' ' "Status selection profile

IMPORTING
RFC_INFO = "

TABLES
CAUFV_TAB = "Table of Order Headers
* TABLE_OF_MESSAGES = "

EXCEPTIONS
NOTHING_TO_DO = 1 WRONG_SELID = 2
.




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_SAPLCORE_001 User Exit: Setting of Deletion Flag for Production Order Allowed?
EXIT_SAPLCORE_002 Ùser Exit: Setting of Deletion Indicator for Production Order Allowed?
EXIT_SAPLCORE_003 User Exit: Technical Completion of Production Order Allowed?
EXIT_SAPLCORE_004 Mass Processing of Production Orders: General Sort Exit

IMPORTING Parameters details for ORDER_CHANGE_FOR_ACTIVITY

FLG_COST - Cost

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TESTRUN - Indicator: Test run

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_CAPA - Indicator: Recreate capacities

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

INIT_TABLES - Indicator: Initialize order tables

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAXNUMBER - Maximum number of orders

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

FLG_BTCH - Indicator: Execute batch determination

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_PERFORM_COMMIT -

Data type: RC27X-FLG_SEL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORT_MSG_TO_MEMORY -

Data type: RC27X-FLG_SEL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALLED_AS_RFC -

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_TECL -

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_CLOS -

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_LKZ - Set indicator deletion status

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_PRNT -

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_TECR -

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_INIT_PROTOCOL - General Indicator

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

I_FLG_NO_DIALOG - General Indicator

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

I_FLG_NO_ORDER_POST - General Indicator

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

I_FLG_SUMMARY_MSG - General Indicator

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

FLG_LVM - Indicator: Set Deletion Flag

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_RELE - Indicator: Release

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_TERM - Indicator: Scheduling

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_VERF - Indicator: Check availability

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_LVS -

Data type: RC27X-FLG_SEL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

INTERVALL - Time interval for deletion indicator

Data type: COARCH-GLTINT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SELID - Status selection profile

Data type: TJ49-SELID
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ORDER_CHANGE_FOR_ACTIVITY

RFC_INFO -

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

TABLES Parameters details for ORDER_CHANGE_FOR_ACTIVITY

CAUFV_TAB - Table of Order Headers

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

TABLE_OF_MESSAGES -

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

EXCEPTIONS details

NOTHING_TO_DO - Do not transfer orders (no actions)

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

WRONG_SELID - Selection ID not provided

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

Copy and paste ABAP code example for ORDER_CHANGE_FOR_ACTIVITY 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_flg_cost  TYPE RC27X-FLG_SEL, "   ' '
lv_rfc_info  TYPE RFCSI, "   
lt_caufv_tab  TYPE STANDARD TABLE OF CAUFV, "   
lv_nothing_to_do  TYPE CAUFV, "   
lv_testrun  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_capa  TYPE RC27X-FLG_SEL, "   ' '
lv_init_tables  TYPE RC27X-FLG_SEL, "   ' '
lv_maxnumber  TYPE SY-DBCNT, "   0
lv_flg_btch  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_perform_commit  TYPE RC27X-FLG_SEL, "   'X'
lv_export_msg_to_memory  TYPE RC27X-FLG_SEL, "   'X'
lv_called_as_rfc  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_tecl  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_clos  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_lkz  TYPE RC27X-FLG_SEL, "   ' '
lv_wrong_selid  TYPE RC27X, "   
lt_table_of_messages  TYPE STANDARD TABLE OF COACTMSG, "   
lv_flg_prnt  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_tecr  TYPE RC27X-FLG_SEL, "   ' '
lv_i_flg_init_protocol  TYPE FLAG, "   SPACE
lv_i_flg_no_dialog  TYPE FLAG, "   SPACE
lv_i_flg_no_order_post  TYPE FLAG, "   SPACE
lv_i_flg_summary_msg  TYPE FLAG, "   SPACE
lv_flg_lvm  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_rele  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_term  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_verf  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_lvs  TYPE RC27X-FLG_SEL, "   ' '
lv_intervall  TYPE COARCH-GLTINT, "   ' '
lv_selid  TYPE TJ49-SELID. "   ' '

  CALL FUNCTION 'ORDER_CHANGE_FOR_ACTIVITY'  "NOTRANSL: Durchführen vorgegebener Aktionen auf Aufträgen (Löschvorm, Lösc
    EXPORTING
         FLG_COST = lv_flg_cost
         TESTRUN = lv_testrun
         FLG_CAPA = lv_flg_capa
         INIT_TABLES = lv_init_tables
         MAXNUMBER = lv_maxnumber
         FLG_BTCH = lv_flg_btch
         FLG_PERFORM_COMMIT = lv_flg_perform_commit
         EXPORT_MSG_TO_MEMORY = lv_export_msg_to_memory
         CALLED_AS_RFC = lv_called_as_rfc
         FLG_TECL = lv_flg_tecl
         FLG_CLOS = lv_flg_clos
         FLG_LKZ = lv_flg_lkz
         FLG_PRNT = lv_flg_prnt
         FLG_TECR = lv_flg_tecr
         I_FLG_INIT_PROTOCOL = lv_i_flg_init_protocol
         I_FLG_NO_DIALOG = lv_i_flg_no_dialog
         I_FLG_NO_ORDER_POST = lv_i_flg_no_order_post
         I_FLG_SUMMARY_MSG = lv_i_flg_summary_msg
         FLG_LVM = lv_flg_lvm
         FLG_RELE = lv_flg_rele
         FLG_TERM = lv_flg_term
         FLG_VERF = lv_flg_verf
         FLG_LVS = lv_flg_lvs
         INTERVALL = lv_intervall
         SELID = lv_selid
    IMPORTING
         RFC_INFO = lv_rfc_info
    TABLES
         CAUFV_TAB = lt_caufv_tab
         TABLE_OF_MESSAGES = lt_table_of_messages
    EXCEPTIONS
        NOTHING_TO_DO = 1
        WRONG_SELID = 2
. " ORDER_CHANGE_FOR_ACTIVITY




ABAP code using 7.40 inline data declarations to call FM ORDER_CHANGE_FOR_ACTIVITY

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 FLG_SEL FROM RC27X INTO @DATA(ld_flg_cost).
DATA(ld_flg_cost) = ' '.
 
 
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_testrun).
DATA(ld_testrun) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_capa).
DATA(ld_flg_capa) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_init_tables).
DATA(ld_init_tables) = ' '.
 
"SELECT single DBCNT FROM SY INTO @DATA(ld_maxnumber).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_btch).
DATA(ld_flg_btch) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_perform_commit).
DATA(ld_flg_perform_commit) = 'X'.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_export_msg_to_memory).
DATA(ld_export_msg_to_memory) = 'X'.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_called_as_rfc).
DATA(ld_called_as_rfc) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_tecl).
DATA(ld_flg_tecl) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_clos).
DATA(ld_flg_clos) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_lkz).
DATA(ld_flg_lkz) = ' '.
 
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_prnt).
DATA(ld_flg_prnt) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_tecr).
DATA(ld_flg_tecr) = ' '.
 
DATA(ld_i_flg_init_protocol) = ' '.
 
DATA(ld_i_flg_no_dialog) = ' '.
 
DATA(ld_i_flg_no_order_post) = ' '.
 
DATA(ld_i_flg_summary_msg) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_lvm).
DATA(ld_flg_lvm) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_rele).
DATA(ld_flg_rele) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_term).
DATA(ld_flg_term) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_verf).
DATA(ld_flg_verf) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_lvs).
DATA(ld_flg_lvs) = ' '.
 
"SELECT single GLTINT FROM COARCH INTO @DATA(ld_intervall).
DATA(ld_intervall) = ' '.
 
"SELECT single SELID FROM TJ49 INTO @DATA(ld_selid).
DATA(ld_selid) = ' '.
 


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!