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

Advanced search for position

Former Member
0 Likes
1,710

hello friends,

i am having a field for position with basic f4 help which lists all the positions in the form of a list in my selection screen.instead of this how to incorporate advanced search help for the field position.please give solution for this.

thanks.

hello friends,

i am having a field for position with basic f4 help which lists all the positions in the form of a list in my selection screen.instead of this how to incorporate advanced search help for the field position.please give solution for this.

thanks.

9 REPLIES 9
Read only

Former Member
0 Likes
1,300

Hi Sundar,

Look at the option 'AT SELECTION-SCREEN ON VALUE-REQUEST FOR <PARAM>'. In this event you can build your own F4 and present it to the user.

Srinivas

Read only

0 Likes
1,300

hi srinivas,

i don't want to create new search help.i want to use the standard advance search provided by sap.how to do this.

Read only

0 Likes
1,300

Hi Sundar,

Here is a sample code for getting the full search capability for the positions.


PARAMETERS: p_otype LIKE objec-otype DEFAULT 'S', " for position
            p_realo LIKE objec-realo,
            p_begda LIKE sy-datum DEFAULT sy-datum,
            p_endda LIKE sy-datum DEFAULT '99991231'.

DATA: v_subrc LIKE sy-subrc,
      s_objec LIKE objec.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_realo.

  s_objec-plvar = '01'.    " Your planning version
  s_objec-otype = p_otype.

  PERFORM otype_get(rhstrpf0) CHANGING p_otype
                                       v_subrc.

  IF v_subrc = 0.
    PERFORM objid_f4(rhstrpf0) USING p_begda
                                     p_endda
                            CHANGING s_objec.
  ENDIF.

Hope this is what you are looking for.

Srinivas

Read only

0 Likes
1,300

Hi Sundar,

Did you find the solutions provided helpful. If so, reward and close the thread.

Srinivas

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,300

Hi Vadivel

You can use the standard FM <b>"RH_OBJID_REQUEST"</b> for this.

*--Serdar

[email protected]

Read only

Former Member
0 Likes
1,300

Create a data element, or reference an existing one in the dictionary, and you can attach search help to the data element. It will then be available when you use the data element to TYPE your selection screen parameter.

Read only

0 Likes
1,300

can u elaborate little more

Read only

0 Likes
1,300

In SE11, go to or create a data element. In 4.7, the tab 'Further Characteristics' has the search help option. In 4.6C, this tab did not exist, but it is on one of the other tabs that come up. You can attach an existing SAP search help or one of your own.

Then use this data element to TYPE your parameter.

Read only

Former Member
0 Likes
1,300

Hello Murthy,

SAP has not provided a collective search-help for <b>position</b>. You only have an elementary Search Help for that field.

The positions and their texts are stored in the tables T528B and T528T. These are customizing tables and would normally be populated by the SPRO transaction. I personally don't think it makes too much sense to ahve a collective search-help for this field.

Now, given this fact, what kind of an advanced search help do you actually require ? What are the criteria based on which you want to be able to determine a position? Based on your answers to these questions, you would have to design a new search help of your own for this purpose.

Regards,

Anand Mandalika.