10-31-2010 5:46 AM
Hi Group,
I have a requirement to call SAP from MS Excel and check for the SImulation option as under:
The Excel will pass the values of Invoice Number, Posting date, PO number, PO Item number, Company code and etc., through the call of BAPI - 'BAPI_INCOMINGINVOICE_CREATE' in order to create Invoice in the SAP system.
But the above BAPI is creating the Invoices in SAP system. Rather, I need to just check(thru SIMULATION) the records and come back to MS Excel with the MIRO numbers that will be created and the errror messages that will be returned back.
In summary, I have to add two Buttons as:
POST : this has to create MIRO(invoice Numbers) in the SAP System(populating the Success/Error Messages by calling
the above BAPI - This functionality is working fine now
SIMULATE: this has to do same functionality of "POST" option but should not create MIROs in the SAP system
Currently I am not able to achieve this as the above BAPI is creating MIROs in SAP.
Kindly provide your inputs on how to go about incorporating the above SIMULATION functionality, by giving some simulation BAPIs that can be used for my functionality.
Thanks for your help in advance.
Regards,
Vishnu.
11-01-2010 11:10 AM
Hi Group,
In continuation to my previous posting, I would like to give more inputs as under:
when I was using the BAPI - BAPI_INCOMINGINVOICE_CREATE (unless I commit the transaction), MIRO would not be created in the system.
Now, when I run the BAPI again with a different set of data, the Invoice Number is getting incremented by one.... this I dont need, if the Invoice is not committed and if I run the next time, I need to get the same Invoice Number....
How can I achieve this task?
Kindly let me know your inputs on this.
Regards,
Vishnu.
11-01-2010 11:39 AM
11-01-2010 2:05 PM
Even when I use the BAPI "'BAPI_INCOMINGINVOICE_PARK", it is creating an Invoice Document each time it is called...
my requirement is:
- Initial I run the mode "SIMULATE" and get the Success(with MIRO #s) and Errors(if the record has some issues)
- Then, I will rectify the errors and run the "UPLOAD" optoin, now, I should see the same MIRO #s and errors if any after calling
the BAPI "BAPI_INCOMINGINVOICE_CREATE".
please let me know if you have any other queries on the requirements.
Thanks for your help in advance.
Regards,
Vishnu.
11-01-2010 2:17 PM
Hi
I don't think there's a BAPI for simulation and it's not a good idea to run the BAPI without the commit: you'll burn invoice number:
Perhaps u can create a new bapi based on the one for creation
Max
11-04-2010 9:14 AM
Hi Group,
I resolved the issue myself by call the FM "MRM_SRM_INVOICE_SIMULATE" in order to simulate the process.
Here the MIRO number will not get generated.
Thanks,
Vishnu.
08-30-2020 4:26 PM