SAP ERP_WEC_CUST_DEVOPT_MODIFY Function Module for Maintain delivery options









ERP_WEC_CUST_DEVOPT_MODIFY is a standard erp wec cust devopt modify SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintain delivery options 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 erp wec cust devopt modify FM, simply by entering the name ERP_WEC_CUST_DEVOPT_MODIFY into the relevant SAP transaction such as SE37 or SE38.

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



Function ERP_WEC_CUST_DEVOPT_MODIFY 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 'ERP_WEC_CUST_DEVOPT_MODIFY'"Maintain delivery options
EXPORTING
IV_CUSTOMER = "Customer Number 1
* IV_SALES_AREA = "Sales Area Structure in ERP
* IV_DELV_OPTS = "Customer delivery options
* IV_DELV_OPTS_X = "Delivey Options Update

IMPORTING
RETURNCODE = "Return Code of Function Module

TABLES
* ET_MESSAGES = "Return Parameter
.



IMPORTING Parameters details for ERP_WEC_CUST_DEVOPT_MODIFY

IV_CUSTOMER - Customer Number 1

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

IV_SALES_AREA - Sales Area Structure in ERP

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

IV_DELV_OPTS - Customer delivery options

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

IV_DELV_OPTS_X - Delivey Options Update

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

EXPORTING Parameters details for ERP_WEC_CUST_DEVOPT_MODIFY

RETURNCODE - Return Code of Function Module

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

TABLES Parameters details for ERP_WEC_CUST_DEVOPT_MODIFY

ET_MESSAGES - Return Parameter

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

Copy and paste ABAP code example for ERP_WEC_CUST_DEVOPT_MODIFY 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_returncode  TYPE ERP_WEC_RETURNCODE, "   
lt_et_messages  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_iv_customer  TYPE KUNNR, "   
lv_iv_sales_area  TYPE ERP_SALES_AREA, "   
lv_iv_delv_opts  TYPE ERP_WEC_CUST_DELV_OPTIONS, "   
lv_iv_delv_opts_x  TYPE ERP_WEC_CUST_DELV_OPTIONS_X. "   

  CALL FUNCTION 'ERP_WEC_CUST_DEVOPT_MODIFY'  "Maintain delivery options
    EXPORTING
         IV_CUSTOMER = lv_iv_customer
         IV_SALES_AREA = lv_iv_sales_area
         IV_DELV_OPTS = lv_iv_delv_opts
         IV_DELV_OPTS_X = lv_iv_delv_opts_x
    IMPORTING
         RETURNCODE = lv_returncode
    TABLES
         ET_MESSAGES = lt_et_messages
. " ERP_WEC_CUST_DEVOPT_MODIFY




ABAP code using 7.40 inline data declarations to call FM ERP_WEC_CUST_DEVOPT_MODIFY

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.

 
 
 
 
 
 


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!