Skip to Content

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 28, 2015 at 05:41 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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.