SAP CY07_MODIFIED_ORD_ADD Function Module for NOTRANSL: Trägt einen Auftrag in die Tabelle aller geänderten Aufträge ein









CY07_MODIFIED_ORD_ADD is a standard cy07 modified ord add 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: Trägt einen Auftrag in die Tabelle aller geänderten Aufträge ein 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 cy07 modified ord add FM, simply by entering the name CY07_MODIFIED_ORD_ADD into the relevant SAP transaction such as SE37 or SE38.

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



Function CY07_MODIFIED_ORD_ADD 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 'CY07_MODIFIED_ORD_ADD'"NOTRANSL: Trägt einen Auftrag in die Tabelle aller geänderten Aufträge ein
EXPORTING
AUFNR = "Order Number
* FUNCTION1 = "Function to be carried out for object 'order master data'
* FUNCTION2 = "Function to be carried out for object 'order master data'
* FUNCTION3 = "Function to be carried out for object 'order master data'
* FUNCTION4 = "Function to be carried out for object 'order master data'

EXCEPTIONS
PARAMETERS_NOT_VALID = 1
.



IMPORTING Parameters details for CY07_MODIFIED_ORD_ADD

AUFNR - Order Number

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

FUNCTION1 - Function to be carried out for object 'order master data'

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

FUNCTION2 - Function to be carried out for object 'order master data'

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

FUNCTION3 - Function to be carried out for object 'order master data'

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

FUNCTION4 - Function to be carried out for object 'order master data'

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

EXCEPTIONS details

PARAMETERS_NOT_VALID -

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

Copy and paste ABAP code example for CY07_MODIFIED_ORD_ADD 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_aufnr  TYPE CAUFVD-AUFNR, "   
lv_parameters_not_valid  TYPE CAUFVD, "   
lv_function1  TYPE CYAFKO_TAB-FUNKTION1, "   
lv_function2  TYPE CYAFKO_TAB-FUNKTION2, "   
lv_function3  TYPE CYAFKO_TAB-FUNKTION3, "   
lv_function4  TYPE CYAFKO_TAB-FUNKTION4. "   

  CALL FUNCTION 'CY07_MODIFIED_ORD_ADD'  "NOTRANSL: Trägt einen Auftrag in die Tabelle aller geänderten Aufträge ein
    EXPORTING
         AUFNR = lv_aufnr
         FUNCTION1 = lv_function1
         FUNCTION2 = lv_function2
         FUNCTION3 = lv_function3
         FUNCTION4 = lv_function4
    EXCEPTIONS
        PARAMETERS_NOT_VALID = 1
. " CY07_MODIFIED_ORD_ADD




ABAP code using 7.40 inline data declarations to call FM CY07_MODIFIED_ORD_ADD

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 AUFNR FROM CAUFVD INTO @DATA(ld_aufnr).
 
 
"SELECT single FUNKTION1 FROM CYAFKO_TAB INTO @DATA(ld_function1).
 
"SELECT single FUNKTION2 FROM CYAFKO_TAB INTO @DATA(ld_function2).
 
"SELECT single FUNKTION3 FROM CYAFKO_TAB INTO @DATA(ld_function3).
 
"SELECT single FUNKTION4 FROM CYAFKO_TAB INTO @DATA(ld_function4).
 


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!