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: 

F1 Help documentation

suganya_rangarajan
Participant
0 Kudos

Hi,

I have a checkbox using parameters statement on selection screen.I need to create Help documentation on F1.

Can anyone tell me how to do that.I read one of the thread and tried the goto->doc->data elem doc. on screen painter.but since the screen is not custom screen I get a warning as

"Selection Screen:Report generation makes changes ineffective". So I am not sure if i can do the documentation on the screen painter.Let me know the other way of doing.

Thanks

Suganya

1 ACCEPTED SOLUTION

Clemenss
Active Contributor
0 Kudos

Hi Suganya,

PARAMETERS xyz type zxyz.

Define a data element with the name ZXYZ. For this data element, use the domain XFELD or FLAG or create your own domain as copy of XFELD or FLAG. In the data element, create a documentation. This will be shown when you press F1 on the parameter with this type.

This is fully SAP standard compliant. You may translate it if required for different logon language.

Regards,

Clemens

3 REPLIES 3

Clemenss
Active Contributor
0 Kudos

Hi Suganya,

PARAMETERS xyz type zxyz.

Define a data element with the name ZXYZ. For this data element, use the domain XFELD or FLAG or create your own domain as copy of XFELD or FLAG. In the data element, create a documentation. This will be shown when you press F1 on the parameter with this type.

This is fully SAP standard compliant. You may translate it if required for different logon language.

Regards,

Clemens

Former Member
0 Kudos

Hi Suganya,

Do it like this.

data:

it_ef type standard table of TABLE_LINE,

it_hl type standard table of tline,

ws_help_infos type help_info.

Parameters: p_help as checkbox.

at selection-screen on help-request for p_help.

Append:

'text Line 1 for help' to it_hl,

'test line 2 for help' to it_hl.

Call Function 'HELP_DOCULINES_SHOW'

exporting

  • CUCOL = 10

  • CUROW = 3

help_infos = ws_help_infos

  • LINENR = 1

  • NOT_HELP = ' '

  • OVERLAY_HEADER = ' '

  • SUPPRESS_VIEWER = ' '

  • CLASSIC_SAPSCRIPT = ' '

  • IMPORTING

  • HELP_POPUP_CANCEL =

tables

excludefun = it_ef

helplines = it_hl

.

It will work...

Cheers!!!

Lokesh

lat_gmbh
Explorer
0 Kudos

create the doku in SE11 for your data element.
When doing 'at selection-screen on help-request for p_help.'
Read table DOKTL to get the text you have created.
fill table it_hl with the text and (!) the formating information.
Than call 'HELP_DOCULINES_SHOW' and you get a nice pop up including the formating.
Here is my code:

SELECT MAX( dokversion ) INTO @DATA(lf_max_version)
FROM doktl
WHERE object = 'Zxxx'
AND langu = @LF_langu.

SELECT * FROM doktl INTO TABLE @DATA(lt_doktl)
WHERE object = 'Zxxx'
AND langu = @LF_langu
AND dokversion = @LF_max_version.

LOOP AT lt_doktl ASSIGNING FIELD-SYMBOL(<lf_line>).
APPEND INITIAL LINE TO gt_hl ASSIGNING FIELD-SYMBOL(<ls_hl>).
<ls_hl>-TDFORMAT = <lf_line>-dokformat.
<ls_hl>-TDLINE = <lf_line>-doktext.
ENDLOOP.

CALL FUNCTION 'HELP_DOCULINES_SHOW'
EXPORTING
cucol = 10
curow = 3
help_infos = gs_help_infos
linenr = 1
* not_help = ' '
* overlay_header = ' '
* suppress_viewer = ' '
* classic_sapscript = ' '
IMPORTING
help_popup_cancel = lf_popup_cancel
TABLES
excludefun = gt_ef
helplines = gt_hl.

Regards,
Lars