cancel
Showing results for 
Search instead for 
Did you mean: 

ARBCIG_BAPI_INVOICE_CREATE

deepakghosh-1
Newcomer
0 Kudos
1,132

Hello Folks,

During invoice creation in CIG, there is a field called TAX jurisdiction was not fetch to the ECC (for non-po based).So I tried to implement BADI for that (for non-po based method is if_arbcig_ex_invoice_create~fi_invoice_create).

if i send TAX jurisdiction from CIG (OH23450),IN ECC it display as (OH00000)

Parameters in the methods

I_GLACCOUNTDATA- Ariba GL Account Structure for Invoice,

I_TAXDATA - Table type for Invoice Create Tax

In I_TAXDATA there are 2 fields one is TAXJCD and one is TAXJURCODE

C_ACCOUNTGL -G/L Account Line Items

C_ACCOUNTTAX - Posting to FI Accounting: Tax (item)

Code:

FIELD-SYMBOLS:<fs_gldata> TYPE bapiacgl03,
<fs_taxdata> TYPE bapiactx01.
FIELD-SYMBOLS:<fs_taxdata1> TYPE ARBCIG_INVOICE_CRT_TAX.

LOOP AT C_ACCOUNTGL ASSIGNING <fs_gldata>.
READ TABLE I_TAXDATA ASSIGNING <fs_taxdata1> WITH KEY INVOICE_DOC_ITEM = <fs_gldata>-ITEMNO_ACC.
IF sy-subrc = 0.
<fs_gldata>-TAXJURCODE = <fs_taxdata1>-TAXJCD.
ENDIF.
ENDLOOP.

LOOP AT C_ACCOUNTTAX ASSIGNING <fs_taxdata>.
READ TABLE I_TAXDATA ASSIGNING <fs_taxdata1> WITH KEY INVOICE_DOC_ITEM = <fs_gldata>-ITEMNO_ACC.
IF sy-subrc = 0.
<fs_taxdata>-TAXJURCODE = <fs_taxdata1>-TAXJCD.
ENDIF.
ENDLOOP.

I get a dump as Field symbol has not yet been assigned yet.

Please help me with this.

Regards

Deepak

Accepted Solutions (0)

Answers (0)