cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger output type only when PO is created and don't trigger output type when PO is changed.

basavarajt14
Explorer
0 Kudos

Hello Everyone,

I have created condition record with medium 5 for set of combination of purchase org/document type/vendor/plant for output type ZEU. I want to trigger emails to these combination only when new PO is created.If PO is changed,then mails should not be triggered.If combination does not match,then existing print functionality should work.

I have created routine for controlling the output type triggering.But,how can i identify whether new PO will be created or existing PO is changed.

If user manually triggers output type using messages section in PO.Then,emails should trigger if the combination matches.

Please let me know if any inputs are needed.

Thanks!!

Accepted Solutions (1)

Accepted Solutions (1)

basavarajt14
Explorer
0 Kudos

We could make use of variable TRTYP to identify whether PO is getting created/changed.

ASSIGN ('(SAPLMEPO)TRTYP') TO <fs_po_mode>.

<fs_po_mode> will be 'H' while creating PO

<fs_po_mode> will be 'V' while changing PO.

Answers (2)

Answers (2)

vijaymanikandan
Contributor

Hi

You can control this via the output type config or alternatively code in your routine. You get the indicator for creation and change. But you might also need to think of new item addition later after the PO creation

Br

Vijay V

vijaymanikandan
Contributor

Hi

Try the below.

SPRO--->MAterial Management-->Purchasing-->Messages-->Output control -->Message Type-->Define Message Types for Purchase Order

When you choose you will get 2 options.

Select the second option -->Fine-Tuned Control: Purchase Order

Here configure your output only for NEW creation.

Refer to the Post where it is clearly explained.

Br,

Vijay V

basavarajt14
Explorer
0 Kudos

But requirement is such a way that change should be applicable to only particular condition record maintained.

Jelena
Active Contributor
0 Kudos

I'm very much confused what does Purchase Order have to do with Sales Org here...

Either way, output functionality is the same across the applications that use it. Just uncheck "multiple issuing" box for the output type in NACE and it will only be triggered once, when the document is created.

Not sure though if there is more to this story that could add some complexity...

basavarajt14
Explorer
0 Kudos

Hi Jelena,

I have updated my question.

Hope it will clear my doubt to you.

If I uncheck "multiple issuing" then it is not possible to trigger output type manually I think.Currently ,output type ZEU is triggered using print output.But for new combination of 'purchase org/document type/vendor/plant' ,mails should trigger only when new PO is created.Another way to trigger emails will be through manual triggering using messages section.

Nothing should happen if I change my PO.

So,how can I identify PO is creating /changing.

If any other idea for above question would help.

Jelena
Active Contributor
0 Kudos
If I uncheck "multiple issuing" then it is not possible to trigger output type manually I think.

Don't just think, try it.

basavarajt14
Explorer
0 Kudos

This applies to whole output type ZEU.

How can we restrict only for particular condition record?