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

BAPI_GOODSMVT_CREATE (Batch inconsistency error)

jinin_thomas2
Explorer
0 Kudos
853

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

1 ACCEPTED SOLUTION
Read only

arun_k7
Explorer
0 Kudos
584

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

     

2 REPLIES 2
Read only

arun_k7
Explorer
0 Kudos
585

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

     

Read only

jinin_thomas2
Explorer
0 Kudos
584

Hi ARUN ,

Thank you soo much its working fine now