Webdynpro abap validations

Hi
all i am new for webdynpro, i have one doubt "how to do validations in webdynpro abap for a perticular report"
thanx in advance
karuna

Hi Karuna,
Below excerpt is taken from the SAP standard training material, "The view controller is concerned with displaying pre-generated data and then handling the resulting user interaction (validation, error handling, and so on). It is the custom controller’s job to interact with back-end logic to generate the required data."
So if you want to do any validations then you need to code them in your view controller level. Say suppose
the validation is only to be performed for a certain user action, it can be placed in the corresponding action handler method (onaction<action>). However, if multiple action handler methods exist, some validations may have to be performed in more than one of the action handler methods. In this case, it is a good idea to put the coding in an extra method in order to have it written only once.For this reason, a special hook method exists for each view, which is processed before any of the action handler methods is called. The name of this hook method is wddobeforeaction( ). If a screen is composed of multiple views (nested views), then all wddobeforeaction( ) methods are processed before any action handler method is called.
Hope this helps resolve your problem. If you need to validate your input data for just 1 action then you directly write in the corresponding action handler method. If your view can have multiple actions triggered then you can put your validation logic inside the  wddobeforeaction( ) method.
Regards,
Uday
And I guess that you are new to the SDN forum. Please create a new thread if you want to raise your doubts. Also try searching the forum for any previous similar threads.

