‎2007 Jul 14 10:37 AM
hi for all viewers and thank and rewards also in advance.
Q1.in bdc-table control if one field is common then it simple but if no any field i common then how can solve this issues..
Regard : Deep
‎2007 Jul 15 3:11 PM
Hi,
U may create another ITAB for the uncommon fields and try the following.
Loop at TABA into LW_TABA.
read table TABB with key LW_TABA -field1 = field1
LW_TABA -field2 = field2.
IF sy-subrc <> 0. "If not found then move
move TABA-field3 to ITABC-field3.
append ITABC.
ENDIF.
Endlo
<b>Reward points</b>
Regards
‎2007 Jul 14 2:44 PM
Hi
Table control is used to display multiple records on the screen with a table like display..
Generally we use this table control for most of the transactions Items display which are aginst for a single header record disply
so there will be always a link between the table control screen and the previous screen based on which (based on some common field) the data flows into it.
See any transaction there will a single Header record and Multiple Item records( like PR,PO,SO,Delivery,Invoice etc)
So there will be always some common field between the header and item(tabe control) data.
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 14 2:47 PM
‎2007 Jul 15 3:11 PM
Hi,
U may create another ITAB for the uncommon fields and try the following.
Loop at TABA into LW_TABA.
read table TABB with key LW_TABA -field1 = field1
LW_TABA -field2 = field2.
IF sy-subrc <> 0. "If not found then move
move TABA-field3 to ITABC-field3.
append ITABC.
ENDIF.
Endlo
<b>Reward points</b>
Regards