Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

VOFM(Requirements Output Control)

Former Member
0 Kudos

Hi all,

We have custom output type configured which has to be displayed alone when a invoice is created for particular customer....All this part is done...but now i need to create a form routine and a requirement which wud be assigned to this output type which would display only this output type(Zxyz) say and should'nt display other standard output types like RD01 and other output types in the invoice outptut messages.....

How to create a routine is my first question for output control.

How to right a code in the routine which wud have only ZXYZ output type in the output message for particular Invoices.....

4 REPLIES 4

Former Member
0 Kudos

Hi,

Create a routine and assign the VOFM routine to all the other output types in the procedure except for the new one..

You can create the routine in the transaction VOFM..

In the VOFM routine have this logic.

If KOMKBV3-kunag = 'my specific customer'.
  sy-subrc = 4.
ELSE.
  sy-subrc = 0.
ENDIF.

Hope this helps..

Thanks

Naren

0 Kudos

Thx for the quick answer Naren.....I've created a new Include for this which resembles like this below

FORM KOBED_922.

ENDFORM.

FORM KOBEV_922.

ENDFORM.

But why i'm i not able to write code in between this forms?Secondly as u've specified the condition for KUNAG = 'Specific customer'...but this would be dynamic.....i mean the Payer would change for different invoices so how could i code this when ever the invoice is created i should identify that this payer is for ZXYX output type and i should only display this output types in the output of the invoice.......Can you please look it to this......how i'm i able to move further from here...........Points would be surely rewarded and i appreciate that ur spending time on this..........Thx again.........God Bless.........

uwe_schieferstein
Active Contributor
0 Kudos

Hello Younus

I recommend to use a similar approach as described in .

Regards

Uwe

Former Member
0 Kudos

I've resolved it by myself