cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Webdynpro - Binding the system date to UI Element

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sudhir,

Check the below link. Hope it solves your query

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

pramod_gopisetty1
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Dear pramod,

Thanks for your response.I have changed the type of RequisitionDate to SY-DATUM instead of datum.But it is giving the following alert "No Active name tab exist for SY" .Please Help!

Thanks,

Reddy.

pramod_gopisetty1
Active Contributor
0 Kudos

Hi,

Check the notes

Note 573858 - DA300: No active nametab available for <table>

Note 306296 - No active nametab for <table> exists

And also check if Table SYST is active.

If that doesn't help just define Tables : SYST and compile the application and see.

Hope this helps.

Cheers-

Pramod

Former Member
0 Kudos

Change the type context attribute to "SYDATUM". And modify the date at MODIFYVIEW.