Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Header Response in Batch Processing


My Scenario:

Multiple records update is required from the front end. This is achieved via Batch Processing. Upon processing of each record, an update message for each record should be sent back to UI5.


Need to send back the status message to UI for each single record.

Actual Process followed:

Lets say I have 3 records for updating, the sequence of methods called are as below:

1. Change Set BEGIN.

2. Update Entity (Called 3 times)

3. Change Set END.

In Begin method is just redefined and has no code.

In Update entity I am collecting all the individual record in an global internal table of same class.

In End method, calling an RFC to update all 3 records at a time. This RFC returns 3 messages indicating success or failure which needs to sent to UI.

Hence I thought to send these messages by concatenating into single message and send via Header response in method Change Set END as follows:

  1. data:  ls_header               TYPE ihttpnvp. 
  2. ls_header-name = 'my-custom-message'
  3. ls_header-value = 'my_message'
  4. /iwbep/if_mgw_conv_srv_runtime~set_header( ls_header ).


I am not getting any header response with name my-custom-message.

Kindly suggest me to send the messages to UI5 with any corrections to above procedure or an alternative procedure.

Note: The header response with above method is only working from method Update Entity and I don't want to call the RFC for each single entity.


Satish D R

Former Member
Not what you were looking for? View more on this topic or Ask a question