Skip to Content
avatar image
Former Member

Custom Fields in BSEG not updating on FI document post

Hello Experts

I'm facing a problem when posting FI documents. I'm using BAPI_ACC_DOCUMENT_POST and passing some Z fields using Table Extension2 (bapiparex). The problem is that the Z fields are not getting updated.

BADI_ACC_DOCUMENT is implemented and working. In debug, I can see that the BADI is working as it should. Furthermore, It was already working for older developments in the same machine.

This problem is only happening in Development machine (DEV). In Quality machine (QAS) everything is working fine. Because my program is still in development, I can't transport it to QAS to see if it works there.

The problems are now the following:

- Older developments aren't updating the Z fields in BSEG

- My new development isn't updating Z fields in BSEG

- Manual posting in FB01 updates the fields

What I have done so far:

- Checked my program codding (it's ok)

- Checked BAPI BADI_ACC_DOCUMENT (it's also ok)

- Checked all user exits being used on this machine that could be clearing this fields - In all of the implemented exits, none of them refers to this problem

- Checked all implemented BTE's - In all of the implemented BTE's, none of them refers to this problem

- Searched for differences between SAP releases on DEV and QAS machines - All components have the same release

- Checked for differences (activation, structure, source code, etc) of structure bapicobl_ci, ci_cobl, table bseg, BADI's being used, etc...

What am I missing here? I think I have done everything that could explain this behavior and still have no answers...

Thanks in advance, best regards,

João Argêncio

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Apr 01, 2011 at 09:53 AM


    in BAPI_ACC_DOCUMENT_POST there is a part

        PERFORM call_customer_function
                TABLES extension1.
                                                                                    PERFORM call_badi
                TABLES extension2.

    for the extensions. Seems that there has to be filled a BADI implementation too to get the extension2 data into bseg.

    BADI interface is IF_EX_ACC_DOCUMENT, used method should be method CHANGE.



    Edited by: Klaus Babl on Apr 1, 2011 11:54 AM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear Experts,

      To everyone that has helped on this subject, thank you. Points have been awarded to the helpful answers.

      Unfortunately, the team of this project decided to forget this subject since the Quality and Production systems are working fine.

      @ Thomas - You can now remove the "sticky" from this thread 😉

      Best regards and codding to everyone,

      João Pedro Argêncio

  • avatar image
    Former Member
    Nov 07, 2013 at 09:24 AM

    Hello Comunity,

    I know that more than a year has passed since I've posted this thread but we've found the solution!

    After contacting SAP, they told us to run report SAPFACCG to update the structure P_ACC (the report only runs the function FI_DOCUMENT_INIT and will not raise any messages or execution log).

    Yes, it is as simple as this 🤣

    Best regards and thanks again for all the help!

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      I really do appreciate you for posting your solution even after a year 😊

      It does seem pretty simple but it worked for me as well.

      You saved my time, thanks bro!

  • Apr 01, 2011 at 08:50 AM


    See these notes:

    SAP Note 700795 - Enhancement category of BAPI enhancement structures

    SAP Note 143580 - Information on SD BAPIs and customer enhancement concept

    and related notes.

    I know this problem for other BAPI's, so, perhaps it happens for FI bapi, but perhaps they don't happen. If you have a field non-character in your append, in this moment, I think that BAPI doesn't work for this fields.

    I hope this helps you



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      SAP Note 700795 is already implemented because i'm running SAP_APPL 604.

      Nevertherless, all custom fields are character type...

      Anyhow, thanks for your input.

      João Argêncio

  • Apr 01, 2011 at 08:52 AM

    Thank you for providing such an extensive list of research you have done already, this will save potential responders a lot of time.

    Unfortunately most people don't do this when posting their problems here.

    I don't have a solution at this point, but will make your thread "sticky" for the time being to enhance the visibility.


    Add comment
    10|10000 characters needed characters exceeded

    • Hello João,

      I too appreciate the way you've given your thorough analysis. I think the checks you've performed seem exhaustive atleast from the documentation perspective!

      @Thomas: We should have a "like" button on SDN similar to the one in FB 😊