‎2008 Mar 05 6:57 AM
Hi friends,
I want to sort my output by deliver date and i fetch del date in one variable
see like that
SELECT SINGLE eket~eindt FROM eket INTO (l_eindt)
WHERE ebeln = iekpo-ebeln AND ebelp = iekpo-ebelp.
iekpo1-eindt = l_eindt.
here I fetch delivery date in l_eindt. ok
so now i want to sort this field.
so plz tell me.its urgent so.
Thnaks in advance.
Prashant.
‎2008 Mar 05 7:07 AM
Hi,
How can you SORT one variable.It contains only one values.
For this foolow below code.
create internal table
DATA : BEGIN OF i_eket OCCURS 0,
eindt LIKE eket-eindt,
END OF i_eket.
IF not iekpo[] IS INITIAL.
SELECT eindt
FROM eket
INTO TABLE l_eket
FOR ALL ENTRIES IN iekpo
WHERE ebeln = iekpo-ebeln AND
ebelp = iekpo-ebelp.
ENDIF.
‎2008 Mar 05 7:09 AM
hi,
what is the point of sorting that variable..your select query will any way fetch one value into the variable.
Can you be little more specific about the scenario..
Regards,
Abhi