Skip to Content

Report : J_1IG_INB_INV_STO : CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'

Dear All,

I have a requirement that on running the below report .

J_1IG_INB_INV_STO .

Below function module is executing inside the function module .

CALL FUNCTION J_1IG_INB_INV_CREATE .

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = wa_header
* CUSTOMERCPD =
* CONTRACTHEADER =
IMPORTING
obj_type = wa_objtype
obj_key = wa_objkey
obj_sys = wa_objsys
TABLES
accountgl = it_accgl
* ACCOUNTRECEIVABLE =
accountpayable = it_pay
accounttax = it_tax
currencyamount = it_curr
* CRITERIA =
* VALUEFIELD =
* extension1 =
return = it_return
* PAYMENTCARD =
* CONTRACTITEM =
extension2 = it_extn
* REALESTATE =
* ACCOUNTWT =
.

t_return[] = it_return[].

I am getting the below error in the table : it_return[].

Error in document: BKPFF $

Required field TAX_CODE was not transferred in parameter ACCOUNTTAX

Transaction key does not exist

G/L account is not defined in chart of accounts 1000

Please suggest some ideas or workaround to post the invoice .

Regards

Deep

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 11 at 05:40 AM

    Hi Deep,

    Required field TAX_CODE was not transferred in parameter ACCOUNTTAX

    Maintain info record in the combination Pur org,plant,vendor and material to pick tax code or implement BADI to fill tax code.

    Add comment
    10|10000 characters needed characters exceeded