Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

class

Former Member
0 Likes
454

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
436

Hi Madhvi,

Have u declared it as l_VBAK type standard table of VBAK?

Regards,

Esha Raj

3 REPLIES 3
Read only

Former Member
0 Likes
437

Hi Madhvi,

Have u declared it as l_VBAK type standard table of VBAK?

Regards,

Esha Raj

Read only

0 Likes
436

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.

Read only

0 Likes
436

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...