2008 Mar 12 4:04 AM
Hi All,
Im definiNG A ZCLASS. iN THIS I HAVE declared method getvbak. In this method im writitng a select statement by which im getting the vbeln in the internal table i_vbak. when im activating this it throws an errow as "I_VBAK" is not an internal table - the "OCCURS n" specification is missing. But then I'm declaring I_VBAK in attributes as type vbak.
help needed reward for all useful ans.
2008 Mar 12 4:06 AM
Hi Madhvi,
Have u declared it as l_VBAK type standard table of VBAK?
Regards,
Esha Raj
hi Esha,
Where do we have to declare it. In the attribute tab. Like when we declare the attributes there. More over how can i include the header line in the internal table. as the you can see in the error that i have pasted in my last msg it says that i_vbak is not an internal table occurs 0.
2008 Mar 12 4:06 AM
Hi Madhvi,
Have u declared it as l_VBAK type standard table of VBAK?
Regards,
Esha Raj
2008 Mar 12 4:21 AM
hi Esha,
Where do we have to declare it. In the attribute tab. Like when we declare the attributes there. More over how can i include the header line in the internal table. as the you can see in the error that i have pasted in my last msg it says that i_vbak is not an internal table occurs 0.
2008 Mar 12 10:26 AM
Madhvi..
I explored the same, though new to this, I found a layman's solution...
Goto SE11
>Select Data type
>Enter a name (example: ZTTD)
>Click on create
>in the popup window that appears, select Table type
>give the VBAP in the line type (as an example)
>Enter description
>activate
goto SE24
>Goto the method u r trying to create
>click on parameters
>against i_vbap in the associated type enter ZTTD
>activate
>write a select query for the method
>execute
>>done.
>>>done.
>>>>done.
feel free to contact me for any problem...
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |