Read webdynpro screen value before Search Help call

Hi Experts,
For a webdynpro screen I have added a custom field to the layout and mapped to a custom attribute which has a a standard search help determined from the dictionary attribute.
There are multiple input field in the layout and there is this custom input field with search help in the layout. During runtime is it possible to read the other inputfield in the layout before F4 is clicked? I want to read one of the inputfield whenever the f4 search help is called. None of the methods WDDOAFTERACTION, WDDOBEFOREACTION, WDDOMODIFYVIEW are triggered before the F4 search help call.
Please let me know if anyone has any idea.

Hi,
As suggested you have to use OVS or freely programmed value help. OVS is easy to use , check the below article for OVS Reference : [OVS in WDA|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?QuickLink=index&overridelayout=true]  Also [Dynamic F4 in WDA|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70cee684-ccbb-2c10-3c94-91e806e5f7ac?QuickLink=index&overridelayout=true]
In the event handler method of OVS read the first input value using get attribute method and select the corresponding value.
Hope this helps u.,
Thanks & regards,
Kiran.

Similar Messages

  • Need selection screen values in Search help user exit in same report

    Hi Experts,
    I am using Logical Data Base PNP.
    Created a custom search help to validate the records for IT000 based on the selection screen dates.
    Enter the DATEs for Data Selection Period and Person selection period in the selection screen.
    When I for search help for PERNR field in the same report, I need the selectin screen DATE values to be in user-exit of search help.
    This will help me in validating the records for specific employees within the date range of given DATE in selectin period.
    As of now it's picking the employees based on the DATE selection of selection screen,
    Regards,
    Prasad

    Hi,
    Go Ahead as mentioned by Satyesh T - (Option two).
    Reading Select Options from DYNP_VALUES_READ
    reffer the above link for getting more clarity for using  'DYNP_VALUES_READ'
    Regards.
    Arun

  • Search Help CALL SCREEN

    Hi Guys,
    please.. How can a Search Help call a SCREEN ?
    I have a problem in a ABAP WebDynpro app, apparently because the search help is calling a SCREEN from the program SAPLSZA1.
    This is the error message:
    "Sending of dynpro SAPLSZA1 0201 not possible: No window system type specified"
    The search help is KRED.
    Any idea??
    Thanks!

    Hi,
    it can call screen using search help exit. KRED is a collective search and for example it contains search help KREDY. This search help uses exit F4IF_SHLP_EXIT_VENDOR_FUZZY. It is just a function module.
    Cheers

  • Selected value in search help cannot be returned

    Hi experts!
    When I select value in search help, selected value is not returned to the field.
    I did like this.
    1. I enhanced BP using EEW.
    2. I created a new view and display an enhanced field via BSP workbench.
    (an enhanced field is assigned to a check table)
    3. I created GET_V_XX method as follows.
    method GET_V_ZZBUT000000102.
      DATA:
        ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
        lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      ls_map-context_attr = 'STRUCT.ZZBUT000000102'.
      ls_map-f4_attr      = 'KEY'.
      APPEND ls_map TO: lt_inmap, lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'CRMST_HEADER_OBJECT_BUIL-ZZBUT000000102'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    endmethod.
    Does anyone know what is wrong?

    Hi Yohei,
    You could resolve your issue by changing the value of the "ls_map-context_attr" to the attribute value seen on the F2 help on WebUI screen.
    If you change the value   ls_map-context_attr  to   'ZZBUT000000102' , then F4 help would work properly.
    Hence the correct code would be:
    method GET_V_ZZBUT000000102.
      DATA:
        ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
        lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      ls_map-context_attr = 'ZZBUT000000102'.
      ls_map-f4_attr      = 'KEY'.
      APPEND ls_map TO: lt_inmap, lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'CRMST_HEADER_OBJECT_BUIL-ZZBUT000000102'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    endmethod.
    Regards,
    Pratik Gandhi

  • WAD template with BSP Application - how to read selection screen values

    Hello,
    I've created Web template with Web Application Designer (WAD).
    I would like to extend  that page with BSP Application...
    Purpuse of this application is to read some information from tables
    on BW transaction server and display them within Web page.
    Question: How to read selection screen values from a Web template ?
    Thanks for any help,
    Pawel Borowiec

    Hi,
    The selection screen parameters will be on an inputField, so try and get the is of the inputfield generated by doing View source...
    And once you get the inputfield Id, you can read the value in the InputField(InF) by
    using the following code...!
    data : if_value type ref to cl_htmlb_inputfield.
    data : variable type string.
    if_value ?= cl_htmlb_manager=>get_data( request = request
                                                name    = 'inputField'
                                                id      = 'InF_ID_here'
           if if_value->value is not initial.
             variable  = if_value->value.
           endif.
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • Restricting the Value of Search help in MIRO based on vendor

    Dear all,
    I had a problem in resticting the values of search help for vendor in the Po reference tab.  the Seach help is KRED  .  I had written a search help exit in it but i dont know how to restrict the vaues. I have to restict the Vendors Which starts with 1 series like 10000001,1000002 etc.
    Can any one help me out where to write the code in search help exit like CALLCONTROL-STEP = 'SELONE' or 'SELECT' or 'DISP' and what logic i need to use.
    Thanks & regards
    sreehari p

    Hi Sreehari,
    Write your Select query inside  IF callcontrol-step = 'DISP'.
    Use below code.
    *Types
      TYPES: BEGIN OF l_ty_tab,
             lifnr TYPE lifnr,
             END OF l_ty_tab.
      DATA: l_t_tab TYPE TABLE OF l_ty_tab,
            l_wa_tab TYPE l_ty_tab,
            l_wa_recordtab TYPE seahlpres.
    *Before displaying hitlist
      IF callcontrol-step = 'DISP'.
        REFRESH: record_tab[],l_t_tab[].
    SELECT LIFNR FROM lfa1 INTO TABLE l_t_tab WHERE lifnr LIKE '1%'.
    IF NOT l_t_tab[] IS INITIAL.
    *Pass hitlist to standard table record_tab
        LOOP AT l_t_tab INTO l_wa_tab.
          l_wa_recordtab-string = l_wa_tab.
          APPEND l_wa_recordtab TO record_tab.
          clear l_wa_recordtab.
        ENDLOOP.
      ENDIF.
      ENDIF.
    Thanks,
    Sap Fan

  • Dynamically passing the values to search help

    hi
    can I pass some values dynamically to search help input field.
    If I select a profit centre value from a drop down in separate field it should reflect the corresponding values in
    search help which is cost centre input field ( i/p fields is in a column of a UI element table).
    If I add one more row also the corresponding column should bears the search help...
    thanx in advance.......

    Data dictionary based search helps can have multiple importing parameters within Web Dynpro.  There are few rules that are documented in the online help however:
    Be aware that import and export parameters for the search help are determined only within the same context node (see also Transport of Values for the Input Help), and even then only if a Dictionary structure is assigned to the node.
    http://help.sap.com/saphelp_nw70/helpdata/EN/35/bdb6e2c48411d1950800a0c929b3c3/frameset.htm

  • SAP CRM Search Help - defaulting values in search help screen

    Hi All,
    I am working on search help object in service order(Amount allocation )  BTAMNTALL component view name vIEW:BTAMNTALL/HdrBillplanDet and field name STRUCT.AC_ASSIGNMENT. in that block if we select account assignment type as ERP cost center it will give standard search help in Select account assignment field.
    Its basically calling the standard search help CRMT_AC_ASSIGN_KOSTL_E. After pressing F4 it will display the popup Controlling area cost center and description. Basically I need to default the Controlling area in F4 help based on some logic.I am not sure where to write code for this one.
    Please find the attachment where I need to default the value. any help is appreciated.
    Thanks,
    Sapsar.

    At least can you read the document I provided carefully? the point 2.3.1.2 give you the answer.
    Anyway if the document doesn't specify "defining a default value" but give you some ideas/hints, you only need to use a little your imagination. Like:
    1- Use a custom search help with a constant (static)
    2- Use a custom search help with a search exit to determine the data that you need from the sales org of course you need to add the orgunit as an input parameter for the search help and supress the input parameter which will be determined in the search help exit (dynamic)
    3- Create a value node for the context (hidden) and put the info you need once you select the sales org in the hidden attribute/s, this hidden attributes should be mapped in the get_v method (dynamic, not sure if this will work, I never tried, but will be nice if you try and give us some feedback)

  • Search Help calling screen

    Hi Guys,
    please.. How can a Search Help implement a "CALL SCREEN" command?
    I have a problem in a ABAP WebDynpro app, apparently because the search help is calling a SCREEN from the program SAPLSZA1, and I have to undo this. It shouldn't call.
    This is the error message:
    "Sending of dynpro SAPLSZA1 0201 not possible: No window system type specified"
    The search help is KRED.
    Any idea??
    Thanks!

    I have tried both. Same problem..
    But the real problem is that I can not reproduce this in DEV. It only happens in QAS, and i can not find what is different. All the objects that I have checked so far (Search Help, Program, etc.) have no differences.
    Tks

  • How to pass the default value to search help selection screen

    Hi
    I need to push a certain value as a default value based on a condition to the slection screen of search help in web UI.
    Could you please let me know how can we do this?
    When we try to open the 'F4' help in web ui then it should populate a certain value as a default value to the selection screen of this 'F4' help. We will get this  default value based on condition.
    Regards
    Anil

    Hi Arun
    I'm using SE11 search help.I'm giving you my code for your reference here.
    DATA:
        ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
        lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lr_qs           TYPE REF TO cl_crm_bol_dquery_service,
        lr_current     TYPE REF TO if_bol_bo_property_access,
        lv_category    TYPE STRING.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr      = 'ATTRIBUTE'.
      APPEND ls_map TO: lt_inmap,lt_outmap.
      CLEAR ls_map.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr      = 'SERVICE_LINE'.
      APPEND ls_map TO: lt_inmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZATTR1'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_trigger_submit           = abap_true
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    Here 'ZATTR1' is my search help name in SE11 and the field which is having 'F4' help is 'ATTRIBUTE'.
    Now when I press 'F4' on 'ATTRIBUTE' then it will give a popup and this popup is having 3 fields..
    1.'ATTRIBUTE'
    2.'SERVICE_LINE'
    3.Description of 'SERVICE_LINE'  and hence by pressing 'F4' i should get a value in the field 'SERVICE_LINE' based on
       a condition.
    However, if there is a value for ATTRIBUTE on the screen and when we press 'F4' on this then in the popup the value of
    ATTRIBUTE which is there on the screen is appearing in the 'ATTRIBUTE' field  and the same value is being copied to
    'SERVICE_LINE' field in the popup.
    Please guide me how do we populate the value to 'SERVICE_LINE' field inside the search help popup of 'ATTRIBUTE'.
    Best Regards
    Anil

  • Value Transport (Exporting) to multiple screen fields in Search Help

    Hi all,
    I have created elementary search help using exit and attached it to data element. After F4 when I get hitlist I want all the values from the selected rows to get copied to the screen fields. I.e. I want the value transport.
    In the search help I am exporting those values which I want to get copied back but I am unable to get the result.
    With Regards,
    Chandra

    Hi,
        You can get this behaviour only by making the SEARCH HELP assignment at the STRUCTURE level.
    You need to create or use an existing structure to create your screen fields which you want to populate using the search help. Then assign this search help directly to the structure and there do the mapping between structure fields and the search help export params.
    Only by doing this you can autopopulate the values using one search help.
    Regards,
    Sesh

  • Import screen field value into search help assigned to a different field

    Hi,
    I have created an elementary search help based on a custom DDIC table ZSH_SHHLDR. Dialog Type: Dialog depends on set of values, search help parameters:
    Parameter                       Import     Export   LPos SPos  SDis
    FOLIO                                X                       1       1         X
    CERTN                                             X         2       2
    where FOLIO and CERTN are fields in my table.
    There are two fields in my program defined as like FOLIO and CERTN respectively. These fields are screen fields in a custom dynpro created using Screen Painter. The search help is assigned to the CERTN field. In the screen, I want that the contents of the FOLIO field should be imported into the search help, i.e. on the screen:
    FOLIO: 21353
    CERTN: <F4>
    When I click on F4 help for CERTN, I want that the FOLIO parameter in the search help should contain the value for FOLIO that I entered in the text box on the screen. Is there a way to do this, through an exit for instance? Help is appreciated, thanks.
    Regards

    Hi,
    You need to use the below statement.
    process on value-request.
    field zcom_doa_users-zzjob_role module sub_tes_module.
    Here I declared three fields in the screen fields from structure zcom_doa_users. Try to name the fields with table name-field name. So inside the module in structure zcom_doa_users you will get given value for the other fields also.
    Now you can do your own processing for f4 help.
    Thanks
    Subhankar

  • How to populate data from screen on to search help field

    Hello all,
    I have a requirement in which for a field i have attached a search help and i am calling the search help by using the FM
    F4IF_FIELD_VALUE_REQUEST it is working fine.
    I have one additional requirement that whernever any data is entered on the screen field say ( A* ) then F4 is pressed on the search help in the field this value must be considered. Now it appears blank but i want this data to get populated from the screen
    field how can i achieve it.
    Warm Regards,
    Naveen M

    hii naveen,
    YOu have to make use of the function modules:
    DYNP_VALUES_READ Read screen field values before PAI field transport
    DYNP_VALUES_UPDATE Change screen field contents w/o PBO
    Each of which is very well documented
    or
    trigger the drop-down in POV.
    PROCESS PAI.
    FIELD <FIELD>.
    PROCESS ON VALUE-REQUEST.
    FIELD FIELD MODULE F4HELP_FOR_FIELD.
    MODULE F4HELP_FOR_FIELD.
    > Call search help: see the fm VRM_* to manage dropdown list
    DATA: DYNAME LIKE D020S-PROG,
    DYNUMB LIKE D020S-DNUM.
    DATA DYNPFIELDS LIKE STANDARD TABLE OF DYNPREAD WITH HEADER LINE.
    DYNPFIELDS-FIELDNAME = <other field name>.
    DYNPFIELDS-FIELDVALUE = <value>.
    APPEND DYNPFIELDS.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    DYNAME = DYNAME
    DYNUMB = DYNUMB
    TABLES
    DYNPFIELDS = DYNPFIELDS.
    ENDMODULE.
    rgrds,
    Shweta

  • SELECTION-SCREEN with defined search help

    Dear all,
    I'd like to specify in my selection screen a variable that will contain the value to display when search help triggered.
    DATA: w_lgort LIKE mard-lgort.
    DATA: storage(4) TYPE c.
    SELECT lgort INTO w_lgort FROM mard WHERE werks = 'p_plant'.
    ENDSELECT.
    storage = 'w_lgort'.
    SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE text-204.
    PARAMETERS :        p_plant LIKE zmm13jpn-mag_emetteur DEFAULT 'C300',
                 p_store LIKE (storage).
    SELECTION-SCREEN END OF BLOCK bl1.
    My idea would be that storage contains only result of above select while using LGORT data element.
    Any idea?
    Regards.

    Hi cany,
    report zabc.
    parameters: p_bukrs type t001-bukrs,
    p_butxt type t001-butxt,
    p_ort01 type t001-ort01,
    p_land1 type t001-land1.
    data: dynfields type table of dynpread with header line.
    data: return type table of ddshretval with header line.
    at selection-screen on value-request for p_bukrs.
    call function 'F4IF_FIELD_VALUE_REQUEST'
    exporting
    tabname = 'T001'
    fieldname = 'BUKRS'
    dynpprog = sy-cprog
    dynpnr = sy-dynnr
    dynprofield = 'P_BUKRS'
    tables
    return_tab = return
    exceptions
    field_not_found = 1
    no_help_for_field = 2
    inconsistent_help = 3
    no_values_found = 4
    others = 5.
    break-point.
    refresh dynfields.
    read table return with key fieldname = 'P_BUKRS'.
    Add it back to the dynpro.
    dynfields-fieldname = return-retfield.
    dynfields-fieldvalue = return-fieldval.
    append dynfields.
    Get the company code from db and add to dynpro
    data: xt001 type t001.
    clear xt001.
    select single * into xt001
    from t001
    where bukrs = return-fieldval.
    dynfields-fieldname = 'P_BUTXT'.
    dynfields-fieldvalue = xt001-butxt.
    append dynfields.
    dynfields-fieldname = 'P_ORT01'.
    dynfields-fieldvalue = xt001-ort01.
    append dynfields.
    dynfields-fieldname = 'P_LAND1'.
    dynfields-fieldvalue = xt001-land1.
    append dynfields.
    Update the dynpro values.
    call function 'DYNP_VALUES_UPDATE'
    exporting
    dyname = sy-cprog
    dynumb = sy-dynnr
    tables
    dynpfields = dynfields
    exceptions
    others = 8.
    start-of-selection.

  • Modify another field value in search help exit.

    While creating the Sales Order, the user does an f4 on ship to party to determine the sold to party ( search help exit ), now I have the values of both the Ship to customer and Sold to customer in the search help exit, but I can update only the ship to field of the sales order, do you know how I can modify the sold to value on the screen.
    I tried setting up the parameter id 'VAG' in the search help exit with the determined value, but this value is not getting copied in the Sold to party field once the search help is executed.
    The other option which is left is export to memory and import to memory in another user exit of VA01. Is there any other alternative? Also which program do I need to do the import of memory so that sold to party is displayed on the initial before saving the document ?
    Ajay

    Hi,
    Yes..Try calling from the search help exit..
    You have to pass the program name and screen number..
    In the internal table parameter DYNPFIELDS..
    Pass the fieldname and fieldvalue...
    Thanks,
    Naren

Maybe you are looking for

  • Disk2vhd efi vhdx vm fails to boot (solved)

    Edit:  I was able to work around this.  From what I've read, a bare metal restore from a physical to virtual machine is not supported, but that's what I tried and it worked beautifully.  The only thing that went right today. So, disk2vhd isn't needed

  • How to remove Classic from a system where it is installed?

    To trash Classic: 1. Backup your data in case you make a mistake. 2. Make sure no Application in Applications Mac OS 9 folder lists itself in Get Info as an Application (as opposed to Classic Application). Any that are just plain Applications are des

  • EDI 858 inbound process

    Hi Gurus, We have a following reuqirement. We have a third party company that acts like a freight payment system for us. So we want to have an EDI inbound process setup so that the freight payment system is notified of the shipment for example (mater

  • Binary Tree Help

    I have a project where I need to build a binary tree with random floats and count the comparisons made. The problem I'm having is I'm not sure where to place the comaprison count in my code. Here's where I have it: public void insert(float idata)    

  • [FSCM] add parallel valuation area and new valuation classes

    Hi, everyone I have a plan to add parallel valuation area and new (general) valuation class for International Financial Reporting Standards. But I have no experience adding another valuation area. Basically, SAP says new valuation area could be added