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

Search help

Former Member
0 Likes
678

Hi

I have selection screen with 2 field matnr and lgort

when i press F4 on lgort - search help work and i see the value of the matnr in the search help.

The problem that i must press enter in search help to see all the result according to specific material.

How can i do it without press enter and to see the result limitedly?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
651

Hi,

You need to do is:

During the search help creation , you have to select the "Display values Immediately" for Dialog Type.

It is only possible for the customized Search Helps not for the SAP standard.

Regards,

Balakrishna.N

7 REPLIES 7
Read only

Former Member
0 Likes
651

Hi,

Since the search Help which you are getting for LGORT field is designed from MARC table it is coming like that with all materials.

Same Stor location is used for all those materials. it is coming like that.

If you want, you can create your own search help as per your requirement, (by creating your own table) you can attach and use it.

Regards,

Anji

Read only

Former Member
0 Likes
651

U need to attach a match code , where in uneed to select all the lgorts from the table MARD for the materials needed.

Read only

0 Likes
651

hi ,

In the Search help that you have created change the "dialog type" to "display values immediately"

regards,

santosh

Read only

Former Member
0 Likes
651

Hi..

Can you be some more clear with your requirement??

Ram

Read only

Former Member
0 Likes
652

Hi,

You need to do is:

During the search help creation , you have to select the "Display values Immediately" for Dialog Type.

It is only possible for the customized Search Helps not for the SAP standard.

Regards,

Balakrishna.N

Read only

Former Member
0 Likes
651

hi ,

you have to use the the FM 'DYNP_VALUES_UPDATE'

*- Change screen field contents w/o PBO
* Update Dynpro
  CLEAR dg_repid.
  dg_repid = sy-repid.
* For reading screen fields and values
DATA: dt_dynpread TYPE STANDARD TABLE OF tp_dynpread .
* Getting current screen fields and values
DATA: ds_dynpread TYPE tp_dynpread .
 ds_dynpread-fieldname = 'MATNR'. .
      ds_dynpread-fieldvalue = 'YOUR F4 HELP MATNR VALUE'.
      APPEND ds_dynpread TO dt_dynpread .

  CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      dyname               = dg_repid
      dynumb               = sy-dynnr
    TABLES
      dynpfields           = dt_dynpread
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      undefind_error       = 7
      OTHERS               = 8.

  IF sy-subrc <> 0.
  ENDIF.

Read only

0 Likes
651

Whether you use a bepokse search help or the FM 'DYNP_VALUES_UPDATE' the user will still need to hit the 'enter' key . By doing this invokes the relevant ABAP event ( e.g. AT SELECTION-SCREN ).

It is annoying but has to be done. I have the same problem with a similar problem