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: 

BAPI or BDC for VI02 transaction code

Bharath84
Participant
0 Kudos
829

Hi All,

We have an issue incorrect GL account assignment happened for Shipment cost No’s and the issue is rectified now.
For previous month shipment doc no’s we need to go the VI02 tcode and go to the line item->in Settlement tab select the Cancellation check box and when you hit enter Date Cancelled will be enabled and give the date->click on Delete Account Assignment->Save.
And the go to VI02 again and click on Delete and Save. The Shipment Cost No will be deleted.


We have 6500 entries to be done like this and this is a one time activity. Before unassignement and deletion user wants to see the records in ALV grid.
Is there any BAPI for this. Can I go with Call Transaction method. Please advice.

Thanks,

Bharath

1 ACCEPTED SOLUTION

DominikTylczyn
SAP Champion
SAP Champion
0 Kudos
732

Hello vidya.p

vidya.pIf I were you, I would create a simple LSMW project with batch-input call to VI02. Then you can put your 6.500 invoice numbers into a text file and feed it to the LSMW project.

In my opinion it is the fastest and the simplest method.

Best regards

Dominik Tylczynski

3 REPLIES 3

DominikTylczyn
SAP Champion
SAP Champion
0 Kudos
733

Hello vidya.p

vidya.pIf I were you, I would create a simple LSMW project with batch-input call to VI02. Then you can put your 6.500 invoice numbers into a text file and feed it to the LSMW project.

In my opinion it is the fastest and the simplest method.

Best regards

Dominik Tylczynski

732

Hi Dominic,

Thanks for your inputs. This was handled through LSMW.

Regards,

Bharath

Sandra_Rossi
Active Contributor
732

The question was already asked in the forum, and the answer was "no", and as a workaround people tried to mimic what VI02 was doing, but of course batch input can be used, is quick to create but execution is slower. As this is a one-time activity, batch input is probably the best option.