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

Question on Module Pool

Former Member
0 Likes
1,024

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
733

Hi,

You can use the FM COMPLEX_SELECTIONS_DIALOG

Check this link for a sample code

Thanks,

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
734

Hi,

You can use the FM COMPLEX_SELECTIONS_DIALOG

Check this link for a sample code

Thanks,

Naren

Read only

former_member196299
Active Contributor
0 Likes
733

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

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
733

Hi Vijay

Use the FM: <b>COMPLEX_SELECTIONS_DIALOG</b>

Regards,

Sree

Read only

Former Member
0 Likes
733

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.....

Read only

Former Member
0 Likes
733

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