Application Development 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: 

mapping of screen fields to an internal table

Former Member
0 Kudos

Hi ,

I have to map the screen fields of structure q0743 and some fields of infotype 0743 into an internal table.

Plz provide pointers in this regard.

TIA

3 REPLIES 3

Former Member
0 Kudos

Hi Priyanka,

first find out the table name where the infotype 0743 is in

there you can find the field name and data elements

now you create an internal table with the required fields and with required data types.

then collect the values from that tabel and append them to your internal table

Regards,

Chinna

Former Member
0 Kudos

Hi,

The infotype table is PA0743 i have to get some values of fields from this table and some values from the screen fields which of the type of the structure Q0743 into an internal table.

Have to get the values from Pa0743 and screen field values of structure Q0743.

Plz help me!!!

Former Member
0 Kudos

Hi,

Try this

Get the infotype values in the internal table.

Then loop at the internal table itab. There may be key field which links both the structure and the itab values.

loop at itab into wa.

read table itab2 into wa1 where f1 = wa-f1.

if sy-subrc eq 0.

wa-<fieldname> = wa1-f2.

.............

modify itab transporting <fieldname, ...> where f1 = wa-f1.

endif.

endloop.

Sharin.