2009 Jan 30 9:05 AM
please suggest a IDOC type for creating accounting documnet TCODE F-02.
sample code for fields if possible..
2009 Jan 30 9:13 AM
use these basic idoc types.
ACC_DOCUMENT01
ACC_DOCUMENT02
ACC_GL_POSTING01
2009 Jan 30 9:17 AM
We have to create a inbound idoc for FI-GL...
those mentioned idoc types does not have suitable process codes
2009 Jan 30 9:23 AM
check these.
idoc types :
FIDCCP01
FIDCCP02
GLCORE01
GLMAST01
process codes:
FID1
GLMA
GLCO.
2009 Jan 30 9:51 AM
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.