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

Program(BDC or BAPI) to change FB02 - xref3

Former Member
0 Likes
1,541

I want to write a program to change the fb02 xref3.

Please let me know whether there is a BAPI? Or how to do it using the BDC cos in the BDC the page down is not capturing properly.

Thanks

Edited by: Ann G on Jan 3, 2008 7:33 AM

5 REPLIES 5
Read only

Former Member
0 Likes
885

Hi,

Do u want to change xref3 for a particular document, or is this a routine job.

if this is a one time activity , then write a prog to update bseg table with changed xref3 value.

if this is a routine activity then call the document number in the recording and then click on

more data to change xref3.

tc

saji

Read only

0 Likes
885

Its not a routine job. The tables BSID should also be changed then if Im writing a program I need to know exactly all the tables where xref3 is attached in order to update. Please do let me know of a Bapi or a way to do it in bdc.

Thanks

Read only

0 Likes
885

HELLO
Use the procces RWBAPI01 and the  FM ZSAMPLE_INTERFACE_RWBAPI0 .

Inside the FM u can put the code that you want to change the XREF3 field .


There is a BTE related to the above process .
My example code inside the FM was :


DATA : WA_EXTENSION TYPE BAPIACEXTC ,
WA_ACCIT 
TYPE ACCIT,
LV_TABIX
TYPE SY-TABIX.

READ TABLE EXTENSION  INTO WA_EXTENSION INDEX 1 .
if wa_extension-field1 is not initial  or wa_extension-field2 is not INITIAL.

LOOP AT IT_ACCIT INTO WA_ACCIT .
WA_ACCIT
-STODT = WA_EXTENSION-FIELD1 .
"""" If the KOSTL field has a value (VAT code)
"""" pass the header text to the line text field .
if wa_accit-ktosl is not initial.
wa_accit
-sgtxt = wa_extension-field2.
endif.
MODIFY IT_ACCIT FROM WA_ACCIT INDEX SY-TABIX.
ENDLOOP.

endif.


Hope it helps

Read only

venkateswaran_k
Active Contributor
0 Likes
885

Hi

Try to use FI_DOCUMENT_CHANGE function

Or

Try with BDC for fb09

Regards,

Venkat

Read only

0 Likes
885

Hi

Try to use FI_DOCUMENT_CHANGE function

Or

Try with BDC for fb09

Try for BDC FB09 - this will be easy for you

Regards,

Venkat