Skip to Content

output - userexit in sales order

Hi,

I need userexit in sales order for issue the output as soon as sales order created. Based on header level field value i need to trigger the output type.

For instanse <b>Zfield</b> added in the VBAK table. If zfield = 0 then i want to issue the <b>ZOUT1</b> or zfield = 1 then i need to execute <b>ZOUT2</b>.

Would appreciate if any body can help me in this.

Regards

Suresh Babu Karanam

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 18, 2005 at 01:00 PM

    Hi suresh,

    What you need is not an user exit but an output requirement (=trigger to execute output or not). You will need one requirement per outputtype. In this requirement you will check the value of your ZFIELD. If the value is '0' to set SYST-SUBRC to 0 else to '4'.

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 23, 2005 at 01:11 PM

    Hi John,

    Is it possible to fetch data from VBAK from requirements. I am waiting for your valuble answer.

    Regards

    Suresh Babu Karanam

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2005 at 03:40 PM

    Check out the following documentation.

    http://help.sap.com/saphelp_46c/helpdata/en/9b/e82c7dd435d1118b3f0060b03ca329/content.htm

    You need to follow this procedure if you want fields from VBAK to be available in the requirement.

    Then you can create Output Control requirements if VOFM. In the requirements you will use structure KOMKBV1. You will see why in the link above. Now you can tie the requirement to the output type in your output determination procedure or you can tie requirements to access sequences.

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2005 at 12:31 PM

    Those are the wrong requirements for output. You need to take the menu path Requirements -> Output Control in VOFM. Create your requirement here. Follow the documentation I pointed you to in a previous post. The z-fields you have in VBAK need to be in communication structure KOMKBV1. The documentation shows you how to do it.

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2005 at 12:47 PM

    You need to go into customizing to set the requirement to the output type. Use transaction SPRO. Follow the path:

    Sales and Distribution->Basic Functions->Output Control->Output Determination->Output Determination Using the Condition Technique->Maintain Output Determination for Sales Documents->Maintain Output Determination Procedure

    Once you make your way there, you have to know what procedure your order type is using. Select it and go into Control Data. Here will be a list of Condition Types. There will be a column for the requirement.

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2005 at 02:55 PM

    First of all, did you create your requirement in VOFM under:

    Copy Requirements->Orders

    or did you create it under:

    Requirements->Output Control

    If you created it under Requirements->Output Control, then you did it in the right place. If not, then look at a previous post I made today about this.

    Then, if you look at my last post, it explains how to tie the requirement to the output type. I don't know that there is a tcode for it. You have to go into customizing - tcode SPRO. When you go into SPRO, there is a button at the top of the screen - SAP Reference IMG. Click this button, then follow the path in my last post to get to where you can tie the requirement to the output type.

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Brain,

      I have done everything what you have suggested me in early post but i got little confused in assigning requirement in procedure ( difference between conditiontype and output type) but now i got clear that both are same.. i seen the data element of those two.

      yes even we can see the same customisation using NACE Tcode.

      Regards, Suresh

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.