cancel
Showing results for 
Search instead for 
Did you mean: 

Report : J_1IG_INB_INV_STO : CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'

former_member220286
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

pradeep_reddy17
Participant

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.

Answers (0)