04-24-2007 4:42 PM
Hi Friends,
I have a small problem . I am having an internal table which contains the list of values that needs to be changed for a transaction .
The screen already has a field name and the values .
The problem is the values in internal table are in random order and not in the order on screen .
So while looping throught internal table its just appends t_bdcdata and goes and updates the screen .
But the problem is the new values are all against the wrong field names.
How can I check the field name on screen and then update the value ?
Please advise
Thanks
04-24-2007 5:00 PM
Hi,
Put the cursor on field and press F1 and select Technical info.
Regards,
Bhaskar
04-24-2007 5:04 PM
try this
v_fieldname = screen-name.
actually, screen is a table (structure) for any transaction.. which is generated at runtime. screen-name contains the name of the field which is currently getting proccessed in its PBO module.
might help...
regards,
Aabhas
04-24-2007 5:04 PM
Hi hari,
You can have the internal table field in whatever order you want.
They need not be in the same order as they appear in screen.
YOu need to pass correct field values to correct screen fields.
loop at itab.
.
..
perform bdc_values using '<Screen name>' itab-field2.
perform bdc_values using '<Screen name>' itab-field1.
.
.
endloop.
Regards,
ravi