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

append corresponding

Former Member
0 Likes
4,509

Hi Every 1,

I am declaring the structure with Bapiret2 and also a internal table of same structure. i am populating only the 3 fields into gs_bapiret2 structure,

and that i have to append into an internal table.

But with

append gs_bapiret to gt_bapiret.

am not able to append that data .

is there is any statement like append corresponding.

pls let me know.

regards...

3 REPLIES 3
Read only

Former Member
0 Likes
1,274

Hi,

ur not able to pass the values to the work area or ur not abel to append the work area to the internal table?

Regards

Mahesh.

Read only

anversha_s
Active Contributor
0 Likes
1,274

hi,

chk this sample.

*Table declaration (new method)     "USE THIS WAY!!!
TYPES: BEGIN OF t_ekpo,
  ebeln TYPE ekpo-ebeln,
  ebelp TYPE ekpo-ebelp,
 END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,      "itab
      wa_ekpo TYPE t_ekpo.                    "work area (header line)

wa_ekpo-ebeln = 'value1'.
wa_ekpo-ebelp = 'value2'.

append wa_ekpo to it_ekpo.
clear wa_ekpo.

Regards,

Anver

Read only

anilnal
Explorer
0 Likes
1,274

Hi,

You must have declared gs_bapiret as an internal table and not as a work area.

If its an internal table, use the following

append lines of gs_bapiret to gt_bapiret.

Note:

append lines -> for internal tables

append -> for work area

Regards,

Anil.