Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to dynamically determine work area field?

Hi Experts,

I have a work area wa_survey with two fields below:

item1 type string,

item2 type string

I have a custom table "ylookup_tab" where I am maintaining some kind of lookup.

I need to populate the wa_survey field based on the lookup value from above table.

For example if the table lookup returned item1 then populate

wa_survey-item1 = some value.

Else if the table returned item2 then populate

wa_survey-item2 = some value.

I tried like below but it does not work:

wa_survey-(wa_lookup_tab-value) = some value.

Is there any way to do this?



Edited by: kishan P on May 19, 2011 12:18 PM

Not what you were looking for? View more on this topic or Ask a question