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

problem in POH in module pool

Former Member
0 Likes
645

Hi abapers,

      i create a screen in module pool. bukrs is a I/O field in this screen. now i want to create F1 help.

my code:

PROCESS BEFORE OUTPUT.
* MODULE STATUS_0001.
*
PROCESS AFTER INPUT.
  MODULE USER_COMMAND_0001.

PROCESS ON HELP-REQUEST.
    FIELD BUKRS MODULE MOD1.

CALL FUNCTION 'HELP_OBJECT_SHOW'
   EXPORTING
     DOKCLASS                            = 'TX'
    DOKLANGU                            = SY-LANGU
     DOKNAME                             = 'ZDOC'
    DOKTITLE                            = 'COMPANY CODE '
*   CALLED_BY_PROGRAM                   = ' '
*   CALLED_BY_DYNP                      = ' '
*   CALLED_FOR_TAB                      = ' '
*   CALLED_FOR_FIELD                    = ' '
*   CALLED_FOR_TAB_FLD_BTCH_INPUT       = ' '
*   MSG_VAR_1                           = ' '
*   MSG_VAR_2                           = ' '
*   MSG_VAR_3                           = ' '
*   MSG_VAR_4                           = ' '
*   CALLED_BY_CUAPROG                   = ' '
*   CALLED_BY_CUASTAT                   =
*   SHORT_TEXT                          = ' '
*   CLASSIC_SAPSCRIPT                   = ' '
   TABLES
     LINKS                               = LINK
* EXCEPTIONS
*   OBJECT_NOT_FOUND                    = 1
*   SAPSCRIPT_ERROR                     = 2
*   OTHERS                              = 3
           .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
  EXPORTING
    DOKLANGU                            = SY-LANGU
*   DOKTITLE                            = ' '
*   CALLED_BY_TCODE                     =
    CALLED_BY_PROGRAM                   = SY-CPROG
    CALLED_BY_DYNP                      = SY-DYNNR
    CALLED_FOR_TAB                      = 'EKKO'
    CALLED_FOR_FIELD                    = 'BUKRS'
*   CALLED_FOR_TAB_FLD_BTCH_INPUT       =
*   CALLED_BY_CUAPROG                   =
*   CALLED_BY_CUASTAT                   =
*   MERGE_DZ_IF_AVAILABLE               =
*   MEMORYID                            =
*   EXPLICIT_MEMORYID                   = ' '
  TABLES
    LINKS                               = LINK
*   EXCLUDEFUN                          =
* EXCEPTIONS
*   OBJECT_NOT_FOUND                    = 1
*   SAPSCRIPT_ERROR                     = 2
*   OTHERS                              = 3
           .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE.                 " MOD1  INPUT

when we click f1 on bukrs then only text information has come which is created in se61 tcode. text document name = zdoc. but any technical information has not come. why???

  i want text information and also technical information.

please solve it and also post any code regarding this topic.

regards

Sabyasachi Karforma

4 REPLIES 4
Read only

Former Member
0 Likes
599

Hi abap ers please reply.....

Regards

Sabyasachi

Read only

0 Likes
599

In flow logic.

PROCESS ON VALUE-REQUEST.

  FIELD matnr MODULE f4_bukrs.

module f4_matnr.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

  EXPORTING

    RETFIELD               = 'nukrs'       Value from popup window

   DYNPPROG               = SY-CPROG

   DYNPNR                 = SY-DYNNR

   DYNPROFIELD            = 'bukrs'       value to screen field name

   VALUE                  = ' '

   VALUE_ORG              = 'S'

  TABLES

    VALUE_TAB              = 'ekko'         value table.

endmodule.

If you want the value base on other field

declare this table and wa.

dynpro_values TYPE TABLE OF dynpread,

field_value   LIKE LINE OF dynpro_values,

module f4_field2.

field_value-fieldname = 'matnr'.

  APPEND field_value TO dynpro_values.

CALL FUNCTION 'DYNP_VALUES_READ'

  EXPORTING

    DYNAME                               = SY-CPROG

    DYNUMB                               = SY-DYNNR

  TABLES

    DYNPFIELDS                           = dynpro_values

.

Hope This will help you.

vinoth

Read only

0 Likes
599

Hi vinoth,

    do you understand my question?????? 1st read my question..........i am talking about process on help-request, not value-request.....dont post at SCN without understand the question........................

Read only

0 Likes
599

Hi Sabyasachi,

Please make the I/O Fields reffered to a DDIC Structure.

like <Structure>-Your Field in the name of the element deleration box in the module pool.

Your F1 help would appear.

Also you can avoid giving POH , then also it works.

The SE61 text and Technical information are visible wihout POH also if he element is bein referred to the DDIC structure.

Please try this.

Regards,

Amit