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: 

MB_CREATE_GOODS_MOVEMENT with & without Item text

Former Member
0 Kudos

Hi Experts,

I am using MB_CREATE_GOODS_MOVEMENT to create GR.

for plant A I have a set of data, which does not have Item text , I find GR is created successfully.

For plant B, I have another set of data , which does not have Item text(MSEG-SGTXT). GR is not created here.

In the debugger, if have enter item text, GR gets created.

I am analysing why is this behaving differently for 2 different data. I dint get any clues yet. Please share your thoughts on this.

Thanks for your suggestions,

Seema.

6 REPLIES 6

Former Member
0 Kudos

Hi,

Are you getting any error after calling the function module. Check the structure field EMKPF-SUBRC. Error may be due to the Validations while creating FI documents.

Regards

Vinod

0 Kudos

Hi Vinod,

Thanks for the response.

There was no error message from the FM. But I will check the subrc.

Regards

Seema

0 Kudos

Hi seema,

Check the structures EMKPF & EMSEG of BAPI. These structures will hold the Messages generated during FM execution.

Regards

Vinod

Edited by: Vinod Kumar on Jun 4, 2010 6:19 PM

0 Kudos

Hi vinod,

EMKPF subrc is 5. and EMSEG has

VBELN C 10 005298624

MBLNR C 10

MJAHR N 4 0000

BWART C 3 Z10

MSGID C 20 M7

MSGNO C 3 093

MSGTY C 1 E

MSGV1 C 50 Z10

MSGV2 C 50 35509999

MSGV3 C 50 Text

MSGV4 C 50 002

I am checking the reason for this error. In case you have idea, please share.

Edited by: M.Seema on Jun 4, 2010 3:24 PM

0 Kudos

Hi Vinod,

Thanks for your helpful answer.

Solution :

There was a configuration issue with G/L account and movement type . This type of error can be diagnosed by program RM07CUFA and rectified at FS00 tcode.

Edited by: M.Seema on Jun 4, 2010 4:02 PM

Former Member
0 Kudos

Check whether any exit is working here.

--

Reddy