06-04-2010 12:53 PM
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.
06-04-2010 12:59 PM
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
06-04-2010 1:20 PM
Hi Vinod,
Thanks for the response.
There was no error message from the FM. But I will check the subrc.
Regards
Seema
06-04-2010 1:24 PM
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
06-04-2010 2:01 PM
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
06-04-2010 2:51 PM
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
06-04-2010 1:21 PM