SAP CO_RI_ATHDRLEVELCONF_CREATE Function Module for Enter Order Confirmations









CO_RI_ATHDRLEVELCONF_CREATE is a standard co ri athdrlevelconf create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Enter Order Confirmations 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 co ri athdrlevelconf create FM, simply by entering the name CO_RI_ATHDRLEVELCONF_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_RI_ATHDRLEVELCONF_CREATE 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 'CO_RI_ATHDRLEVELCONF_CREATE'"Enter Order Confirmations
EXPORTING
* ORDER_CATEGORY = 0 "Order Category
* NO_DATA_RESET = ' ' "
* POST_WRONG_ENTRIES = '0' "Ind.: Incorrect Data in Error Pool
* TESTRUN = ' ' "
* PROP_CONF = ' ' "
* PROP_GMOV = ' ' "Ind.: Propose Goods Movements
* I_NO_ORDER_POST = ' ' "

IMPORTING
RETURN = "Return Parameter(s)

TABLES
ATHDRLEVELS = "Table of order confirmations
* GOODSMOVEMENTS = "Table of Goods Movements
* LINK_CONF_GOODSMOV = "Linkage Table for Conf./Goods Movement
* CHAR_BATCH = "
* LINK_GM_CHAR_BATCH = "
* DETAIL_RETURN = "Return parameter for confirmation table
.



IMPORTING Parameters details for CO_RI_ATHDRLEVELCONF_CREATE

ORDER_CATEGORY - Order Category

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

NO_DATA_RESET -

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

POST_WRONG_ENTRIES - Ind.: Incorrect Data in Error Pool

Data type: BAPI_CORU_PARAM-INS_ERR
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TESTRUN -

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

PROP_CONF -

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

PROP_GMOV - Ind.: Propose Goods Movements

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

I_NO_ORDER_POST -

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

EXPORTING Parameters details for CO_RI_ATHDRLEVELCONF_CREATE

RETURN - Return Parameter(s)

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

TABLES Parameters details for CO_RI_ATHDRLEVELCONF_CREATE

ATHDRLEVELS - Table of order confirmations

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

GOODSMOVEMENTS - Table of Goods Movements

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

LINK_CONF_GOODSMOV - Linkage Table for Conf./Goods Movement

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

CHAR_BATCH -

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

LINK_GM_CHAR_BATCH -

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

DETAIL_RETURN - Return parameter for confirmation table

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

Copy and paste ABAP code example for CO_RI_ATHDRLEVELCONF_CREATE 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_return  TYPE BAPIRET1, "   
lt_athdrlevels  TYPE STANDARD TABLE OF AFRUD, "   
lv_order_category  TYPE AUFK-AUTYP, "   0
lv_no_data_reset  TYPE XFELD, "   SPACE
lt_goodsmovements  TYPE STANDARD TABLE OF IMSEG, "   
lt_link_conf_goodsmov  TYPE STANDARD TABLE OF BAPI_LINK_CONF_GOODSMOV, "   
lv_post_wrong_entries  TYPE BAPI_CORU_PARAM-INS_ERR, "   '0'
lv_testrun  TYPE XFELD, "   SPACE
lt_char_batch  TYPE STANDARD TABLE OF BAPI_CHAR_BATCH, "   
lv_prop_conf  TYPE BAPI_CORU_PARAM-PROP_CONF, "   SPACE
lt_link_gm_char_batch  TYPE STANDARD TABLE OF BAPI_LINK_GM_CHAR_BATCH, "   
lv_prop_gmov  TYPE BAPI_CORU_PARAM-PROP_GMOV, "   SPACE
lt_detail_return  TYPE STANDARD TABLE OF BAPI_CORU_RETURN, "   
lv_i_no_order_post  TYPE XFELD. "   SPACE

  CALL FUNCTION 'CO_RI_ATHDRLEVELCONF_CREATE'  "Enter Order Confirmations
    EXPORTING
         ORDER_CATEGORY = lv_order_category
         NO_DATA_RESET = lv_no_data_reset
         POST_WRONG_ENTRIES = lv_post_wrong_entries
         TESTRUN = lv_testrun
         PROP_CONF = lv_prop_conf
         PROP_GMOV = lv_prop_gmov
         I_NO_ORDER_POST = lv_i_no_order_post
    IMPORTING
         RETURN = lv_return
    TABLES
         ATHDRLEVELS = lt_athdrlevels
         GOODSMOVEMENTS = lt_goodsmovements
         LINK_CONF_GOODSMOV = lt_link_conf_goodsmov
         CHAR_BATCH = lt_char_batch
         LINK_GM_CHAR_BATCH = lt_link_gm_char_batch
         DETAIL_RETURN = lt_detail_return
. " CO_RI_ATHDRLEVELCONF_CREATE




ABAP code using 7.40 inline data declarations to call FM CO_RI_ATHDRLEVELCONF_CREATE

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 AUTYP FROM AUFK INTO @DATA(ld_order_category).
 
DATA(ld_no_data_reset) = ' '.
 
 
 
"SELECT single INS_ERR FROM BAPI_CORU_PARAM INTO @DATA(ld_post_wrong_entries).
DATA(ld_post_wrong_entries) = '0'.
 
DATA(ld_testrun) = ' '.
 
 
"SELECT single PROP_CONF FROM BAPI_CORU_PARAM INTO @DATA(ld_prop_conf).
DATA(ld_prop_conf) = ' '.
 
 
"SELECT single PROP_GMOV FROM BAPI_CORU_PARAM INTO @DATA(ld_prop_gmov).
DATA(ld_prop_gmov) = ' '.
 
 
DATA(ld_i_no_order_post) = ' '.
 


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!