Similar Messages

  • Validations in Webdynpro ABAP ....

    Hi All,
    Any body tell me whether client side validation is possible in Webdynpro ABAP ?
    Will I need to write Javascript code in WDA ? Please shade some light. Any help in this regards would be highly appreciated.
    Thanks,
    Anil Kumar

    Hi Roger,
    There no automatic required field check within Web Dynpro ABAP. If you set the state to "required" only the asterix is displayed. You should implement the check in WDDDOBEFOREACTION. I assume that the value should not only be checked for "not empty", but there should also be a validation whether the field is correct.
    Somethimes it is not too easy to check whether all mandatory fields are filled, because there may be customizing or personalization for the view. Therefore there is a method, which can be used for it: CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW. This method will take the personalization and customizing into account, especially if the admin has set some fields to required. But an additional check in the business logic should also be executed.
    regards, Regina

  • Validation of login screen in WebDynpro ABAP

    Dear All,
    I have created a login screen using WebDynpro ABAP, but am not able to validate user name and password.
    Please help in this with coding and if possible with samll example.
    Thanks & Regards,
    Tazeer KS.

    Hi Tazeer, i have posted on scribd this document, step by step webdynpro login application,
    pls go through the following link
    http://www.scribd.com/doc/50261280/Login-Application-in-webdynpro
    Step1:
    Create 1 node in component controller and bind the attributes of dictionary structure USR02
    Step 2: Select the required fields, bname and bcode,
    Step3: Create Main View as shown, and bind the context view and component  node and bind the input fields. 
    Step4:
    Create second view for navigation.
    Note:
    First main view is outbound.
    Second view is inbound.
    method ONACTIONLOGIN .
      TYPES : BEGIN OF ty_usr02,
                bname TYPE USR02-bname,
                bcode TYPE USR02-BCODE,
              END OF ty_usr02.
      DATA it_usr02 TYPE TABLE OF ty_usr02.
      DATA lo_nd_login TYPE REF TO if_wd_context_node.
      DATA lo_el_login TYPE REF TO if_wd_context_element.
      DATA ls_login TYPE wd_this->Element_login.
      DATA lv_bname TYPE wd_this->Element_login-bname.
      DATA lv_bcode TYPE wd_this->Element_login-bcode.
    navigate from <CONTEXT> to <LOGIN> via lead selection
      lo_nd_login = wd_context->get_child_node( name = wd_this->wdctx_login ).
    @TODO handle non existant child
    IF lo_nd_login IS INITIAL.
    ENDIF.
    get element via lead selection
      lo_el_login = lo_nd_login->get_element( ).
    alternative access  via index
    lo_el_login = lo_nd_login->get_element( index = 1 ).
    @TODO handle not set lead selection
      IF lo_el_login IS INITIAL.
      ENDIF.
    get single attribute
      lo_el_login->get_attribute(
        EXPORTING
          name =  `BNAME`
        IMPORTING
          value = lv_bname ).
    get single attribute
      lo_el_login->get_attribute(
        EXPORTING
          name =  `BCODE`
        IMPORTING
          value = lv_bcode ).
    IF lv_bname is INITIAL and lv_bcode is INITIAL.
      else.
    SELECT bname bcode from usr02 INTO TABLE it_usr02 WHERE bname = lv_bname
                                                      and bcode = lv_bcode.
    ENDIF.
      wd_this->fire_out1_plg(
    endmethod.
    Hope it might help you,
    Get back to me if your issue is not solved.
    Thank you

  • Validating Input fields in Interactive Adobe Forms with Webdynpro ABAP

    Dear Friends,
    Am new to Interactive Adobe forms with Webdynpro Abap,
    My scenario is, I have few Input fields, i need to handle the Messages when am not entering values in any of the Input Field,
    and raise the message when i click on Save Button.
    I have tried with setting the field as Required in Form itself, but i can't set the Field as Mandatory.
    I don't know how to do, Please give some needed points, as well needed some Script/Formcalc code.
    Thanks,
    Pradeep.

    Hi Pradeep,
    You can validate the fields by using javascript/formcalc logic in onclick event of button.
    Please refer the below links
    Adobe Form -How to make an Input Field Mandatory
    Validate Intercive Adobe Form
    Hope it helps you.
    Regards,
    Rama

  • Error when Interative Adobe Form is called from Webdynpro ABAP.

    Hi Experts,
    I trying to call a Interactive adobe form from ABAP Webdynpro application but I am facing the below error.
    Line: -
    The following error text was processed in the system GJD : User session (HTTP/SMTP/..) closed after timeout
    The error occurred on the application server az18u021_GJD_01 and in the work process 0 .
    The termination type was: ERROR_MESSAGE_STATE
    The ABAP call stack was:
    Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    Line: -
    When I uncheck the enabled property of the Interactive From in the Page of the WebDynpro I am able to execute the application successfully.But the Adobe form behaves as a Static Form when I uncheck the enabled property.
    So kindly provide your valuable suggestions to avoid the above error when I am calling a Interactive adobe form from Webdynpro ABAP.
    Thanks in Advance.
    Regards,
    Arun.

    Hello,
    Hello, are you sure you have your ADS credentials configured correctly and valid? I guess you know that is the only difference between clicking enabled on true or false. If you are not sure, you can use SE38, search for FP_* and pick some reports to check the licencing. The names of the reports are good enough to recognize the right one.
    Or maybe that is a security problem? Have you checked the ADS_ERROR string? Did you use the ADS trace?
    check: http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
    and especially note 999998
    Regards, Otto

  • Error in Webdynpro ABAP Table Tree

    Hi,
    I am using Table UI element in Webdynpro ABAP. I am showing data in tree format using element Treebykeytablecolumn.
    I have full tree structure loaded in begining of the code so don't need to load child on expansion of key. Since I have data already loaded, am setting attribute CHILDREN_LOADED as true.
    First row comes in table perfectly, but on expansion its giving error "The Entered Value Is Not on the List of Valid Values." Please  let me know your valuable input on this.
    Thanks and Regards,
    Praveen.

    Hi Shaira,
    I have removed all values from table and left only row key and Parent key then also I am getting the same issue. Could you please let me know what kind of data mismatch can be. Please let me know some example, if you have faced this issue.
    Thanks and Regards,
    Praveen.
    Edited by: Praveen Kumar on May 19, 2011 7:17 AM

  • Webdynpro ABAP based Iviews personalisation

    Hi,
    Can you please confirm if the right click +control option to personalise the iview method could be used for the iviews created out of webdynpro abap as well. or this method is only applicable for webdynpro java based iviews.
    Rgrds,
    Saket Kumar

    Hi,
    Kiran is right, you have certain approaches for personalization/customizing a WD4A. In the link he pointed you to, there already are two of three: End user Personalization and administrative Personalization (sap-confiq-mode=x). However, I advise you to use the way of component and application configuration as these are valid system-wide. Administrative Personalization only is valid client-wide.
    I would advise you to go through this WD4A tutorial:
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b52e13c3-0901-0010-8fa6-d11a51821b7c
    best regards, Lukas

  • BPM & WebDynpro ABAP

    Hello,
    I would like to call WebDynpro ABAP application from BPM.
    I assume in order to get process data from BPM i must call some specific web service with process id which must be delegated to WD ABAP. Via call of a web service
    it must be also possible to confirm the step as processed. Is it correct?
    Of course it would be nice if SAP would  offer an access to WD ABAP Components (context and events) directly from BPM like it is possible with WD Java.
    Regards
    Paul

    Hi Krishnam,
    We are currently working on a draft article for the SDN community on this...  to give you the overview of what is needed for WebDynpro ABAP UIs in BPM:
    1. You you need to create a Web Dynpro ABAP component with a CHIP (Collaborative Human Interface Part).  BPM will use the CHIP to call the component and export/import data.  This means your ABAP system must be at least on platform SAP NetWeaver 7.02 SP5 (e.g. a ECC 6.0 EHP5 system or similar)  and your NetWeaver BPM needs to be 7.2 or higher. 
    2. In transaction SE80 use the context menu on your Web Dynpro ABAP to add the CHIP
    3. In the CHIP you select the interface view and start-up plug to be exposed as CHIP.  Existing views and plugs can be used.
    4. You need exactly one interface component method with only one importing parameter to be used as the CHIP Inport.  An existing interface method can be used if you have one.  In the CHIP you select the method and which parameters to expose.
    Note: The parameter is either a DDIC structure or table type.  Within the parameter the data types currently supported by BPM for CHIPs are STRING, INT4, and WDY_BOOLEAN - so its best to stick to those and do any conversion in the mapping on the BPM side.
    5. You need at least one interface event with an exporting parameter to used as the CHIP Outport. An existing interface event can be used if you have one. In the CHIP you select the event and the parameters to expose.
    Note: Normally we create two events - a complete event and an error/cancel event (we can use the error event as a boundary event in BPM).
    6. On the "Properties" tab of the CHIP, mark the chip as "Remote-enabled" and enter the Loading application "WDR_CHIP_LAUNCHER".
    7. On the "Inports" tab of the CHIP, assign the tag CHIP_CONTRACT:PROCESS_STEP_START_POINT.
    8. On the "Outports" tab of the CHIP, assign the tab CHIP_CONTRACT:PROCESS_STEP_END_POINT.
    Note: if you forget to do steps 7 and 8, BPM will find your chip but complain that its not valid and won't let you assign it to your task.
    9. Then go to BPM and Create a new task (do NOT use the UI generation template here - just start with an empty task).  In the User Interface section of the task use the "Choose..." button and the UI Wizard "Online Technologies(Web Dynpro Java, Web Dynpro ABAP, Visual Composer).    Select Web Dynpro ABAP and your SAP system (you can use SAP systems configured in your NWDS preferences or add them on the spot here with the "Configure R/3 Destinations" hyperlink). 
    10. Press the "Search" button to find your component.  It will show the name of your CHIP -  not its technical id - so make sure you know what you called it.  By default it selects for only supported components (there's a checkbox to do this towards the bottom of the Select UI Component wizard window)  - if you can't see your CHIP, try searching for all components and you will be able to see a brief message giving you some idea as to what is still missing from your CHIP.
    11. Select your CHIP and complete the wizard.
    We'll be putting screenshots in the article.
    Hope that helps,
    Regards,
    Jocelyn

  • Create BRF object and call in Webdynpro ABAP

    Hi,
    can you please let me know how can i create BRF obejects and call them in webdynpro ABAP in WDC.
    Thanks,
    Mahesh.Gattu

    Hi Sachin,
    I am new to BRF,and i went through the BRF documents which are provided in Help.sap.Now my requirement is ,I have an webdynpro screen to create a policy number.When i click on Save all the fields should be validated through BRF.Being new to this environment,i need a start up help to achieve this.Please let me know the steps to validate the fields in webdynpro.
    Thanks
    Naresh Bammidi

  • Integration adobe interactive form - webdynpro abap - digital signature

    Hi,
    We are developing an interactive form inside a webdynpro abap with a signature field.
    The signature is not checked because there is not yet a ssl connection.
    When the Web Dynpro get processed the form appears to lose the signature.
    We have developed an archive process next to the affixing of the signature of the document.
    Ads connection is slow, so while the Web Dynpro is processed i'm able to read this error in the form(adobe reader):
    "Signed and all signatures are valid, but with unsigned changes after last signature. Please Fill Out The Following.
    You can save data typed into this form."
    When the page finishes processing I see this error in the form:
    At least one require validating signatures.
    *Clicking on "validate all" i get this error:*
    "3 Miscellaneous Change (s)"
    In few words, the pdf is saved and stored with a "warning" status in the signature.
    Has anyone had this problem?
    I also tried to create a new form and a webdynpro completely new, but the problem persists.
    Reguards all
    Bye
    Edited by: Pierpaolo Foderà on Dec 22, 2011 6:26 PM
    Edited by: Pierpaolo Foderà on Dec 22, 2011 6:27 PM

    with ZCI layout, you can directly get the values from the node that is bound.
    Check this thread:
    [https://forums.sdn.sap.com/click.jspa?searchID=16237232&messageID=6069448]

  • Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input

    Dear Friends,
    We are facing a serious problem for debugging. Expecting valuable input for the same.
    Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input in Production Server.
    The debugging (for WebDynpro-ABAP application) is working in Dev. Server for
    1st ] Within R/3
    Ex. debug for bapi within R/3. i.e. value enter as input in R/3 only.
    2nd ] From webpage to R/3
    Ex. Some input given on the internet web page developed through WebDynpro and external breakpoint set in R/3 it works. It directs to R/3 code through debugging.
    In Prod. Server the 1st case above is working but the 2nd case is not working.
    In Prod. Server the WebDynpro developed applications are running successfully through internet explorer webpage inputs. So running the application is not a problem in prod. Server but debugging of the same is the problem.
    The setting which are done in Prod. server are,
    1] RZ10 in parameters are set for port and host name.
    2.1] In SMICM check for ICM.
    2.2] Host file updated in Windows-System 32.
    3] In SICF following services are active,
    3.1] default_host/sap/bc/webdynpro
    3.2] default_host/sap/public/bc
    3.3] default_host/sap/public/bc/webdynpro/viewdesigner
    3.4] default_host/sap/bc/wdvd
    3.5] default_host/sap/public/icman
    3.6] default_host/sap/bc/gui/sap/its/webgui
    3.7] default_host/sap/public/ping
    3.8] default_host/sap/bc/error
    3.9] default_host/sap/bc/echo
    4] In SE80
    4.1] Internet services-System-are published
    4.2] Internet services-WEBGUI-are published
    4.3] Utilities-Setting-ABAP Editor-Debugging-Username & New Debugger set.
    4.4] Utilities-Setting-ABAP Editor-Editor-Front-End Editor(New) set.
    5] In Su01 for user profiles sap_all & sap_new is assigned and role  SAP_BC_WEBSERVICE_DEBUGGER is assigned.
    6] The support packages are also updated to latest level.
    7] Gone through following links but not getting any clues.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/74d50bd1431b5ae10000000a42189c/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/EN/77/3545415ea6f523e10000000a155106/frameset.htm
    Thanks in Advance.
    Best Regards,
    Abhijit.

    No cross posting
    Read the "Rules of Engagament"
    Regards
    Juan

  • How to display summation of a field in table displayed in Webdynpro ABAP

    Hi,
    I am displaying a table in Webdynpro ABAP. This consists of data for different PERNRs.
    I need to display the sum of a particular column for each PERNR, after the end of each PERNR data. (table sorted by PERNR).
    Is there any way to display this in the table? If so then please let me know.
    Regards
    Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Mar 7, 2011 9:20 AM

    Hello,
    I believe you have created the query in SQ00.
    Go to SQ00.
    Select your Query.
    Click on Change
    On the Top Left Hand Corner, you will find "BASIS MODE"
    Click on the Basis Mode Button
    Once you click on Basis Mode Button, you will get "Title"
    Change the title what you are intended to change.
    SAVE the entries.
    Execute the Query.
    You will be able to see new Heading on the Query.
    Hope this helps you.
    Regards,
    Ravi

  • Create PMD (Clinical Document) Document from Webdynpro ABAP

    Greetings everyone,
           I have developed two PMD document category(Tcode :N2T6 ) for Clinical documents in SAP R/3 and somehow with the limitation of R/3 in terms of developing user friendly screens like Auto fill and image processing etc...,Users do not satisfy with it.So we are planning to develop in Webdynpro ABAP.But i am not sure how do we integrate the webdynpro development with IS-H PMD (clinical documents) documents ,also I am looking for BAPI's to create our customized parameterized documents.Any help will be really appreciated.
    Thanks,
    Vignesh

    Hi Vignesh,
    You are right that certain features, such as auto-completion, are not supported in the PMD toolset. But as most of the data captured in those documents have a high importance for treatment process, you need to elobarate whether such a feature has any impact on patient safety. Just a quick one - user types An ... and the system determines matching diagnoses such Anorexia or Angina. In case the user picks the wrong one by accident the patient safety is an issue.
    Other features such as image management can be used. For that you need to use a PMD link module which does provide the image integration. Siemens will ship in the next release EhP6 such a link module for a third party imaging software. Beforehand the link module use with custom development.
    In general Siemens has started a product redesign program named "Smart UI". It's major aim is to provide an up-to-date user interface for all major application within i.s.h.med. The very first application we plan to ship is a web-based electronical medical record.
    In case you still want to develop your application, I'm sorry to say, but there are no BAPIs or Web services in the standard delivery. For changes to existing documents you can utilize the PMD API of generator version 2. But be aware that document creation is not supported by the API. You need to have a document. Also certain user exit developments may brake a change without having the GUI running. For instance a popup in the save routine will cause a dump if no SAP GUI is available.
    Hope this help.
    Axel Biernat
    Siemens AG
    Product Commercialize

  • Where do i find daily posted question on sap abap and sap webdynpro abap

    Hi
    where do we find Daily posted questions on sap abap and sap webdynpro abap in scn sap  so that i can go through the questions and answer them .

    Hi,
    Go to the Content tab of any space and click on discussions. Then you can sort them by date created or any other
    For ex: This link for WDA discussions: - Web Dynpro ABAP
    You can also click on Receive email notifications for any space to get updates on that space.
    hope this helps,
    Regards,
    Kiran

  • How to Download a PDF file from Webdynpro ABAP Screen

    Hi,
    I have developed a input form in webdynpro - ABAP(Not Adobe),
    As I am not using above services here, but would like to download the information I am capturing into a PDF file.
    can I do it without using adobe interactive forms ?
    thanks
    Siddharth

    Hi siddharth,
    My suggestion would be to create your output as a Smartform and call your Smartform in your View.
    For more Click this link.
    [HOW TO DISPLAY A SMARTFORM AS PDF DOCUMENT IN WEB DYNPRO FOR ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785]
    Regards
    Bulent

Maybe you are looking for

  • Lion Server VPN with 2 networks

    I hope someone has come across a similar problem to what I have had. I am having great difficulty trying to configure our OSX Lion Server (7.4) VPN service. The configuration I am trying to reach is one where we have an external IP for the server its

  • Power map not displaying correctly

    I have installed Power map for Excel 2013. the map won't display correctly. It is displayed in squares. See example. My PC meets the system requirements as described on your website. Direct X is version 11.

  • Qm with Batch chars

    Hi Gurus, I have big requirement which you might have faced this before, but very hard to understand. we have three components which goes in another component for eg: B1, B2 and B3 goes under component A1. B1 has got internal and customer specificati

  • What is the use of Indicator in defining sales document

    HI pls explain what is the use of Indicator in defining sales document

  • RAM upgrade for Thinkpad X60

    Hello I plan to upgrade my RAM from 1GB to 4GB in my X60. I have found two different RAM models of Kingston. One is specially made for Lenovo X60 [1] and one is the HyperX model [2] with the same specs. Should I chose one over the other? If yes, whic