‎2010 Feb 04 10:07 AM
SORT IT_EKBEF BY EBELN EBELP.
READ TABLE IT_EKBEF INTO WA_EKBEF
WITH KEY EBELN = WA_FINAL-EBELN
EBELP = WA_FINAL-EBELP BINARY SEARCH.
IF SY-SUBRC = 0.
WA_FINAL-MENGE = WA_EKBEF-MENGE.
ENDIF.
the above is my code............
i am not able to read data frfom inetrnal table to WA_ekbef .......if i am not giving material in the selection screen.......
If i give material for specific po then i am getting data........Pls solve this problem........
how this read statement is linked with material........
any suggetions pls??
‎2010 Feb 04 10:15 AM
Hi,
can you please provide more code?
Where can be find your code?
After Start-of-selection statement ?
In the same include ?
Bg,
Attila
‎2010 Feb 04 10:33 AM
Hi Deepthi,
Probably your selection screen Material is not a part of your READ statement, but it might a dependent variable for your select query in fetching the data into your Internal Table IT_EKBEF. Check on what basis are we selecting data into that internal table.
Cheers,
Suresh
‎2010 Feb 04 11:03 AM
Hi,
I am fetching data inTO IT_EKBE..............
FROM IT_EKBE I AM MOVING TO WA_EKBE.......
FROM WA_EKBE I AM MOVING TO IT_EKBEF..............
THEN I AM USING READ STATEMENT WITH KEYWORDS EBELN, EBELP..........
BUT WHEN I AM FETCHING IT_EKBE I AM FETCHING DATA BASED ON MATERIAL ALSO.........
IS THAT THE PROBLEM???
‎2010 Feb 04 11:07 AM
hi
READ TABLE IT_EKBEF INTO WA_EKBEF
WITH KEY EBELN = WA_FINAL-EBELN
EBELP = WA_FINAL-EBELP BINARY SEARCH.
In read stsement u have to specify the Material key word.
‎2010 Feb 04 3:45 PM
When you say you're fetching data into IT_EKBE based on the Material, then you need to pass the material right? Just get into debugging mode and check whether you select query fetches any data or not in both the scenarios like when passing or not passing the material data in the selection screen.
If you're getting data in both the cases, then we need to look more into the code.
Cheers,
Suresh