‎2008 Mar 30 11:01 AM
I have written BDC program to call transanction F-02. program actually takes input file and post the entries in the file through transaction f-02. In my program if entry crossed 900 line item i am posting the document and program proceeds further for next 900 line items and so on. program is working fine through this way but what happens is that sometimes first 900 or 1800 documents gets posted well and after words for next 900 line items error comes, so user is telling me that if any of the line items error comes, program shuld not post not a single item from the file. so i m thinking of simulation.
There is one option in F-02 is "simulatation", i dont know how to record simulation through bdc, and how to trap simulation errors in abap program. so if error comes in simulation, i will ask usr to correct the input file and then only go for actual posting.
Kindly help me on this.
‎2008 Jun 27 9:53 AM
Doing simulation is hard in F02.
this line items which are more than 900 may also cause diffrent problems including reversal.
so its better to split the file after 900 line items why because SAP doesnot support after 900 line item.
so take the file split at after 900 line items do the balencing with one dummy account and post it to app server. from then you can do what ever you want. then it will be like normal programming.