Skip to Content
author's profile photo Former Member
Former Member

ABAP Webdynpro - Binding the system date to UI Element

Hi All,

I am new to web dynpro for abap. I am trying to display system date in the Requisition date in ESS screen. I have created an attribute for req date as attribute of type datum in context under a node . In wddoinit what should I do to retrieve the date and how can I map it to the UI element??? Please give some suggestions.

Thnaks,

Reddy.

Edited by: ksr_sudhir on May 18, 2011 4:13 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on May 18, 2011 at 09:10 PM

    Hi,

    In the context insted of Datum use SY-DATUM and in WDDOINIT from the wizard just map it to the context element.

    Hope this helps.

    Cheers-

    Pramod

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2011 at 07:13 AM

    Hi Sudhir,

    Check the below link. Hope it solves your query

    No active nametab exists for SY

    And my suggestions would be you should set the type of the attribute to 'DATS'. And the coding in WDOINIT method should be like this

    lo_el_nd_data->set_attribute(

    EXPORTING

    name = `DATE`

    value = sy-datum ).

    Hope this resolves your issue

    Regards

    Anand Sekar

    Regards

    Anand Sekar

    Edited by: Anand SAP on May 23, 2011 9:55 AM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.