11-24-2015 2:42 PM
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.
12-01-2015 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.
11-24-2015 4: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.
11-24-2015 4:39 PM
Hi Yarnagula,
Try with Transaction and screen variants.
View the link.
Hope it helpful,
Regards,
Venkat.
12-01-2015 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.
12-02-2015 3: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
12-06-2015 8:54 AM
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.
12-06-2015 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