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

Thread: Predefined Search Help for WERKS doesn't work properly

Former Member
0 Likes
1,471

Hi

I read the above thread which partially helped solve my problem.

I would like to include werks-low and werks-high on the input screen both with search help and also allow user to input multiple selection if needed.

All help welcome

Torben

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,386

Hi,

Please try to use select-options in Module pool programming. Refer this http://abap-explorer.blogspot.com/2008/08/create-select-options-in-module-pool.html

Thanks,

Hi

I read the above thread which partially helped solve my problem.

I would like to include werks-low and werks-high on the input screen both with search help and also allow user to input multiple selection if needed.

All help welcome

Torben

9 REPLIES 9
Read only

Former Member
0 Likes
1,387

Hi,

Please try to use select-options in Module pool programming. Refer this http://abap-explorer.blogspot.com/2008/08/create-select-options-in-module-pool.html

Thanks,

Read only

0 Likes
1,386

Hi

Many thanks for your help. This is my first dialog program so still learning.

I choose method 1 from you link but still can't get it to work.

My code in top program.

*

*

*

SELECTION-SCREEN BEGIN OF SCREEN 0110 AS SUBSCREEN.

select-options s_werks for t001w-werks.

SELECTION-SCREEN END OF SCREEN 0110.

my screen 0100 flow logic.

process before output.

module status_0100.

CALL subscreen sub1 INCLUDING SAPMZINFO2 0110.

process after input.

module okcode.

module user_command_0100 at exit-command.

field : m_lifnr module m_check_0100.

CALL subscreen sub1.

module read_data.

module user_command_0100.

All activates ok.

But when I execute program I don't see the subscreen and get the following error.

Call Subscreen: SAPMZINFO2 0100 NO DYNPRO NAME

What am I doing wrong?

Regards

Torben

Read only

0 Likes
1,386

Hi Torben,

Try to change your call subscreen statement:


SELECTION-SCREEN BEGIN OF SCREEN 0110 AS SUBSCREEN.

select-options s_werks for t001w-werks.

SELECTION-SCREEN END OF SCREEN 0110.

"yur screen 0100 flow logic.

process before output.
module status_0100.

CALL subscreen sub1 INCLUDING sy-repid '0110'. "use quote for screen number

process after input.
module okcode.
module user_command_0100 at exit-command.

field : m_lifnr module m_check_0100.

CALL subscreen sub1.

module read_data.

module user_command_0100.

Thanks,

Read only

0 Likes
1,386

Hi

Getting closer.

Should "your screen 0100 flow logic. be in the TOP include? after Selection-screen........

It appears to be working OK except %_S_WERKS_%_APP_%-VALU_PUSH does not work

getting error fill in required fields

Regards

Torben

Read only

0 Likes
1,386

Hi,

Put your selection-screen in top include:


SELECTION-SCREEN BEGIN OF SCREEN 0110 AS SUBSCREEN.
 
select-options s_werks for t001w-werks.
 
SELECTION-SCREEN END OF SCREEN 0110.

all other codes put in Screen flow logic.

thanks,

Read only

0 Likes
1,386

Hi

Really appreciate your help

All is working OK except the button for Multiple Selection for Plant.

Getting message Fill in all required entry fields

Regards

Torben

Read only

0 Likes
1,386

Hi

Made a couple of changes and button now works.

Just a couple of navigation issues to handle now.

Many thanks again

Torben

Read only

0 Likes
1,386

Dear

you have stated that u Made a couple of changes and Multiple selection button works

Please tell what steps u followed ?

Regards

Suyog

Read only

Former Member
0 Likes
1,386

hi,

Go to the event Process on value request.

You can right a module for searh help

Field Fieldname Module module name.

in that function module you can write your own Selection of plants from T001 W . Use the function module

F4IF_INT_TABLE_VALUE_REQUEST to genereate the search help.

This will be useful as it avoids creation of DDIc objects and we can do customization as we require.