‎2008 Apr 29 5:00 PM
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
‎2008 Apr 29 9:22 PM
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
‎2008 Apr 29 9:22 PM
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