Application Development and Automation 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: 
Read only

Bapi to update fb02 reference field (xref3)

Former Member
0 Likes
5,742

Hi ,

Please tell me the bapi which is used to update reference field xref3 into bseg for transaction fb02.

10 REPLIES 10
Read only

JozsefSzikszai
Active Contributor
0 Likes
2,078

hi Anand,

not a BAPI, only a simple FM.: CHANGE_DOCUMENT

ec

Read only

0 Likes
2,078

but still in database its not updated why ............................i want to update in database using bapi or fm

Read only

0 Likes
2,078

probably a COMMIT WORK statement would help after the FM call, in case there are no errors.

Read only

0 Likes
2,078

first i am trying by execution fm by enterining the input values so that i could check whether its working or not................but its not updating in database is commit is required.........................

Read only

Former Member
0 Likes
2,078

Hi Anand

Check FI_DOCUMENT_CHANGE

Regards

Arun

Read only

0 Likes
2,078

this is also not working .......................

Read only

0 Likes
2,078

sorry, I have no more ideas...

alternatively you can write a CALL TRANSACTION as well to do this one field change

Read only

Former Member
0 Likes
2,078

Hi,

This function module FI_DOCUMENT_CHANGE updates XREF3 in R/3 4.6c version but in ECC 6.0 this function module has got changed.

What approach I followed I copied 4.6 c version into a Z function module and which works fine.

Use BAPI_TRANSACTION_COMMIT after this function module.

Thanks,

Ranadev

Read only

AlessandroSpadoni
Contributor
0 Likes
2,078

Hi,

i used F.m CHANGE_DOCUMENT to change xref3 , it works also in ECC 6.

But be careful using CHANGE_DOCUMENT , this function performs direct updates on FI Tables

Read only

0 Likes
2,078

Hi Alessandro Spadoni,

Could you please tell the values you passed for CHANGE_DOCUMENT. I am unable to edit xref1, xref2 and xref3 in FB02