Parameters in selection screnn  in webdynpro abap

Hello Gurus,
We have a requirement to maintain parameters in selection screnn  in webdynpro abap.
now we are able to create parameters  using wdr_select_options componet usage of method add_parameter_field.
we need f4 help also for this parameter.
how can we pass exporting parameters to this method.
Could anyone please suggest solutions?
and if possible send me the sample code for this requirement.
Thanks in Advance for your replies.
Regards,
Babu

Hi Rajsekhar,
this is sample code of select option for carr id field. so you can guess and change according to your requirement.
Observe the highlited code in below coding.
nOTE: S_CARR_ID IS THE DATA ELEMENT OF CARR ID  FIELD, FOR THAT I AM APPLYING SELECT OPTIONS IN BELOW CODING.
WRITE THE BELOW CODE IN WDDOINT( ) METHOD OF REQUIRED VIEW
Data: lt_range_table type ref to data,
     read_only type abap_bool.
WD_THIS->M_WD_SELECT_OPTIONS = WD_THIS->WD_CPIFC_SELECT_OPTIONS( ).
WD_THIS->M_HANDLER = WD_THIS->M_WD_SELECT_OPTIONS->INIT_SELECT_SCREEN( ).
WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(
     I_DISPLAY_BTN_CANCEL = ABAP_FALSE
     I_DISPLAY_BTN_CHECK = ABAP_FALSE
     I_DISPLAY_BTN_RESET = ABAP_FALSE
     I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE( I_TYPENAME = 'S_CARR_ID' ).
WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
*          I_ID = 'S_CARR_ID'*
*          IT_RESULT = LT_RANGE_TABLE*
*          I_READ_ONLY = READ_ONLY* ).
BELOW CODE IN REQUIRED ACTION( SAY IN SOME BUTTON ACTION WHICH WILL RETRIEVE THE DATA FROM DATABASE TABLE USING SELECTI OPTIONS VALUES)
fIRST THE GET REFERENCE TO NODE( CTRL F7->READ CONTEXTB-FLIGHT NODE )
***THEN BELOW CODE
DATA: RT_CARRID TYPE REF TO DATA.
DATA:IS_FLIGHT TYPE TABLE OF SFLIGHT.
FIELD_SYMBOLS: <FS_CARRID> TYPE TABLE.
RT_CARRID = WD_THIS-> M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
ASSIGN RT_CARRID->* TO <FS_CARRID>.
SELECT * INTO CORRRESPONDING FIELDS OF TABLE IS_FLIGHT
   FROM SFLIGHT WHERE CARRID IN <FS_CARRID>
NODE_FLIGHT->BIND_TABLE( IS_FLIGHT ).

