Skip to Content

Bapi or FM to update fields xref3, xref2 and zuonr

Hi experts,

Please tell me the bapi or function module (API) which is used to update reference field xref3 and xref2 and zuonr field into bseg.

I used the module funcion CHANGE_DOCUMENT, but it is very dangerous..

Could you please tell me if there is another way to change these fields?

As regards the transaction fb02, I can oly change the bseg-zuonr field.

Thanks.

Rodrigo

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 02, 2013 at 08:46 AM

    Use FM FI_ITEMS_MASS_CHANGE to change allowed fields (AFAIK this FM will create a BDC)

    Try FB02 or FB09 : If the field is grayed, you must not be able to change it via transaction, BDC (FB02 or FB09) or any BAPI/Direct input, else it would be a BUG !

    You may have some Customizing to perform to enable this field (transaction OB32) , if SAP allows it. So first allow the field via OB32, if that doesn't allow the field to be changed, look for OSS notes as some fields are not allowed by SAP : There is a knowledge base article on this subject : 1497601 - Document change rule defined in T-code OB32 does not work - field cannot be changed in T-code FB02, read also Note 827413 - FI: Changeability of fields in FI documents and good old Note 79760 - Certain BSEG fields cannot be changed (FB02).

    Else you have to reverse those documents, and post them again but with correct values...

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 30, 2013 at 08:48 PM

    Hi ,

    There is a user exit from sales side to populate values into that fields to the accounting document.

    while releasing the sales document to Accounting.

    EXIT_SAPLV60B_001: Change the header data in the structure acchd

    You can use this exit to influence the header information of the accounting document. For example, you can change the business transaction, "created on" date and time, the name of the person who created it or the transaction with which the document was created.

    EXIT_SAPLV60B_002: Change the customer line ACCIT

    You can use this exit to change the customer line in the accounting document. This exit is processed once the ACCIT structure is filled in with data from document header VBRK.

    Regards,

    Prakash.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 31, 2013 at 12:00 AM

    Hi,

    If you know the set of selection criteria to filter entries in BSEG that you want modified may be a update program to update the fields would be a quick and easy way to do it.

    Cheers,

    Arindam

    Add comment
    10|10000 characters needed characters exceeded