SAP CO_VB_ORDER_POST Function Module for NOTRANSL: Verbuchungsbaustein fuer PPS-Auftraege









CO_VB_ORDER_POST is a standard co vb order post 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: Verbuchungsbaustein fuer PPS-Auftraege 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 vb order post FM, simply by entering the name CO_VB_ORDER_POST into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_VB_ORDER_POST 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_VB_ORDER_POST'"NOTRANSL: Verbuchungsbaustein fuer PPS-Auftraege
EXPORTING
TRANSTYP = "Category of transaction

TABLES
AFFLTAB = "Table of Order Sequences
CAUFVTAB_OLD = "Table of order headers (old status)
* IHPATAB = "
* IHPATAB_OLD = "
PLAFTAB = "Table of planned orders
RESBTAB = "Table of material components
RESBTAB_OLD = "Table of material components (old status)
* SUBNETTAB = "
* SUBNETTAB_OLD = "
* RSADD_OLD = "
* IT_MARC_DISP = "
AFFLTAB_OLD = "Table of order sequences (old status)
* IT_AFDLD = "Order: Dialog Structure for Document Link
* IT_AFDLD_OLD = "Order: Dialog Structure for Document Link
* IT_AUFTFH = "Structure of the doc. table for PRT allocations in work ord.
* IT_AUFTFH_OLD = "Structure of the doc. table for PRT allocations in work ord.
* AFABTAB = "Network: Document Table for Relationships
* AFABTAB_OLD = "Change Document Structure: Generated by RSSCD000
* NPTXTAB = "Doc. Table for PS Texts in the Network (NPTX + PSTX)
* NPTXTAB_OLD = "Change Document Structure: Generated by RSSCD000
* MLSTTAB = "Milestone document table
* MLSTTAB_OLD = "Change Document Structure: Generated by RSSCD000
AFPOTAB = "Table of Order Items
* AFFTTAB = "Buffer Table for Process Instruction Values in Orders
* AFFVTAB = "Buffer Table for Process Instruction Values in Orders
AFPOTAB_OLD = "Table of order items (old status)
AFVGTAB = "Table of Operations
AFVGTAB_OLD = "Table of operations part. (old status)
AFVUTAB_OLD = "Table of operations part. (old status)
AFVVTAB_OLD = "Table of operations part. (old status)
CAUFVTA = "Table of Order Headers

EXCEPTIONS
TEMP_OBJECTNUMBER_IN_OPERATION = 1
.



IMPORTING Parameters details for CO_VB_ORDER_POST

TRANSTYP - Category of transaction

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

TABLES Parameters details for CO_VB_ORDER_POST

AFFLTAB - Table of Order Sequences

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

CAUFVTAB_OLD - Table of order headers (old status)

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

IHPATAB -

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

IHPATAB_OLD -

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

PLAFTAB - Table of planned orders

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

RESBTAB - Table of material components

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

RESBTAB_OLD - Table of material components (old status)

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

SUBNETTAB -

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

SUBNETTAB_OLD -

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

RSADD_OLD -

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

IT_MARC_DISP -

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

AFFLTAB_OLD - Table of order sequences (old status)

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

IT_AFDLD - Order: Dialog Structure for Document Link

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

IT_AFDLD_OLD - Order: Dialog Structure for Document Link

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

IT_AUFTFH - Structure of the doc. table for PRT allocations in work ord.

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

IT_AUFTFH_OLD - Structure of the doc. table for PRT allocations in work ord.

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

AFABTAB - Network: Document Table for Relationships

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

AFABTAB_OLD - Change Document Structure: Generated by RSSCD000

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

NPTXTAB - Doc. Table for PS Texts in the Network (NPTX + PSTX)

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

NPTXTAB_OLD - Change Document Structure: Generated by RSSCD000

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

MLSTTAB - Milestone document table

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

MLSTTAB_OLD - Change Document Structure: Generated by RSSCD000

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

AFPOTAB - Table of Order Items

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

AFFTTAB - Buffer Table for Process Instruction Values in Orders

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

AFFVTAB - Buffer Table for Process Instruction Values in Orders

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

AFPOTAB_OLD - Table of order items (old status)

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

AFVGTAB - Table of Operations

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

AFVGTAB_OLD - Table of operations part. (old status)

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

AFVUTAB_OLD - Table of operations part. (old status)

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

AFVVTAB_OLD - Table of operations part. (old status)

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

CAUFVTA - Table of Order Headers

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

EXCEPTIONS details

