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

UPDATE MKPF WITH A BAPI

Former Member
0 Likes
3,166

Hi Everybody

Who can tell me how can I update the MKPF table with a BAPI or with a diferent method without using a direct update??

I wrote the code like this

UPDATE BKPF SET BKTXT = ITEM_TEXT2

WHERE BUKRS = I_MSEG-BUKRS AND

BELNR = BKPF-BELNR AND

GJAHR = I_MKPF-MJAHR.

But they want a updating with a BAPI or other thing , but not a direct update

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,849

Since you are just updating BKTXT field of MKPF (your text says BKPF which I think was a typo), just do a simple BDC. This is one of those rare cases where BDC is the best option. MB02 is the transaction.

5 REPLIES 5
Read only

Former Member
0 Likes
1,849

Hi,

Please check this FM MB_CHANGE_DOCUMENT.

Regards,

Ferry Lianto

Read only

0 Likes
1,849

Hi Ferry

This FM doesn't exist in my system

Regards

Read only

Former Member
0 Likes
1,849

Hi,

Which SAP version are you using now?

The above FM is available from 4.7 onward.

Otherwise you may need to do BDC programming.

Regards,

Ferry Lianto

Read only

0 Likes
1,849

Hi

The version es netweaver 4.

I don't know why I can not see that FM , the name is MB_DOCUMENT_UPDATE????

I found out TB_COVR_FI_DOCUMENT_UPDATE, but it doesn't chnage the field that I want

Read only

Former Member
0 Likes
1,850

Since you are just updating BKTXT field of MKPF (your text says BKPF which I think was a typo), just do a simple BDC. This is one of those rare cases where BDC is the best option. MB02 is the transaction.