‎2008 Feb 21 3:32 AM
hi
i am trying to pass the value to one internal table to other. but it's not working. anyone pls helpme
DATA : itab_zdfkkwoh TYPE STANDARD TABLE OF zdfkkwoh WITH HEADER LINE.
DATA : wa_zdfkkwoh like itab_zdfkkwoh occurs 0 WITH HEADER LINE.
LOOP AT itab_zdfkkwoh.
itab_zdfkkwoh-abbel = wa_zdfkkwoh-abbel.
itab_zdfkkwoh-opbel = wa_zdfkkwoh-opbel.
itab_zdfkkwoh-opupw = wa_zdfkkwoh-opupw.
APPEND wa_zdfkkwoh. " INDEX lv_tabix.
CLEAR wa_zdfkkwoh.
‎2008 Feb 21 3:37 AM
Hi
Ur code shud be as below:
DATA : itab1_zdfkkwoh TYPE STANDARD TABLE OF zdfkkwoh,
itab2_zdfkkwoh like itab_zdfkkwoh occurs 0.
itab2_zdfkkwoh[ ] = itab1_zdfkkwoh[ ].
Thanks
Vasudha
Edited by: Vasudha L on Feb 21, 2008 4:37 AM
‎2008 Feb 21 3:37 AM
Hi
Ur code shud be as below:
DATA : itab1_zdfkkwoh TYPE STANDARD TABLE OF zdfkkwoh,
itab2_zdfkkwoh like itab_zdfkkwoh occurs 0.
itab2_zdfkkwoh[ ] = itab1_zdfkkwoh[ ].
Thanks
Vasudha
Edited by: Vasudha L on Feb 21, 2008 4:37 AM
‎2008 Feb 21 3:40 AM
DATA : itab_zdfkkwoh TYPE STANDARD TABLE OF zdfkkwoh WITH HEADER LINE.
DATA : wa_zdfkkwoh like itab_zdfkkwoh occurs 0 WITH HEADER LINE.
LOOP AT itab_zdfkkwoh.
wa_zdfkkwoh-abbel = itab_zdfkkwoh-abbel.
wa_zdfkkwoh-opbel = itab_zdfkkwoh-opbel.
wa_zdfkkwoh-opupw = itab_zdfkkwoh-opupw .
APPEND wa_zdfkkwoh. " INDEX lv_tabix.
CLEAR wa_zdfkkwoh.
‎2008 Feb 21 3:40 AM
Hi,
LOOP AT itab_zdfkkwoh.
*wa_zdfkkwoh-abbel = itab_zdfkkwoh-abbel.
wa_zdfkkwoh-opbel =itab_zdfkkwoh-opbel .
wa_zdfkkwoh-opupw = itab_zdfkkwoh-opupw.*
APPEND wa_zdfkkwoh. " INDEX lv_tabix.
CLEAR wa_zdfkkwoh.
ENDLOOP.
Now it will work.
This is wrong way to move.
*itab_zdfkkwoh-abbel = wa_zdfkkwoh-abbel.
itab_zdfkkwoh-opbel = wa_zdfkkwoh-opbel.
itab_zdfkkwoh-opupw = wa_zdfkkwoh-opupw*.
‎2008 Feb 21 3:41 AM
hi,
DATA : itab_zdfkkwoh TYPE STANDARD TABLE OF zdfkkwoh WITH HEADER LINE.
DATA : wa_zdfkkwoh like itab_zdfkkwoh occurs 0 WITH HEADER LINE.
LOOP AT itab_zdfkkwoh.
itab_zdfkkwoh-abbel = wa_zdfkkwoh-abbel.
itab_zdfkkwoh-opbel = wa_zdfkkwoh-opbel.
itab_zdfkkwoh-opupw = wa_zdfkkwoh-opupw.
APPEND wa_zdfkkwoh. " INDEX lv_tabix.
CLEAR wa_zdfkkwoh.
every thing is fine the only change you need to make is
wa_zdfkkwoh-abbel = itab_zdfkkwoh-abbel.
wa_zdfkkwoh-opbel = itab_zdfkkwoh-opbel.
wa_zdfkkwoh-opupw = itab_zdfkkwoh-opupw.
Edited by: Nandini P on Feb 21, 2008 4:59 AM
Edited by: Nandini P on Feb 21, 2008 5:02 AM
‎2008 Feb 21 3:41 AM
When you want to pass from itab_zdfkkwoh to wa_zdfkkwok it should the other way " Comment *itab_zdfkkwoh-abbel = wa_zdfkkwoh-abbel. *itab_zdfkkwoh-opbel = wa_zdfkkwoh-opbel. *itab_zdfkkwoh-opupw = wa_zdfkkwoh-opupw. wa_zdfkkwoh-abbel = itab_zdfkkwoh-abbel. wa_zdfkkwoh-opbel = itab_zdfkkwoh-opbel. wa_zdfkkwoh-opupw = itab_zdfkkwoh-opupw. APPEND wa_zdfkkwoh. " INDEX lv_tabix. CLEAR wa_zdfkkwoh.