cancel
Showing results for 
Search instead for 
Did you mean: 

How-to create an (almost) exact 1:1 copy of a sales document?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Jelena
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Jelena
Active Contributor
0 Kudos

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

former_member566877
Active Participant
0 Kudos

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.

Former Member
0 Kudos

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