Validating Custom Fields
Hi All,
I added 3 custom fields in the service order item shopping cart.
I am trying to validate those 3 fields.
I implemented the code in "BBP_DOC_CHECK_BADI" BADI.
The problem is the error is raised as soon as I enter the data and click on
" Add to Shopping Cart " button.
But I want the error to be raised once we enter something in the custom fields and click on Check button.
Appreciate any inputs.
Thanks,
Vinay
Hi,
You need to write the code in the CHECK badi only to raise the error message on click of CHECK button.
Please refer the foll link for sample code for teh BADI;
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/srmBADIRepository&
BR,
Disha.
Pls reward points for useful answers.
Similar Messages
-
Validation of Enterprise Customer Fields in Project Creation Page
I want to do the validation on the Enterprise Custom Fields of PWA site for Project center. A set of custom fields have been added on the Project Creation Page.
Custom Business Validation (such as a field value should be unique or based on another field) is required for some custom fields. This validation is required on clicking Save button in Project Creation Page of Ms Project Server 2010. The validation ought
to be done on clicking "Save" button.
Any help in this regard would be apppreciated.The link mentioned by you ToonS is not acessible.
Here is the link:
http://msdn.microsoft.com/en-us/library/office/gg615466(v=office.14).aspx
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
Perform a simple validation of a custom field in AI_CRM_ORDER_SAVE
Hello,
I want to perform a custom validation of a custom field just before saving my order.
I found out I should do this in the CHECK_BEFORE_SAVE method of the AI_CRM_ORDER_SAVE Badi, but I cannot figure out how to get the value entered in my custom field.
Can anyone point me in the right direction?
Thanks in advance!
Regards,
Tim.Hi Shailaja Gandam,
I am having the same error.
But for me its a little diferent.
The error only occurs when I'm saving more then 2 objects, then on second order it try to save a guid from the previous loop step.
I clean every objects on beginning of the loop, but its not working.
I think its buffers or someting like it
Have you solved your problem? -
Customer fields for validations
What are the fields in Customer Repository of MDM that requires Validations.
Hi Nagalaksmi,
Creating Validations on Fields will based on Business Process.
It highly depends upon how the business is running and this decision has to be taken by Various Teams involved in the Business process.
However, i can still give you some Ex.
1. Account Group
2. City
3. Country
4. region
5. reconcilation Account
6. Transportation Zone
Along with the above mentioned fields, there can be avrious more other fields.
For ex.
You can have validation if you mandatory want a Value in any of the Field.( using IS_NOT_NULL)
So as and when the requirement is made, you can develop the validations in MDM Data Manager
Hope it helps.
*Please reward points if helpful
Thanks and Regards
Nitin jain -
Hello Expert,
I have extended MDG-F data model 0G for GL account with addition custom fields as mandatory field.
I have one change request to Change GL account . Now as I have some old accounts which doesn't have this custom fields have values.
When I trying to create CR with change GL account -> don't change any value -> submit
then this validation doesn't through any error.
Custom mandatory field still doesn't have any data but rules badi doesn't through any error bcoz no data change .
Any notes ? Reason ?
Thanks in advance ,
VarunHi Sanjay,
Custom field is mandatory and displaying with red mark.
So during change request creation ( Change request type is meant for changing GL account ).
Expected result is when user submit CR then mandatory error msg.
This is working correct when user change any of the field at UI.
Step 1. enter account no and COA
Step 2. enter Explanation
Step 3. Change any field at UI
Step 4. Summit -> CR generated with error ( Custom mandatory field is blank )
But
When if user do this.
Step 1. enter account no and COA
Step 2. enter Explanation
Step 3. No change
Step 4. Summit -> CR generated with error ( Custom mandatory field is blank )
Regards,
Varun -
User exit MM06E005 - Customer fields in purchasing document
Hi,
I am using user exit MM06E005 - Customer fields in purchasing document to validate the line items in PO and display the value at header level.
My requirement is when the user enters the line items and press enter the validated value should get populated at header level.I had included a tab (customer tab) in that the value should get displayed.
likewise for each and every line items the value should keep on changing.
And
I the field that i had added at header shows the value during the save but once we come out and enter again,it is not displaying the same.
Regards
ManojHi,
Indeed the exit which you have specified MM06E005 comprises the enhancement for customizing fields and screens associated with it. may be you might not have activated the screen associated with the exit. the screen might have been created but missed while activating.
Regards,
Jagath -
MM06E005 - Customer fields in purchasing document
Hi,
I am using user exit MM06E005 - Customer fields in purchasing document to validate the line items in PO and display the value at header level.
My requirement is when the user enters the line items and press enter the validated value should get populated at header level.I had included a tab (customer tab) in that the value should get displayed.
likewise for each and every line items the value should keep on changing.
And
I the field that i had added at header shows the value during the save but once we come out and enter again,it is not displaying the same.
Regards
Manojgot my solution...
-
Creating a new project with custom fields using web services
I've been trying unsuccessfully for the last week or so to successfully create a new project from web services and I believe the main problem that I've been running into is that one of the required fields is a custom field. I've tried creating the Project
in a couple of different ways and haven't had any success up to this point, so any help would be appreciated. I've tried creating it with both a REST call to /_api/ProjectServer/Projects and a SOAP call to /_vti_bin/PSI/Project.asmx. Below are the best shots
I've made at the two different calls with the errors I received. If anyone has any leads on the best way to do this the help would be appreciated!
REST POST /_api/ProjectServer/Projects
'odata.type' : 'PS.PublishedProject',
'Name' : 'OData Name',
'Custom_9d77d62aa92e4d40adc8446c90eb7456' : "O&M"
Response
error: {
code: "11713, Microsoft.ProjectServer.PJClientCallableException"
message: {
lang: "en-US"
value: "PJClientCallableException: CustomFieldRequiredValueNotProvided CustomFieldRequiredValueNotProvided mdpropuid = 9d77d62a-a92e-4d40-adc8-446c90eb7456"
SOAP POST /_vti_bin/PSI/Project.asmx
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:proj="http://schemas.microsoft.com/office/project/server/webservices/Project/" xmlns:projds="http://schemas.microsoft.com/office/project/server/webservices/ProjectDataSet/">
<soapenv:Header />
<soapenv:Body>
<proj:QueueCreateProject>
<proj:dataset>
<ProjectDataSet xmlns="http://schemas.microsoft.com/office/project/server/webservices/ProjectDataSet/">
<Project>
<PROJ_UID>e1c2d38b-1529-4128-b707-42a94045e55b</PROJ_UID>
<PROJ_NAME>Proj Dept Test 2</PROJ_NAME>
<PROJ_TYPE>0</PROJ_TYPE>
</Project>
<ProjectCustomFields>
<CUSTOM_FIELD_UID>4802a711-62a0-4f84-8e08-c7d22daadb5b</CUSTOM_FIELD_UID>
<PROJ_UID>e1c2d38b-1529-4128-b707-42a94045e55b</PROJ_UID>
<MD_PROP_UID>9d77d62a-a92e-4d40-adc8-446c90eb7456</MD_PROP_UID>
<FIELD_TYPE_ENUM>21</FIELD_TYPE_ENUM>
<CODE_VALUE>a47930d6-b89d-4f3a-b4e3-522015fe82a1</CODE_VALUE>
</ProjectCustomFields>
</ProjectDataSet>
</proj:dataset>
<proj:validateOnly>true</proj:validateOnly>
</proj:QueueCreateProject>
</soapenv:Body>
</soapenv:Envelope>
Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode>s:Server</faultcode>
<faultstring xml:lang="en-US">ProjectServerError(s) LastError=GeneralUnhandledException Instructions: Pass this into PSClientError constructor to access all error information</faultstring>
<detail>
<errinfo>
<general>
<class name="General Unhandled Exception in _Project.QueueCreateProject_">
<error id="42" name="GeneralUnhandledException" uid="184feeaf-906a-e411-9b2a-00155d388b02" Exception="System.Data.StrongTypingException: The value for column 'PROJ_TYPE' in table 'Project' is DBNull. ---> System.InvalidCastException: Specified cast is not valid.
at Microsoft.Office.Project.Server.Schema.ProjectDataSet.ProjectRow.get_PROJ_TYPE()
--- End of inner exception stack trace ---
at Microsoft.Office.Project.Server.Schema.ProjectDataSet.ProjectRow.get_PROJ_TYPE()
at Microsoft.Office.Project.Server.BusinessLayer.Project.FixupProjectType(ProjectDataSet projDS)
at Microsoft.Office.Project.Server.BusinessLayer.Project.QueueCreateProject(Guid jobUid, ProjectDataSet dataset, Boolean validateOnly)
at Microsoft.Office.Project.Server.Wcf.Implementation.ProjectImpl.<>c__DisplayClasse.<QueueCreateProject>b__d()
at Microsoft.Office.Project.Server.Wcf.Implementation.WcfMethodInvocation.InvokeBusinessObjectMethod(String businessObjectName, String methodName, IEnumerable`1 actions)"/>
</class>
</general>
</errinfo>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>Julie,
You can create the fields that are project specifc & you can create fields that apply to all projects but have specific options for projects. Your goal is to create fields that are specific to each project, but right now you get all fields from you old project - is this correct?
From your description below it appears that the fields in your original project are marked as applied to all projects & hence when you create a new project they are inherited. If you mark those fields as applied to certain project & then create a new project those fields will not be inherited.
But you are right in the sense that it is limiting that there is no multi-select for "applies to" field. -
How to update a custom field in declarative workflow with VS 2013
Hello,
How to update a custom field in declarative workflow with VS 2013
any help would be appreciated!!!!!
Thanks regards, Vignesh.Dear all,
I'm using 4.6C right now, i already implement BADI MEREQ001, but this only valid
for creating PR via ME51N.
I found an EXIT_SAPLEBND_001 and tried to implement it,
but i got another difficulties since how i transfer CEBAN structure to EBAN structure.
thanks very much.
Regards,
Billy -
Error in adding custom fields to mm01/mm02/mm03 trx
Hello People,
To add my custom fields in the basic view tab of MM01 transaction, i have performed the following steps:-
1. Inserted the append structure in MARA table with the required fields.
2. Copied function group 'MGD1' to 'ZMGD1' and then set the layout of screen '0001' as per my requirement.
3. Then i made changes in spro as
SPRO->Logistics-General->Material Master->Configuring the material master->define structure of data screens for each screen sequence and inserted my program name( of function group 'ZMGD1') and screen number(0001) in 21(Std ind.(short) tab pages)->7(Basic Data 1)->8(sequence).
Now, if i click on SPRO option (view data screen), then i can see my fields added in basic data view...
but when i execute 'MM01/MM02/MM03' trx there my added fields do not appear....
Does anyone know where i am missing out??
Please suggest...
Thanks in advance..
Rgds,
AbhiHere are some notes I have from when I recently added a new screen/subscreen to Material Master transactions. Hopefully this information will help you.
This guide should be used in conjunction with OSS note 44410 and IMG notes Logistics->Logistics Material Master->Material->Configure Customized Material Master.
Online Maintenance.
1. Add fields to append structure ZAEMARA.
Use data dictionary maintenance u2013 SE11
2. Generate table MARA.
3. Add fields to view MARU and generate.
Use data dictionary maintenance u2013 SE11.
4. Create new sub-screen or add new fields to screen SAPLYMM1 9001.
Use Screen Painter u2013 SE51.
Change flow logic to add fields to field: statement and to add any validation required. Generate screen.
If this is the first time additional data has been added to material master it will be necessary to create a new function group and associated programs. See Configure Customised Material Master paragraph Requirements.
5. If new sub-screen, add to Customer main screen.
Transaction OMT3.
Double click on u2018Std industry sequenceu2019.
Choose customer screen and Details.
Change the first occurrence of 0001 (blank screen) to new screen number.
Save.
Back arrow.
Click on Transport button and choose required transport.
6. To include in 'Copy with Reference' processing - MM01, add new MARA fields to table T130F. (in each client)
Use Transaction SM31. (make a copy of another ZZ field by typing over existing name).
Add to transport manually:- R3TR TABU T130F + individual keys
7. Test Material create, change, display. -
I have four mandatury fields in a page and one submit button.Among that one was read only field and another one is drop down list.If all four fields are populated then only save button should be enabled,otherwise it should be disabled.
Can any one help me this?
Here is my code...
private if (customercode.text=="" ){Csave.enabled=
false; return;}if(customername.text==""){
Csave.enabled=
false;
return;}
function validation():void{ if(geo.text==""){
Csave.enabled=
false; return;}
if(cmblistunit.selectedIndex==-1){
Csave.enabled=
false;Alert.show(
"Error:Customer type cannot be null.Please select a valid Customer Type!"); return;
Csave.enabled=true;}
If geo field(read only) value is selected last,then save button is not enabling.
Message was edited by: sudheerChThe property represents the "property path" from the object (the formulation spec data object, in this case) that you are trying to validate to the property you want to be required.
To get to the reason for change, you first have to access the SpecSummary property of the formulation spec, then the SpecSummary's FreeTextReasonForChange property, and then the FreeTextReasonForChange's ReasonForChange property. So your property should be "SpecSummary.FreeTextReasonForChange.ReasonForChange"
If you are using the DatabaseAndObjectSchema document, you can traverse these property paths, but just remember to use the property's name, not its type, in the property path.
You can learn more about the DatabaseAndObjectSchema document in the Extensibility Guide's Developer Information section in the Appendix, and in the Appendix of the ValidationTraining powerpoint presentation, under ReferenceImplementations\Validation\Documentation folder.
Edited by: Ron M on Jun 20, 2012 4:19 PM -
New Custom Field in MB1B Tcode
Hi All,
In my requirement i have to add 4 custom field in MB1B TCode Screen.
Please suggest some screen exit or BADI for the same.
Please suggest some sollution.
Moderator message: please do more research before asking, show what you have done yourself when asking.
Edited by: Thomas Zloch on May 23, 2011 12:50 PMHi Parikshit,
There is no badi or user exit available to add a custom fields.If that fields are standard one then it can be controlled against the movement type.Go to T code: OMCJ .Select the movement type, and click on display. And maintian the filed settings accordingly.
Post if need help.
if you need validations there are some exits.
TCode MB1B
EXIT_SAPMM07M_001 - MBCF0002 - Customer function exit: Segment text in material doc. item
EXIT_SAPMM07M_003 - MBCFC003 - Maintenance of batch master data for goods movements
EXIT_SAPMM07M_004 - MBCFC004 - Maintenance of batch specifications for goods movements
EXIT_SAPMM07M_005 - MBCF0006 - Customer function for WBS element
EXIT_SAPMM07M_009 - MBCF0009 - Filling the storage location field
EXIT_SAPMM07M_010 (Propose Batch / Transfer Batch) - MBCFC010 - Propose batch number on Inventory Management item screen
Regards,
Madhu.
Edited by: madhurao123 on Jun 28, 2011 9:44 AM -
Custom field in VA01 at item level in Additional Data B Tab
Hi ,
I have a requirement to add a custom field at item level in Additional Data B tab of VA01/VA02. We have to store the data in that field in the VBAP table also have to validate the data entered in the field when user hit save.
Can any body tell me step by step procedure to do that.
Appreciate your response.
Thanks,
RohitAdd append structure ZAVBAP in table VBAP in Tcode: SE11.
In this structure include the new fields to be added to the screen.
Then in Tcode : SE80
take program: SAPMV45A
take screen 8459 and add the new field.
Also add the validation in the flow logic. -
Add Custom Fields in MB1B Tcode
I want to Add Custom fields in MB1B Header Data. I not able to find way how to do that. So can you please let me know how to add custom fields in MB1B.
Thanks & Regards
Nikunj ShahHi Parikshit,
There is no badi or user exit available to add a custom fields.If that fields are standard one then it can be controlled against the movement type.Go to T code: OMCJ .Select the movement type, and click on display. And maintian the filed settings accordingly.
Post if need help.
if you need validations there are some exits.
TCode MB1B
EXIT_SAPMM07M_001 - MBCF0002 - Customer function exit: Segment text in material doc. item
EXIT_SAPMM07M_003 - MBCFC003 - Maintenance of batch master data for goods movements
EXIT_SAPMM07M_004 - MBCFC004 - Maintenance of batch specifications for goods movements
EXIT_SAPMM07M_005 - MBCF0006 - Customer function for WBS element
EXIT_SAPMM07M_009 - MBCF0009 - Filling the storage location field
EXIT_SAPMM07M_010 (Propose Batch / Transfer Batch) - MBCFC010 - Propose batch number on Inventory Management item screen
Regards,
Madhu.
Edited by: madhurao123 on Jun 28, 2011 9:44 AM -
SDK: adding new value in custom fields
Hello,
I wanted to add new value in custom field of the resource table... I used this code (taken from SDK example) :
//Create and fill request for CustomData Service
SaveCustomDataRequest request = new SaveCustomDataRequest();
List<CustomValue> customData = new ArrayList<CustomValue>();
CustomValue attribute = new CustomValue();
//Field name
attribute.setName("NOTIFICATION_NUMBER");
//value received from ERP
attribute.setValue(notification);
customData.add(attribute);
request.setCustomData(customData);
//table name
request.setObjectAlias("RESRCE");
request.setRef(handle);
customDataService.saveCustomData(request);
But get a validation error, complaining about no ModifiedDateTime providen... How can I initialize this date or avoid the validation ?
I also tried using the ResourceDOService, using the setCustomData method, but same error...
ThanksI'm using ME 5.2.2.2, sdk 5.0.1.8, for the moment locally on my laptop for development.
There is no stack trace, I can just see the error when debugging :
com.sap.me.frame.domain.RequiredValueValidationException: class com.sap.me.domain.model.CustomFieldDOmodifiedDateTime
The resource exist, I do a read request before to check if the custom field has value or not. Anyway, it's a collaboration plug-in, executed when we change the resource status, so I got the resource handle as input ;o)
I can confirm there are some resource with custom value in other fields with date = null. It occurs when I'm saving the data in the GUI (so entering data's manually in custom field, do a save => fields are not initialized)
Regards
Maybe you are looking for
-
I BOUGHT MY IPHONE AT A GOODWILL STORE AND I CAN'T ACTIVATE OR RETURN IT HOW DO I REMOVE THE RED FLAG OR GET IT REMOVED FROM HOT SHEET OR GET A REWARD OR SOME THING EVERY BODY IS SAYING THAT WHO EVER OWNED IT GOT A NEW IPHONE ?????????
-
PhpMyAdmin Google reCAPTCHA v2 plugin not working
I secure my phpMyAdmin login page using Google reCAPTCHA. Until recently, phpMyAdmin used the old v1 API of reCAPTCHA, but now uses the newer v2 API as of version 4.40. For some reason, I cannot get the new reCAPTCHA v2 API to accept my credentials t
-
What is the best wireless camera that will work with my mac
What is the best wireless camera that will work with my mac?
-
Problem with starting Windows with external Toshiba HDD
Hello, when i am starting windows (xp) and i have got my external disk connected, the computer cant start, he stoped in "windows start up". When i turning up the notebook without disk, it starts good. Do you know some solution? Thank you and sorry fo
-
Does Logic have db scales markers on the output levels or individual chanels?
I am looking to buy Logic Pro or Pro logic. Does Logic have VU markers on the output levels, or individual chanels. I use this as a guide to mixing as I know that bass should be at -6db, lead vox at -6db at the output meter on a traditional desk. I