Application Development 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: 

SELECT OPTIONS

Former Member
0 Kudos

Hi all,

i have a select option aufnr(Process orders).the user enters the value in the selection option and i need to take the process order numberfrom the given range one bye one and i need to pass that order no to the function module which will get the details of that process order from the database.

My question is how to read the process order no from the selection screen one by one

8 REPLIES 8

Former Member
0 Kudos

Hi Suresh,

Do a select based on s_aufnr as shown below and get the aufnrs in a internal table.

Select aufnr into table it_aufnr where aufnr in s_aufnr.

check not it_aufnr[] is initial.

loop at it_aufnr.

Call ur FM .

endloop.

Cheers

VJ

0 Kudos

i have one more question i have to read process orders details and BOM details for that process order.so which tables i have to refer.

i know 2 tables aufk and resb any other tables i have to go through

athavanraja
Active Contributor
0 Kudos

data: begin of itab occurs 0 ,

aufnr like aufk-aufnr ,

end of itab .

select-options: s_aufnr for aufk-aufnr .

start-of-selection.

select aufnr into table itab from aufk where aufnr in s_aufnr .

loop at itab .

  • call the function module here

endloop .

Regards

Raja

0 Kudos

Can we directly loop the select option is there any way for that

0 Kudos

No.

Raja

0 Kudos

Reward points to helpful answers by choosing appropriate radiobuttons .

Regards

Raja

0 Kudos

i didn't find any radio buttons here can u assist in that also

0 Kudos

you will find the radiobuttons below the name of the person in the replies

Regards

Raja