‎2008 Dec 03 6:55 AM
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
‎2008 Dec 03 7:04 AM
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
‎2008 Dec 03 7:07 AM
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
‎2008 Dec 04 8:25 AM
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
‎2008 Dec 03 7:51 AM
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
‎2008 Dec 03 11:20 AM
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
‎2009 Dec 14 12:54 PM