SAP /ACCGO/CAS_CHECK_INVOICE_ABD Function Module for Check ABD Type for Pricing









/ACCGO/CAS_CHECK_INVOICE_ABD is a standard /accgo/cas check invoice abd SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check ABD Type for Pricing 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 /accgo/cas check invoice abd FM, simply by entering the name /ACCGO/CAS_CHECK_INVOICE_ABD into the relevant SAP transaction such as SE37 or SE38.

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



Function /ACCGO/CAS_CHECK_INVOICE_ABD 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 '/ACCGO/CAS_CHECK_INVOICE_ABD'"Check ABD Type for Pricing
EXPORTING
* IM_SCENARIO = "Settlement Scenario
* IM_VBTYP = "SD document category
* IM_XBLNR = "Reference Document Number
* IM_SETTL_DOC = "Settlement Unit
* IM_SETTL_YR = "Settlement Unit Year
* IM_AUART = "Sales Document Type
* IM_FKART = "Billing Type
* IM_BELNR = "Sales and Distribution Document Number
* IM_KPOSN = "Condition item number
* IM_VBELV = "Originating document
* IM_POSNV = "Originating item
* IM_VGBEL = "Document number of the reference document
* IM_VGPOS = "Item number of the reference item

IMPORTING
EX_VGBEL = "Document number of the reference document
EX_VGPOS = "Item number of the reference item
EX_SCENARIO = "Settlement Scenario
EX_VBTYP = "SD document category
EX_SETTL_DOC = "Settlement Unit
EX_SETTL_YR = "Settlement Unit Year
.



IMPORTING Parameters details for /ACCGO/CAS_CHECK_INVOICE_ABD

IM_SCENARIO - Settlement Scenario

Data type: /ACCGO/E_SETTL_SCENARIO
Optional: Yes
Call by Reference: Yes

IM_VBTYP - SD document category

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

IM_XBLNR - Reference Document Number

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

IM_SETTL_DOC - Settlement Unit

Data type: /ACCGO/E_SETTL_DOC
Optional: Yes
Call by Reference: Yes

IM_SETTL_YR - Settlement Unit Year

Data type: /ACCGO/E_SETTL_YR
Optional: Yes
Call by Reference: Yes

IM_AUART - Sales Document Type

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

IM_FKART - Billing Type

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

IM_BELNR - Sales and Distribution Document Number

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

IM_KPOSN - Condition item number

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

IM_VBELV - Originating document

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

IM_POSNV - Originating item

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

IM_VGBEL - Document number of the reference document

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

IM_VGPOS - Item number of the reference item

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

EXPORTING Parameters details for /ACCGO/CAS_CHECK_INVOICE_ABD

EX_VGBEL - Document number of the reference document

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

EX_VGPOS - Item number of the reference item

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

EX_SCENARIO - Settlement Scenario

Data type: /ACCGO/E_SETTL_SCENARIO
Optional: No
Call by Reference: Yes

EX_VBTYP - SD document category

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

EX_SETTL_DOC - Settlement Unit

Data type: /ACCGO/E_SETTL_DOC
Optional: No
Call by Reference: Yes

EX_SETTL_YR - Settlement Unit Year

Data type: /ACCGO/E_SETTL_YR
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /ACCGO/CAS_CHECK_INVOICE_ABD 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_ex_vgbel  TYPE VGBEL, "   
lv_im_scenario  TYPE /ACCGO/E_SETTL_SCENARIO, "   
lv_im_vbtyp  TYPE VBTYPL, "   
lv_im_xblnr  TYPE XBLNR_V1, "   
lv_im_settl_doc  TYPE /ACCGO/E_SETTL_DOC, "   
lv_im_settl_yr  TYPE /ACCGO/E_SETTL_YR, "   
lv_ex_vgpos  TYPE VGPOS, "   
lv_im_auart  TYPE AUART, "   
lv_im_fkart  TYPE FKART, "   
lv_ex_scenario  TYPE /ACCGO/E_SETTL_SCENARIO, "   
lv_ex_vbtyp  TYPE VBTYPL, "   
lv_im_belnr  TYPE VBELN, "   
lv_im_kposn  TYPE KPOSN, "   
lv_ex_settl_doc  TYPE /ACCGO/E_SETTL_DOC, "   
lv_im_vbelv  TYPE VBELV, "   
lv_ex_settl_yr  TYPE /ACCGO/E_SETTL_YR, "   
lv_im_posnv  TYPE POSNV, "   
lv_im_vgbel  TYPE VGBEL, "   
lv_im_vgpos  TYPE VGPOS. "   

  CALL FUNCTION '/ACCGO/CAS_CHECK_INVOICE_ABD'  "Check ABD Type for Pricing
    EXPORTING
         IM_SCENARIO = lv_im_scenario
         IM_VBTYP = lv_im_vbtyp
         IM_XBLNR = lv_im_xblnr
         IM_SETTL_DOC = lv_im_settl_doc
         IM_SETTL_YR = lv_im_settl_yr
         IM_AUART = lv_im_auart
         IM_FKART = lv_im_fkart
         IM_BELNR = lv_im_belnr
         IM_KPOSN = lv_im_kposn
         IM_VBELV = lv_im_vbelv
         IM_POSNV = lv_im_posnv
         IM_VGBEL = lv_im_vgbel
         IM_VGPOS = lv_im_vgpos
    IMPORTING
         EX_VGBEL = lv_ex_vgbel
         EX_VGPOS = lv_ex_vgpos
         EX_SCENARIO = lv_ex_scenario
         EX_VBTYP = lv_ex_vbtyp
         EX_SETTL_DOC = lv_ex_settl_doc
         EX_SETTL_YR = lv_ex_settl_yr
. " /ACCGO/CAS_CHECK_INVOICE_ABD




ABAP code using 7.40 inline data declarations to call FM /ACCGO/CAS_CHECK_INVOICE_ABD

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!