SAP AC_CLR_DOCUMENT_CREATE Function Module for









AC_CLR_DOCUMENT_CREATE is a standard ac clr document create 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 clr document create FM, simply by entering the name AC_CLR_DOCUMENT_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function AC_CLR_DOCUMENT_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 'AC_CLR_DOCUMENT_CREATE'"
EXPORTING
* I_AUGLV = 'EINGZAHL' "
* I_KOART = ' ' "
* I_BUKRS = ' ' "
* I_KONKO = ' ' "

TABLES
T_ACCHD = "
T_ACCIT = "
T_ACCCR = "
T_ACCCLR_ITM_KEY = "

EXCEPTIONS
INVALID_INPUT = 1 INVALID_SELECTION = 2 ACCOUNT_MISSING = 3 ACCOUNT_NOT_OI_HANDLED = 4 ACCOUNT_LOCKED = 5 DOCUMENT_LOCKED = 6 ACCOUNT_CLR_INTERNALLY = 7
.



IMPORTING Parameters details for AC_CLR_DOCUMENT_CREATE

I_AUGLV -

Data type: AUGLV
Default: 'EINGZAHL'
Optional: Yes
Call by Reference: Yes

I_KOART -

Data type: KOART
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_BUKRS -

Data type: BUKRS
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_KONKO -

Data type: KONKO
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for AC_CLR_DOCUMENT_CREATE

T_ACCHD -

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

T_ACCIT -

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

T_ACCCR -

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

T_ACCCLR_ITM_KEY -

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

EXCEPTIONS details

INVALID_INPUT -

Data type:
Optional: No
Call by Reference: Yes

INVALID_SELECTION -

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

ACCOUNT_MISSING -

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

ACCOUNT_NOT_OI_HANDLED -

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

ACCOUNT_LOCKED -

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

DOCUMENT_LOCKED -

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

ACCOUNT_CLR_INTERNALLY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for AC_CLR_DOCUMENT_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_i_auglv  TYPE AUGLV, "   'EINGZAHL'
lt_t_acchd  TYPE STANDARD TABLE OF ACCHD, "   
lv_invalid_input  TYPE ACCHD, "   
lv_i_koart  TYPE KOART, "   SPACE
lt_t_accit  TYPE STANDARD TABLE OF ACCIT, "   
lv_invalid_selection  TYPE ACCIT, "   
lv_i_bukrs  TYPE BUKRS, "   SPACE
lt_t_acccr  TYPE STANDARD TABLE OF ACCCR, "   
lv_account_missing  TYPE ACCCR, "   
lv_i_konko  TYPE KONKO, "   SPACE
lt_t_accclr_itm_key  TYPE STANDARD TABLE OF ACCCLR_ITM_KEY, "   
lv_account_not_oi_handled  TYPE ACCCLR_ITM_KEY, "   
lv_account_locked  TYPE ACCCLR_ITM_KEY, "   
lv_document_locked  TYPE ACCCLR_ITM_KEY, "   
lv_account_clr_internally  TYPE ACCCLR_ITM_KEY. "   

  CALL FUNCTION 'AC_CLR_DOCUMENT_CREATE'  "
    EXPORTING
         I_AUGLV = lv_i_auglv
         I_KOART = lv_i_koart
         I_BUKRS = lv_i_bukrs
         I_KONKO = lv_i_konko
    TABLES
         T_ACCHD = lt_t_acchd
         T_ACCIT = lt_t_accit
         T_ACCCR = lt_t_acccr
         T_ACCCLR_ITM_KEY = lt_t_accclr_itm_key
    EXCEPTIONS
        INVALID_INPUT = 1
        INVALID_SELECTION = 2
        ACCOUNT_MISSING = 3
        ACCOUNT_NOT_OI_HANDLED = 4
        ACCOUNT_LOCKED = 5
        DOCUMENT_LOCKED = 6
        ACCOUNT_CLR_INTERNALLY = 7
. " AC_CLR_DOCUMENT_CREATE




ABAP code using 7.40 inline data declarations to call FM AC_CLR_DOCUMENT_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.

DATA(ld_i_auglv) = 'EINGZAHL'.
 
 
 
DATA(ld_i_koart) = ' '.
 
 
 
DATA(ld_i_bukrs) = ' '.
 
 
 
DATA(ld_i_konko) = ' '.
 
 
 
 
 
 


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!