cancel
Showing results for 
Search instead for 
Did you mean: 

how to create new documet from the output of another document automatically

Former Member
0 Kudos

Hi all

here is the scenario, If we are creating an debit memo request and debit memo to a customer, from the output of this debit memo we need to trigger the creation of another document( Ex credit memo to another customer) automatically, how we can do this?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Maintain copy controls between those two documents, so data gets copied automatically so that when you execute the transaction, if you enter the reference number of the previous document. The document gets generated.

Hope it helps.

Regards

AK

Please reward points if helpful

Former Member
0 Kudos

Hi AK,

its OK that we will set the copy controls but without user intervension how we can trigger the event ie creation of another document as soon as one document output is processed successfully( lets say invoice is generated).

hope, now the scenario is clear.

Regards

Devender

former_member183879
Active Contributor
0 Kudos

Hi Dev,

You need to create another report program for the other document along with the smartform.

In the report program, you have to put your logic on how the other document has to be found when your document is created and the output be triggered.

So in principle,

There will be two programs linked to your output type.

One will create the output of the document which is being created,

Another program will automatically call the other target document in change mode and trigger the same output, during which the second program will be executed.

Now the second program will create the output for the second document.

Making copy controls wont help for this reqmt.

Reward points if it helps.