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

picking data

Former Member
0 Likes
587

Hi There,

Can any one tell me how to pick data from structure in to the internal.

The parameter is defined like this:

PARAMETERS : p_vbeln TYPE vbrk-vbeln.

Thanx in advance,

5 REPLIES 5
Read only

Former Member
0 Likes
541

HI Venu,

Can you more specific on your question.

Regards,

Manish

Read only

0 Likes
541

Venu, if you mean to select data from database table based on selection parameter p_vbeln just use 'select' command.

Read only

Former Member
0 Likes
541

Hi Venu,

if it a parameter u can get a single value into the parameter as follows that too from the database table.

initialization.

select vbeln up to 1 rows

from vbrk

into p_vbeln.

endselect.

if at all u want to get the structure for the given parameter...

select * from

vbrk

where vbeln = p_vbeln.

in the tables declare vbrk table.

-Anu

Message was edited by: Anupama Reddy

Read only

Former Member
0 Likes
541

hi Venu,

If i have understood your question correctly this is how you have to do ..


select vbeln from vbrk into table itab where vbeln = p_vbeln.

Regards,

Santosh

Read only

Former Member
0 Likes
541

hi

good

mention like this

if you have declared the structure, than declare it like this

DATA : structure like internal table.

thanks

mrutyun^