Application Development 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: 

BAPI messages are written in job log but not in foreground mode

jitendra_it
Active Contributor
0 Kudos

Hello Gurus,

I am using BAPI_SALESORDER_CHANGE in a Z program to update sales orders.

When i execute this program in background(background job) then job log contains messages returned by BAPI.

But, when i execute same program in foreground then no message are being displayed/written in output.

Why it is so?

2 REPLIES 2

VenkatRamesh_V
Active Contributor
0 Kudos

Hi Jitendra,

Kindly check the source code,  in bapi's table option their is a parameter name called  'RETURN' in that error message are stored in bapi. check weather the content of  return  is displayed or not in source code.

kindly check the function module documentation in se37.

Hope it helpful,

Regards,

Venkat.

0 Kudos

Hi Venkat,


Kindly check the source code,  in bapi's table option their is a parameter name called  'RETURN' in that error message are stored in bapi. check weather the content of  return  is displayed or not in source code.

yes RETURN table is there and i am NOT displaying its content(using Message/Write) in Z program.

My question is: If there is no write/message statement in the program then how system is displaying messages in case of batch job and not displaying in case of foreground processing.