Skip to Content
0
Former Member
Sep 15, 2007 at 01:56 AM

Using BAPI_HELPVALUES_GET to retrieve Helpvalues

89 Views

Greetings all - I am attempting to master this BAPI to return F4 help values for a field in PM transaction IW42 (Confirmations.)

Everything is going smoothly - I am able to return the help values for the field 'D_CODE' in the attribute 'Values', I can get the data from the node Description_For_Helpvalues and display it nicely into a table so I can view the column descriptions, and I can view the structured text returned in the Char255 attribute Helpvalues.

My next task is to parse this structured data into a form that ultimately I will use to populate a treeset. One very nice feature I have found is that this particular field will return values for both 'D_CODE' and 'D_CODEGRP', and I need both for my treeset while maintaining the relationships between the two fields.

Is there any alternative to iterating through this structured text and stripping out substrings by char offset? For example, can I cast (or copy) this data into a custom structure that I have created with the necessary column definitions? I have seen references to the WDCopyService, but it seems that the nodes have to have identical attributes for that to work.

Has anyone else been faced with this scenario? I'd really appreciate some wisdom.