Skip to Content
author's profile photo Former Member
Former Member

User exist for controlling the OutPut type in sales order

Hi

Is their any exist which controls the output type based on header data of the order? VA01/02.

Best regards

Satish Kumar K

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2007 at 05:37 PM

    Hi,

    IN the VOFM routine you can use the structure KOMKBV1 which will be populated with the sales org (VKORG), division (SPART) and order type (AUART).

    Example

    -


    SY-SUBRC = 4.

    IF KOMKBV1-VKORG = '0001' AND

    KOMKBV1-SPART = '12' AND

    KOMKBV1-AUART = 'ZXXX'.

    • SET THE return code to 0 to propose the output type.

    SY-SUBRC = 0.

    ENDIF.

    Hope this helps..

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2007 at 04:57 PM

    Hi,

    You can use VOFM requirements routine to restrict the output type based on the header data of the order..

    Transaction VOFM..

    Requirements -> output control..

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi Naren,

      Yes the output control is used for follow on documents, I forgot to mention that earlier that this requirement is to update the NAST table, we can see this link, from VA02 --> Extras --> Output --> Header --> Edit. Here i want to restrict or change the output type. By default they maintain some output type, which has to be changed / restrict for printing.

      Best Regards

      Satish Kumar K

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2007 at 05:09 PM

    Hi,

    If you want to restrict output types ..You can use the requirements routine..

    Example - Check the routine 9 ..which supresses the output type if the sales order is blocked due to credit check...

    If you set SY-SUBRC = 4. Then that output type will not be proposed..If you make SY-SUBRC = 0.. Then it will be proposed..

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yes naren you can change the sy-subrc <> 0 to supress the output, but here i need to check the sales org, division, document type; whether it is fulfilment type or not and then supress the output. In high level design they said to use the same as you said, but i am not getting the idea from where we get all these values in the routine ?

      Best Regards

      Satish Kumar

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 11:00 PM

    I am struggling with a similar issue but in billing, VA02.

    I need to restrict users from being able to use original invoice ZRD0 output type so that all invoices are procssed in vf31.

    I created a requirement to check an authorization object and this trips sy-subrc <> 0.

    The requirement is not met and no output is sent... but the condition record is written to NAST and vstat is set to 1.

    The problem is that this prevents the billing document from being processed in vf31.

    Catch 22.

    Is there another way to do this? Any help is greatly appreciated.

    Lee Lewis

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 11:35 PM

    We solved this by simply removing all the other timing options in NACE for the output type except 3.

    Add a comment
    10|10000 characters needed characters exceeded

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.