‎2019 Sep 17 10:38 AM
Hi All,
I am submitting a custom report via submit and Job in background to create reservations and goods movement by calling BAPI BAPI_RESERVATION_CREATE1 and BAPI_GOODSMVT_CREATE . after execution of both BAPi , preparing one internal table with BAPI return parameter to show into internal table. at the end i am calling ALV factory method to show output as spool in SM37 job log. The issue is BAPI return parameters messages are coming into Job log ( submit program job).
How to supres this job log.
SUBMIT ztest_bapi VIA JOB lv_jobname NUMBER lv_jobcount AND RETURN.
Thanks,
Arpita
‎2019 Sep 17 11:12 AM
You need not explicitly write a code as above, Follow the above steps.
Prepare the report to display the required fields using factory method.
Once you execute this method in background, your Job will already Hold the result in spool you are trying to display VIA report.
Regards
‎2019 Sep 17 11:20 AM
I am calling factory method. and spool has generated with final output table but job logs shows error/warning messages from BAPI return parameters. I dont want that in job log. Please help.
‎2019 Sep 17 11:22 AM
Can you paste a Screen shot of the same, want to understand what you are actually trying to ignore.
Regards
‎2019 Sep 17 11:53 AM

See above screen shot of job log. spool has generated with internal table data which i am passing to factory method. i want to omit this warning/error messages from BAPI return to be written to job log.
‎2019 Sep 17 12:19 PM
Unless You explicitly displaying the same either using write method or using factory method it will never appear in the output. If you don't need explicitly display the same it wont appear in the Log.
Still if you are facing the issue, Kindly give the code snippet followed
‎2019 Sep 17 1:08 PM
The messages which appear in the job log are due to the fact you execute the statement MESSAGE without INTO. So, don't. I doubt that BAPIs can be responsible of that, but if so, open a ticket at SAP support.