Skip to Content
Former Member
Sep 06, 2010 at 02:56 AM

SWNC_STATREC_READ TaskType values in XML


Hope I'm posting this to the right place. I couldn't find an RFC specific forum anywhere.

I'm working on an app in C using RFC to call the function module SWNC_STATREC_READ. When I receive back the normal records in XML format, the task type values don't seem to be correct. For example, for an obvious RFC record, the task type field is "<TASKTYPE>/g==</TASKTYPE>". I've looked at the constants for task type in CL_SWNC_CONSTANTS and things don't seem to match up. How am I supposed to get a raw 254 value from this string? I'm assuming the encoding is UTF8, so I've tried to break the values down to hex and binary and figure out some kind of pattern that would tell me something is off (byte or nibble swapped, etc) but haven't had any luck. With the example, /g== would be 2F 67 3D 3D in hex, this doesn't seem to get me near the FE value I'm looking for. I've looked at several other task types from this data and am still at a loss in figuring it out. I have several other 'raw' fields to extract that seem to have the same formatting.

Thanks for any help.