cancel
Showing results for 
Search instead for 
Did you mean: 

Column value of Standard table not the ALV one

former_member219737
Participant
0 Kudos

Hi Experts,

I need to get the column name on choosing pop-up via LINKTTOACTION in a cell of a table...

I need to get the column value to manipute further.

I have attached the screen for reference ...

Please suggest me an idea to get the column name dynamically .

Regards,

Karthik s

Accepted Solutions (1)

Accepted Solutions (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi Karthick,

In the event handler of Link to action, use the below code to get the context element of selected value.

DATA: lo_element type ret to IF_WD_CONTEXT_ELEMENT.

lo_element = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).

Now you can use lo_element->get_attributes to get the values of selected row.

Regards,

Harsha

former_member219737
Participant
0 Kudos

Hi Harsha,

Thanks for your reply.

I want to get the Column name of the Cell during the LINKTOACTION part ...

Regards,

Karthik S

ramakrishnappa
Active Contributor
0 Kudos

Hi Karthik,

You get the column name in "ID" parameter of wdevent.

write the below code in on_link_to_aciton event handler.

data lv_column_name type string.

wdevent->get_data(

                    EXPORTING id = 'ID'

                    IMPORTING value = lv_column_name ).

Hope this helps you

Regards,

Rama

harsha_jalakam
Active Contributor
0 Kudos

HI Karthik,

To get the column name , parameter ID will give you the required value.

Check the below link for the same.

SAP Library - Web Dynpro for ABAP

Regards,

Harsha

former_member219737
Participant
0 Kudos

Hi Rama,

Thanks for your reply . I have used the below code and i am getting the error that .."ID" doesnot exist ...

data lv_column_name type string.

wdevent->get_data(

                    EXPORTING id = 'ID'

                    IMPORTING value = lv_column_name ).

Can u suggest me an idea on it .

Regards,

Karthik S

former_member219737
Participant
0 Kudos

Hi Rama,

I used the code below ...I was able to get the editor name of that column

   " To Get Column Name
wdevent->get_data(
                    EXPORTING name = 'ID'
                    IMPORTING value = lv_column_name ).

output :

lv_column_name = 'T_TIMESHEET_DAY3_EDITOR'

Regards,

Karthik S

former_member219737
Participant
0 Kudos

Hi Rama,

I will proceed further and inform u status of my applications .

Regards,

KArthik S

ramakrishnappa
Active Contributor
0 Kudos

Hi Karthik,

If your question is answered, please close the ticket by marking replies as correct answer / helpful answers whichever is helped you in resolving your issue.

It can help others in future to identify the correct/helpful answers for question.

Regards,

Rama

Answers (1)

Answers (1)

Former Member
0 Kudos

You can access the column name by R_PARAM parameter in the event handler

r_param->IF_SALV_WD_TABLE_CELL_ACTION~ATTRIBUTE

Thanks,

Raju Bonagiri