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 doubt

Former Member
0 Likes
323

Hi guru,

The program should look at the 'Vno' field and all the records which has the same 'vno' forms part of one document. So, the BDC should, once it has come to the end of the record with the same 'vno' post the document in SAP and then start the next 'vno' as a new document in SAP.

VNo

70100117

70100117

70100118

70100118

70100119

70100119

70100120

70100120

30100351

30100351

30100351

Regards,

Subash

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
306

Did you try using AT END or ON CHANGE OF ? You can write the call transaction in AT END of VNO event.

SORT ITAB BY VNO.

FM to open the BDC Group

LOOP AT ITAB.

FM to intert the BDC Data

AT END of VNO.

Call Transaction

refresh the BDC data

ENDAT.

ENDLOOP

FM to close the BDC Group

1 REPLY 1
Read only

Former Member
0 Likes
307

Did you try using AT END or ON CHANGE OF ? You can write the call transaction in AT END of VNO event.

SORT ITAB BY VNO.

FM to open the BDC Group

LOOP AT ITAB.

FM to intert the BDC Data

AT END of VNO.

Call Transaction

refresh the BDC data

ENDAT.

ENDLOOP

FM to close the BDC Group