Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC for FI GL

Former Member
0 Kudos
244

please suggest a IDOC type for creating accounting documnet TCODE F-02.

sample code for fields if possible..

4 REPLIES 4

GauthamV
Active Contributor
0 Kudos
93

use these basic idoc types.

ACC_DOCUMENT01

ACC_DOCUMENT02

ACC_GL_POSTING01

Former Member
0 Kudos
93

We have to create a inbound idoc for FI-GL...

those mentioned idoc types does not have suitable process codes

GauthamV
Active Contributor
0 Kudos
93

check these.

idoc types :

FIDCCP01

FIDCCP02

GLCORE01

GLMAST01

process codes:

FID1

GLMA

GLCO.

Former Member
0 Kudos
93

getting error for below code...

getting error message 'Error reading company code'

using message type FIDCC1...idoc type FIDCCP02--- process code ---FID1

*--segment E1FIHDR

wa_E1FIKPF-blart = 'YS'.

wa_E1FIKPF-bldat = rv_header-bldat.

wa_E1FIKPF-budat = rv_header-budat.

wa_E1FIKPF-xblnr = rv_header-xblnr.

wa_E1FIKPF-waers = 'INR'.

wa_E1FIKPF-bukrs_snd = '1000'.

wa_e1fikpf-tcode = 'F-02'.

wa_idoc_data-mandt = sy-mandt.

wa_idoc_data-segnam = 'E1FIKPF'.

wa_idoc_data-sdata = wa_E1FIKPF.

APPEND wa_idoc_data TO it_idoc_data.

CLEAR: wa_idoc_data,

wa_E1FIKPF.

*--segment E1FIPOS

LOOP AT rv_item.

wa_E1FISEG-buzei = rv_item-buzei.

wa_E1FISEG-bschl = rv_item-bschl.

wa_E1FISEG-hkont = rv_item-hkont.

wa_E1FISEG-wrbtr = rv_item-wrbtr.

wa_E1FISEG-prctr = rv_item-prctr.

wa_E1FISEG-zuonr = rv_item-zuonr.

wa_idoc_data-mandt = sy-mandt.

wa_idoc_data-segnam = 'E1FISEG'.

wa_idoc_data-sdata = wa_E1FISEG.

APPEND wa_idoc_data TO it_idoc_data.

CLEAR: wa_idoc_data,

wa_E1FISEG.

ENDLOOP.