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

Table control

Former Member
0 Likes
605

Moderator message: please use a meaningful subject for your questions in future

How to update table control field which is on screnn 1041

from screnn 1040.

Edited by: Matt on Nov 7, 2008 9:13 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
579

Hi,

Populate the workarea in 1040 screen and update.

Regards,

Nanhda

5 REPLIES 5
Read only

Former Member
0 Likes
580

Hi,

Populate the workarea in 1040 screen and update.

Regards,

Nanhda

Read only

0 Likes
579

I have already update but that didn't display in the table control of 1041.

Read only

Former Member
0 Likes
579

I have already update but that didn't display in the table control of 1041.

Edited by: sonu choudhary on Nov 7, 2008 8:53 AM

Read only

Former Member
0 Likes
579

Hi Sonu,

Here is a sample code for your requirement.

Here the fields of Screen 200 has the field names as wa_itab-zvbeln etc. and the Fields on the Next Screen = 300 are named as itab_item-zvbeln etc.

The idea is that you name the fields of on screen using a workarea and the names of second ScreenFields as Internal table and then you append the workarea into that internal table.

Hope this solves your problem.

IF SY-TCODE NE 'ZVA03_101754'.

IF SY-TCODE eq 'ZVA02_101754'.

refresh itab_item.

  • DESCRIBE TABLE itab_item LINES l1_count.

  • tabcontrol-lines = l1_count.

endif.

wa_itab-zvbeln = wa_vbak-zvbeln.

wa_itab-zposnr = itab_item-zposnr.

wa_itab-zmatnr = itab_item-zmatnr.

wa_itab-zbrgew = itab_item-zbrgew.

wa_itab-zmaktx = itab_mara-zmaktx.

wa_itab-zmeins = itab_mara-zmeins.

wa_itab-zwaerk = itab_mara-zwaerk.

wa_itab-zstprs = itab_mara-zstprs.

wa_itab-zwerks = itab_vbap-zwerks.

wa_itab-zlgort = itab_vbap-zlgort.

wa_itab-znetwr = itab_mara-zstprs * itab_item-zbrgew.

wa_itab-zgi_comp = itab_vbap-zgi_comp.

wa_itab-zinv_comp = itab_vbap-zinv_comp.

APPEND wa_itab TO ITAB_ITEM.

REFRESH wa_itab.

endif.

Reagards,

Amit.

Read only

Former Member
0 Likes
579

screen 1040 - export the field content to memory id

screen 1041 - import the field content from memory id and update the field