Archived discussions are read-only. Learn more about SAP Q&A

How to add a search help on a screen field from screen painter

Hi,

I would like to add an existing Search Help on a screen field in Screen painter.

Of course it's possible to just click on th screen field and in the property box, I just have to set the name of teh search help.

The problem is that I need the screen field to be grey and user musn't be able to change the field value if he doens't use the search help.

I'm not allowed to modify the existing search help or to built it on my own from source code, I must use the existing one.

Do you have an idea on how to do so?

Regards,

Morgan

Tags:
replied

Dropdown Box:

In the screen painter for that field goto properties -> Dropdown ->select listbox.

Option 1:

Instead let that field be in change mode and if user enters any wrong entry which is not there in the table give a error messgae.

CHAIN.

FIELD addr1_data-country.

MODULE modify_screenfields1.

ENDCHAIN.

MODULE modify_screenfields1 INPUT.

CASE sy-ucomm.

WHEN 'ENTER' OR 'EXECUTE'.

IF NOT addr1_data-country IS INITIAL.

SELECT SINGLE landx FROM t005t INTO lws_landx WHERE

land1 = addr1_data-country

AND spras = 'EN'.

IF sy-subrc <> 0.

MESSAGE e000(zo_spa) WITH text-022. " Invalid Country code

ELSE.

t005t-landx = lws_landx.

ENDIF.

ELSE.

CLEAR: t005t-landx.

ENDIF.

ENDCASE.

ENDMODULE. " modify_screenfields1 INPUT

Option 2: Other than if u want the way u like, let that field be greyed out. don't attach the search help.

In the PROCESS ON VALUE-REQUEST.

FIELD addr1_data-region MODULE region_pov.

MODULE region_pov INPUT.

Using the F4IF_INT_TABLE_VALUE_REQUEST table value request show the search help.

also make that field input enabled.

ENDMODULE. " region_pov INPUT

I think this will solve ur problem.

Regards,

Prakash.

Message was edited by: Prakash Ramu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question