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

SELECT OPTIONS

Former Member
0 Likes
972

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
Read only

Former Member
0 Likes
925

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

Read only

0 Likes
925

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

Read only

athavanraja
Active Contributor
0 Likes
925

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

Read only

0 Likes
925

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

Read only

0 Likes
925

No.

Raja

Read only

0 Likes
925

Reward points to helpful answers by choosing appropriate radiobuttons .

Regards

Raja

Read only

0 Likes
925

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

Read only

0 Likes
925

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

Regards

Raja