2008 Nov 07 7:22 PM
REPORT Zsap .
PARAMETERS : P_VKORG TYPE VBAK-VKORG.
TYPES: BEGIN OF TY_VBAK,
VBELN TYPE VBAK-VBELN,
END OF TY_VBAK.
DATA: IT_VBAK TYPE TABLE OF TY_VBAK,
WA_VBAK TYPE TY_VBAK.
SELECT VBELN
FROM VBAK
INTO TABLE IT_VBAK
WHERE VKORG = P_VKORG.
in selection screen im giving P_vkorg = '7999'.
error:
select stament is not working..
it_vbak is initails.
please let me know how i can get data into it_vbak
Edited by: Julius Bussche on Nov 7, 2008 8:58 PM
REPORT Zsap .
PARAMETERS : P_VKORG TYPE VBAK-VKORG.
TYPES: BEGIN OF TY_VBAK,
VBELN TYPE VBAK-VBELN,
END OF TY_VBAK.
DATA: IT_VBAK TYPE TABLE OF TY_VBAK,
WA_VBAK TYPE TY_VBAK.
SELECT VBELN
FROM VBAK
INTO TABLE IT_VBAK
WHERE VKORG = P_VKORG.
in selection screen im giving P_vkorg = '7999'.
error:
select stament is not working..
it_vbak is initails.
please let me know how i can get data into it_vbak
Edited by: Julius Bussche on Nov 7, 2008 8:58 PM
2008 Nov 07 7:30 PM
Check the entries in VBAK for 7999.if there entries are exsist than only your it_vbak would get fill.
2008 Nov 07 7:34 PM
2008 Nov 07 7:38 PM
Your select statement works... when I give '7999', the internal table is initial because there is not any record with 7999, but if a use another that I know exist.. it works fine.
2008 Nov 07 7:40 PM
Laurence - the moderators take a dim view of such meaningless titles. The first thing you should do is edit it if you can.
Rob
2008 Nov 07 7:52 PM
>
> The first thing you should do is edit it if you can.
> Rob
Changed
2008 Nov 07 8:03 PM
>
>
> Changed
But it only shows up on the individual thread. the original one stays the same.
Actually, this is probably a good thing
Rob
2008 Nov 07 8:04 PM
2008 Nov 07 8:07 PM
Yes - I was alittle confused to see that your title had takend.
BTW I wonder what the original question was
Rob
2008 Nov 11 11:21 AM
In the where clause use P_VKORG-LOW or High instead of using only P_VKORG .
Thank You.
2008 Nov 12 6:45 AM
ur select query is checking for vbeln which has vkorg = '7999'. Since it is not available it is not populating anything in the internal table.
Check for any other number that exists.
Regards,
SAPient.
2008 Nov 12 5:24 PM
Check in debugging mode, if P_VKORG is getting populated or not...
If not getting populated, try using Programming Events like...
At selection-screen
start-of-selection ...
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |