05-14-2006 1:38 PM
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
05-14-2006 1:44 PM
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
05-14-2006 1:54 PM
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
05-14-2006 1:44 PM
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
05-14-2006 1:50 PM
05-14-2006 1:54 PM
05-14-2006 2:10 PM
Reward points to helpful answers by choosing appropriate radiobuttons .
Regards
Raja
05-14-2006 2:15 PM
05-15-2006 5:59 AM
you will find the radiobuttons below the name of the person in the replies
Regards
Raja