cancel
Showing results for 
Search instead for 
Did you mean: 

" / " in BAPI Structure name

Former Member
0 Kudos

Hi

I tried imported a the BAPI "/POSDW/BAPI_POSTR_CREATE" from the POSDM system, which is the target int his scenario.

But it looks like XI is replacing the "/" with "_-", which gives me a runtime exception in message mapping transformation "Cannot produce target element /ns1:_-POSDW_-BAPI_POSTR_CREATE. Check xml instance is valid for source xsd & target-field mapping fuifills requirements of the target xsd ....etc

Does anyone have a workaround for this?

Thanks

Rachana

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

Hi Rachana,

From SAP FAQ-

<i> Q 6: Is there a special handling of the '/' character in the names of function modules?

A: As the '/' character can cause conflicts within XML documents it is escaped with the sequence '_-'. A RFC sender channel will do the escaping of '/' to '_-' and a RFC receiver channel will do the opposite. This only will be done for the RFC-XML document.</i>

workaround I am not sure..

Writing a Wrapper function may work here...

Regards,

Moorthy

Answers (0)