How to read same field from
D.Base into two fields of ITAB
Can any one help in how can we read data into 2 fields(like VBELN, VBELN1) in internal table from data base table(VBAK) of one field(VBELN)? EX:
For this how can we write select statement. ---------------------------------------------------------------------------------------- You can write select statment as follows, select single vbeln vbeln from vbak
---------------------------------------------------------------------------------------- Try the following code: tables vbak.
select vbeln vbeln from vbak into (itab-vbeln,itab-vbeln1)
.
loop at itab.
---------------------------------------------------------------------------------------- One of the possible way, try this: data: begin of itab1,
select * into itab1 from eban.
---------------------------------------------------------------------------------------- This should be better: TABLES vbak. DATA: BEGIN OF itab OCCURS 0,
SELECT vbeln vbeln FROM vbak INTO table itab. LOOP AT itab.
See Also:
More Function Module
Tables
ABAP Books List
Smart Forms
ABAP Menu:
Return to Index:-
(c) www.gotothings.com All material on this site is Copyright.
|