Hi,
I want to fill an internal table (2 fields) and a constat value ('CONFIRMED') to every line.
Below gives me an error.
Any pointers ?
select
X_EKKO~EBELN
'CONFIRMED'
from EKKO as X_EKKO
inner join LFA1 as X_LFA1 on X_LFA1LIFNR = X_EKKOLIFNR
inner join EKPO as X_EKPO on X_EKPOEBELN = X_EKKOEBELN
inner join EKES as X_EKES on X_EKESEBELN = X_EKPOEBELN AND X_EKESEBELP = X_EKPOEBELP
into table i_MasterDataConf
where
(where_clause)
AND X_EKES~EINDT > l_enddate2.
//Martin
Hello Martin,
You cannot use the literal 'CONFIRMED' in the SELECT statement !! The SELECT statement allows you to only <i>select</i> the data <i>from the database</i>.
In your code, use the addition INTO CORRESPONDING FIELDS OF i_MasterDataConf.
Then fill the internal table with the value 'CONFIRMED' in the second field of all rows using the statement
MODIFY ITAB FROM ITAB TRANSPORTING <NAME OF THE SECOND FIELD> WHERE <SECOND FIELD> EQ SPACE.
Regards,
Anand Mandalika.
Hello,
First of all you can select all the data from the transparent table into IntTab.
Then you can fill the constant value by LOOP ... MODIFY InTab. ... ENDLOOP.
Regards, Murugesh AS
Add a comment