on 2011 Sep 16 9:03 PM
Hi All,
In Component controller of 'ERC_REQ_MGMT' WD4A application, I just tried to set the posting title using the below code:
DATA lo_nd_language TYPE REF TO if_wd_context_node.
lo_nd_language = wd_context->get_child_node( name = wd_this->wdctx_language ).
lo_nd_language->set_attribute( name = `POS_TITLE`
value = lv_header ).
But system is giving a syntax error, saying that 'wdctx_language ' is unknown.
Please help me to solve this issue.
Regards,
Anil
Request clarification before answering.
Hello Anil,
That is done already in standard (see WDDOMODIFYVIEW of view V_POSTING_TEXT) under point 4) copy header from general job info to posting title if posting title is initial.
Regards
Nicole
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anil,
You get the posting title by following code as the header field :
DATA lo_nd_basic_data TYPE REF TO if_wd_context_node.
lo_nd_basic_data = wd_context->get_child_node( name = wd_this->wdctx_basic_data ).
lo_nd_basic_data->get_attribute( EXPORTING name = `HEADER`
IMPORTING value = ls_language_tab-pos_title ).
Regards
Nicole
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nicole Geischnek,
Actually I am trying to set the posting title with the requisition header, means Requisition title in Genaral job info and Posting title in Job postings tab should be same.
So I can see that your code can be used to get the header value.
DATA lo_nd_basic_data TYPE REF TO if_wd_context_node.
lo_nd_basic_data = wd_context->get_child_node( name = wd_this->wdctx_basic_data ).
lo_nd_basic_data->get_attribute( EXPORTING name = `HEADER`
IMPORTING value = ls_language_tab-pos_title ).
Could you please help to set the header value of posting in Component controller of WDA "ERC_C_REQ_MGMT_UI".
Thanks,
Anil
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.