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: 

Bapi or FM to update fields xref3, xref2 and zuonr

0 Kudos

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

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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-c..., 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

3 REPLIES 3

prakashjasti
Contributor
0 Kudos

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.

Prakash J

arindam_m
Active Contributor
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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-c..., 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