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: 

Parameter

Former Member
0 Kudos

Hi all,

For an input field defined using parameters,if we want F4 functionality we can use match code. In the same manner if we want F1 functionality how can we achieve that ? If possible please forward me the code.

Regards,

Varun.

1 ACCEPTED SOLUTION

former_member186741
Active Contributor
0 Kudos

you can put the text in standard sapscript text file via SE71 and then use this:

*display help for the ??? field

AT SELECTION-SCREEN ON HELP-REQUEST FOR <parameter name>.

CALL FUNCTION 'POPUP_DISPLAY_TEXT'

EXPORTING LANGUAGE = SY-LANGU

POPUP_TITLE = 'Help for ?????'

START_COLUMN = 10

START_ROW = 3

TEXT_OBJECT = '<text name>'.

6 REPLIES 6

former_member181966
Active Contributor
0 Kudos

Hi

Checkout the code:

REPORT DEMO_DYNPRO_F1_HELP.

DATA: TEXT(30),

VAR(4),

INT TYPE I,

LINKS TYPE TABLE OF TLINE,

FIELD3, FIELD4.

TABLES DEMOF1HELP.

TEXT = TEXT-001.

CALL SCREEN 100.

MODULE CANCEL INPUT.

LEAVE PROGRAM.

ENDMODULE.

MODULE F1_HELP_FIELD2 INPUT.

INT = INT + 1.

CASE INT.

WHEN 1.

VAR = '0100'.

WHEN 2.

VAR = '0200'.

INT = 0.

ENDCASE.

ENDMODULE.

MODULE F1_HELP_FIELD3 INPUT.

CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'

EXPORTING

DOKLANGU = SY-LANGU

DOKTITLE = TEXT-002

CALLED_FOR_TAB = 'DEMOF1HELP'

CALLED_FOR_FIELD = 'FIELD1'.

ENDMODULE.

MODULE F1_HELP_FIELD4 INPUT.

CALL FUNCTION 'HELP_OBJECT_SHOW'

EXPORTING

DOKCLASS = 'TX'

DOKLANGU = SY-LANGU

DOKNAME = 'DEMO_FOR_F1_HELP'

DOKTITLE = TEXT-003

TABLES

LINKS = LINKS.

ENDMODULE.

Pl award the points .

Thanks

0 Kudos

Hi Saquib,

Can you make little easy.. I am not refering to module pool, In this case assume that you have the parameter statement on selection screen.

Regards,

Varun.

former_member186741
Active Contributor
0 Kudos

you can put the text in standard sapscript text file via SE71 and then use this:

*display help for the ??? field

AT SELECTION-SCREEN ON HELP-REQUEST FOR <parameter name>.

CALL FUNCTION 'POPUP_DISPLAY_TEXT'

EXPORTING LANGUAGE = SY-LANGU

POPUP_TITLE = 'Help for ?????'

START_COLUMN = 10

START_ROW = 3

TEXT_OBJECT = '<text name>'.

0 Kudos

Hi Neil,

you can put the text in standard sapscript text file via SE71 and then use this:

Can you elobrate much upon this..Please..

Like how do I do that and use in my program.

Regards,

Varun.

0 Kudos

YOU CAN ALSO DEFINE HELP LIKE THIS :

INCLUDE DBldbSEL.

INCLUDE DBPNPSEL.

INCLUDE DBPNPCOM.

PARAMETERS:PERNR LIKE PA0001-PERNR HELP-REQUEST.

as far as standred text it is concern , just goto-SE73 . CREATE your text save it . Go to -> header .. Call this using text name,id and object .

*display help for the ??? field

AT SELECTION-SCREEN ON HELP-REQUEST FOR <parameter name>.

CALL FUNCTION 'POPUP_DISPLAY_TEXT'

EXPORTING LANGUAGE = SY-LANGU

POPUP_TITLE = 'Help for ?????'

START_COLUMN = 10

START_ROW = 3

TEXT_OBJECT = '<text name>'."ID which you create in SE73

Thanks

Message was edited by: Saquib Khan

0 Kudos

To make it really easy, create a custom data element via SE11. Here you can add your documentation for the field. Then in your program, just reference that data element.

PARAMETERS: p_test type ztest.

When user hits F1 on this field the documention behind the data element should be fired.

Regards,

Rich Heilman