2006 Nov 22 11:16 AM
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.
2006 Nov 22 11:20 AM
Hello Kashitija,
Put one button as "Refresh". By pressing this button, update values in the second table control.
Regards,
Naimesh
2006 Nov 22 11:35 AM
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.
2006 Nov 22 11:34 AM
Hi,
tabcntl-current_line will give you te current line and also system field sy-stepl will give you the current line.
Regards,
Sesh
2006 Nov 22 11:38 AM
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.
2006 Nov 22 11:47 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |