‎2007 Jun 07 6:23 AM
Hi,
If we use the following code:
SELECT-OPTIONS airline FOR spfli-carrid NO-EXTENSION.
the output of the above is a selection screen wherein we can select a range for the Airline.
How to incorporate the same feature in the below scenario (Module Pool programs) ?
I have defined a screen say 100 in SE51.
I click on the Layout button.
Here i want to have two text boxes using which i should be able to input the range for the department number and display the related details in screen 200.
Can anybody help me with the kind of approach i should take.
Also if anybody is having good material on Module Pool programming, can you forward the same to my id -
[Removed by the moderator.]
Thanks,
Vijay
‎2007 Jun 07 6:28 AM
‎2007 Jun 07 6:28 AM
‎2007 Jun 07 6:32 AM
hi Vijay ,
For your requirement , you can follow the logic below :
Create a modulepool program with 2 screens .
In the 1st screen, put 2 variables val_low and val_high .
Then in the PAI of the screen 1 , write a select querry and use the BETWEEN addition for getting the values between VAL_LOW and Val_high .
next in the PBO of the 2nd screen pass the values to the screen .
Thats it ..It will work ..
You can check for the transaction ABAPDOCU and for the ABAP dialogs area there . you can get many sample programs for module pool operations .
Revert if further help needed !
Regards,
Ranjita
‎2007 Jun 07 6:36 AM
Hi Vijay
Use the FM: <b>COMPLEX_SELECTIONS_DIALOG</b>
Regards,
Sree
‎2007 Jun 07 6:41 AM
hi
i think u can check the condition....
select <> from <table>
where deptno ge <first box> and
deptno le <second box>.
then u can display the details in that range...
hope this helps.....
‎2007 Jun 07 6:48 AM
Dear Mr.Vijay,
As far as i know first u have to create two input boxes in screen 100 and put one DISPLAY Button on the same screen. here when u click on the DISPLAY button u have to see the details in the screen 200, for this in PAI of the screen 100
write this code
case sy-ucomm.
when 'display'.
" select the data for related fields which u want to display in the on screen
200 in between the range of values in text boxes into a internal table then
call screen 200.
then create the screen 200 and go to PBO of screen 200
MOVE corresponding fields of internal table to screen fields.
may be this answar will give u an idea to solve ur doubt.
By,
krishna prasad.k