Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC Update Urgent !!!!

Former Member
0 Likes
609

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

3 REPLIES 3
Read only

Former Member
0 Likes
578

Hi,

Put the cursor on field and press F1 and select Technical info.

Regards,

Bhaskar

Read only

aabhas_wilmar
Contributor
0 Likes
578

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

Read only

Former Member
0 Likes
578

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