on 08-17-2009 4:33 PM
Hi community
I need to create a migration program to copy sales documents.
Those documents should be almost a 1:1 copy of the source document.
Just division and profit-center may be changed.
What is the easiest and most performant way to do this?
Thanks in advance.
Michael
BAPI, IDoc, LSMW, BDC - pick your poison. Performance-wise they're almost the same in SD. BDC might be the slowest, but it's probably the most reliable, especialy if it's a one-time thing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jelena Perfiljeva
BAPI was my idea, too.
But I'm not happy with what I found so far.
I was looking for a BAPI which does the copy in one step and w/o regarding the customizing, but wasn't successfull (so far).
Now I'm thinking about this:
BAPISDORDER_GETDETAILEDLIST -> to get the Inputdata of the source-document
BAPI_SALESDOCU_CREATEFROMDATA1 -> to create the new document
But as the structures and tables have not the same definition, I stopped again.
Is there no simpler solution?
Thanks for your assistance!
Regards Michael
There is no simple solution, unfortunately. Any option you'll choose will need some additional work and testing. I've seen this question asked several times already (not sure why SAP doesn't provide a functionality for it - seems to be a popular need), but everyone ended with some custom programming.
Correction - the BAPI to use is BAPI_SALESORDER_CREATEFROMDAT2.
Edited by: Jelena Perfiljeva on Aug 18, 2009 9:40 AM
Hi,
You can create this with reference. In this case, only the document date will be different. Rest all fields will be copied as per the original document.
Thanks
Krish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishnamurthy N
If I want to create it w/ reference, the customizing must be correct.
As I have to care about more than 10 sales organizations, it wouldn't bet, that this will work for all document types...
I'm not sure, but I think I will lose at least schedule lines in SD schedule agreements, not?
In addition, I should update > 3500 documents. If possible w/o blocking users...
Therefore I'm looking for a good BAPI or something like this...
Regards Michael
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.