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

bdc

Former Member
0 Likes
508

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
479

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

3 REPLIES 3
Read only

Former Member
0 Likes
479

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

Read only

Former Member
0 Likes
480

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