Application Development 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: 

Search Help based on QDPS Table

Former Member
0 Kudos
131

Hi all,

The QDPS has 3 primary Keys.

1. MANDT

2. DYNREGEL (Dynaminc Rule)

3. PRSTUFE (Stage)

In the Selection Screen, I am getting the DYNREGEL value from the User.

In Screen 101, I have a field XXXX ( of type PRSTUFE).

I want to attach a SEARCH HELP with this field.

This Search Help should display the Possible Values of PRSTUFE(Stages) for the Entered DYNREGEL and MANDT.

It should not display all the other values.

To be more Clear:

If the User entered RL1 ( in Selection Screen DYNREGEL), then the Search Help Should Show all the possible values of PRSTUFE taking MANDT and DYNREGEL into account.

I hope, I have clearly Cascaded my requirement.

Help me please in building the Search Help.

Many Thanks

Kam

Message was edited by: Kam

1 ACCEPTED SOLUTION

Former Member
0 Kudos
88

Kam,

You can use the following logic to achieve the required functionality

1. First create a elementary search help on QDPS table with the following fields

DYNREGEL

PRSTUFE

KURZTEXT

Make DYNREGEL as Import field and PRSTUFFE as Export field. In default value column of DYNREGEL specify QDR (Memory ID).

2. Define a parameter for DYNREGEL in selection screen and specify the memory id as QDR.

3. In Screen 101, include the field QDPS-PRSTUFFE as input field and in attributes specify the search help created in step 1.

Just execute the Main program containing the selection screen and enter any value for DYNREGEL and press F8. On execute you might be calling the Call screen 101, so you will see the 101 screen and when you press f4 for PRSTUFFE field you can see the values restricted as per the DYNREGEL.

If you need any further help please let me know.

Thanks

Giridhar

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
88

Do you want to do a search help in the dictionary, or code it in your program directly?

Regards,

RIch Heilman

Former Member
0 Kudos
89

Kam,

You can use the following logic to achieve the required functionality

1. First create a elementary search help on QDPS table with the following fields

DYNREGEL

PRSTUFE

KURZTEXT

Make DYNREGEL as Import field and PRSTUFFE as Export field. In default value column of DYNREGEL specify QDR (Memory ID).

2. Define a parameter for DYNREGEL in selection screen and specify the memory id as QDR.

3. In Screen 101, include the field QDPS-PRSTUFFE as input field and in attributes specify the search help created in step 1.

Just execute the Main program containing the selection screen and enter any value for DYNREGEL and press F8. On execute you might be calling the Call screen 101, so you will see the 101 screen and when you press f4 for PRSTUFFE field you can see the values restricted as per the DYNREGEL.

If you need any further help please let me know.

Thanks

Giridhar