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: 

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

yarnagula_sudhir
Active Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

yarnagula_sudhir
Active Participant
0 Kudos


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.

6 REPLIES 6

former_member182805
Active Participant
0 Kudos

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.

VenkatRamesh_V
Active Contributor
0 Kudos

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-ecbe0b0d4...

Hope it helpful,

Regards,

Venkat.

yarnagula_sudhir
Active Participant
0 Kudos


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.

former_member182805
Active Participant
0 Kudos

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

0 Kudos

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.

former_member184158
Active Contributor
0 Kudos

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