cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

E-Rec: Problem with set attribute 'POS_TITLE' in Requisition mgmt

Former Member
0 Kudos
169

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

Accepted Solutions (0)

Answers (2)

Answers (2)

NicoleGeischnek
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

NicoleGeischnek
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

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