replaceBdeNameInResponse()

This function replaces the business object name wherever it occurs in the response. It can be used after forwarding a request from one business object to another business object. The new business object name will be the name of the current business object (that contains the hook).

Limitation: only the data area and the standard controlling attributes are handled (so specific controlling attributes are not renamed if they contain the business object name).

long replaceBdeNameInResponse(
				         long		      i.request,
	 const		    string	 	   i.oldBdeName,
 	ref			     long		      o.newResponse)

Input:

  • i.response: response xml
  • i.oldBdeName: old business object name to be replaced

Output:

  • o.newResponse: duplicate of i.response, where the business object name is replaced (note: this xml must be cleaned up use!)
  • return value: 0 (OK) or an error value.