SAP CO_VA_APO_CONVERT Function Module for NOTRANSL: Konvertiert die R/3-Daten in die CIF_ECC-Strukturen









CO_VA_APO_CONVERT is a standard co va apo convert 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: Konvertiert die R/3-Daten in die CIF_ECC-Strukturen 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 va apo convert FM, simply by entering the name CO_VA_APO_CONVERT into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_VA_APO_CONVERT 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_VA_APO_CONVERT'"NOTRANSL: Konvertiert die R/3-Daten in die CIF_ECC-Strukturen
EXPORTING
* I_DESTINATION = "Logical System
* IV_CIFTRIGGER = "Trigger of Data Transfer Using CIF
* IV_ORDERTRIGGER = "

TABLES
IT_APOORDER = "
IT_AFFLBT = "
ET_R3ORD = "
ET_R3POS = "
ET_R3OPR = "
ET_R3RES = "
ET_R3REQ = "
ET_R3REL = "
* ET_R3ACT = "
ET_CCV = "
ET_ORDCUS = "
IT_CAUFVBT = "
ET_POSCUS = "
ET_OPRCUS = "
ET_RESCUS = "
ET_REQCUS = "
ET_RELCUS = "
ET_ACTCUS = "
ET_R3ORDX = "
ET_R3POSX = "Checklist for CIF_R3POS
ET_R3OPRX = "Checklist for CIF_R30PR
ET_R3RESX = "Checklist for CIF_R3RES
IT_AFPOBT = "
ET_R3REQX = "Checklist for CIF_R3REQ
ET_R3RELX = "Checklist for CIF_R3REL
* ET_RETURN = "Return Parameter(s)
* ET_R3OPR_TXT = "
IT_AFPOBT_OLD = "Document structure for order items
IT_AFVGBT = "
* IT_AFABBT = "Table of Relationships
IT_KBEDBT = "
IT_RESBBT = "
IT_RESBBT_OLD = "Document Table for Order Components
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLCOVA_001 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLCOVA_002 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLCOVA_003 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLCOVA_004 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLCOVA_005 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLCOVA_006 DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING Parameters details for CO_VA_APO_CONVERT

I_DESTINATION - Logical System

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

IV_CIFTRIGGER - Trigger of Data Transfer Using CIF

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

IV_ORDERTRIGGER -

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

TABLES Parameters details for CO_VA_APO_CONVERT

IT_APOORDER -

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

IT_AFFLBT -

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

ET_R3ORD -

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

ET_R3POS -

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

ET_R3OPR -

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

ET_R3RES -

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

ET_R3REQ -

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

ET_R3REL -

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

ET_R3ACT -

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

ET_CCV -

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

ET_ORDCUS -

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

IT_CAUFVBT -

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

ET_POSCUS -

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

ET_OPRCUS -

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

ET_RESCUS -

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

ET_REQCUS -

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

ET_RELCUS -

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

ET_ACTCUS -

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

ET_R3ORDX -

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

ET_R3POSX - Checklist for CIF_R3POS

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

ET_R3OPRX - Checklist for CIF_R30PR

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

ET_R3RESX - Checklist for CIF_R3RES

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

IT_AFPOBT -

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

ET_R3REQX - Checklist for CIF_R3REQ

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

ET_R3RELX - Checklist for CIF_R3REL

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

ET_RETURN - Return Parameter(s)

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

ET_R3OPR_TXT -

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

IT_AFPOBT_OLD - Document structure for order items

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

IT_AFVGBT -

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

IT_AFABBT - Table of Relationships

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

IT_KBEDBT -

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

IT_RESBBT -

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

IT_RESBBT_OLD - Document Table for Order Components

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

