SAP GET_OPS_FOR_ORDER Function Module for NOTRANSL: Get operations for Order (OLC Project)









GET_OPS_FOR_ORDER is a standard get ops for order 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: Get operations for Order (OLC Project) 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 get ops for order FM, simply by entering the name GET_OPS_FOR_ORDER into the relevant SAP transaction such as SE37 or SE38.

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



Function GET_OPS_FOR_ORDER 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 'GET_OPS_FOR_ORDER'"NOTRANSL: Get operations for Order (OLC Project)
EXPORTING
* I_CHECK_DELETED = ' ' "General Indicator

TABLES
* I_CAUFVD = "Dialog Structure for Order Headers and Item
* O_AFVGD = "Order: Dialog Table for Table AFVG (Order Operation)
* O_AFVGD_DEL = "Order: Dialog Table for Table AFVG (Order Operation)

EXCEPTIONS
NO_OPERATIONS = 1
.



IMPORTING Parameters details for GET_OPS_FOR_ORDER

I_CHECK_DELETED - General Indicator

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

TABLES Parameters details for GET_OPS_FOR_ORDER

I_CAUFVD - Dialog Structure for Order Headers and Item

Data type: CAUFVD
Optional: Yes
Call by Reference: Yes

O_AFVGD - Order: Dialog Table for Table AFVG (Order Operation)

Data type: AFVGD
Optional: Yes
Call by Reference: Yes

O_AFVGD_DEL - Order: Dialog Table for Table AFVG (Order Operation)

Data type: AFVGD
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_OPERATIONS -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for GET_OPS_FOR_ORDER 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_i_caufvd  TYPE STANDARD TABLE OF CAUFVD, "   
lv_no_operations  TYPE CAUFVD, "   
lv_i_check_deleted  TYPE FLAG, "   SPACE
lt_o_afvgd  TYPE STANDARD TABLE OF AFVGD, "   
lt_o_afvgd_del  TYPE STANDARD TABLE OF AFVGD. "   

  CALL FUNCTION 'GET_OPS_FOR_ORDER'  "NOTRANSL: Get operations for Order (OLC Project)
    EXPORTING
         I_CHECK_DELETED = lv_i_check_deleted
    TABLES
         I_CAUFVD = lt_i_caufvd
         O_AFVGD = lt_o_afvgd
         O_AFVGD_DEL = lt_o_afvgd_del
    EXCEPTIONS
        NO_OPERATIONS = 1
. " GET_OPS_FOR_ORDER




ABAP code using 7.40 inline data declarations to call FM GET_OPS_FOR_ORDER

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_i_check_deleted) = ' '.
 
 
 


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!