Skip to Content

How to create a transaction variant for T code Co01 and Co02

Hi

As i have created a transaction variant for T code CO01.

In which i have created a screent variant Variance key field as mandatory and required in control tab, and its working fine..

But if we enter the datas in qty, scheduled date in genral tab and giving text in long text tab, coming back to General tab without going to control tab of varaince key.

It is getting released and saved, as it should not get save without giving data in variance key field.

Please help me how to record this in SHD0.

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on Jul 21, 2016 at 08:38 AM

    Hello,

    Please check below documents to solve your problem with transaction variant,

    Transaction Variant - A Step by Step Guide for Creation - Code Gallery - SCN Wiki

    How to Create a Transaction Variant

    Transaction and Screen variants with an Example

    Best Regards,

    Ameya Beri

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2016 at 08:50 AM

    Thank you Ameya,

    As i know how to create a Transaction variant, but how to do record in my case.

    Please go through it clearly.

    It should not get release and save if we dont give data in varaince key,.

    But it is getting release and save in genral tab itself if we didnt go to control tab which has varaince key field..

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello,

      If your requirement is that production order should not release or save if variance key is not entered then instead of transaction variant why dont you consider going for an enhancement ?

      Check below enhancement spots in SMOD and add logic with help of your ABAP,

      PPCO0007 Exit when saving production order

      PPCO0012 Production Order: Display/Change Order Header Data

      If you make an enhancement it will be easier to enforce the rule, and also you do not have to create any new transaction code, as is the case with transaction variant.

      Best Regards,

      Ameya Beri

  • Posted on Jul 21, 2016 at 09:22 AM

    As how it is going to Long Text tab automatically when we give data and save in general tab.

    Like this it should take us to control tab automatically when we try to save in General tab.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2016 at 10:56 AM

    Hello RKR,

    SHD0 will not go for each and every screen i.e. until if you click on the Control tab system will not read that Transaction variant..

    please try to record one screen variant for this controlling tab for making the valuation key mandatory

    hope it may work

    even if it is not working then please make a enhancement as suggested by Ameya

    User Exit: PPCO0007 Exit when saving production order

    Badi: WORKORDER_UPDATE

    with CAUFVD table AWSLS field as a mandatory while saving the production order

    Regards,

    Venkatesh..

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2016 at 10:59 AM

    Can u guide me for the above steps.

    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.