SAP CVE9_RDO_CREAT_DISTR_ORDERS Function Module for NOTRANSL: Report Export: Create a new distribution order









CVE9_RDO_CREAT_DISTR_ORDERS is a standard cve9 rdo creat distr orders 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: Report Export: Create a new distribution order 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 cve9 rdo creat distr orders FM, simply by entering the name CVE9_RDO_CREAT_DISTR_ORDERS into the relevant SAP transaction such as SE37 or SE38.

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



Function CVE9_RDO_CREAT_DISTR_ORDERS 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 'CVE9_RDO_CREAT_DISTR_ORDERS'"NOTRANSL: Report Export: Create a new distribution order
EXPORTING
* I_REASONCAT = "
* I_RECINFO = "Recipient Data
* I_INITIATOR = "Initiator
* I_REPVIEW = "

IMPORTING
E_DDOID = "Key of Initial Shipping Order

TABLES
I_MARA_TAB = "EH&S: Structure for Export
* I_REP_TAB = "
* E_DDO_TAB = "EH&S: Structure for Export

EXCEPTIONS
RDO_EXPORT_RECIPIENT = 1 RDOS_CREATE_BY_EHS = 2
.



IMPORTING Parameters details for CVE9_RDO_CREAT_DISTR_ORDERS

I_REASONCAT -

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

I_RECINFO - Recipient Data

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

I_INITIATOR - Initiator

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

I_REPVIEW -

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

EXPORTING Parameters details for CVE9_RDO_CREAT_DISTR_ORDERS

E_DDOID - Key of Initial Shipping Order

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

TABLES Parameters details for CVE9_RDO_CREAT_DISTR_ORDERS

I_MARA_TAB - EH&S: Structure for Export

Data type: CVDREPEXP
Optional: No
Call by Reference: Yes

I_REP_TAB -

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

E_DDO_TAB - EH&S: Structure for Export

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

EXCEPTIONS details

RDO_EXPORT_RECIPIENT -

Data type:
Optional: No
Call by Reference: Yes

RDOS_CREATE_BY_EHS -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CVE9_RDO_CREAT_DISTR_ORDERS 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_e_ddoid  TYPE CVDDH-DDOID, "   
lt_i_mara_tab  TYPE STANDARD TABLE OF CVDREPEXP, "   
lv_i_reasoncat  TYPE CVDREASON-REASONCAT, "   
lv_rdo_export_recipient  TYPE CVDREASON, "   
lv_i_recinfo  TYPE CVDRECINFO, "   
lt_i_rep_tab  TYPE STANDARD TABLE OF CVDA3_REP_TAB_TYPE, "   
lv_rdos_create_by_ehs  TYPE CVDA3_REP_TAB_TYPE, "   
lt_e_ddo_tab  TYPE STANDARD TABLE OF CVDA3_DDO_TAB_TYPE, "   
lv_i_initiator  TYPE CVDDH-INITIATOR, "   
lv_i_repview  TYPE CVDDH-REPVIEW. "   

  CALL FUNCTION 'CVE9_RDO_CREAT_DISTR_ORDERS'  "NOTRANSL: Report Export: Create a new distribution order
    EXPORTING
         I_REASONCAT = lv_i_reasoncat
         I_RECINFO = lv_i_recinfo
         I_INITIATOR = lv_i_initiator
         I_REPVIEW = lv_i_repview
    IMPORTING
         E_DDOID = lv_e_ddoid
    TABLES
         I_MARA_TAB = lt_i_mara_tab
         I_REP_TAB = lt_i_rep_tab
         E_DDO_TAB = lt_e_ddo_tab
    EXCEPTIONS
        RDO_EXPORT_RECIPIENT = 1
        RDOS_CREATE_BY_EHS = 2
. " CVE9_RDO_CREAT_DISTR_ORDERS




ABAP code using 7.40 inline data declarations to call FM CVE9_RDO_CREAT_DISTR_ORDERS

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 DDOID FROM CVDDH INTO @DATA(ld_e_ddoid).
 
 
"SELECT single REASONCAT FROM CVDREASON INTO @DATA(ld_i_reasoncat).
 
 
 
 
 
 
"SELECT single INITIATOR FROM CVDDH INTO @DATA(ld_i_initiator).
 
"SELECT single REPVIEW FROM CVDDH INTO @DATA(ld_i_repview).
 


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!