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: 

Z-fields are updated by BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

I think, you should use OPEN FI: RWBAPI01 (transaction FIBF) ...

regards, darek

0 Kudos

Hi Darek,Digvijay,

Thanks for the answer.

Can you give more information how we can solve this problem by FIBF/fill_acct.

BR,

Vineet

Former Member
0 Kudos

Try doing the same through method FILL_ACCIT or otherwise try implementing the same through BADI AC_DOCUMENT.

In BADI AC_DOCUMENT the structure CI_COBL can be created for populating the custom fields.

Former Member
0 Kudos

Hi Vineet,

have you found out why your z-fields in BSEG are always empty?

I actually have the same problem, i added some custom fields in BSEG (and ACCIT for BADI_ACC_DOCUMENT_POST) and implemented the "change" method of BADI ACC_DOCUMENT. In debugging i can see everything works fine, the z-fields in ACCIT are updated correct, but when i check the entry in BSEG, the custom fields are empty.

Even when i use the BTE RWBAPI01 to fill the z-fields, it doesn't work (for other fields it does!!).

Thanks in advance

Christian

Subhankar
Active Contributor
0 Kudos

Hi Vanitha,

You can get the details in below thread.

[BAPI_ACC_DOCUMENT_POST extension|;

Thanks

Subhankar

Former Member
0 Kudos

solved....thnx

0 Kudos

Hi Vanitha,

Could you please share the solution, as to how you were able to solve this issue ?

Thank you.