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: 

Create own F1

Former Member
0 Kudos

I'd like to create my own F1 in a selection screen.

- Any FM Module to suggest ?

- Any suggestion on how to do it well, so it is well integrated in SAP?

9 REPLIES 9

Former Member
0 Kudos

AT SELECTION-SCREEN ON HELP REQUEST.

0 Kudos

I know how to do it!

But would you suggest any function module for creating my onw!

For example for the F4 you could suges

HELP_VALUES_GT_WITH_DD_TABLE ...

What I need is for F1 ....

0 Kudos

Check and see if this helps...

DSYS_SHOW_FOR_F1HELP

Do a where used list for this FM and see how it can be used...

Thanks,

Renjith

0 Kudos

Hello Stephan,

e.g. the FM DYN_FIELD_F1_HELP, or the there included FM HELP_OBJECT_SHOW_FOR_FIELD.

Regards Wolfgang

0 Kudos

I cannot give reward anymore!

weird!

0 Kudos

Hi Stephan,

<b>HELP_DOCULINES_SHOW</b> using this FM, you can give your own F1 help.

Just run it from se37, by filling <b>Helplines</b> table parameter with some text.

and run it will show the help in window similar to normal F1 help,check it. this can be used in event POH(process on help request).

regards

vijay

regards

vijay

0 Kudos
 DATA: HELPINFO LIKE HELP_INFO.
 DATA: LONGTEXT LIKE TLINE OCCURS 1 WITH HEADER LINE.
DATA: EXCLUDEFUN LIKE SY-UCOMM OCCURS 1 WITH HEADER LINE.
      longtext-tdline = 'Sales Order'.
      append longtext.
CALL FUNCTION 'HELP_DOCULINES_SHOW'
  EXPORTING
   CUCOL                   = 10
   CUROW                   = 3
    HELP_INFOS              = HELPINFO
   LINENR                  = 1
  TABLES
    EXCLUDEFUN              = EXCLUDEFUN
    HELPLINES               = LONGTEXT
          .

try this ..

regards

vijay

0 Kudos

Hi

This is a piece of code that I used in my program:

PROCESS ON HELP-REQUEST.

FIELD P_LFA1 MODULE HELP_F1_LIFNR.

MODULE HELP_F1_LIFNR INPUT.

PERFORM SHOW_HELP_F1 USING 'ZFAG_DOC1'.

ENDMODULE. " help_f1_lifnr INPUT

FORM SHOW_HELP_F1 USING P_OBJECT.

  • Dati testo help

DATA: T_LINE LIKE TLINE OCCURS 0,

XHEAD LIKE THEAD,

HELP_INFO LIKE HELP_INFO,

TEXC LIKE SY-UCOMM OCCURS 0,

V_OBJECT LIKE DOKHL-OBJECT.

  • Costante

DATA: PREF_SIMG(4) VALUE 'SIMG',

DOCID_HY LIKE DOKHL-ID VALUE 'HY'.

  • Testo

CONCATENATE PREF_SIMG P_OBJECT INTO V_OBJECT.

  • Estrazione testo

CALL FUNCTION 'DOCU_GET_FOR_F1HELP'

EXPORTING

ID = DOCID_HY

LANGU = SY-LANGU

OBJECT = V_OBJECT

IMPORTING

HEAD = XHEAD

TABLES

LINE = T_LINE

EXCEPTIONS

RET_CODE = 1

OTHERS = 2.

CASE SY-SUBRC .

WHEN 0.

  • Visualizzazione testo

GET CURSOR FIELD HELP_INFO-DYNPROFLD.

HELP_INFO-DOCUID = DOCID_HY.

HELP_INFO-DOCUOBJECT = V_OBJECT.

HELP_INFO-SPRAS = SY-LANGU.

HELP_INFO-PROGRAM = SY-REPID.

HELP_INFO-DYNPRO = SY-DYNNR.

HELP_INFO-DYNPPROG = SY-REPID.

HELP_INFO-PFKEY = SY-PFKEY.

HELP_INFO-FIELDNAME = HELP_INFO-DYNPROFLD.

CALL FUNCTION 'HELP_DOCULINES_SHOW'

EXPORTING

HELP_INFOS = HELP_INFO

OVERLAY_HEADER = XHEAD

TABLES

EXCLUDEFUN = TEXC

HELPLINES = T_LINE.

WHEN OTHERS. MESSAGE S720(SH).

ENDCASE.

ENDFORM. " SHOW_HELP_F1

I created the document is shwon by trx SO72.

Max

Lakshmant1
Active Contributor
0 Kudos

Hi Stephan,

Have a look at demo programs,

DEMO_DYNPRO_F1_HELP

DEMO_SELECTION_SCREEN_F1

Hope this helps.

Thanks

Lakshman