cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean representation in RFC xml

Former Member
0 Kudos

Hello, I have problems with representing boolean values in an RFC xml call using XI towards SAP. Using 'X' as a value for true does not seem to work. The BAPI I am calling through RFC xml is BAPI_CHARACT_CREATE and I am trying to set the parameter INTERVAL_ALLOWED. Anyone have a clue? Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks

turmoll
Active Contributor
0 Kudos

Hi,

Boolean functions return as an output either string true or false. As an true value they interpret either 1 or true (not case sensitive). Rest values are interpreted as false.

In your case RFC data type is: ATXFE with value range: 'X' for true and ' ' for false then you can solved such case with simple message mapping:

In mapping to RFC field use: boolean function "If" that returns either 'X' or ' '.

In mapping from RFC field use: text function "equalsS" that check "X" and returns "true".

Regards,

Jakub

Former Member
0 Kudos

Thanks Jakub,

You were right with the 'X'. We made it work. There was also a problem with <DISPLAY_VALUES> that required allowed values to be shown in (Maintain allowed values).