Skip to Content

How to make Time field as Mandatory in Standard Tcode of ME38 Scheduling Agreement

Hi Experts,

My requirement is to make Time field as Mandatory in Standard Tcode of ME38 Scheduling Agreement.

Kindly find the steps that I've followed with the attachment pictures.

Note: I've tried SPRO settings to set the Time field as Mandatory, but I didn't find the exact field.

1. ME38: Header->Items->Schedule Lines

I need Time as Mandatory at Schedule Lines as below.

2. Below is the Standard Screen for ME38 Schedule lines

Program SAPMM06E

Screen number 1117

3. In Module MM06EF0C_CLEAR_QUANT_SUM, as I'm getting the Values, I've wrote the below code.

Populating an error message when Time is empty.

Solution Needed:

As I'm populating ERROR Message, the entire screen is getting locked. Its fine upto now.

But after ENTER, how to set the screen unlock to give the TIME field as input.

Kindly let me know the solution.

With Regards,

Sudhir.

ME38 1.JPG (74.7 kB)
ME38 2.JPG (120.8 kB)
ME38 3.JPG (21.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Dec 01, 2015 at 11:14 AM


    Hi All,

    Here I'm trying to Block the User in the Front End, saying that Time is Mandatory.

    I didn't find from the SPRO standard configuration settings. So I've tried with the Code i.e Implict Enhancement from the Standard Screen.

    But whenever its throwing an Error Message, user were not able to Enter the Mandatory field.

    So here the problem is with the Implict Enhancement Place.

    So I've changed the Place. Find the below details.

    *Enhancement : MM06E005
    *Function module : EXIT_SAPMM06E_012
    *Description : Check Customer-Specific Data Before Saving
    *INCLUDE : ZXM06U43

    Here with the above EXIT, after getting the error message, user can able to give the Mandatory filed. He can go where exactly its throwing the error message and he can follow the validations.

    With Regards,

    Sudhir.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 02, 2015 at 03:11 AM

    In spro, go to Materials Management -> Purchasing -> Scheduling Agreement -> Define Screen layout at document level

    Select the scheduling agreement type and click on details.

    Select delivery monitoring and double click on it:

    Select the planned delivery time and select the required entry checkbox.

    Save


    spro.PNG (28.7 kB)
    layout.PNG (12.3 kB)
    fields.PNG (11.0 kB)
    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Srinivas,

      Thanks alot for your post. Its really helpful.

      But here, my requirement is not only to make Time filed as Mandatory. They are some other fields too and couple of validations also.

      So i've looked for exact spot and application behaviour.

      With Regards,

      Sudhir.

  • Posted on Nov 24, 2015 at 04:14 PM

    your code should trigger at the time of order save, not at the time of order creation.

    Please find the user exit at order save and write your code in that user exit.

    Please check with the functional consultant to create an in-completion log where he can add the time field into an in-completion procedure. The system checks whether the field has been entered with a value and the system reaction can be set (warning, error).

    Try the in-completion procedure first, then the user exit at the time of saving a order.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 24, 2015 at 04:39 PM

    Hi Yarnagula,

    Try with Transaction and screen variants.

    View the link.

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a070bfbb-d34a-2d10-b092-ecbe0b0d4a4c?overridelayout=t…

    Hope it helpful,

    Regards,

    Venkat.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2015 at 11:02 AM

    Hi,

    as I think, it is better to use "Creating Transaction and Screen Variants" as VenkatRamesh has mentioned than using User-Exit.

    When you have alternative to do it wihout User-Exit, it give you more oprtunity to avoid the SAP modification.

    Regards

    Ebrahim

    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.