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
428

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

naimesh_patel
Active Contributor
0 Likes
405

You can use the control break statements for your requirement.

Like:


LOOP AT ITAB.

AT END OF VNO.
  CALL TRANSACTION ......
ENDAT.

ENDLOOP.

Regards,

Naimesh Patel

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
406

You can use the control break statements for your requirement.

Like:


LOOP AT ITAB.

AT END OF VNO.
  CALL TRANSACTION ......
ENDAT.

ENDLOOP.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
405

Thanks