Similar Messages

  • Select-options in Webdynpro abap

    Hi,
    I want to use select options in webdynpro abap ,I checked links available in net but want a simple step by step procedure .
    -Sandeep

    Hi,
    What do you mean by simple steps? You need to write little code to add select options in WDA. You can check this wiki for reference: Web Dynpro ABAP - Complex select-options component usages - Code Gallery - SCN Wiki
    And there are lot more documents available in SCN. search here
    Regards,
    Kiran

  • Default Values for Select-options In Webdynpro-ABAP

    Hi Freinds,
    Kindly,Help me in setting the Default values for the Select-options in Webdynpro ABAP.
    Here the Node and the Attributes are Created Dynamically, and then Displayed Select-options Component View.
    Regards,
    Xavier.P

    Xavier Reddy Penta sent me this question via email and I answered it directly yesterday. Here is the solution that I provided to him, so that it is stored with the original question:
    I believe your problem is that you are not setting the value into the range correctly.  You are setting it directly into the field symbol of the range like such:
    <FS> = L_STRING2.
    But ranges are deep objects. They have four fields: Sign, Option, High, and Low. This is from the online help:
    1.     sign of type c and length 1. The content of sign determines for every row whether the result of the condition formulated in the column is included or excluded in the entire resulting set for all rows. Evaluable values are "I" for include and "E" for exclude.
    2.     option of type c and length 2. option contains the selection option for the condition of the row in form of logical operators. Analyzable operators are "EQ", "NE", "GE", "GT", "LE", "LT", "CP" and "NP" if column high is initial, and "BT", "NB" if column high is not initial. With the options "CP" and "NP", the data type of the columns low and high must be of the data type c, and special rules apply for entries on the selection screen.
    3.     low of the data type defined after FOR. This column is designated for the comparison value or the lower interval limitation.
    4.     high of the data type defined after FOR. This column is designated for the upper interval limitation.
    So when you are moving the value into the field symbol you are setting it into the sign column.
    Here is an example of how you can access the components of the range:
    * create a range table that consists of this new data element
        lt_range_table =
          wd_this->lv_sel_handler->create_range_table(
               i_typename = l_typename ).
        IF l_fieldname = 'CARRID'.
          FIELD-SYMBOLS: <tab>         TYPE INDEX TABLE,
                             <struct>      TYPE ANY,
                             <wa>          TYPE ANY,
                             <option>      TYPE char2,
                             <sign>        TYPE char1,
                             <high>        TYPE ANY,
                             <low>         TYPE ANY,
                             <wa_values>   TYPE ANY.
          ASSIGN lt_range_table->* TO <tab>.
          APPEND INITIAL LINE TO <tab> ASSIGNING <wa>.
          ASSIGN COMPONENT 'OPTION' OF STRUCTURE <wa> TO <option>.
          ASSIGN COMPONENT 'HIGH' OF STRUCTURE <wa> TO <high>.
          ASSIGN COMPONENT 'LOW' OF STRUCTURE <wa> TO <low>.
          ASSIGN COMPONENT 'SIGN' OF STRUCTURE <wa> TO <sign>.
          <sign> = 'I'.
          <option> =  'EQ'.
          <low> = 'AA'.
        ENDIF.

  • Saving Selection Screens in Webdynpro Abap

    Hi ,
    Could you please throw some light on how to save the selection screens in Webdynpro Abap ?? Just like variants in normal Abap?
    Thanks and Regards
    Alok Sharma

    HI,
    I dont think there is automatic saving of varients in web dynpros  just like normal selection-screen.
    Just check this link you might get some idea.
    Link[Save Varient|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f028c2b9-1730-2d10-71ae-ce300ea00573?quicklink=index&overridelayout=true]
    Regards and Best wishes.

  • How to get id of selected Tab in WebDynpro abap

    HI,
        How to get id of selected Tab in WebDynpro for abap? THANKS!

    Hi,
    In the action method for onSelect try using,
      DATA:
        lv_select_tab type string.          "Selected tab value
      DATA:
        lt_events type WDR_EVENT_PARAMETER_LIST,
        ls_events type WDR_EVENT_PARAMETER.
      field-symbols: <fs_value> type any.   "Attribute value in events table
      lt_events = wdevent->parameters.
      read table  lt_events into ls_events with key name = 'TABSTRIPID'.
      if sy-subrc eq 0.
        assign ls_events-value->* to <fs_value>.        
        if sy-subrc eq 0.
          lv_select_tab = <fs_value>.                    "Tab selected
        endif.               
      endif.               
    Hope it helps!
    Regards,
    Radhika,

  • Varient for selection screen in Webdynpro ABAP

    Dear Experts,
    We all know that in abap editor selection screen we can save the selection criteria in form of 'Variants'.
    I need to something similar in webdynpro. And I was requested not to use the database tables for saving the data.
    Is it possible? If Yes then please let me know.
    Thanks Supriyo

    POWL - Power Work List
    Isn't POWL - "Personal Object Work List" ? Although often interchangeable referred to as "Power Lists".
    However, if Thomas says "Power Work List" I think we're going to have new variant out there to search on!
    NB the POWL is very "Powerful" (sic) in this respect as you can even add your own OVS to the selection criteria. Unfortunately I have found that the POWL selections and selection process are perceived as less than obvious by end users. So much so that where we are looking at pure reporting functionality we are instead looking to BW to provide a web reporting interface.
    For some reason (perhaps they've been using SAP backend reports too long) users seem to want to do their selection and then see the results - unless it's in the form of a dashboard - in which case they are happy to drill down into the results. It is like they don't trust the system to have used the correct selection criteria.

  • One search help for multiple select-options in webdynpro abap

    Hi,
    I need a way to use one search help for multiple select-options fields. My scenario is :
    I have a table for keeping different organizational units' values of different systems. I have pasted some sample data from this table at the end of this mail. On the screen I want to have 1 select-options filed for werks, and 1 select-options filed for vkorg. (In fact I will have more org. unit fields...) In the beginning of my application the user will select sid.
    If the user selects ADS as SID, when he opens search-help for the first org. unit (werks), he will see the records with SID: ADS, VARBL = $WERKS, LANGU = SY-LANGU.
    If the user selects AGT as SID, when he opens search-help for the second org. unit (vkorg), he will see the records with SID: AGT, VARBL = $VKORG, LANGU = SY-LANGU.
    I have created a search-help taking SIDD, VARBL and LANGU as import parameters; used field mapping and bound this search help to my table. I have created 2 context nodes : org1 and org2 having attributes SID, VARBL, VALUE, LANGU .
    I have assigned related SID, VARBL and Langu values to these attributes at runtime as I needed. That way, if I use input field and reference to the related context attributes org1-value and org2-value2 accordingly, search help works well as I want.
    However, when I use select-options field , I can not bind the field to the context data. I can give reference only to ddic structure. Is there any way to reference to a context attribute? I searched for this in SDN, but could find nothing.
    I think I won't be able to use this way. What do you say?
    As I read from forums maybe using OVS help will be suitable for me. But I have to use one search-help for all select-options fields. Do you know how I can determine the active select-options field and pass its name (for instance "werks" ) as parameter to this OVS search help. (Also I'll pass SID and LANGU.)
    MY TABLE (ZBYYT080) CONTENTS:
    SID     VARBL     VALUE     LANGU     VTEXT
    ADS     $WERKS     1     T     Werk 0001
    ADS     $WERKS     11     T     OZYAS  GIDA URETIM YERI
    ADS     $WERKS     5501     T     BOYA GEBZE FABRİKASI
    ADS     $WERKS     5502     T     BOYA CIGLI FABRİKASI
    AGT     $WERKS     2301     T     KAMLI DAMIZLIK
    AGT     $WERKS     9601     T     PANAR DENIZ URETIM YERI
    ADS     $VKORG     22     T     AA KİMYASALLAR
    ADS     $VKORG     8001     T     İINSAAT BOYALARI
    AGT     $VKORG     6500     T     DAMk St.Org
    AGT     $VKORG     5400     T     PANAR St.Org.
    I wish I'm clear enough..
    I will be gald if someone answers me as soon as possible...
    Thanks İn advance..
    MERAL

    Hi,
    Your ques is how to refer to a DDIC search help to refer to selection screen parameter ?
    Am I right ?
    If Yes, then in the interface IF_WD_SELECT_OPTIONS
    method ADD_SELECTION_FIELD, ADD_PARAMETER_FIELD etc
    have importing param like I_VALUE_HELP_TYPE and  I_VALUE_HELP_ID, I_VALUE_HELP_MODE, I_VALUE_HELP_STRUCTURE
    etc which may help you to link your create DDIC Search help to selection screen params.
    this is just a clue from my side. I haven't tried it myself.
    You can go to the where used list of this method and find some sample implementations which use these params.
    Hope this helps.
    Regards
    Manas Dua

  • Parameters in webdynpro ABAP

    Hi all,
    where i can set the "  WDDISABLEUSERPERSONALIZATION" parameter for iview?
    I am very new to Webdynpro ABAP .  Trying to find out the above parameters but fialed .
    Thanks,
    Rameshb.

    Hi Ramesh,
    Create an application of your WD component. Now double click on that application. Click on the parameter tab. There a table kind of thing will be displayed. Press F4. Select WDDISABLEUSERPERSONALIZATION parameter. Give its value as 'X'. By doing this user won't be able to modify the view at run time.
    I hope it helps.
    Regards
    Arjun

  • Portal application parameters for webdynpro ABAP

    I have read several posts that indicate we can get the portal user login id in WDA by adding:
    userid=<User.LogonUid> to the application parameter property in the portal iview, and then adding a corresponding parameter in the Webdynpro ABAP method HANDLEDEFAULT of the Window.
    I'd like to know if there are other such system parameters (besides <User.LogonUid>) that one can pass from Portal to a Webdynpro? A list of such parameters, or a link to such a list would be very helpful.
    Best regards,
    Tarun

    Hi,
    In the Portal,
    go to content Adminsittration ->Portal Content->PCD folder->Content Provided by SAP->Select your specifc folder->Select IView ->Select Application (Ex-Purchasing)->we can pass paramteres like Iviewid, IviewMode, SessionKeys Available. etc
    Pls refer this if helpful.
    Company.UserName
    Company.UserSignature
    Pls refer to this link -
    http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/servlet/http/HttpServletRequest.html#getUserPrincipal
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • Folder selection in webdynpro abap

    Hi,
    I have a requirement to read all the files present in a folder,i have searched for frontend classes but doesnot work in webdynpro abap can any one suggest how to acheve the functionality
    Thanks,
    Shailaja Ainala.

    You have to remember that you are in a Web Browser and therefore are subject to the sandbox security restrictions that the web browser enforces. This means very limited access to the frontend client machine compared to SAPGUI applications. 
    >I think Thomas Jung has written an e-Learning on this topic, but I believe the premise is that you can use ACFExecute to cause a directory listing to be executed and then ACFUpDownload to download that listing and then download the files.
    Its not quite that easy I'm afraid.  ACFExecute can't return data to the Web Dypro Application. It is desgined to trigger interactive applicactions not become a data interface between them (although you can pass startup parameters for the application).  ACFUpDownload will let you silently upload multiple files (thanks to the use of a Java Applet), but doesn't have any file selection dialog.  It was originally designed for KPRO - where you have file check-ins and know the file locations from the document records. A file open/save dialog for ACFUpDownload isn't added until 7.02.  Even with the dialog you would still need user interaction to select the files - it can't just read all the files in a directory.  Note: both ACFExecute and ACFUpDownload are new in NetWeaver 7.0 Enhancement Package 1.
    You could also try a FlashIsland (also new in 7.01). I have a sample of multiple file uploads using Islands as well on SDN. However same issue here - you can't just read the file structure of a directory.  Even in Flash/Flex you are somewhat sandboxed - and the user must select the files they wish to upload (although they could select all files in a directory and upload them all at once).
    The other solution (which can be done on 7.0) is to have the user manually ZIP the entire directory and then upload the single ZIP file with the normal FileUpload UI element.  On the ABAP side you can use CL_ABAP_ZIP to parse and process out the individual files within the ZIP content.

  • OnSelect event for a Drop down UI Element in Webdynpro ABAP Select Options

    Hi Experts
    We have built our UI based on the webdynpro ABAP Select Options. We have a requirement that, when we change the value of a drop down box in the UI, I need to hide some fields. Can anybody help me out in handling of OnSelect event of a drop down box built using webdynpro ABAP Select Options. We are on SAP Netweaver 7.0 EHP1.
    Rrgards,
    Srikanth.
    Edited by: Srikanth Kancherla on Apr 29, 2010 10:43 PM

    Hi Srikanth,
    as you seem to be already aware, the component is dynamically built.
    so you would have to enhance the code that builds the element and insert a reference to a new action (enhancement) that could handle the onSelect event.
    What is it about this that you particularly want help with?
    Cheers,
    Chris

  • Webdynpro ABAP ALV in SAP ECC6 - EHP4: To disable Column Selection

    Hi All,
    We are using SAP ECC6 EHP4 and  for Webdynpro ABAP application, after each column a vertical white line is appearing, and I need to hide this..
    SAP suggested us to disable COLUMN SELECTION I have tried the below code but still I am not able to get this done..
    Can you please suggest the appropriate method to achieve the same.
    Code:
    * show tab COLUMN SELECTION in Settings page
    CALL METHOD wd_this->alv_conf_table->if_salv_wd_std_functions~set_column_selection_allowed
      EXPORTING value = ABAP_false..
    here alv_conf_table refers to CL_SALV_WD_CONFIG_TABLE.
    Thanks in advance.
    Thanks
    Srinivas
    Edited by: Srinivas Manchi on Apr 22, 2010 11:35 AM
    Edited by: Srinivas Manchi on Apr 22, 2010 1:06 PM

    You have to disable the DDic binding on the column before your override text will show up:
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      data l_salv_wd_table type ref to iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv( ).
      data l_table type ref to cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      data l_column type ref to cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'POSTING_DATE' ).
      data l_header type ref to cl_salv_wd_column_header.
      l_header = l_column->get_header( ).
      l_header->set_prop_ddic_binding_field(
        property =  if_salv_wd_c_ddic_binding=>bind_prop_text
        value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
      l_header->set_text( `Posting Date` ).

  • Upload from clipboard option in webdynpro abap selection screen

    Hello Gurus,
    We have a requirement in select-options in webdynpro.i have implimented select-options successfully using
    WDR_SELECT_OPTIONS used component.now i need to impliment 'upload from clipboard' option when ever i click on advance options arrow mark. this option we can get in normal abp from selection screen.in selection screen against select-option field we have multiple options arrow mark.when ever we click this arrow mark we can able to see the upload from clipboard button at lowe level.exact same option how can we impliment in webdynpro abap selection screen.
    Could anyone please suggest solutions?
    if possible could you send me the sample code or relevent links for the same.
    Thanks in Advance for your replies.
    Regards,
    babu

    Hi,
    Which server version are you working on...Is it ECC6 or nwetweaver 7..
    I guess that option is avaialbel in Netweaver 7.0..Need to check there is an option for Clipboard in select-options..
    Regards,
    Lekha.

  • Parameters and Select Option in ABAP OO

    Hi all,
    it's possible to build an application starts with a method of a class thats declares parameters and select-option or I have to do it custom creating a dynpro and some input field as parameters?
    thanks
    enzo

    Just to add detail: the function module RS_REFRESH_FROM_SELECTOPTIONS returns a table of TYPE RSPARAMS_TT.
    The structure of this table is:
    SELNAME
    RSSCR_NAME
    KIND
    RSSCR_KIND
    SIGN
    TVARV_SIGN
    OPTION
    TVARV_OPTI
    LOW
    TVARV_VAL
    HIGH
    TVARV_VAL
    the first field is the name of the selection parameter, the others have the same structure obtained declaring a range with:
    TYPES|DATA <rangetab> TYPE RANGE OF <type>.
    see the help topic http://help.sap.com/saphelp_470/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/content.htm

  • Select-Options in Webdynpro

    Hi
    Can I use select-options and parameters in webdynpro applications?
    How to print the list in ALV?
    Regards
    Ramya

    Hi
    Can I use select-options and parameters in webdynpro applications?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20abap/working%20with%20select%20options%20in%20web%20dynpro%20for%20abap.pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d
    How to print the list in ALV?
    Webdynpro ABAP ALV  Print Version(PDF)
    Abhi
    Edited by: Abhimanyu Lagishetti on Jul 10, 2008 11:24 AM

Maybe you are looking for

  • Usage of the xp20:matches() - String  function -reg

    Hi, Our current requirement is that if we receive the message that matches the pattern (Ie input starting with A to L) both inclusive(for eg : A123 , B567,... ,L890),we need to perform some routing in the mediator depending upon the message. I have t

  • How to use AMFPHP Objects in Flex

    Hi, I have been successful in getting amfphp to return PHP objects, the question now is how can I make Flex aware of the objects? I am invoking a remote object and the objects are returned as a result. Can they be used directly or should I use XML?

  • Create BDC for Shipments

    Dear Friends. I have to connect 2 different BDCs in a program. First BDC. Starts from tcode VL06P, as I enter Route and Warehouse Num, A list of deliveries is displayed. I have to pick the Ship to Party from this list and start the second BDC. Second

  • How to connect to BAPIS Using webdynpro for java?

    Hi guys , I am new to sap world . Can any body give overview how to connect BAPIS FUNCTION MODULES using   in webdynpro?

  • Troubles importing a change request

    Hi experts, Does anybody know how to import a local change Request into another system, in this case my QAS? I was applying the following OSS notes: 1082441 Mexico Legal change Format-A29 SAPKH50020 12/02/2008 1111107 RFIDMXFORMAT29: Country name not