09-12-2007 1:36 PM
Hi Friends,
I need to add select-option in my modulepool screen.
the select option is for material Group.
how to add select options in madulepools?
thanks,
Sridhar
09-12-2007 1:41 PM
hi,
take two text box and two I/O fields in one line.
After all in module pool u have to design ur screen .
09-12-2007 1:42 PM
Have you checked this <a href="https://forums.sdn.sap.com/click.jspa?searchID=5195761&messageID=1223548">Thread?</a>
Arya
09-12-2007 3:31 PM
Hi I have gone through the thread and the code is given like:
You can use CALL SELECTION-SCREEN statament.
- You have to define a selection-screen in the TOP-INCLUDE:
SELECTION-SCREEN BEGIN OF SCREEN 101.
SELECT-OPTIONS: SO_.... FOR ....
PARAMETERS: P_....
SELECTION-SCREEN END OF SCREEN 101.
- Create a main dynpro where selection-screen has to be called:
PROCESS PBO.
MODULE CALL_SEL_SCREEN.
PROCESS PAI.
MODULE CALL_SEL_SCREEN.
CALL SELECTION-SCREEN 101.
IF SY-SUBRC = 0. "=> User has pressed F8
ELSE. "=> User has pressed BACK or EXIT
ENDIF.
ENDMODULE.
but...
its throughing me the syntax error like :
"SUBSCREEN..." or "CUSTOMER-SUBSCREEN..." expected after 'CALL.
please give me some idea where i am doing the mistake
Thanks,
Sridhar
09-12-2007 1:46 PM
hi
good
if you want to use select-option directly in module pool then it is not possible.
but you can do other way.
create two varaiables
data : v_kun_low like kna1-kunnr,
v_kun_high like kna1-kunnr.
use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
use can enter only low value and high value.
when you come to program point of view
declare one range
ranges r_kunnr for kna1-kunnr.
do the coding like
r_kunnr-low = v_kun_low.
r_kunnr-high = v_kun_high.
r_kunnr-options = 'BT'.
r_kunnr-sign = 'I'.
append r_kunnr.
now you can use r_kunnr in select query ,it will work like select-option.
other than this there is no option.
thanks
mrutyun^
09-12-2007 1:47 PM
Hi,
Select-options can be added in module pool...
Design screen according to ur requirement
then add code for Low and High fields
s_matnr Low to High