Process on value request in Dialog screen based on value of screen field

Hello Gurus,
I have a check box on a dialog screen. If the checkbox is checked, based on that I want the other field on the same dialog screen to follow logic for F4 dropdown.
Now I know if I want to write this, I have to write this in Process on value-request. But how do I get the value of the check box checked or not on the same screen in Process on value-request.
If it had been a simple selection screen I would have defined the check box as
Parameter: v_checkbox as checkbox user-command uc1.
But how do I handle above situation in dialog screen case ?
Please help.
Regards,
Jainam.
Edited by: Jainam Shah on Sep 29, 2009 6:19 PM

Hi Shah,
You have the addition for MODULE statement as ON INPUT.
Eg :  FIELD <screen field> MODULE <module> ON INPUT.
You can give the check box field name in the above statement.
If you want to find as soon as the check box is checked, you can find it here.
Or else, in the addition ON REQUEST
  you can see for the check box field value whether it is checked or not.
Thanks,
Prasad

Similar Messages

  • Want 2 populate value in 2nd list item based on value selected in 1st list?

    Want 2 populate value in 2nd list item based on value selected in 1st list?

    Gaurav -
    The 3rd list will not populate because nothing has been selected yet in list 2. The value in list 2 is null, so the loop to populate list (3) has nothing to load. Try the following below. This should seed your 2nd list so the 3rd list will populate.
    You will have to declare first_record boolean and first_value to match DESCC.
    first_record := true; -- NEW *****
    Clear_List('BLOCK2.ITEM2');
    FOR CurRec IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.IDD = :BLOCK2.ITEM1)
    LOOP
    if first_record = true then -- NEW SECTION *****
    first_value := CurRec.DESCC;
    first_record := false;
    end if;
    Add_List_Element('BLOCK2.ITEM2',1,CurRec.DESCC,CurRec.DESCC);
    END LOOP;
    :block2.item2 := first_value; -- NEW *****
    Clear_List('BLOCK2.ITEM3');
    FOR CurRec2 IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.DESCC = :BLOCK2.ITEM2)
    LOOP
    Add_List_Element('BLOCK2.ITEM3',2,CurRec2.DESCC,CurRec2.DESCC);
    END LOOP;
    My name is Ken, 1990 is when I started using Oracle Forms 3.0, character based in the Unix environments. And you are very welcome.

  • Validate a field on selection screen based on value entered on anothr field

    HI,
    There is a program with some fields in selection screen in EWM. The first field is Warehouse. I need to add another field 'Entity to Dispose' in such that what ever value I enter in Warehouse field, its corresponding values should only be displayed as F4 help for 'Entity to Dispose' field.
    For eg: If I select the warehouse as 0799(lets say), then the F4 help for Entity to Dispose field should display only the values which are related to warehouse 0799 (and any other values pertaining to other warehouse should not appear).
    Could anyone suggest, how this can be achieved?
    Thanks in advance.
    Regards,
    Pavan

    Hi,
    You can use FM
    DYNP_VALUES_READ
    DYNP_VALUES_UPDATE
    to read the another field value and Using that field build your internal table for f4 values.
    and use FM F4IF_INT_TABLE_VALUE_REQUEST for F4 values..
    do this on AT SELECTION-SCREEN ON VALUE REQUEST FOR <YOUR_F4_FIELDNAME>.

  • Updating a field on one screen based on values in another screen

    We have defined a new screen (ccalled Customer Data) for the Business Partner transaton BP.
    On this screen is a new field that has been defined and appended to BUT000. The field is a kind of customer GUID that allocates a unique ID string to a customer (we call it a matchcode, not to be confused with the SAP standard meaning).
    The value in the field is calculated by a function module, which needs uses some of the address data on the standard address tab of the BP transaction. If that data on the address screen changes, then the following needs to happen:
    1) The matchcode field on the Customer Data screen needs to be updated.
    2) When saved, the new matchcode is updated to the database (not a problem if the matchcode is recalcuated on the Customer Data screen).
    Here are the questions:
    1) How can I access the updated data on the address screen in the Customer Data screen? I was under the impression that the funtion modules which respond to events on each page are in their own function groups, so I cannot see the changed data from any function module bound to the Customer Data screen events. Is that true?
    2) How could I access the changed data on the address screen to re-calculate the matchcode field?
    BR,
    Tony.

    Closed; I spent a lot of time analysing this.Answer I think is no.
    1) No guarantee of the order in which the screens are processed (DSAVE event for addresses is after DSAVE for custom screen, so scratch that).
    2) Data exists in separate memory areas for separate screens and needs to be passed by EXPORT/IMPORT. 1) prevents this.

  • How to populate the next screen based on the previous screen table control

    Hi Experts,
            Is this possible to generate the next screen values based on the table control values in previous screen.
    My Requirement is
    In my First screen i m having 5-7 regional offices in table control and also amount field for each regional offices.(amount field is editable)
    User has to enter amount field for Regional office..based on the amount field i need to process the next screen. For Ex if user is entering  amount for 3 regional offices out of 7 regional offices then i need to get the screen for the 3 regional offices..
    Pls suggest me how to do this..
    Regards,
    Zakir

    Hi Zakir,
    Do you have any button for calling the second screen after entering amount in the first table control screen or you have to call the screen on pressing enter on the table control?
    You will have to handle it in the PAI of the table control loop.Get data entered in the table control in your internal table of table control.You can prepare the data passed to the next screen from this internal table. Fill the second screen elements and Use CALL SCREEN XXX. XXX is your second screen no.
    Thanks,
    Pawan

  • How to use F4 help in screens(Process on Value-request) ?

    Hi experts,
      Can someone provide me some code which uses Process on Value-request in dialog programming? I have  a requirement of entering a path on a modal dialog box that i have designed and i need to attach the f4_filename function module to it ?Please help...
    Thanks in advance,
    regards
    Ashwin.

    Hi Ashwin,
    Can use the function module HELP_VALUES_GET_NO_DD_NAME.
    Here is the sample code that can help you using this for F4 help.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_field-low.  
      PERFORM F4_HELP.                                
    *&      Form  F4_HELP
    FORM F4_HELP .
      CLEAR   : I_FIELDS1,I_CONTENTS1.
      REFRESH : I_FIELDS1,I_CONTENTS1.
      I_FIELDS1-TABNAME    = 'YHPA0TPROJ'.
      I_FIELDS1-FIELDNAME  = 'YHPPROJ'.
      I_FIELDS1-SELECTFLAG = 'X'.
      APPEND I_FIELDS1.
      CLEAR  I_FIELDS1.
      I_FIELDS1-TABNAME    = 'YHPA0TPROJ'.
      I_FIELDS1-FIELDNAME  = 'YHPPDES'.
      I_FIELDS1-SELECTFLAG = ' '.
      APPEND I_FIELDS1.
      CLEAR  I_FIELDS1.
      SELECT YHPPROJ
             YHPPDES
             FROM YHPA0TPROJ
             INTO TABLE I_CONTENTS1.
      IF NOT I_CONTENTS1[] IS INITIAL.
        CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME'
             EXPORTING
                  SELECTFIELD                  = 'YHPPROJ'
             IMPORTING
                  IND                          = V_IND1
             TABLES
                  FIELDS                       = I_FIELDS1
                  FULL_TABLE                   = I_CONTENTS1
             EXCEPTIONS
                  FULL_TABLE_EMPTY             = 1
                  NO_TABLESTRUCTURE_GIVEN      = 2
                  NO_TABLEFIELDS_IN_DICTIONARY = 3
                  MORE_THEN_ONE_SELECTFIELD    = 4
                  NO_SELECTFIELD               = 5
                  OTHERS                       = 6.
        IF SY-SUBRC EQ 0.
          READ TABLE I_CONTENTS1 INDEX V_IND1.
          P_PROJ   = I_CONTENTS1-YHPPROJ.
         P_YHPDES = I_CONTENTS1-YHPPDES.
        ENDIF.
      ELSE.
       MESSAGE I000(YHPA0K) WITH 'No projects available'.
        MESSAGE I519(YHPA0K). " No projects available
        EXIT.
      ENDIF.
    ENDFORM.                   
    Hope this helps you.
    Regards,
    Saumya

  • AT SELECTION-SCREEN ON VALUE-REQUEST  - what has the user entered so far?

    Hi,
    the online help says to
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xyz.
    With the events for the field and input help, no data is transported between the selection screen and the ABAP program
    p_xyz is indeed empty at this event, but is there really no way to find out what the user had entered so far?

    Did you try a call to FM DYNP_VALUES_READ (Check at [Input Help in Dialog Modules|http://help.sap.com/SAPhelp_nw70/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/frameset.htm])
    Regards,
    Raymond

  • PROCESS ON HELP-REQUEST

    Hi
    wat is importance of POH. what If there is no PROCESS ON HELP-REQUEST ?
    Thanks and regards
    - Puneet Sharma.

    To display data element supplement documentation, you must code the following screen flow logic in the POH event:
    PROCESS ON HELP-REQUEST.
      FIELD <f> [MODULE <mod>] WITH <num>.
    After PROCESS ON HELP-REQUEST, you can only use FIELD statements. If there is no PROCESS ON HELP-REQUEST keyword in the flow logic of the screen, the data element documentation for the current field, or no help at all is displayed when the user chooses F1. Otherwise, the next FIELD statement containing the current field <f> is executed.
    If there is screen-specific data element supplement documentation for the field <f>, you can display it by specifying its number <num>. The number <num> can be a literal or a variable. The variable must be declared and filled in the corresponding ABAP program.
    You can fill the variables, for example, by calling the module <mod> before the help is displayed. However, the FIELD statement does not transport the contents of the screen field <f> to the ABAP program in the PROCESS ON HELP-REQUEST event.

  • "ON VALUE REQUEST FOR" Activation Error!

    Hi All,
    Am using a field on my Selection Screen:
    SELECT-OPTIONS s_kh_ch FOR p9240-subty NO INTERVALS.
    When, am calling an event, to populate the search help for this field:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_kh_ch-low.
    PERFORM f_call_f4_help TABLES git_subty_9240 USING 'SUBTY' 'P9240-SUBTY'.
    It is giving an activation error!
    "ON VALUE REQUEST FOR" should be followed by <parameter> or <select-option>-LOW/<select-option>-HIGH.
    BUT, For your Information, the same On Value Request For event works well, when i define the field as PARAMETER!
    Why is this error being thrown ? Anyone faced this kind of activation error?
    Kindly Help...
    Thanks in advance.
    Rgds,
    Sundar.

    HI,
    try this
    data: g type anla-anln1.
    data: itab like anla occurs 0 with HEADER LINE.
    select-options s for g.
    at selection-SCREEN on VALUE-REQUEST FOR s-low.
      perform routine tables itab
                       using s-low.
    *&      Form  routine
          text
         -->P_ITAB  text
         -->P_S_LOW  text
    FORM routine  TABLES   P_ITAB STRUCTURE anla
                  USING    P_S_LOW.
    ENDFORM.                    " routine
    reward points if helpful,
    regards,
    venkatesh

  • Warning  6226: Ignoring value requested for first connection attribute 'TempSize'

    Hi
    Was trying to load, here is what I see. Appreciate your help.
    con1: Command> load cache group g_sdata_awt commit every 1000 rows;
    5056: The cache operation fails: error_type=<TimesTen Error>, error_code=<3407>, error_message: [TimesTen]TT3407: Cannot allocate space to store ownership information for global cache groups because temporary data partition free space is below the minimum threshold of 3000000 bytes - from grid member DDGRID_DD_TTDB_1
    The command failed.
    con1: Command>
    [timesten@timesten101 info]$ ttisql -connstr "dsn=DD_TTDB;tempsize=4096";
    Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
    Type ? or "help" for help, type "exit" to quit ttIsql.
    connect "dsn=DD_TTDB;tempsize=4096";
    Warning  6226: Ignoring value requested for first connection attribute 'TempSize' -- value currently in use: 32, requested value: 4096
    Connection successful: DSN=DD_TTDB;UID=timesten;DataStore=/home/timesten/TimesTen/ttdev/DD_TTDB;DatabaseCharacterSet=AL32UTF8;ConnectionCharacterSet=US7ASCII;DRIVER=/home/timesten/TimesTen/ttdev/lib/libtten.so;LogDir=/home/timesten/TimesTen/ttdev/logs/DD_TTDB;PermSize=8196;TempSize=4096;TypeMode=0;OracleNetServiceName=VIS1;
    (Default setting AutoCommit=1)
    Command>
    I tried :
    HOWTO : Understand Modifying TimesTen PermSize And TempSize First Connect Database Attributes (Doc ID 1081008.1)
    It did not help! Thanks a lot.
    Anil

    Hi Chris, Thanks a lot again! I guess I followed the steps.
    Sorry in a rush to get this done, not able to read all the docs.
    Still getting the error, can you please point to me where I am going wrong:
    Sorry for being childish pest here, tried it hard but couldnt get too far.
    [timesten@timesten101 ~]$ ttadmin -rampolicy manual DD_ttdb
    RAM Residence Policy            : manual
    Manually Loaded In RAM          : False
    Replication Agent Policy        : manual
    Replication Manually Started    : False
    Cache Agent Policy              : manual
    Cache Agent Manually Started    : False
    [timesten@timesten101 ~]$ ttdaemonadmin -stop;
    TimesTen Daemon stopped.
    [timesten@timesten101 ~]$ ttdaemonadmin -start;
    TimesTen Daemon startup OK.
    [timesten@timesten101 ~]$ ttstatus;
    TimesTen status report as of Mon Feb 10 08:47:28 2014
    Daemon pid 19519 port 53396 instance ttdev
    TimesTen server pid 19528 started on port 53397
    Data store /home/timesten/TimesTen/ttdev/DD_TTDB
    There are no connections to the data store
    RAM residence policy: Manual
    Data store is manually unloaded from RAM
    Replication policy  : Manual
    Cache Agent policy  : Manual
    PL/SQL enabled.
    Accessible by group ttadmin
    End of report
    [timesten@timesten101 ~]$
    [timesten@timesten101 ~]$ ttadmin -rampolicy inuse DD_ttdb
    RAM Residence Policy            : inUse
    Replication Agent Policy        : manual
    Replication Manually Started    : False
    Cache Agent Policy              : manual
    Cache Agent Manually Started    : False
    [timesten@timesten101 ~]$ ttstatus
    TimesTen status report as of Mon Feb 10 08:47:59 2014
    Daemon pid 19519 port 53396 instance ttdev
    TimesTen server pid 19528 started on port 53397
    Data store /home/timesten/TimesTen/ttdev/DD_TTDB
    There are no connections to the data store
    Replication policy  : Manual
    Cache Agent policy  : Manual
    PL/SQL enabled.
    Accessible by group ttadmin
    End of report
    [timesten@timesten101 ~]$ ttisql -connstr "dsn=DD_TTDB;uid=cacheadm;pwd=cacheadm;oraclepwd=cacheadm";
    Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
    Type ? or "help" for help, type "exit" to quit ttIsql.
    connect "dsn=DD_TTDB;uid=cacheadm;pwd=cacheadm;oraclepwd=cacheadm";
    15019: Only the instance admin may alter the TempSize attribute
    The command failed.
    Done.
    [timesten@timesten101 ~]$

  • Populate values in f4 dialog screen based on the values in selction screen

    hi,
    i have done a module program where i would enter the details like ssales org ,division,distribution channel in the selection screen and would enter the screen having the table control... in that table control i have a field for customer code.. when i press f4 for cus code.,dialog box appears for the cus code and in that , sales group tab should be selected and the divsion ,dist channel and sales organisation i gave in the slection screen should be displayed as default...how can i do this ..
    since there is no screen no as such i am finding it difficult to crack.
    with thanks in advance ,
    syed

    if you do not give a specific number to selection-screen, its dynpro number is 1000.
    So in POV (AT SELECTION-SCREEN ON VALUE-REQUEST) use the classical DYNP_VALUES_READ with dynumb  = '1000' to get current values from screen, then you can
    - Fill yourself an internal table and call F4IF_INT_TABLE_VALUE_REQUEST
    - Call F4IF_FIELD_VALUE_REQUEST using CALLBACK_PROGRAM and CALLBACK_FORM to call a form in your report that will be executed by the search-help and there (look at online documentation) will change the default values of subfiled (itab) SELOPT of  SHLP parameter (type SHLP_DESCR_T)
    Sample of the second case (there are already too many samples for the first on sdn)
    .* POV
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_umskz.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                tabname          = 'BSID'
                fieldname        = 'UMSKZ'
                callback_program = g_repid " copy of sy-repid
                callback_form    = 'CGS_DEBITOR'
           TABLES
                return_tab       = return_tab
           EXCEPTIONS
                OTHERS           = 1.
    * Form for callback
    FORM cgs_debitor TABLES   record_tab STRUCTURE seahlpres
                     CHANGING shlp TYPE shlp_descr_t
                              callcontrol LIKE ddshf4ctrl.
    * Local data
      DATA: ddshiface TYPE ddshiface,
            worklist LIKE lumskz,
            dynpfields TYPE TABLE OF dynpread WITH HEADER LINE.
    * Only D-ebitor
      LOOP AT shlp-interface INTO ddshiface WHERE shlpfield = 'KOART'.
        ddshiface-valtabname = 'BSID'.
        ddshiface-valfield   = 'KOART'.
        ddshiface-value      = 'D'.
        MODIFY shlp-interface FROM ddshiface.
      ENDLOOP.
    ENDFORM.
    .Regards,
    Raymond

  • Within FM not possible AT SELECTION-SCREEN or PROCESS ON VALUE-REQUEST

    Hello !
    Within a "User Help Exit" must be called the FM named
    C14F_LOV_WAID. How can I adress this FM
    for a field.
    The goal is if user klicks on F4 the this FM mist be called.
    please notice a user help exit is like a Function Modul.
    e.g.
    FUNCTION zuser_help_exit.
    ENDFUNcTION.
    Within this block FM block above I can't say:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR<FIELD>
    or
    PROCESS ON VALUE-REQUEST.
    FIELD <field-name> MODULE create_dropdown_box.
    Regards
    Ertas Ilhan

    HI
      well I am not sure about this it works or not but we have various function modules which we can call in other function modules to provide F4 help i mean to say that call Function module inside a Function Module
    F4IF_INT_TABLE_VALUE_REQUEST
    F4IF_FIELD_VALUE_REQUEST.
    Try out these Fm calling ..
    I hope it helps you am not sure
    Regards
    Pavan

  • List bos in dialog programming through  process on value-request

    Dear all,
                  i am using FM to get list box but not getting list of values , i am getting blank screen , on which getting header stmt
    Restrict value range (1)    3 entries found.
    TYPES : BEGIN OF F4_VALUES,
          TYPE(5) TYPE C,
          END OF F4_VALUES.
    DATA: F4_VALUE TYPE TABLE OF F4_VALUES WITH HEADER LINE.
    DATA:  PROGNAME LIKE SY-REPID,
           DYNNUM LIKE SY-DYNNR.
    PROCESS ON VALUE-REQUEST.
    FIELD WA_DATA-TYPE MODULE EXP_TYPE.
    MODULE exp_type INPUT.
    CLEAR F4_VALUE.
    REFRESH F4_VALUE.
    F4_VALUE-TYPE = 'Shift'.
    APPEND F4_VALUE.
    F4_VALUE-TYPE = 'Flat'.
    APPEND F4_VALUE.
    F4_VALUE-TYPE = 'Day'.
    APPEND F4_VALUE.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
        RETFIELD               = 'TYPE'
       DYNPPROG               = PROGNAME
       DYNPNR                 = DYNNUM
       DYNPROFIELD            = 'WA_DATA-TYPE'
       VALUE_ORG              = 'S'
       MULTIPLE_CHOICE        = ' '
      TABLES
        VALUE_TAB              = F4_VALUE
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 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.
    Thanks in advance.
    Vijay dwivedi

    hii vijay,
    1. There are two important things :
    a)PARAMETERS : a(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
    b) Fm VRM_SET_VALUES
    2. just copy paste
    3.
    REPORT abc.
    TYPE-POOLS : vrm.
    DATA : v TYPE vrm_values.
    DATA : vw LIKE LINE OF v.
    PARAMETERS : a(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
    INITIALIZATION.
    vw-key = '1'.
    vw-text = 'Jan'.
    APPEND vw TO v.
    vw-key = '2'.
    vw-text = 'Feb'.
    APPEND vw TO v.
    vw-key = '3'.
    vw-text = 'Mar'.
    APPEND vw TO v.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'A'
    values = v
    EXCEPTIONS
    id_illegal_name = 1
    OTHERS = 2.
    Check the link -
    How to fill the values in List Box?
    List Box
    rgrds,
    Shweta
    Edited by: Shweta Joon on Aug 24, 2009 1:19 PM

  • Process on Value-Request in Screen Exit

    Hi,
    I have few fields in the screen exit to be supported with F4 Value Help. These values are not from R3 Dictionary Tables. The Values are N, P, T, F, R, K, M, G etc. When the User Clicks the Drop Down, all the possible values should appear in a small window near the screen filed. Can any one please suggest me a suitable solution for this requirement.
    Thanks for your Help in Advance.
    Kannan

    Hi,
    You can use the FM 'F4IF_INT_TABLE_VALUE_REQUEST'
    TABLES: T005T.
    DATA: BEGIN OF t_t005 OCCURS 0,
            land1 TYPE t005-land1,
          END OF t_t005.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(6) v_text FOR FIELD P_LAND1.
    PARAMETERS: p_land1  TYPE t005-land1.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
      v_text = 'Country'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_land1.
      REFRESH: t_t005.
      SELECT land1
             INTO TABLE t_t005
             FROM t005.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
               DDIC_STRUCTURE   = 'T005'
                PVALKEY          = ' '
                retfield         = 'LAND1'
                dynpprog         = sy-repid
                DYNPNR           = sy-dynnr
                dynprofield      = 'P_LAND1'
                callback_program = sy-repid
                value_org        = 'S'
           TABLES
                value_tab        = t_t005
           EXCEPTIONS
                parameter_error  = 1
                no_values_found  = 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.
    Thanks,
    Naren

  • F4 help needed in Process on value-request

    Hi,
    I have two fields on screen: region and its description in a dialog program. I want region description to be populated as soon as I  select F4 help for region. Description field is output only . I want to do it using a module in Process On value-request. Field p_region MODULE GET_REGION_DESCRIPTION.
    Using standard F4 help I can do it. If in my table I assign search help at field level for region. For example :
    Search Help: ZREGION_SHLP.  Selection method: ZREGION. Fields: Region and Description.
    Table name : ZREGION.
    i)   1st Fields:  REGION , Data Element - ZREGN, Domain: ZZREGN ( CHAR2), Value table: ZREGN. Assign Search help at field level instead of data element level.
    ii)   2nd Field: REGION_DESC, Data Element - BEZEI30.
    in program:  DATA: p_region like zregion-region. So if I press F4 help and select one region, description field gets populated.
    I don't want to use standard functionality but want to write code in POV event. If I use F4IF_INT_TABLE_VLUE_REQUEST  function module, I will get all the values associated with the field region. Since I don't know which region user has selected, i  can't populate description. How to get the selected value in POV for that particular field. How can I get the value selected for region and then use DYNP_VALUES_UPDATE function module to update the description field. I tried search help exit event return to return the selected value. How to pass that value in POV module  as you cannot use FORM ENDFORM . inside MODULE ENDMODULE.
    Regards,
    DPM

    1st step is:
    choose screen 2000 for the program using t-code se80.
    at the end of the coding enter the below code:
    process ON VALUE-REQUEST.
    FIELD screen field name module f4_zsearchhelp.
    after typing the code double click on f4_zsearch help.
    it ll ask for includes, Choose as main program.
    then enter the below code after choosing:
    DATA : t_dynpro_value TYPE TABLE OF dynpread,
    v_field_value LIKE LINE OF t_dynpro_value,
    lt_fields TYPE TABLE OF dfies,
    t_return_str TYPE TABLE OF ddshretval,
    w_return_str TYPE ddshretval,
    v_text TYPE char25.
    DATA: t_ty_prov_id TYPE STANDARD TABLE OF ty_prov_id,
    w_ty_prov_id TYPE ty_prov_id.
    CLEAR: t_ty_prov_id], w_ty_prov_id, t_return_str[, w_return_str.
    enter the select query from the description table to get the description for the particular code.
    in this i had mentioned with an example that i m getting description for massg :
    p9001-massg ll have the value and v_text ll have the description.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = 'TY_TAB'
    retfield = 'MASSG'------>returning field
    PVALKEY = ' '
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = 'P9001-ZMASSG'----
    > pass the screen field name
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    value_org = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ''
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    value_tab = t_ty_prov_id
    field_tab = lt_fields
    return_tab = t_return_str
    DYNPFLD_MAPPING =
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 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.
    READ TABLE t_return_str INTO w_return_str WITH KEY retfield = 'P9001-ZMASSG'.
    IF sy-subrc IS INITIAL.
    READ TABLE t_ty_prov_id INTO w_ty_prov_id WITH KEY zmassg_desc = w_return_str-fieldval.
    IF sy-subrc eq 0.
    DATA: et_desc(20) TYPE c.
    et_desc = w_ty_agrtx-v_gtext.
    MODIFY SCREEN.
    CLEAR : v_field_value,t_dynpro_value[].
    v_field_value-fieldname = 'P9001-ZMASSG'.
    v_field_value-fieldvalue = w_ty_prov_id-action_resn.
    APPEND v_field_value TO t_dynpro_value .
    CLEAR : v_field_value.
    v_field_value-fieldname = 'V_TEXT'.
    v_field_value-fieldvalue = w_ty_prov_id-zmassg_desc.
    APPEND v_field_value TO t_dynpro_value .
    CLEAR : v_field_value.
    ENDIF .
    ENDIF.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = sy-cprog
    dynumb = sy-dynnr
    TABLES
    dynpfields = t_dynpro_value
    EXCEPTIONS
    invalid_abapworkarea = 1
    invalid_dynprofield = 2
    invalid_dynproname = 3
    invalid_dynpronummer = 4
    invalid_request = 5
    no_fielddescription = 6
    undefind_error = 7
    OTHERS = 8.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    you can add the v_text in layput .
    hope it ll satisfy your requirement.

Maybe you are looking for

  • How do I know if my iPhone is charging?

    I got an iPhone 5 about 5 months ago, and the charger that came with it has already started to fail. I have to twist it a lot before it's in a position that it's happy to charge my phone in. My phone went dead today and so I can't tell whether it's c

  • De-serialization not calling default constructor ??

    Hi, I have a strange problem with serialization (de-serialization, actually): I have a bunch of classes that represent the model for my application. These classes are organized as a complex tree and come in three flavors: public abstract class Abstra

  • How can I get rid of $0.11 in my app store?

    How can I get rid of $0.11 in my app store? I need to change my region but I wont be able until the balance is 0

  • PSG Grouping only numeric??

    Hi All.. We have a problem with PSG Grouping..We have used PSG Grouping up to 99 and we left with no more numeric PSG grouping..Is there any solution for this problem..Can we use charected code for PSG grouping by applying any patch..Your help is rea

  • ICloud Drive questions

    Hi all, I know that this subject has been discussed yet, but I haven't found a definite answer to this question. I have some Pages documents on iCloud: and since yesterday if I try to access them via iCloud.com interface, a message warns me that my d