2014 Jan 16 12:16 PM
Hello All,
We have developed one custom program and that we have scheduled to run as batch job daily every 15 minutes.
This code contents BAPI - 'BAPI_INSPLOT_SETUSAGEDECISION' which copies UD values from one inspection lot to another inspection lot.
We have written code such that any exception / error during data selection or processing will be captured in one internal table and that table entries are displayed as output after execution of program. In case of job we get spool entry.
This programs runs properly and we get desired results, but some times suddenly this program (Job) stops creating spool though job shows status as "FINISHED".
In such case UD is not copied and also job log shows no error entry.
After some time during any later run of job spool again gets created automatically and UD happens properly.
One observation is when spool is not generated job finishes within few seconds as compared to duration in normal run.
Please reply if anyone has faced such spool issue earlier.
Also I have one doubt, whats happens incase BAPI returns abort message (Type = A), will program control go back to calling program or calling program will be terminated?
Help awaited.
Regards,
Hello All,
We have developed one custom program and that we have scheduled to run as batch job daily every 15 minutes.
This code contents BAPI - 'BAPI_INSPLOT_SETUSAGEDECISION' which copies UD values from one inspection lot to another inspection lot.
We have written code such that any exception / error during data selection or processing will be captured in one internal table and that table entries are displayed as output after execution of program. In case of job we get spool entry.
This programs runs properly and we get desired results, but some times suddenly this program (Job) stops creating spool though job shows status as "FINISHED".
In such case UD is not copied and also job log shows no error entry.
After some time during any later run of job spool again gets created automatically and UD happens properly.
One observation is when spool is not generated job finishes within few seconds as compared to duration in normal run.
Please reply if anyone has faced such spool issue earlier.
Also I have one doubt, whats happens incase BAPI returns abort message (Type = A), will program control go back to calling program or calling program will be terminated?
Help awaited.
Regards,
2014 Jan 21 2:52 PM
Hello Experts,
Can anyone help me in isue mentioned above?
Its really urgent....
2014 Jan 21 3:08 PM
Hi there,
The BAPI will always return to calling program.
We need to check the RETURN parameter(table) in the code to check whether the execution of BAPI is successful or not.
For BAPI - BAPI_INSPLOT_SETUSAGEDECISION... If usage decision is successfully made than system returns message number 050 (class 'QV'). This is captured in the RETURN table parameter.
Based on this you may process/not-process your data further.
2014 Jan 22 10:33 AM
Thanks Viral,
But I am looking for issue where Job is showing as Finished but spool entry is missing.
Have you ever faced issue like this?
Regards,
2014 Jan 22 2:34 PM
Hello,
Can you please paste your code. It would be easy for all to understand the problem.
2014 Jan 22 2:47 PM