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

pls help

Former Member
0 Likes
613

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
588

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

5 REPLIES 5
Read only

Former Member
0 Likes
589

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

Read only

Former Member
0 Likes
588

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.

Read only

Former Member
0 Likes
588

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*.

Read only

Former Member
0 Likes
588

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

Read only

Former Member
0 Likes
588

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.