on 09-08-2009 1:36 PM
Hi All,
I am new in webdynpro for ABAP.
I need one help from all of you.
I make a editable table in webdynpro for ABAP.
Right now the header comes from database table( from field label )
Now I have a requirement to conert the static header from dynamic header.
It means when i run my program, it will not take header from database table, It will take header from where i have to write code.
Please Help me
HI,
for every table column Caption is there. U can set that. If that is fixed, means u does not need to chnage anywhere then just hardcode it. otherwise bind it with an attribute of type string and set it's value in doinit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In wdoinit, I write the given below code.
I want to give date of monday as my heading of that column.
data: week_num type SCAL-WEEK,
monday type sy-datum,
sunday type sy-datum.
CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
EXPORTING
DATE = SY-DATUM
IMPORTING
WEEK = week_num
MONDAY = monday
SUNDAY = sunday
.
data: lo_nd_head type ref to IF_WD_CONTEXT_NODE.
DATA lo_el_head TYPE REF TO if_wd_context_element.
LO_ND_head = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_head ).
get element via lead selection
LO_EL_head = LO_ND_head->GET_ELEMENT( ).
get single attribute
lo_el_head->set_attribute(
exporting
name = 'MON'
value = monday ) .
Hi Narender,
We have the Columns under the TABLEUI Element. Every COLUMN under it is associated with Column CAption. Just enter the text as per ur requirement . That's it.
Another way to do that programmatically is
Bind that caption to an attribute in the context. At the Initialization of view, fill that attribute value to the context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Is this Normal TABLE UI or ALV.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.