2014 Oct 07 11:35 AM
Hi All,
I am facing an issue while creating a Customized Program for
MIGO POST USING BAPI(BAPI_GOODSMVT_CREATE)gmcode = '01'.
For my program i need to create batch automatically and need to fill clasification data
for that i am using 3 bapi total for this
1)BAPI_BATCH_CREATE (creating batch)
2)VB_BATCH_2_CLASS_OBJECT (Fm for fetching object key)
3)BAPI_OBJCL_CREATE (Assigning clasification data)
4)BAPI_GOODSMVT_CREATE (bapiposting)
Now issues is like sometimes my bapi (BAPI_GOODSMVT_CREATE) returning an error
'The characteristic values for the batch are incomplete' , its happening rarely, if i rechek error will go,
i debuged the code for some batches clasification is not creating,
i am passing hardcodded value in clasification 'N/A'.
1)Can any body tell why system behaving like this?
2)Is that problem with my coding?
3)Why error not coming if i recheck?
Please help if anyone knows the answer.
Please find attachement for my code
2014 Oct 15 3:42 AM
Hi,
Try to put 'WAIT' command after BAPI_OBJCL_CREATE .
Eg : WAIT UPTO 1 SECOND.
I think this will solve your problem.
Thank you.
Arun
2014 Oct 15 3:42 AM
Hi,
Try to put 'WAIT' command after BAPI_OBJCL_CREATE .
Eg : WAIT UPTO 1 SECOND.
I think this will solve your problem.
Thank you.
Arun
2014 Oct 15 4:09 AM