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

Re: Appending data in structure at runtime

Former Member
0 Likes
714

Hello Friends,

I got stuck up with the problem as , in structure zproxypg_mt_3p_po_ack_new ,

there is nesting of the structure till 4 level , and i want to append data in last structure at run time. I tried so many attempts.

Can anyone help me for the same?

<b>HIGH PRIORITY!!</b>

1 ACCEPTED SOLUTION
Read only

dev_parbutteea
Active Contributor
0 Likes
690

HI,

use last structure name in level i.e

data: struct type <b>last level in zproxypg_mt_3p_po_ack_new</b>

append in struct-field_name.

hope this helps you.

Hello Friends,

I got stuck up with the problem as , in structure zproxypg_mt_3p_po_ack_new ,

there is nesting of the structure till 4 level , and i want to append data in last structure at run time. I tried so many attempts.

Can anyone help me for the same?

<b>HIGH PRIORITY!!</b>

5 REPLIES 5
Read only

Former Member
0 Likes
690

Try str1-str2-str3-data = 'value'.

Hope this helps.

Sudha

Read only

Former Member
0 Likes
690

Hi,

Can u send the structure format , so that it will be easy in answering pointing to ur querry.

Regards,

naveen

Read only

0 Likes
690

Hello Navin,

structure Hi:

zproxyco_pg_mi_3p_po_ack_new

!

PG_MT_3P_PO_ACK_NEW

i

For item , line type is ZPROXYPG_DT_3P_PO_ACK_NEW_ITEM

!

and in ZPROXYPG_DT_3P_PO_ACK_NEW_ITEM

!

Fields are

CMK_data

sc_data

po_data

For above 3 fields i want to append the data

I tried str1-str2-str3-data but it is not working.

Read only

0 Likes
690

Hi,

if u used str1-str2-str3-data and if still not appending, i doubt ur decaration might be wrong.

have u checked ur itab declaration and aswell as workarea(if no headerline).

can u send ur code.

Regards,

naveen

Read only

dev_parbutteea
Active Contributor
0 Likes
691

HI,

use last structure name in level i.e

data: struct type <b>last level in zproxypg_mt_3p_po_ack_new</b>

append in struct-field_name.

hope this helps you.