SAP AC_ONETIMEACCOUNT_DIA_COMP Function Module for









AC_ONETIMEACCOUNT_DIA_COMP is a standard ac onetimeaccount dia comp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ac onetimeaccount dia comp FM, simply by entering the name AC_ONETIMEACCOUNT_DIA_COMP into the relevant SAP transaction such as SE37 or SE38.

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



Function AC_ONETIMEACCOUNT_DIA_COMP 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 'AC_ONETIMEACCOUNT_DIA_COMP'"
EXPORTING
I_ACCFI = "
* I_ACCOUNT = "
I_ACCOUNT_TYPE = "
I_COMPANY_CODE = "
* I_SCREEN_ACTIVITY_TYPE = 'A' "
* I_BSCHL = "Posting Key
* I_UMSKZ = "Special G/L Indicator
* I_STCEG = "VAT Registration Number
* I_SPRAS = "Language Key

IMPORTING
E_ACCFI = "
E_XCPDD = "Indicator: Address and Bank Data Set Individually
E_STCEG = "VAT Registration Number

EXCEPTIONS
BUSINESS_PARTNER_UNKNOWN = 1
.




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_SAPLFCPD_001 Check One-Time Account Data for Alternative Payee

IMPORTING Parameters details for AC_ONETIMEACCOUNT_DIA_COMP

I_ACCFI -

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

I_ACCOUNT -

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

I_ACCOUNT_TYPE -

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

I_COMPANY_CODE -

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

I_SCREEN_ACTIVITY_TYPE -

Data type: T020-AKTYP
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BSCHL - Posting Key

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

I_UMSKZ - Special G/L Indicator

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

I_STCEG - VAT Registration Number

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

I_SPRAS - Language Key

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

EXPORTING Parameters details for AC_ONETIMEACCOUNT_DIA_COMP

E_ACCFI -

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

E_XCPDD - Indicator: Address and Bank Data Set Individually

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

E_STCEG - VAT Registration Number

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

EXCEPTIONS details

BUSINESS_PARTNER_UNKNOWN -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for AC_ONETIMEACCOUNT_DIA_COMP 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_accfi  TYPE ACCFI, "   
lv_i_accfi  TYPE ACCFI, "   
lv_business_partner_unknown  TYPE ACCFI, "   
lv_e_xcpdd  TYPE BSEG-XCPDD, "   
lv_i_account  TYPE ACCIT-HKONT, "   
lv_e_stceg  TYPE BSEG-STCEG, "   
lv_i_account_type  TYPE ACCIT-KOART, "   
lv_i_company_code  TYPE ACCIT-BUKRS, "   
lv_i_screen_activity_type  TYPE T020-AKTYP, "   'A'
lv_i_bschl  TYPE ACCIT-BSCHL, "   
lv_i_umskz  TYPE ACCIT-UMSKZ, "   
lv_i_stceg  TYPE ACCIT-STCEG, "   
lv_i_spras  TYPE LFA1-SPRAS. "   

  CALL FUNCTION 'AC_ONETIMEACCOUNT_DIA_COMP'  "
    EXPORTING
         I_ACCFI = lv_i_accfi
         I_ACCOUNT = lv_i_account
         I_ACCOUNT_TYPE = lv_i_account_type
         I_COMPANY_CODE = lv_i_company_code
         I_SCREEN_ACTIVITY_TYPE = lv_i_screen_activity_type
         I_BSCHL = lv_i_bschl
         I_UMSKZ = lv_i_umskz
         I_STCEG = lv_i_stceg
         I_SPRAS = lv_i_spras
    IMPORTING
         E_ACCFI = lv_e_accfi
         E_XCPDD = lv_e_xcpdd
         E_STCEG = lv_e_stceg
    EXCEPTIONS
        BUSINESS_PARTNER_UNKNOWN = 1
. " AC_ONETIMEACCOUNT_DIA_COMP




ABAP code using 7.40 inline data declarations to call FM AC_ONETIMEACCOUNT_DIA_COMP

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 XCPDD FROM BSEG INTO @DATA(ld_e_xcpdd).
 
"SELECT single HKONT FROM ACCIT INTO @DATA(ld_i_account).
 
"SELECT single STCEG FROM BSEG INTO @DATA(ld_e_stceg).
 
"SELECT single KOART FROM ACCIT INTO @DATA(ld_i_account_type).
 
"SELECT single BUKRS FROM ACCIT INTO @DATA(ld_i_company_code).
 
"SELECT single AKTYP FROM T020 INTO @DATA(ld_i_screen_activity_type).
DATA(ld_i_screen_activity_type) = 'A'.
 
"SELECT single BSCHL FROM ACCIT INTO @DATA(ld_i_bschl).
 
"SELECT single UMSKZ FROM ACCIT INTO @DATA(ld_i_umskz).
 
"SELECT single STCEG FROM ACCIT INTO @DATA(ld_i_stceg).
 
"SELECT single SPRAS FROM LFA1 INTO @DATA(ld_i_spras).
 


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!