Skip to Content
0
Former Member
Jan 04, 2010 at 01:22 PM

Z-fields are updated by BAPI_ACC_DOCUMENT_POST

2465 Views

Hi Experts,

I have extended the basic idoc ACC_DOCUMENT03 with my custom segment.And my custom segment has z-fields(ZZSEUKO1,ZZSEUKO2,ZZSEUKO3 and ZZSEUKO4) and table BSEG also has these z-fields as well.in my inbound function module I am filling extension2 table with z-fields and their values & I am posting the document by calling BAPI_ACC_DOCUMENT_POST.

Now the problem is my z-fields are not being updated though the posting is successful by BAPI_ACC_DOCUMENT_POST .I am checking in BSEG table all the z-fields are empty, but all the standard fields are updated are sored in BSEG table.

I have also created implementation of method 'CHANGE' of BADI 'ACC_DOCUMENT'. in this badi internal table C_ACCIT ( of str ACCIT_TAB) is used for posting,I have also appended the str ACCIT_TAB with my z-fields.I am also moving z-fields and its value from C_EXTENSION2 to C_ACCIT

Can anybody tell what could be the reason? what step I am missing?

Thanks in advance.

Vineet