SAP Adapter not converting ‘_SLASH_’ back to ‘/’ in case of child elements

SAP Adapter not converting ‘_SLASH_’ back to ‘/’ in case of child elements

book

Article ID: KB0084315

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for SAP Solutions 7.x

Description

According to the user document, the '/' char is a reserved character in the TIBCO environment. To support namespaces, the adapter performs a literal translation and replaces / with __SLASH__. In the design time the "/" in IDOC name in a namespace will be replaced with "__SLASH__"  and saved to project with this name. At run-time, the adapter replaces the "__SLASH__" with the "/" character in all its interactions with the SAP R/3 system.

But in some cases where the IDOC schema is having multiple child segments which are having "/" in their names, SAP adapter processes the IDOC with out any errors, but at the SAP end we see the Segmentation fault error which generally happens when the slash IDOC segment name does not matches with the one saved in the SAP environment. In case segname field value is not mentioned in the IDOC input the Adapter by default assigns the name of the segment to it by referring to the schema imported by the BW. But this does not work when the segment name includes "/" in their names.(as "/" is imported as "_Slash_", so the segment name assigned by adapter will have _slash_ in it).

So, In order to tackle this kind of issue we should mention the value of the segnam which is mandatory under EDI_DD, so that the segnam matches with the one saved in the SAP system.

For example:

For Example:
------------
EDI__DD
SEGNAM/SPE/E1BPIBDLVITEMCONF/SEGNAM
/EDI__DD

Issue/Introduction

SAP Adapter not converting ‘_SLASH_’ back to ‘/’ in case of child elements

Environment

All

Resolution

The slash IDOC segment used should contain EDI_DD segment name which is mandatory.
For Example:
------------
EDI__DD
SEGNAM/SPE/E1BPIBDLVITEMCONF/SEGNAM
/EDI__DD