Application Development 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: 

How to add MTSNR field in BAPI_GOODSMVMNT_CREATE?

satheshkumar44
Explorer
0 Kudos
920

Hi All,

Pl explain the steps for adding mtsnr fields in bapi_goodsmvt_create..

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos
185

Did you notice the EXTENSIONIN table parameter, read its documentation and look at BAdI MB_BAPI_GOODSMVT_CREATE in Enhancement Spot MB_GOODSMOVEMENT. Also you should really elaborate on 'adding mtsnr fieldS' requirement?

Regards,
Raymond

7 REPLIES 7

former_member218528
Participant
185

Hi Sathesh,

Can you be clear with more information..

The reason why i am asking is ..i have worked on it..

Regards,

D.Rohan Sriram

0 Kudos
185

Hi,

Pl find the attached Report for more details.

REQUIREMENT:

Need to Material slip field (MKPF-MTSNR) to that attached report program,

ISSUE:

I tried to add that field in BAPI (i.e)(MKPF-MTSNR), I tried using Extension but that field is not getting uploaded,

Pl advice.

zmmstock.txt

raymond_giuseppi
Active Contributor
0 Kudos
186

Did you notice the EXTENSIONIN table parameter, read its documentation and look at BAdI MB_BAPI_GOODSMVT_CREATE in Enhancement Spot MB_GOODSMOVEMENT. Also you should really elaborate on 'adding mtsnr fieldS' requirement?

Regards,
Raymond

0 Kudos
185

zmmstock.txt

Hi,

Pl find the attached Report for more details.

REQUIREMENT:

Need to Material slip field (MKPF-MTSNR) to that attached report program,

ISSUE:

I tried to add that field in BAPI (i.e)(MKPF-MTSNR), I tried using Extension but that field is not getting uploaded,

Pl advice.

0 Kudos
185

And what did you code in method IF_EX_MB_BAPI_GOODSMVT_CREATE->EXTENSIONIN_TO_MATDOC, look first at the sample provided by SAP.

0 Kudos
185

mm-error.png

Hi ,

Pl find the attachment,

Ya i ve seen the sample code, it says that i have to create the new field using Append structure option in existing structure but while trying that it says that Structure cannot be enhanced and im unable to append the new structure ,

pl advice regarding how to add the field in structure.

0 Kudos
185

Never change a BAdI signature, Extensionin were created for this reason, pass your data to the extension parameters and if required in documentation, implement the required BAdI to map data from the extension to work area table provided by the BAdI.