‎2007 Feb 17 11:23 AM
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...
‎2007 Feb 18 6:18 AM
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.
‎2007 Feb 18 6:23 AM
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
‎2007 Feb 20 2:02 PM
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.