Date field in Web Dynpro ABAP

Hi All,
I want to implement the Input Date Field on my WebdynPro Application in the same way as it is availble at "SCN - Contribution Points / filter criteria" .
I want to give the user the option to change the year , past or future easily.
I have tried to call that date UI Element , but unable to do so.
Please help me which UI Element to use as am new in WebDynPro ABAP...
Thanks and Regards
Hemachandran

hello,
One way of doing is  -  declare two attributes(DATE_LOW and DATE HIGH ) in the context node of type DATS.Place two input feilds in the view INPUT1 and INPUT2 , bind the two attributes to the two input feilds.
The other way is use  OVS ( object value selector ) Search Help.
Regards,
Naga

Similar Messages

  • Data validation for Date Field in Web Dynpro ABAP

    Hi ,
    In my WDA i want to perform data validation for date filed. (i.e. While creating a new record i have to check the Start Date should be always lesser than End Date.)
    If u ll enter the wrong date it should validate the Date and throw an error message.
    Please Reply soon its urgent.
    Thanks,
    Deepika

    Hi,
    First read the two attributes start date and end date.
    Then write the following condition.
    IF item_start_date > item_end_date.
    Error message.
    Endif.
    For pop up error message you need to use Create_window method of the Interface if_wd_window.
    Thanks.

  • XML Meta data integration in Web Dynpro ABAP

    Hello,
    Is it possible to integrate XML Meta data with UI definitions in Web Dynpro for ABAP like Project Import in Development Studio?
    Thanks!
    Y. Hryhorovych

    Hi Yuriy,
    Web Dynpro components and applications are normal development objects. This means, you can transport them to any system using the change and transport system. There is no need to work with a separare xml representation.
    Best regards,
    Thomas

  • Declaring Data Globally in Web Dynpro ABAP

    Hi,
    I have a 2 views in my web dynpro application. 1) Selection and 2) Display. On the Selection view, I have a select option. On the slection view, onclick of a button I have written the following code:
    DATA: LR_SELECT_OPTIONS TYPE REF TO IWCI_WDR_SELECT_OPTIONS.
    DATA LR_HELPER TYPE REF TO IF_WD_SELECT_OPTIONS.
    DATA: LT_RANGE TYPE REF TO DATA.
    FIELD-SYMBOLS: <LT_RANGE_TABLE> TYPE WD_THIS->ELEMENTS_RANGE,
    <LS_FIELD> TYPE LINE OF
    IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
    DATA: LR_COMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
    DATA: LT_FIELDS TYPE IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
    LR_COMP_USAGE = WD_THIS->WD_CPUSE_SELECT_OPTIONS( ).
    IF LR_COMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
    LR_COMP_USAGE->CREATE_COMPONENT( ).
    ENDIF.
    LR_SELECT_OPTIONS = WD_THIS->WD_CPIFC_SELECT_OPTIONS( ).
    LR_HELPER = LR_SELECT_OPTIONS->INIT_SELECTION_SCREEN( ).
    LR_HELPER->GET_SELECTION_SCREEN_ITEMS( IMPORTING
    ET_SELECTION_SCREEN_ITEMS = LT_FIELDS ).
    READ TABLE LT_FIELDS ASSIGNING <LS_FIELD> INDEX 1.
    ASSIGN <LS_FIELD>-MT_RANGE_TABLE->* TO <LT_RANGE_TABLE>.
    DATA : LR_RANGE TYPE REF TO IF_WD_CONTEXT_NODE.
    LR_RANGE = WD_CONTEXT->GET_CHILD_NODE( 'RANGE' ).
    LR_RANGE->BIND_TABLE( <LT_RANGE_TABLE> ).
    My question is that I want the data entered by the user on the selection view in the select options to be visible on the next view, Display. So how and where do I declare the field symbol <LT_RANGE_TABLE>, so that it is globally visible.
    Regards,
    Mick

    Hi,
    I have been able to get rid of the problem posed in my earlier mail about assigning values from a field symbol to an internal table. Now its back to the same old problem.
    As mentioned earlier I have a view1 in which I am populating a range (select option), which I want to display on the next view, view2.
    On view1, on click of the button, I have populated internal table I_RANGE2.
    DATA: IT_RANGE2 TYPE TABLE OF ZTTRANGE.
    ZTTRANGE is a table type in SE11 with linetype as ZRANGE (structure in SE11).
    I want to pass I_RANGE2 to the method in the component controller:
    WD_COMP_CONTROLLER->HOLD_DATA( CHANGING IT_RANGE = IT_RANGE2 ).
    In the component controller the parameter IT_RANGE has been declared as
    PARAMETER             TYPE                REFTo             Associated Type
    IT_RANGE                 Changing              u221A (Tick)                ZTTRANGE
    But I am getting an error:
    IT_RANGE2 is not type-compatible with formal parameter IT_RANGE.
    Please help resolve this error.
    Mick

  • Creating hyperlink in column based on data, in ALV Web Dynpro ABAP

    Hi,
    I have a scenario in which i need to create hyperlink on a column. However all rows in that column need not be hyperlink. Based on the data i need to create it as hyperlink.
    eg: Column1 Column2
          ABC        1234
          DEF     5678
          GHI          9123
          DEF     5678
    So in above case where data is DEF i keep it as hyperlink, other rows are not.
    I am using ALV component to display data in a view container element.
    Please help me with this.
    Regards,
    Saud

    hi,
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    lr_column = l_value->if_salv_wd_column_settings~get_column( 'CONNID' ).
    DATA: lr_link_to_action TYPE REF TO cl_salv_wd_uie_link_to_action.
    CREATE OBJECT lr_link_to_action.
    lr_link_to_action->set_text_fieldname( 'CONNID' ).
    *lr_link_to_action->SET_ENABLED_FIELDNAME( 'BOOL' ).*
    lr_column->set_cell_editor( lr_link_to_action ).
    Here BOOL is my context attribute of type wdy_boolean inside the context node.
    Now based on the value of BOOL , your link to action will vary.
    DATA lo_nd_cn_flight TYPE REF TO if_wd_context_node.
      DATA ls_cn_flight TYPE wd_this->element_cn_flight.
      DATA lt_cn_flight TYPE wd_this->elements_cn_flight.
    *   navigate from <CONTEXT> to <CN_FLIGHT> via lead selection
      lo_nd_cn_flight = wd_context->get_child_node( name = wd_this->wdctx_cn_flight ).
      SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE lt_cn_flight.
        *LOOP AT LT_CN_FLIGHT INTO LS_CN_FLIGHT WHERE CARRID = 'AA'.*
          *LS_CN_FLIGHT-BOOL = ABAP_TRUE.*
          *MODIFY LT_CN_FLIGHT FROM LS_CN_FLIGHT TRANSPORTING BOOL.*
          *ENDLOOP.*
      lo_nd_cn_flight->bind_table( lt_cn_flight ).
    CN_FLIGHT is my context node binded to ALV. Now in above code you can set the  value of BOOL attribute and link to Action will depend on this value.

  • Question about meta-data of Web Dynpro ABAP / Web Dynpro Java

    Hello together,
    everywhere I can read, that Web Dynpro meta-data is platform independent.
    I´ve read into a book, that the meta-data of Web Dynpro Java is saved as XML and
    that Web-Dynpro Java Runtime generates runnable classes and sourcecode out of this...
    - What about Web-Dynpro ABAP? Is Meta-code in ABAP is saved in XML too?
    - just for theory: is ist possible to take the meta-data of a Web-Dynpro ABAP component and
      generate a Web-Dynpro Java Component out of this?
    I tried to find it out but i failed... In table WDR_RR_LOAD (is this the right one?) I found only the
    field data. But this is a RAWSTRING and I don´t know how to make I "readable".
    I must know this for my thesis for my studies, not for work.
    Thank you very much !!!!
    Greetings,
    Oliver

    Me again,
    I am not sure if I understood it right...
    The meta-data which describes the visual part of a view is saved as XML and
    would be rendered i.e. in the webbrowser... Right?
    What about the meta-data of the Web Dynpro application?
    Is this meta-code into an other structure or XML too?
    Thank you very much.
    Many Greetings,
    Oliver

  • Adobe form to save data using Web Dynpro ABAP

    Hi. I am pretty new to SAP world and trying to learn and work on a task given to me relate to
    creating Adobe offline form using Web Dynpro ABAP same time.
    I have several questions and hopefully, many gurus like you will provide answers.
    I noticed there are many examples creating and using Adobe interactive forms (though not many newer version),
    but I didn't see (at least I didn't find any) any detail example on saving data to an internal table (such as fixed assets, vendor master, etc)
    using interactive form. Is there any detail explanation/example on this?
    I have ask this question in another forum (before I found this forum) but didnu2019t get the answer yet.
    2. When I tried to see graphic layout and modify the layout from Web Dynpro, I can't see the graphic layout.
    All I see is text list of fields/buttons that I created, but can't see section for graphic layout where I can modify layout.
    I am sure I didn't install/configure something correctly.
    Anyone has any idea what I didn't do?
    I have another question, but I will wait till later after I figure out above ones first.
    Thanks for all your help in advance.
    John

    Hi John,
    In the WD4A view, there is a button "Show/Hide Layout Preview".
    Click on that button to be able to see the Layout.
    Note that this button is next to the Pretty Print button.
    regards,
    Reema.

  • Web Dynpro Abap: Select-Options: Save Selection Data

    Hello,
    I am using select-options in web dynpro abap.  Need to add a feature where the user can save his selection values as a variant. 
    All I can think of is getting all the selection values and saving these into a Z table.
    Can you suggest a better way?
    Thank you.
    Irene

    Hi Irene,
    Alas, it's currently not possible. You could write your own wrapper though adding a save button. Inside of the action handler you could retrieve the range tables of all fields, convert their content to a structure you like and save it a fitting db table. My suggestion is to use XML and a DB table with a XSTRING field in the data section to store the range table values.
    Using personalization will allow you to customize your ui and to hide certain select option fields.
    Best regards,
    Thomas

  • How to add button ui element in alv table data in web Dynpro ABAP

    Hi Experts,
    I have one requirement,
    Actually I was devloped normal table in web Dynpro ABAP
    in that i have one column Display as a button .
    when i select that button need to display some data.
    same requirement i need to devlope in alv table.
    i am going to attach file please check.
    Thanks in advance.
    Regards,
    Subba Reddy.

    Hi,
    You can create Button in your ALV table column with below code
    DATA lo_button              TYPE REF TO cl_salv_wd_uie_button.
    CREATE OBJECT lo_button.
        CALL METHOD lv_value->if_salv_wd_column_settings~get_column
          EXPORTING
            id    = <your column name>
          RECEIVING
            value = lo_system_select_hdr.
        lo_button->set_enabled( value = abap_true ).
       lo_button->set_text( value = 'Avaliable List'  ).
        lo_button->set_tooltip( value = 'Avaliable List' ).
        lo_system_select_hdr->set_cell_editor( value = lo_button ).
    And for button click action,
    Create a method (say SHOW_DATA( ) ) with on_click event handler.And when you click button on your ALV table, SHOW_DATA( ) method will trigger.
    Thanks
    KH

  • Data Maintenance Web Dynpro ABAP versus Classic ABAP

    I am working on a project where I will have to create a couple of custom master data tables. In classic SAP it is very easy to create standard table maintenance screens for master data via transaction SE54 where you can assign an authorization group for security purposes if necessary. Although we very much like Web Dynpro ABAP development, I cannot find an easy way to create the same userfriendly table maintenance screens as we know them in classic SAP.
    That's why I am a bit in doubt: on the one hand we want the web look and feel, but on the other hand creating the maintenance functionality in classic sap is very simple and straight forward. Whatever the solution will be, classic or not, it will become part of a portal someday. I know both solutions can be linked to a portal so that's no decision maker in our case.
    Does somebody have any idea if there is something available for generating standard data maintenance screens in Web Dynpro ABAP without the need for a lot of additional coding? Basically I am looking for a web dynpro replacement for transaction SE54.
    Looking forward to your thoughs!!
    kind regards
    Angelique Heutinck
    IFF

    Hi Angelique Heutinck  ,
                                       Webdynpro abap is a screen design interface, as module pool, in module pool development we can only desigh screens, similarly in wda is also intented to design screen that are web enabled,
    while in classical abap we have the povision to call a transaction from a screen, while in wda, we have the provision to call another screen or view, but not a transaction.
    unfortunately we cant embedd a tranction inside a wda development, so the only provision to simulate SE54 in wda is to create screens manually.
    Regards
    Sarath

  • How to display the data of CJ2C(T-CODE) using web dynpro abap

    Hi all:
        How to display the data of CJ2C(T-CODE) using web dynpro abap.
        CJ2C used to display a Gantt Chart.
        Thanks.

    Hi,
    Create a Value attribute (resource) of type Resource, bind it with the property of File Upload UI element.
    On action place the code and Deploy the application
    byte[] bytes = new byte[ 1024];
    FileOutputStream out = new FileOutputStream( new File( <path in server>));
    InputStream in = resource.read( true);
    int len;
    while( ( len = in.read( bytes)) > 0)
         out.write( bytes, 0, len);
    in.close();
    out.close();
    Regards
         Vinod V

  • How to see the authorization data of a user in Web Dynpro ABAP

    Hi all,
    if I have authorization problems in a normal SAP transaction I can use transaction SU53 to see the missing authorization objects.
    How can I get the missing authorization objects for a Web Dynpro ABAP application?
    regards

    What about using SU53 again - just log into ABAP system and use the F5 - "other use"r option to select the user having the issues.
    There is unfortunately no way to see this as standard from the WDA application.
    Sorry,
    Chris

  • Adobe Flash Islands for Web Dynpro ABAP Data Binding problem

    I have downloaded the NetWeaver 7.1 Trial (includes Adobe Flash Islands for Web Dynpro ABAP). I try to create a very simple FlashIslands component running within the Web Dynpro Application, everything looks good. However, all binding to the Flex component is not working. Does anyone know why?
    Since it's trial version, I login as BCUSER into NSP system. When I load up the build-in sample, such as Chart Demo, the binding to Flex seems working. I suspect if it has anything to do with package? I could only create my Web Dynpro under the $TMP package, as all the build-in sample are defined in SWDP_DEMO.
    Please help.
    Alan

    hi,
    Check out this link. It will give you an idea how to integrate Aobe island comp with web dynpro.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307b434f-ff32-2b10-e885-991247270480
    Thanx.

  • Unable to perform Calculations on Excel exported from Web Dynpro ABAP

    Hi Gurus,
    I have a custom functionality "Export to Excel" internal table data on my web dynpro application. I dint go with standard ALV feature because it doesnot give flexibility to add colours to excel sheet and add multiple tabs and so i had to write XML ABAP coding in the web dynpro application to achieve this. While passing the internal table data into cells, i created cells with string data type and hence all the fields in the excel are now in char type. Users are unable to perform any calculations because of this issue, i tried to format the cells but it doesnot work. Please help me.
    Regards,
    Pravs.

    Hi,
    Just do the following in excel before downloading and check whether it works.
    Tools->Options->International tab.
    In that mention decimal separator as ,(comma).
    Thousand separator as .(dot).
    Uncheck use system separators.

  • Problem in web dynpro ABAP program

    There are 2 input fields on first view carrid, connid and one "GO" Button
    1) "FLIGHTINFO" is the node under context of first view
    2) " FLIGHTTAB "  is a node under context of component controller having cardinality " 0..n " ,Dictionary structure "SFLIGHT" (i have selected only these many attributes " carrid, connid, fldate, planetype, seatsmax and seatsocc " )
    3) I have created  Method "FLIGHTTAB_FILL" in component controller to fill context node FLIGHTTAB
    Insert the source code for doing the following:
    -     Navigate to context node FLIGHTINFO
    -     Get element at lead selection for context node FLIGHTINFO
    -     Get CARRID and CONNID 
    -     Fill an internal table with all datasets from database table SFLIGHT, who meet the constraints for CARRID and CONNID.
    -     Navigate to context node FLIGHTTAB
    -     Bind the internal table(having all standard fields of sflight ) to the context node FLIGHTTAB ( having those 6 attributs).
    4) On action GO ->Implement the invocation of Method " FLIGHTTAB_FILL".
    5) I have mapped node FLIGHTTAB to context of OUTPUTVIEW.  Display table on view OUTPUT_VIEW (for this i hav used code wizard).
    Problem: after entering values of connid & carrid I m getting proper entries in internal table. but output view is not at all trigger (although i have created plugs). Is it necessary that while binding internal table with context node FLIGHTTAB  should have same no of fields (i.e. in this case 6 )?
    I am a fresher, My concept of bindings and cardinality are not so clear so can anybody help me out? 
    Thanx in advance for replying.

    Hi johnright ,
        No i dont think it is necessary that while binding internal table with context node should have same no of fields as the internal table . You might get some improper values in the corresponding fiels but it will not lead to any error.
      In your OUTPUTVIEW once you created the table UI element in layout and you bind it to FLIGHTTAB node you dont have to use any code wizard method to display the values. If the node contains values it will display automatically. (in your case you are filling it in step #).
    Check :-
    1. In your On action GO after filling the table you are firing the out bound plug :-
        WD_THIS->FIRE_INITIAL_OUT_PLG(
    2.All outbound plug and inbound plug are link properly and every thing is ACTIVATED.
    If still unable to find the error try to debug method wise and find where the error occurs and reply to us.
    Binding:-
    In web dynpro ABAP you will not able to get any value of any variable outside of any method. Here we use context node which is referrence that we create reference to any particular structure we required. Now to hold the values you need to bind
    the values of your internal table to the context node.
    If the node is in view then its values are visible to all the local method of the view.
    If the node is in component controller then  the you bind a value to the node from one view and you can get it in another view.
    Remember binding and mapping are not same.
    Mapping is done between node like inthe second scenario i have explained you need to create a node in view controller and then you need to map it to the corresponding view of component controller to send values across view.
    cardinality:-
    Each node contains data fields that represent one of the following:
        An individual instance of an object type
        A table of instances.
    This property of a node is known as its cardinality of table of instances.
    If you need table instance :- 0..n or 1...n
       In case of 1...n one default value is created. generally we use this as mainly we need to work with table.
    In case you need a individual instance of a object or like you want value like a structure only :-  0...1 or 1....1.
    Thanks & Regards,
    Monishankar C

Maybe you are looking for

  • J1IIN TAX CODE A7 INVALID IN TAXINN

    Hi, While saving excise invoice in J1IIN Error message TAX CODE A7 IN PROCEDURE TAXINN is invalid is coming Pl suggest

  • Sending to Groups

    When I try to send an email to a group, with the individual addresses hidden, I get the following error message: +This message could not be delivered and will remain in your Outbox until it can be delivered.+ +Sending the message content to the serve

  • How do I find duplicate files?

    I am guessing this is a simple answer, and I apologize for not knowing it, but I want to ask. What's the easiest and best way to see if you have duplicate files? I am reorganizing a couple very big picture folders into smaller subfolders and am sure

  • How to pass a string longer than 30 to an Export Parameter in a PI sheet ?

    Hi All, I'm trying to set  up a process instruction in a PI sheet that calls a URL web page. I found the function module CALL_BROWSER and tested it in SE37 and it works fine. I created a process instruction to call this function module and pass param

  • Unlock status help!

    I've been waiting almost two weeks for Apple to unlock my iPhone 4 from the current phone network/carrier, how do I find out when it will be done? Thanks in advance, Paul.