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: 

regarding f4 help in dialog pgmng screens

Former Member
0 Kudos

hello all

the scenario is about flight reservation system.the screen is having fields like departure city , departure_airport . i m creating F4 help on departture_airport but before i press F4 on this filed assume that i have already entered the the departure city. so this is where my requirement is ,when i press F4 on departure_airport it gives me the default selction screen provided by SAP having departure city to be entered . NOW i want watever citty i enter in the departurecity field should appear bydefault on the standard selection screen when i press F4 on the departure_airports . Is it possible ? if yes then how ?

Thanks in advance .

Nilesh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can use FM 'DYNP_VALUES_READ' to read the value entered by the use in any field of the selection screenby passing relevant paramters. Then depending upon the value of the field you desire, you can appropiately fill an internal table and call 'F4IF_INT_TABLE_VALUE_REQUEST' to display the desired list.

5 REPLIES 5

Former Member
0 Kudos

hi

just refer to the link below

http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g

hope it may help u.

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Former Member
0 Kudos

You can use FM 'DYNP_VALUES_READ' to read the value entered by the use in any field of the selection screenby passing relevant paramters. Then depending upon the value of the field you desire, you can appropiately fill an internal table and call 'F4IF_INT_TABLE_VALUE_REQUEST' to display the desired list.

Former Member
0 Kudos

please see this below program it is for F4 Help of the filght model .

REPORT zdemof4_help_module .

TYPES: BEGIN OF values,
         carrid TYPE spfli-carrid,
         connid TYPE spfli-connid,
       END OF values.

DATA: carrier(3) TYPE c,
      connection(4) TYPE c.

DATA: progname TYPE sy-repid,
      dynnum   TYPE sy-dynnr,
      dynpro_values TYPE TABLE OF dynpread,
      field_value LIKE LINE OF dynpro_values,
      values_tab TYPE TABLE OF values.

CALL SCREEN 100.

MODULE init OUTPUT.
  progname = sy-repid.
  dynnum   = sy-dynnr.
  CLEAR: field_value, dynpro_values.
  field_value-fieldname = 'CARRIER'.
  APPEND field_value TO dynpro_values.
ENDMODULE.

MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.

MODULE value_carrier INPUT.

  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
       EXPORTING
            tabname     = 'DEMOF4HELP'
            fieldname   = 'CARRIER1'
            dynpprog    = progname
            dynpnr      = dynnum
            dynprofield = 'CARRIER'.

ENDMODULE.

MODULE value_connection INPUT.

  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            dyname             = progname
            dynumb             = dynnum
            translate_to_upper = 'X'
       TABLES
            dynpfields         = dynpro_values.

  READ TABLE dynpro_values INDEX 1 INTO field_value.

  SELECT  carrid connid
    FROM  spfli
    INTO  CORRESPONDING FIELDS OF TABLE values_tab
    WHERE carrid = field_value-fieldvalue.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            retfield    = 'CONNID'
            dynpprog    = progname
            dynpnr      = dynnum
            dynprofield = 'CONNECTION'
            value_org   = 'S'
       TABLES
            value_tab   = values_tab.

ENDMODULE.

reward points if it is usefull ....

Girish

Former Member
0 Kudos

Hi,

I suppose you have a ztable with fields including dep_city and dep_airport. Then you need to have an elementary search help for the respective field created by you with the structure of your table.

In layout you select your field and in name field you give your table name and the field name(ztable-dep_airport). Now in attributes you give search help name you created for the field.

It may work i am not sure.

Regards .

Tharanatha

Rewards if useful .