Copy and paste ABAP code example for CO_VA_APO_CONVERT 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_it_apoorder  TYPE STANDARD TABLE OF CAUFVDB, "   
lv_i_destination  TYPE CIF_DEST-LOGSYS, "   
lt_it_afflbt  TYPE STANDARD TABLE OF AFFLB, "   
lt_et_r3ord  TYPE STANDARD TABLE OF CIF_R3ORD, "   
lt_et_r3pos  TYPE STANDARD TABLE OF CIF_R3POS, "   
lt_et_r3opr  TYPE STANDARD TABLE OF CIF_R3OPR, "   
lt_et_r3res  TYPE STANDARD TABLE OF CIF_R3RES, "   
lt_et_r3req  TYPE STANDARD TABLE OF CIF_R3REQ, "   
lt_et_r3rel  TYPE STANDARD TABLE OF CIF_R3REL, "   
lt_et_r3act  TYPE STANDARD TABLE OF CIF_R3ACT, "   
lt_et_ccv  TYPE STANDARD TABLE OF CIF_CCVEXT, "   
lt_et_ordcus  TYPE STANDARD TABLE OF CIF_ORDCUS, "   
lt_it_caufvbt  TYPE STANDARD TABLE OF CAUFVDB, "   
lv_iv_ciftrigger  TYPE CIFCTRLPAR-CIFTRIGGER, "   
lt_et_poscus  TYPE STANDARD TABLE OF CIF_OUTCUS, "   
lt_et_oprcus  TYPE STANDARD TABLE OF CIF_OPRCUS, "   
lt_et_rescus  TYPE STANDARD TABLE OF CIF_INPCUS, "   
lt_et_reqcus  TYPE STANDARD TABLE OF CIF_REQCUS, "   
lt_et_relcus  TYPE STANDARD TABLE OF CIF_RELCUS, "   
lt_et_actcus  TYPE STANDARD TABLE OF CIF_ACTCUS, "   
lt_et_r3ordx  TYPE STANDARD TABLE OF CIF_R3ORDX, "   
lt_et_r3posx  TYPE STANDARD TABLE OF CIF_R3POSX, "   
lt_et_r3oprx  TYPE STANDARD TABLE OF CIF_R3OPRX, "   
lt_et_r3resx  TYPE STANDARD TABLE OF CIF_R3RESX, "   
lt_it_afpobt  TYPE STANDARD TABLE OF AFPOB, "   
lv_iv_ordertrigger  TYPE CIFCTRLPAR-CIFTRIGGER, "   
lt_et_r3reqx  TYPE STANDARD TABLE OF CIF_R3REQX, "   
lt_et_r3relx  TYPE STANDARD TABLE OF CIF_R3RELX, "   
lt_et_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_et_r3opr_txt  TYPE STANDARD TABLE OF CIF_OPR_TXT, "   
lt_it_afpobt_old  TYPE STANDARD TABLE OF AAFPO, "   
lt_it_afvgbt  TYPE STANDARD TABLE OF AFVGB, "   
lt_it_afabbt  TYPE STANDARD TABLE OF AFABB, "   
lt_it_kbedbt  TYPE STANDARD TABLE OF KBEDB, "   
lt_it_resbbt  TYPE STANDARD TABLE OF RESBB, "   
lt_it_resbbt_old  TYPE STANDARD TABLE OF ARESB. "   

  CALL FUNCTION 'CO_VA_APO_CONVERT'  "NOTRANSL: Konvertiert die R/3-Daten in die CIF_ECC-Strukturen
    EXPORTING
         I_DESTINATION = lv_i_destination
         IV_CIFTRIGGER = lv_iv_ciftrigger
         IV_ORDERTRIGGER = lv_iv_ordertrigger
    TABLES
         IT_APOORDER = lt_it_apoorder
         IT_AFFLBT = lt_it_afflbt
         ET_R3ORD = lt_et_r3ord
         ET_R3POS = lt_et_r3pos
         ET_R3OPR = lt_et_r3opr
         ET_R3RES = lt_et_r3res
         ET_R3REQ = lt_et_r3req
         ET_R3REL = lt_et_r3rel
         ET_R3ACT = lt_et_r3act
         ET_CCV = lt_et_ccv
         ET_ORDCUS = lt_et_ordcus
         IT_CAUFVBT = lt_it_caufvbt
         ET_POSCUS = lt_et_poscus
         ET_OPRCUS = lt_et_oprcus
         ET_RESCUS = lt_et_rescus
         ET_REQCUS = lt_et_reqcus
         ET_RELCUS = lt_et_relcus
         ET_ACTCUS = lt_et_actcus
         ET_R3ORDX = lt_et_r3ordx
         ET_R3POSX = lt_et_r3posx
         ET_R3OPRX = lt_et_r3oprx
         ET_R3RESX = lt_et_r3resx
         IT_AFPOBT = lt_it_afpobt
         ET_R3REQX = lt_et_r3reqx
         ET_R3RELX = lt_et_r3relx
         ET_RETURN = lt_et_return
         ET_R3OPR_TXT = lt_et_r3opr_txt
         IT_AFPOBT_OLD = lt_it_afpobt_old
         IT_AFVGBT = lt_it_afvgbt
         IT_AFABBT = lt_it_afabbt
         IT_KBEDBT = lt_it_kbedbt
         IT_RESBBT = lt_it_resbbt
         IT_RESBBT_OLD = lt_it_resbbt_old
. " CO_VA_APO_CONVERT




ABAP code using 7.40 inline data declarations to call FM CO_VA_APO_CONVERT

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 LOGSYS FROM CIF_DEST INTO @DATA(ld_i_destination).
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single CIFTRIGGER FROM CIFCTRLPAR INTO @DATA(ld_iv_ciftrigger).
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single CIFTRIGGER FROM CIFCTRLPAR INTO @DATA(ld_iv_ordertrigger).
 
 
 
 
 
 
 
 
 
 
 


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!