‎2008 Nov 07 7:31 AM
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
‎2008 Nov 07 7:34 AM
Hi,
Populate the workarea in 1040 screen and update.
Regards,
Nanhda
‎2008 Nov 07 7:34 AM
Hi,
Populate the workarea in 1040 screen and update.
Regards,
Nanhda
‎2008 Nov 07 7:52 AM
I have already update but that didn't display in the table control of 1041.
‎2008 Nov 07 7:51 AM
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
‎2008 Nov 07 7:53 AM
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.
‎2008 Nov 07 7:59 AM
screen 1040 - export the field content to memory id
screen 1041 - import the field content from memory id and update the field