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

F1 help

Former Member
0 Likes
573

I have to create 4 screens with close to 15 fields in each screen.

On pressing F1 on any of the field in 1st screen, some text "ABC" should be displayed.

Few of these screen fields have similar lengths and data types.

Similarly, on pressing F1 on the 2nd screen field, some other text"xyz" should dispalyed ,

similarly for 3rd and 4th screen.

In this screen ,I should create15*4 = 60 data elements , where first 15 data elements have description "ABC",next 15 have description "XYZ".and so on...

Is there any other solution to the above problem without creating those many(60) data elements?

One more question:Other than data element level, is there any other way to maintain F1 help text for a screen field?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
523

Hi,

You mean for 1st 15 same documentation ,for 2nd 15 other and so on,so in all 4 different documentaions!!!

what you can do is create these 4 Data element and create documentaion for them.

now for the similar 15 fields you can call this documentaion by using

In screen's flow logic:

PROCESS ON HELP-REQUEST .
*call form to show documentaion
FIELD <field1> MODULE show_f1.

In program:

MODULE show_f1 INPUT.
      CALL FUNCTION 'TRINT_SHOW_DOCU_POPUP'
        EXPORTING
          IV_ID                = 'RE'     " ID , cud be found in Table DOKHL for active Documentation
          IV_LANGU             = SY-LANGU
          IV_OBJECT            = <Obj name in CAPS>   " Program name
       EXCEPTIONS       
  DOCU_NOT_FOUND       = 1
         OTHERS               = 2.
ENDMODULE.

in similar ways u can call the 4 diff documentation for fields...

Regards,

Neha

2 REPLIES 2
Read only

Former Member
0 Likes
523

hi,

see sample code below....(this is for selecion-screen)


REPORT  Ztest....
parameters x1.
parameters x2.

at selection-screen on help-request for x1.
* here you can display own help-dialog...
*ex. call screen 101...

at selection-screen on help-request for x2.
* here you can display own help-dialog...
*ex. call screen 102...

regards,darek

Read only

Former Member
0 Likes
524

Hi,

You mean for 1st 15 same documentation ,for 2nd 15 other and so on,so in all 4 different documentaions!!!

what you can do is create these 4 Data element and create documentaion for them.

now for the similar 15 fields you can call this documentaion by using

In screen's flow logic:

PROCESS ON HELP-REQUEST .
*call form to show documentaion
FIELD <field1> MODULE show_f1.

In program:

MODULE show_f1 INPUT.
      CALL FUNCTION 'TRINT_SHOW_DOCU_POPUP'
        EXPORTING
          IV_ID                = 'RE'     " ID , cud be found in Table DOKHL for active Documentation
          IV_LANGU             = SY-LANGU
          IV_OBJECT            = <Obj name in CAPS>   " Program name
       EXCEPTIONS       
  DOCU_NOT_FOUND       = 1
         OTHERS               = 2.
ENDMODULE.

in similar ways u can call the 4 diff documentation for fields...

Regards,

Neha