SAP J_1I6_MODVAT_POSTING Function Module for FI posting to multiple accounts









J_1I6_MODVAT_POSTING is a standard j 1i6 modvat posting SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FI posting to multiple accounts 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 j 1i6 modvat posting FM, simply by entering the name J_1I6_MODVAT_POSTING into the relevant SAP transaction such as SE37 or SE38.

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



Function J_1I6_MODVAT_POSTING 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 'J_1I6_MODVAT_POSTING'"FI posting to multiple accounts
EXPORTING
I_COMP_CODE = "
* I_AWSYS = "Logical System
* I_USNAM = "User name
* I_POST_DATE = SY-DATUM "
I_CURRENCY = "
I_EXT_REF_DOC = "
* I_BKREF_AWTYP = "
* I_BKREF_AWREF = "
* I_DOC_DATE = "Document date in document
* I_POST = 'X' "'Automatically post the document
* I_AWORG = "Reference Organizational Units

IMPORTING
E_AWTYP = "
E_AWREF = "
E_AWORG = "
E_BLART = "

TABLES
I_ACCOUNT_INFO = "

EXCEPTIONS
FISCAL_PERIOD_ERROR = 1 DOC_CREATE_FAILED = 2 DOC_POST_FAILED = 3 FI_POSTING_ERROR = 4
.



IMPORTING Parameters details for J_1I6_MODVAT_POSTING

I_COMP_CODE -

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

I_AWSYS - Logical System

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

I_USNAM - User name

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

I_POST_DATE -

Data type: ACCIT-BUDAT
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CURRENCY -

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

I_EXT_REF_DOC -

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

I_BKREF_AWTYP -

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

I_BKREF_AWREF -

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

I_DOC_DATE - Document date in document

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

I_POST - 'Automatically post the document

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AWORG - Reference Organizational Units

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

EXPORTING Parameters details for J_1I6_MODVAT_POSTING

E_AWTYP -

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

E_AWREF -

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

E_AWORG -

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

E_BLART -

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

TABLES Parameters details for J_1I6_MODVAT_POSTING

I_ACCOUNT_INFO -

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

EXCEPTIONS details

FISCAL_PERIOD_ERROR -

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

DOC_CREATE_FAILED -

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

DOC_POST_FAILED -

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

FI_POSTING_ERROR -

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

Copy and paste ABAP code example for J_1I6_MODVAT_POSTING 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_awtyp  TYPE ACCIT-AWTYP, "   
lv_i_comp_code  TYPE ACCIT-BUKRS, "   
lt_i_account_info  TYPE STANDARD TABLE OF ACCIT, "   
lv_fiscal_period_error  TYPE ACCIT, "   
lv_i_awsys  TYPE ACCHD-AWSYS, "   
lv_i_usnam  TYPE ACCHD-USNAM, "   
lv_e_awref  TYPE ACCIT-AWREF, "   
lv_i_post_date  TYPE ACCIT-BUDAT, "   SY-DATUM
lv_doc_create_failed  TYPE ACCIT, "   
lv_e_aworg  TYPE ACCIT-AWORG, "   
lv_i_currency  TYPE ACCIT-PSWSL, "   
lv_doc_post_failed  TYPE ACCIT, "   
lv_e_blart  TYPE ACCIT-BLART, "   
lv_i_ext_ref_doc  TYPE ACCIT-XBLNR, "   
lv_fi_posting_error  TYPE ACCIT, "   
lv_i_bkref_awtyp  TYPE ACCHD-AWTYP, "   
lv_i_bkref_awref  TYPE ACCHD-AWREF, "   
lv_i_doc_date  TYPE ACCIT-BLDAT, "   
lv_i_post  TYPE XFELD, "   'X'
lv_i_aworg  TYPE ACCHD-AWORG. "   

  CALL FUNCTION 'J_1I6_MODVAT_POSTING'  "FI posting to multiple accounts
    EXPORTING
         I_COMP_CODE = lv_i_comp_code
         I_AWSYS = lv_i_awsys
         I_USNAM = lv_i_usnam
         I_POST_DATE = lv_i_post_date
         I_CURRENCY = lv_i_currency
         I_EXT_REF_DOC = lv_i_ext_ref_doc
         I_BKREF_AWTYP = lv_i_bkref_awtyp
         I_BKREF_AWREF = lv_i_bkref_awref
         I_DOC_DATE = lv_i_doc_date
         I_POST = lv_i_post
         I_AWORG = lv_i_aworg
    IMPORTING
         E_AWTYP = lv_e_awtyp
         E_AWREF = lv_e_awref
         E_AWORG = lv_e_aworg
         E_BLART = lv_e_blart
    TABLES
         I_ACCOUNT_INFO = lt_i_account_info
    EXCEPTIONS
        FISCAL_PERIOD_ERROR = 1
        DOC_CREATE_FAILED = 2
        DOC_POST_FAILED = 3
        FI_POSTING_ERROR = 4
. " J_1I6_MODVAT_POSTING




ABAP code using 7.40 inline data declarations to call FM J_1I6_MODVAT_POSTING

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 AWTYP FROM ACCIT INTO @DATA(ld_e_awtyp).
 
"SELECT single BUKRS FROM ACCIT INTO @DATA(ld_i_comp_code).
 
 
 
"SELECT single AWSYS FROM ACCHD INTO @DATA(ld_i_awsys).
 
"SELECT single USNAM FROM ACCHD INTO @DATA(ld_i_usnam).
 
"SELECT single AWREF FROM ACCIT INTO @DATA(ld_e_awref).
 
"SELECT single BUDAT FROM ACCIT INTO @DATA(ld_i_post_date).
DATA(ld_i_post_date) = SY-DATUM.
 
 
"SELECT single AWORG FROM ACCIT INTO @DATA(ld_e_aworg).
 
"SELECT single PSWSL FROM ACCIT INTO @DATA(ld_i_currency).
 
 
"SELECT single BLART FROM ACCIT INTO @DATA(ld_e_blart).
 
"SELECT single XBLNR FROM ACCIT INTO @DATA(ld_i_ext_ref_doc).
 
 
"SELECT single AWTYP FROM ACCHD INTO @DATA(ld_i_bkref_awtyp).
 
"SELECT single AWREF FROM ACCHD INTO @DATA(ld_i_bkref_awref).
 
"SELECT single BLDAT FROM ACCIT INTO @DATA(ld_i_doc_date).
 
DATA(ld_i_post) = 'X'.
 
"SELECT single AWORG FROM ACCHD INTO @DATA(ld_i_aworg).
 


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!