Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

using current line attribute of table control in process on value request.

Former Member
0 Likes
1,176

Hi,

I am trying to catch the current line attribute of table control in process on value request. But it is not getting populated.

It gets populated in the PAI block within loop-endloop.

I have a table control which has two columns with respective F4 helps.

The second needs to be populated dynamically depending on the value in the first.

So i need to trace the current line attribute of the table control.

Please help.

-kshitija.

Hi,

I am trying to catch the current line attribute of table control in process on value request. But it is not getting populated.

It gets populated in the PAI block within loop-endloop.

I have a table control which has two columns with respective F4 helps.

The second needs to be populated dynamically depending on the value in the first.

So i need to trace the current line attribute of the table control.

Please help.

-kshitija.

5 REPLIES 5
Read only

naimesh_patel
Active Contributor
0 Likes
915

Hello Kashitija,

Put one button as "Refresh". By pressing this button, update values in the second table control.

Regards,

Naimesh

Read only

0 Likes
915

Hi Naimesh,

I have only one table control and two columns in it.

I need to trace the current line of the table control because there has to be some relation between the first value and the second.

Can you help me with getting this value?

I can refresh that table but the issue still remains.

-kshitija.

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
915

Hi,

tabcntl-current_line will give you te current line and also system field sy-stepl will give you the current line.

Regards,

Sesh

Read only

0 Likes
915

Hi Seshatalpasai,

tabcntl-current_line/sy-stepl should give me the current line but it is not giving.

I think it is because it is in the process on value block.

Can you please think of some solution to it?

-kshitija.

Read only

0 Likes
915

HI,

Try the following

DATA: dynprofields type table of dynpread with headerline.

GET CURSOR LINE cursor_line.

dynprofields-fieldname = Field1.

dynprofields-stepl = cursor_line.

append dynprofields.

Then you can get te value in the Field1 using the FM

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = sy-repid

dynumb = sy-dynnr

TABLES

dynpfields = dynprofields

EXCEPTIONS

OTHERS = 4.

But GET CURSOR LINE shoud give you the current line.

Regards,

Sesh