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

data retrieve from one table control to another table control

Former Member
0 Likes
901

Hi all,

I had an requirement like to create Two table controls.

for first Table control i had an sel field defined as 'MARK'.

when i check the row in the first table control think it is header data for sales order .

all the item details have to retrieve in the second table control.

This is my requirement, i am not able to trigger when selecting the row in table control.

will anybody had an experience like this.

Regards,

Madhavi

6 REPLIES 6
Read only

Former Member
0 Likes
757

Hi

put a PUSH BUTTON on the table control or use RADIO BUTTON instead of row selector this will trigger the PAI

regards

Ramchander Rao.K

Read only

0 Likes
757

Hi ,

thanks ,

But i need it on the row selector.

Atleast let me know is there is any Standard transactions functioning like this process

regards,

Madhavi

Edited by: varisetty madhavi on Dec 3, 2008 12:42 PM

Read only

0 Likes
757

hey Madhvi,

Try custom Containers, they might solve your problem.

If you want to see a standard transaction then you can see MIGO transaction

where in he is places a button just like the row selector and as and when the PAI is triggered he is populating the line items in the below table control.

I do remember very faintly using classes to achieve the same reqmt as yours.

Will try to get back to u with the code in case m able to do it.

Regards,

Ravi Kiran

Read only

Former Member
0 Likes
757

hi,

check this code

WHEN 'DETAILS'.

LOOP AT ltab.

IF ltab-mark = 'X'.

MOVE-CORRESPONDING ltab TO ttab.

ENDIF.

ENDLOOP.

IF COUNTER2 <> 0.

CALL SCREEN '0300'.

ELSE.

MESSAGE 'Select a row first' TYPE 'I'.

ENDIF.

here first table control have ltab table and second table control have ttab table. so it move the data u hav selected in first table control to second table control

thanks

Sachin

Read only

Former Member
0 Likes
757

Hi Madhavi,

If we need the case to display header and item as mentioned in 2 table controls....

we can display in table control 2/item only (the line items of the one selected in the table control 1 or the header )...so ,at a time we need to display line items for only 1 header ....

so ...first disable the selections/multiple selections to disable the row selector

We have already declared a field type C to capture the value for the field selector...so we can convert this field to a radio button and then assign a function code to the radio button at screen level

Whenever you click on the radio button ..immediately the function code is triggered..then in PAI ..we can check and find the header record with 'X' and populate the data for the table control 2

Hope it helps

Regards

Byju

Read only

Former Member
0 Likes
757

thanks