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

badi for BAPI_GOODSMVT_CREATE

Former Member
0 Likes
7,619

Hello,

I run the Bapi BAPI_GOODSMVT_CREATE to create a Goods Movement and i want a badi or a user exit to change a field in mkpf table before he write in table mkpf.

If anyone could help me i would appreciated.

Thanks and Regards

Eduardo Paiva

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
5,199

Check if any of these exits are helpful to you:

MBCF0002

MBCF0005

MBCF0006

MBCF0007

MBCF0009

MBCF0010

MBCF0011

MBCFC003

MBCFC004

Thanks,

Santosh

6 REPLIES 6
Read only

Former Member
0 Likes
5,199

Hi Eduardo. Check out Badis MB_DOCUMENT_UPDATE and MB_DOCUMENT_BADI.

Hope it Helps.

Jesus

Read only

Former Member
0 Likes
5,200

Check if any of these exits are helpful to you:

MBCF0002

MBCF0005

MBCF0006

MBCF0007

MBCF0009

MBCF0010

MBCF0011

MBCFC003

MBCFC004

Thanks,

Santosh

Read only

Former Member
0 Likes
5,199

HI Eduardo Paiva,

Which field are you planning to change on Material document header ( MKPF)? and which transaction are you using to post the GR. We can guide you better.

If you trying to change the posting date ( MKPF-BUDAT)on the material document, It will not WORK. Rather use user exits to change the values on the screen.

Regards,

Venkat.

Read only

Former Member
0 Likes
5,199

Hello,

I´m trying to change the field mkpf-usnam.

I´m only run the bapi BAPI_GOODSMVT_CREATE not in any transaction.

Thanks and Regards.

Read only

0 Likes
5,199

Hi eduardo. On the BAPI, the import parameter GOODSMVT_HEADER has a field named PR_UNAME, have you tried to pass the value on this field?

If so, and it's still not working, check out exit MB_CF001

Hope it Helps

Jesus

Read only

aymen_d1
Newcomer
0 Likes
5,199

Hello Everybody,

I have the same uses case .with the BAPI " BAPI_GOODSMVT_CREATE "

i have populated the field PR_UNAME with the good value ( not sy-uname)

When the material document is created the field MKPF-USNAM is populated with sy-uname value

Any Badi or exit to update value before creating material document ?

Thanks and Regards.