cancel
Showing results for 
Search instead for 
Did you mean: 

Type conversion problem CHAR1 (BAPI)->Boolean (WD)

Former Member
0 Kudos

Hello,

I am having the type conversion problem with the "Wait" field of the BAPI_TRANSACTION_COMMIT. It is CHAR1 but after importing in WD it is boolean.

Any ideas how can I convert it back to CHAR1 on the WD side?

Many thanks,

Dharmi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dharmi,

The Domain of the "Wait" field (dont remember which one this is) is of length 1, but is specifically meant for creating a boolean on the web dynpro side. I think you will see 'X' = true and ' ' = false in its valid values at the domain level. You are supposed to send a true or a false from web dynpro which would be the same as sending an 'X' in ABAP. Anyways, if you still want to keep it as a CHAR1, change the domain of the field to a CHAR1.

Regards,

Nirav

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hello Dharmi,

If you are using adaptive RFC model node add value subnode (CalcAttrs) and add value attribute with your own custom type (with fixed length = 1) and set calculated property to true. In calculation method get value from model and return appropriate CHAR1 value.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hello Maksim and Nirav,

Thank you both for the quick reply, I would try both the options and let you know.

Best regards,

Dharmi