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 for MB02

Former Member
0 Likes
2,113

Hi Experts!

I need to Change mkpf-FRBNR field in MB02.

Is there any bapi available to do so.

thanks in advance.

7 REPLIES 7
Read only

Former Member
0 Likes
1,467

Try MB_CHANGE_DOCUMENT Function module.

Read only

0 Likes
1,467

Hi thanks for your quick reply.

i tried to change it through this fm and its give me error like this

Check table 063: entry __ AB V does not exist

Message no. M7001

Diagnosis

In table 063 the entry __ AB V is missing.

and now md is not there.

can you help me.

thanks

Read only

0 Likes
1,467

what input you gave?

Material document and Material Document Year and new FRBNR.

inside the function module its doing simple update. cehck for which update its giving error. either for MSEG of MKPF.

Read only

0 Likes
1,467

HI ,

thanks again.

Ya i am just providing Material document , mat year and frbnr.

and i checked the entry in se16 for mkpf it has updated the fields. so now every thing is blank in mkpf for this MD accept year , md number and mat year.

i think i have to first get the data and then just change the frbnr.

Is there anyother way we can know that if this frbnr entry is linked to anyother table other than mkpf.?

thanks again.

Read only

0 Likes
1,467

upto my knowledge its updating MKPF alone i think.

Read only

Former Member
0 Likes
1,467

any suggestions plzzzz?????

Read only

Former Member
0 Likes
1,467

I don't think you can update this field, once material document is created. Only solution is to cancel the document in question and do the transaction again with the right field this time.