TEMP_OBJECTNUMBER_IN_OPERATION -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CO_VB_ORDER_POST 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_affltab  TYPE STANDARD TABLE OF AFFLB, "   
lv_transtyp  TYPE TC10-TRTYP, "   
lv_temp_objectnumber_in_operation  TYPE TC10, "   
lt_caufvtab_old  TYPE STANDARD TABLE OF CAUFVDB, "   
lt_ihpatab  TYPE STANDARD TABLE OF IHPAVB, "   
lt_ihpatab_old  TYPE STANDARD TABLE OF IHPAVB, "   
lt_plaftab  TYPE STANDARD TABLE OF PLAF, "   
lt_resbtab  TYPE STANDARD TABLE OF RESBB, "   
lt_resbtab_old  TYPE STANDARD TABLE OF ARESB, "   
lt_subnettab  TYPE STANDARD TABLE OF ALLOCDB, "   
lt_subnettab_old  TYPE STANDARD TABLE OF ALLOCDB, "   
lt_rsadd_old  TYPE STANDARD TABLE OF ARSADD, "   
lt_it_marc_disp  TYPE STANDARD TABLE OF MARC_DISP, "   
lt_affltab_old  TYPE STANDARD TABLE OF AAFFL, "   
lt_it_afdld  TYPE STANDARD TABLE OF AFDLD, "   
lt_it_afdld_old  TYPE STANDARD TABLE OF AFDLD, "   
lt_it_auftfh  TYPE STANDARD TABLE OF AFFHB, "   
lt_it_auftfh_old  TYPE STANDARD TABLE OF AFFHB, "   
lt_afabtab  TYPE STANDARD TABLE OF AFABB, "   
lt_afabtab_old  TYPE STANDARD TABLE OF AAFAB, "   
lt_nptxtab  TYPE STANDARD TABLE OF NPTXB, "   
lt_nptxtab_old  TYPE STANDARD TABLE OF ANPTX, "   
lt_mlsttab  TYPE STANDARD TABLE OF MLSTB, "   
lt_mlsttab_old  TYPE STANDARD TABLE OF AMLST, "   
lt_afpotab  TYPE STANDARD TABLE OF AFPOB, "   
lt_affttab  TYPE STANDARD TABLE OF AFFTB, "   
lt_affvtab  TYPE STANDARD TABLE OF AFFVB, "   
lt_afpotab_old  TYPE STANDARD TABLE OF AAFPO, "   
lt_afvgtab  TYPE STANDARD TABLE OF AFVGB, "   
lt_afvgtab_old  TYPE STANDARD TABLE OF AAFVC, "   
lt_afvutab_old  TYPE STANDARD TABLE OF AAFVU, "   
lt_afvvtab_old  TYPE STANDARD TABLE OF AAFVV, "   
lt_caufvta  TYPE STANDARD TABLE OF CAUFVDB. "   

  CALL FUNCTION 'CO_VB_ORDER_POST'  "NOTRANSL: Verbuchungsbaustein fuer PPS-Auftraege
    EXPORTING
         TRANSTYP = lv_transtyp
    TABLES
         AFFLTAB = lt_affltab
         CAUFVTAB_OLD = lt_caufvtab_old
         IHPATAB = lt_ihpatab
         IHPATAB_OLD = lt_ihpatab_old
         PLAFTAB = lt_plaftab
         RESBTAB = lt_resbtab
         RESBTAB_OLD = lt_resbtab_old
         SUBNETTAB = lt_subnettab
         SUBNETTAB_OLD = lt_subnettab_old
         RSADD_OLD = lt_rsadd_old
         IT_MARC_DISP = lt_it_marc_disp
         AFFLTAB_OLD = lt_affltab_old
         IT_AFDLD = lt_it_afdld
         IT_AFDLD_OLD = lt_it_afdld_old
         IT_AUFTFH = lt_it_auftfh
         IT_AUFTFH_OLD = lt_it_auftfh_old
         AFABTAB = lt_afabtab
         AFABTAB_OLD = lt_afabtab_old
         NPTXTAB = lt_nptxtab
         NPTXTAB_OLD = lt_nptxtab_old
         MLSTTAB = lt_mlsttab
         MLSTTAB_OLD = lt_mlsttab_old
         AFPOTAB = lt_afpotab
         AFFTTAB = lt_affttab
         AFFVTAB = lt_affvtab
         AFPOTAB_OLD = lt_afpotab_old
         AFVGTAB = lt_afvgtab
         AFVGTAB_OLD = lt_afvgtab_old
         AFVUTAB_OLD = lt_afvutab_old
         AFVVTAB_OLD = lt_afvvtab_old
         CAUFVTA = lt_caufvta
    EXCEPTIONS
        TEMP_OBJECTNUMBER_IN_OPERATION = 1
. " CO_VB_ORDER_POST




ABAP code using 7.40 inline data declarations to call FM CO_VB_ORDER_POST

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 TRTYP FROM TC10 INTO @DATA(ld_transtyp).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!