cancel
Showing results for 
Search instead for 
Did you mean: 

Output Type - Sales Order Type & Material Combination

Former Member
0 Kudos

Hi Guys,

I would like to know if there is away to Trigger an Output for a Sales Order IF and ONLY IF if it is of a Certain SalesOrder Type and Material Combination.

Can you please let me know the step by step process.

Thanks for your Help,

Best Regards,

Bharat.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Did you set a breakpoint on this new code ? Check the values when a sales order is saved ?

Former Member
0 Kudos

Hi Naresh,

In our System i dont see routine 610 as you mentioned.

I am wondering if this new routine has to be created in our system or is it a standard one?

Do you think if there is any way without creating any new routines?

Thanks for your Help,

Bharat.

Former Member
0 Kudos

It is possible to Trigger an Output for a Sales Order.

There will be two structures which should be visible within your VOFM routine.

KOMKBV1

and KOMPBV1.

VOFM Transaction (Requirements -> Output control)

Check this sample code.

Routine 610 (program RV61B601)

FORM KOBED_601.

SY-SUBRC = 0.

ENDFORM.

FORM KOBEV_601.

SY-SUBRC = 0.

if komkbv1-auart = 'XXXX' and kompbv1-matnr = 'YYYY'.

sy-subrc = 0.

else.

sy-subrc = 4.

ENDFORM.

Former Member
0 Kudos

Thanks Naresh,

I dont see Routine 610 in my system. It has 600 and then followed by 650.

However i was assuming that using Conditions, Access Sequences i can achieve the desired result.

I tried doing it, but doesn't work. Not sure if am missing something in Configuration.

Best Regards,

Bharat