Reg : F4 help in webdynpro

Hi,
Am developing Webdynpro Application to Connect R/3 by using Bapi's.
My question is :
Is it possible to bring field contents(f4 help contents) in webdynpro ?.
Thankyou,
Ramganesh.

Hi Ramganesh,
Depends what exactly you require in the value help. If all you need is a simple input field with value help in key-value format, you can make use of the EVS searchhelp. You get the output of the Bapi and fill the valueset. You can use it for input fields and dropdowns. Please see link below
http://help.sap.com/saphelp_nw04/helpdata/en/95/93fe1e71a2e44691b1f041e67f71aa/frameset.htm
if you use EVS, you have to insert code that looks like this in your init method of the view.
IWDAttributeInfo attributeInfo =
               wdContext.nodeYourNode().getNodeInfo().getAttribute(
                    yourView.IYourNodeElement.YOUR_FIELD);
          ISimpleTypeModifiable fieldType =
               attributeInfo.getModifiableSimpleType();
          IModifiableSimpleValueSet valueSet =
               fieldType.getSVServices().getModifiableSimpleValueSet();
          for (int i = 0; i < wdContext.nodeYourBAPIOutputNode().size(); i++) {
               wdContext.nodeYourBAPIOutputNode().setLeadSelection(i);
               valueSet.put(
                    wdContext.currentBAPIOutputNodeElement().getKey(),
                    wdContext.currentBAPIOutputNodeElement().getValue());
If you need to filter the search criteria before you display values, and need multiple columns in the search, you can use the OVS search helps. This is slightly complicated than the EVS because you have to implement the OVS custom controller etc. But once you have done it, it works beautifully..Have a look at the link below for OVS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial%20on%20advanced%20value%20help%20and%20object%20value%20selector%20-%209.htm
Hope that helps,
Regards,
L Menon

Similar Messages

  • Organizational Structure Search Help in Webdynpro ABAP

    Hi,
    I need an organizational structure search help in webdynpro abap.
    It should list the organizational structure in tree view like RH_OBJID_REQUEST lists.
    I tried to use RH_OBJID_REQUEST function in webdynpro but I got " A RAISE statement in the program
    "CL_GUI_CUSTOM_CONTAINER=======CP" raised theexception condition "CNTL_ERROR" short dump.
    Is there such a function for webdynpro abap and  how can I achive this with select options?
    Thanks in advance..
    MERAL

    Great article.  I also had this probelm a year ago. My problems questions are:
    Is it possible to select more then one entry in the tree?
    What about selecting all childrens with one click?
    In my solution I inserted this tree, into a table and the table had a checkbox, row, so the user can check the required org units, (more then one) and there was a separate button, for "select all children"

  • Regarding : How to add a user to portal group with the help of webdynpro .

    Hii ,
    I am working on an application in which with the help of an action( Button)  we r adding a user in Ztable in R/3 , as well as  group in portal.
    The user r successfully creating in Ztable but from portal side No user is assigned to Portal group.
    I need coding solution for " How to add a user to portal group with help of webdynpro"
    Any usefull link will also do.
    Pls anyone have any solution ??
    Thnks in advance.
    Rewards r waiting for u .

    Hi,
    Use UME api to add user to portal group.
    Using UME API:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d562b7-1405-2a10-dfa3-b03148a9bd19
    Regards,
    Naga

  • Clear error message on F4 standard search help in webdynpro abap

    Hi Gurus,
    We have a check on the data entered by the user in our webdynpro producing a error message if the data are not correct. My problem is that this message is also diplayed in the search help afterwards when the user clicks on the search help. I know how to clear an error message but I can't find the event triggered by the F4 search help to put my code. The search help is a standard search help and thus I can't modify it.
    All I want is to find the event triggered when the user clicks on the search help. The field is in an alv but the alv click or alv action are not triggered when the user clicks on the search help.
    Thanks for your help in advance guys.

    Yes.  It is called a Freely Defined Value Help if you want to have complete control of the UI that is displayed in the dialog:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm

  • How to create an elementary and collective search help in webdynpro

    Hi all,
    my requirement is i have to create an collective search help. and that should be same as other tcode search help functionality.
    and now the ztcode is in r3 system and my webynpro development is going on bw system how to copy that tcode from r3 to bw system. and then for my input field is cost center and for this input field i should create the search help functionalty.kindly help me how to achieve this functionality i am new to this webdynpro so kindly send me the detail steps.
    Thanks & Regards,
    Naveen

    Hi Naveen,
    There's no difference to using a collective search help or a regular search help.
    in the attribute of the context that you want the search helps to appear for - specify that the input help is of type dictionary search help, then specify that the input help is your collective search help.
    Search helps in WDA, if search help is available at dictionary level, no need to create any search help, you get automatically.
    If you want to create search help for any input field, another option is using OVS. we have WDR_OVS component for search helps, you need to reuse this component in your custom component, just change some coding according to your requirements you get search help.
    Go through these documentation and helps...
    http://help.sap.com/saphelp_nw73/helpdata/en/cf/21ee45446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw73/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
    OVS search help..
    http://wiki.sdn.sap.com/wiki/display/Snippets/OVSSearchHelpinWebDynproAbap
    freely programmed inputhelp
    http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help
    http://wiki.sdn.sap.com/wiki/display/WDABAP/UsingSearchhelpattachmentsforWebDynproABAP
    Thanks,
    Kris.

  • F1 help in webdynpro for java

    Hello Exports,
    I wish to implement F1 help for fields on webdynpro page. Is this possible in webdynpro for Java? Any kind of reference in this regard will be useful.
    Best regards,
    Nakul

    Hi
    You can use and implement the FunctionKey UI Element in  WebDynpro. Find the below link to know about that.
    [http://help.sap.com/erp2005_ehp_03/helpdata/EN/f6/bff640fa4b8631e10000000a1550b0/frameset.htm|http://help.sap.com/erp2005_ehp_03/helpdata/EN/f6/bff640fa4b8631e10000000a1550b0/frameset.htm]
    Thanks
    Suresh

  • Search Help in Webdynpro displays specific text in German language

    We have created a custom search help which is being displayed using a custom Webdynpro application. We found that for this search help, although all other texts are displayed in English, a specific text ( 'Show filter criteria' ) is being displayed in German. Also, the same problem exists for search helps used in certain standard Webdynpro applications as well ( eg. WDT_FLIGHTLIST, TEST_DDIC ). Is there any SAP note to address this issue?

    Hi,
    see SAP note 1050954
    Regards, Heidi

  • Search help in webdynpro abap

    hi all,
    I am new to webdynpro abap.i want to implement search help for input feilds in my application,.can anyone give me step by step procedure to create search help
    thanx in advance.
    regards,
    Anusha

    Hi Anusha,
    Web Dynpro provides two types of pre-implemented search helps :
    1. ABAP Dictionary Search help
    2. OVS
    [Input Help for WDA|http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/frameset.htm]
    I have created a blog on implementing OVS help in WDA. You can refer that for sample code.
    [OVS help in WDA|/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap]
    In addition, you can also provide help through Drop Downs and Select options.
    [Working with Select options in WDA|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e]
    Plz reward if helpful.
    Thanks.
    Shruti

  • HELP?  webdynpro for abap - office integration??

    Hi ALL:
         Do you know how to use the cl_wd_office_control ?
        I  use 'WORD' or 'EXCEL' to display with webdynpro application and change the data ,now,i want to save the data into SERVER (word or excel).the action 'ON_SAVE' how to write?
    Thanks in advance!
          kind regards,
            Vallis.

    >
    gmasfk wrote:
    > Hi Abhi:

    >   I don't understand the Actions:onsave and onclose  which cl_wd_office_control include,
    >  
    >  like " IOS_TEST_HELLOWORLD_MS " ,it use other button to achieve it.but i'm not.

    >  The 'WORD' has function of 'SAVE' ,i want to use itself's.
    >
    >  Can it be coming true??

    >  Vallis.
    >
    > Edited by: gmasfk on Apr 27, 2009 8:38 AM
    Hi,
    You have the on_save event in the Office Control. This event will be triggerd when you press ctrl+s or press the save button.
    see the help here
    [https://cw.sdn.sap.com/cw/docs/DOC-45207|https://cw.sdn.sap.com/cw/docs/DOC-45207]
    on the event handler you have the changed copy of the document available in your context attribute of type xstring.
    You can use the put method mime-repository like Abhi described.

  • Need help for webdynpro requirement.

    Hi Experts,
    I have a requirement to design the webdynpro application.
    First i have to create a layout(view).In that view  we create a input fileds as Document id and Component repository id.
    When we pass these two id's then click on the getdata button.
    Now we want display the Total No of pages and Each page as a tab,logo and header details.
    After that when user click on first page tab it will shows the first page informatio.
    next when user click on second page it shows second page info...up to 10 pages.
    Entire these process will be on same view.
    and one  more doubt how to cut the trace area into multiple parts?
    what iam doing is i have to disply the input fileds in one trace element ares and display the output what i mentioned above in second trace area.
    i want Separate page numbers as a tab at left side in second trace area.
    At second trace area ontop display the logo and header details.
    next display the total number of pages .
    and left side display the each page as a tab.(one by one).
    next we can click on any page it shows the particular information about that page.
    How to use the frameui element?
    Please try to help me...............
    Thanks
    Satya
    Moderator message - Please don't post your requirements and expect the forum to do your work for you - post locked
    Edited by: Rob Burbank on Nov 18, 2009 10:26 AM

    hi Viraylab,
    each house bank you can find in table T012, in T012K you'll find the bank accounts to the housebank, the G/L account will be in T012K-HKONT.
    hope this helps
    ec

  • Value help in webdynpro applications

    Hi,
      I have implemented a simple value help application in webdynpro as given in one of the pdf's and it is working fine.
    I get a value and description pair as popup.
    I have changed the field name to "Subject ID" as shown below. and it is working fine too. now i want to change the label for the "display text" field. how can that be done.
    I mean there are 2 fields in the popup. for the first field i have changed the label name to "subject ID" (SubjectType.setFieldLabel("Subject ID"))
    now i want the second field label also to change to "Initials" instead of "display text" which is usually shown as default.
    <b>ISimpleTypeModifiable SubjectType = attributeInfo.getModifiableSimpleType();     
    SubjectType.setFieldLabel("Subject ID");
    IModifiableSimpleValueSet valueSet = SubjectType.getSVServices().getModifiableSimpleValueSet();
         valueSet.put("SUBJ-001","A.B.");
         valueSet.put("SUBJ-002","C.D.");
         valueSet.put("SUBJ-003","E.F.");
         valueSet.put("SUBJ-004","X.Y.");          </b> 
    is there any way to implement that?

    hi,
       I tried implementing Object value selector. I'am getting the data in the OVS table but there are some problems i'am facing
    1.> I cant see the headers for the result table
    2.> I cant see labels for the search input fields.
    I have not used any model binding, am directly binding an element to a node and hardcoding values in the element to test it.
    <b>IPublicOVSCustomController.IOutputListNode node = wdContext.nodeOutputList();
    IPublicOVSCustomController.IOutputListElement elem ;
    elem= node.createOutputListElement();
    node.addElement(elem);
    elem.setName("");
    elem.setId("");</b>
    does it have to do with this kind of binding cause in the pdf it gives an example with a BAPI. there has been a model binding and they are calling it like this:
    IPublicOVSCust.IBapi_Flight_Getlist_InputElement ovsInput =
    (IPublicOVSCust.IBapi_Flight_Getlist_InputElement)
    queryInputNodeElement;
    and the tables automatically show the hearders and there are label fields...does it have to do anything with model binding?

  • Reg: properties files in webdynpro

    Hi All,
            I want to develeopment webdynPro project,in which need to get environment dependent parameteres depending on Environments..as i do in java, i want to create .properties file with the WebdynPro project.
    i am unable to create  the file..Please help me out to develope a Projects independent of Environment....
    Thanks
    Nagaraju

    Hi,
    Where can i get the configuration api. Can u please provide where can i get it.
           IWDDeployableObject deployableObject = wdComponentAPI.getDeployableObjectPart().getDeployableObject();
           String configName = "test"; //This should match with the name specified in the src->configuration->test.properties
           WDConfiguration.getConfigurationByName(deployableObject, configName)
           //For 7.1 instead of the above code use
           IWDWebModule webModule = wdComponentAPI.getDeployableObjectPart().getWebModule();
           WDConfiguration.getConfigurationByName(webModule, configName);
    Regards
    Ayyapparaj

  • F1 help for webdynpro Component

    hi all,
    My requirement is when i press the F1 help on a webdynpro component a word doc should open.
    Is it possible to do that?
    if so please tell me how to do that?

    Hi,
    If this is gets deployed on portal, you can make use of the Knowledge Management(Repository) where the portal
    team stores the documents. You can get the path of this document(PCD path) and LInkToAction UI element action handler, you can use the IF_WD_WINDOW_MANAGER and use EXTERNAL_WINDOW method to open in an exteernal window y giving that path.
    FileUpload to Application server -
    http://forumsa.sdn.sap.com/click.jspa?searchID=32290382&messageID=8054356
    Regards,
    Lekha.

  • Remove Value Help form Webdynpro UI element (Inputfield)

    Hello,
    I have mapped function module field to Wedynpro UI element  Inputfield. Webdynpro shows value help for that field. I wanted to remove the value help from that Inputfield.
    is there any way to do that?
    Thanks
    VJ

    Another possibility: Create a calculated context attribute of type "string". In the set-method, write the entered value to the original attribute.
    Armin

  • Reg exp help

    Hi
    I want to extract the first token of filename (and not the directory path) from a string like this:
    D:\MIRACLE\UPLOADS\1361\HG-ORA02#xaldb#alertlog_contents#22022010111941.mirdf.loadfailed_240210095258_62
    HG-ORA02#xaldb#alertlog_contents#22022010111941.mirdf.loadfailed_240210095258_62
    \HG-ORA02#xaldb#alertlog_contents#22022010111941.mirdf.loadfailed_240210095258_62
    /HG-ORA02#xaldb#alertlog_contents#22022010111941.mirdf.loadfailed_240210095258_62
    the tokens would bed HG-ORA02 in all instances
    Could you help me creating a reg expression to get the token?
    best regards
    Mette

    Hi,
    Whenever you have a problem, it helps if you post your sample data in a form people can use.
    CREATE TABLE and INSERT statements are great; so is:
    CREATE TABLE     table_x
    AS          select 'D:\MIRACLE\UPLOADS\1361\HG-ORA02#xaldb#alertlog_contents#22022010111941.mirdf.loadfailed_240210095258_62'
                   AS filename, 1 as x_id FROM dual
    UNION ALL     SELECT 'HG-ORA02#xaldb#alertlog_contents#22022010111941.mirdf.loadfailed_240210095258_62'
                   AS filename, 2 as x_id FROM dual
    UNION ALL     SELECT '\HG-ORA02#xaldb#alertlog_contents#22022010111941.mirdf.loadfailed_240210095258_62'
                   AS filename, 3 as x_id FROM dual
    UNION ALL     SELECT '/HG-ORA02#xaldb#alertlog_contents#22022010111941.mirdf.loadfailed_240210095258_62'
                   AS filename, 4 as x_id FROM dual
    ;It also helps if you explain how you get the results you want from that data.
    Assuming that
    (a) the filename is divided, first, by '/' or '\' characters, and
    (b) each of those parts may be divided into tokens by '.' or '#' characters, and that
    (c) we want the first (b) part of the last (a) part:
    SELECT     REGEXP_SUBSTR ( REGEXP_SUBSTR ( filename
                              , '[^/\]*$'
                    , '[^.#]+'
                    ) AS token_1
    FROM     table_x;Here, the inner REGEXP_SUBSTR finds the last part delimited by / or \. You can add other delimiters by putting them in the square brakets, anywhere after ^.
    The outer REGEXP_SUBSTR operates on the results of the inner one. It returns the first part delimited by . or #. Again, you can add other delimiters.

Maybe you are looking for