How to validate new added fields in CRM UI 5.1
Hello Experts,
Actually I am new to SAP CRM 5.1 recently We have added one New tab at Item level with new fields which are existing in CRM Gui, now i want to validate the fields
EX : 3 text boxes are there
1. shift Hrs 1
2. shift Hrs 2
3. shift Hrs 3
all these are numeric type
and next below one field is there
4. Estimated Annual running Hours
this should have the values of
Multiplication of all above 3 field values and should be displayed in the 4 th one.
please suggest me how to write the code, where to write the code.
very very very urgent.
sunil.
Hi Sunil,
Upon pressing enter, 'submitonenter' event is fired. So, in DO_HANDLE_EVENT of your view controller class add following piece of code and ur logic:
CASE htmlb_event_ex->event_server_name.
WHEN 'submitonenter'.
Add directly multiplication logic or define a method in view controller class and call that method here.
WHEN OTHERS.
CALL METHOD SUPER->DO_HANDLE_EVENT
EXPORTING
EVENT = EVENT
HTMLB_EVENT = HTMLB_EVENT
HTMLB_EVENT_EX = HTMLB_EVENT_EX
GLOBAL_MESSAGES = GLOBAL_MESSAGES
RECEIVING
GLOBAL_EVENT = GLOBAL_EVENT
ENDCASE.
Note: if DO_HANDLE_EVENT is not redefined, please do define again.
Cheers,
Prasad
Similar Messages
-
How to Validate Newly Added Fields for ME22n and ME23n
Hi Experts,
I have added 2 fields at the item level of PO Change and display(ME22n and ME23n). I used the BADIs ME_GUI_PO_CUST and ME_PROCESS_PO_CUST and got that displayed.
I got a new tab at Item level and my fields are displayed there.
My problem is how to populate or validate the values into that fields now. The validations have to be done per each item. I would like to have some sample code.
Useful answers are surely rewarded.
Thnks in Adv.
BhupalThank U Sudha.
But How can i do the same with BADIs??
Reply soon.
Thnx in advance
Bhupal -
Adding new input fields in CRM
Hello All,
I have the below requirement.
I have to introduce new input fields in CRM for sales order creatio. These fields are to capture customer PO line item number and customer material number.
Is there any standard field already available where we can capture this and replicate to ECC?.
If not please help me on the below things.
How can i introduce new fields in CRMD_ORDER and map these fields to ECC fields.
Please help me.
Regards,
Shanto AloorHello,
I take a look at the table CRMD_ORDERADM_I and I see that there are two fields for the item number.
- number_int - Internal position number
- number_ext - external position number
Maybe you can use the field number_ext for you customer line number
For the field customer material number I found the fields:
ORDERED_PROD - CRM product number and
PARTNER_PROD - Product number of the business partner
As well i am not sure, but maybe you can use the field PARTNER_PROD for the customer material number. If this is not working you can enhance the position fields on two ways:
If this is not working you can enhance the position data:
(1) Old way using easy enhancement Werkbench
You can use the transaction AET to generate new fields at the position. On this ocasion you should enhance the CRMD_CUSTOMER_I database table.
(2) New way using application enhancement workbench
The AET can be used at the webclient ui. Here you can easily generate new fields for the order. Please use the expert mode, because there you can define the fieldname at the database. Here you enhance the table CRMD_CUSTOMER_I, too.
For the replication you have to take a look at the BADI CRM_DATAEXCHG_BADI. You can use the method CRM_DATAEXCH_AFTER_BAPI_FILL to fill the bapi structures with your new fields and send it to the ECC.
Greetings -
How to validate the mandatory fields in the view in WDA?
Dear experts,
Iam new to WDA. i just want to know how to validate the mandatory fields in the view in WDA?please refer any documents for validating the mandatory fields.
Regards,
murthy.
Edited by: Murthy Ganti on Jul 13, 2009 2:31 PMHi,
Firstly goto view->select the element that you want to make mandatory and set the State property to required.
Secondly place the below code in the WDDOBEFOREACTION
DATA: l_view_controller TYPE REF TO if_wd_view_controller.
* Get view controller
l_view_controller = wd_this->wd_get_api( ).
* Check for mandatory attribute
cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
EXPORTING view_controller = l_view_controller
display_messages = abap_true
Regards,
Radhika. -
How to add new text field in standard report
how to add new text field in standard report?
Hi,
I presume you are talking about a report display in ALV and u wish to add a column to it .
If it is a global requirement ,as in table being used there in ALV can be modified, then you can append the table and the system should pick up the same automatically from there.
Otherwise , you can make a Z program . Modify the catalog being used in ALV.
Regards,
Shweta -
How to add new customise field in standard SAP ME28 Report?
Hi Anybody,
How to add new customise field inside Standard SAP Screen report ME28?.
Anybody, Please tell me how to do?.
Thanks,
Regards,
S.Muthu.Hi Subramaniyam,
You can find enhancement in me28 by following steps and then apply your logic in include of this enhancement.
cmod>Give a project name>in enhancement column give the package name ME >f4>in package write ME-->ENTER>It will show you all enhancements available in me28> find which ever suits your requirement>save > click on components> from there you can make changes in include program.to add that particular field. -
How to validate an text field item using javascript for numbers only.
hi,
how to validate an text field item using javascript for numbers only.please help me on this urgent
please mail me solun if posible on [email protected]Hi,
Page HTML header
<script>
function onlyNum(evt) {
// Usage: onKeyPress="return onlyNum(event)"
evt = (evt) ? evt : window.event;
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57)) {
var status = 'This field accepts numbers only!';
alert(status);
return false;
var status = '';
return true;
</script>Item HTML Form Element Attributes
onKeyPress="return onlyNum(event)"Br,Jari -
In Layout screen, how to validate i/p field?
hi,
in Layout screen at se51, how to validate i/p field?
Regards,
bb.
Edited by: BBR on Jul 24, 2008 4:23 PMHi
if u want to validate the screen fields in Module pool programming then u need to go for
CHAIN & ENDCHAIN.
Following is the example which guide u to use the chain and endchain:
In the flow logic of ur screen before the module write this code
CHAIN.
FIELD TABNAME-FIELDNAME(OR SCREEN FIELD NAME).
MODULE MODULENAME(OR FIELD NAME).
ENDCHAIN.
Double click on the module name and write ur validations.
<removed_by_moderator>
Regards
Chandu
Edited by: Julius Bussche on Aug 6, 2008 1:44 PM -
How to adde New Language field value in CRM Business Partner Language Field
Dear all,
How can we add a new field value to the Business Partner Language field in CRM and ECC systems.
Your suggestions will be highly appreciated
Thanks
SravanthiHi Shravanthi,
You would need to add the new language to table T002. Once this is done, it will appear in the drop down menus.
Regards,
Rishu. -
NOT ABLE TO DISPLAY THE NEW ADDED FIELD
Hi Experts,
I was working on Solution Manager. Iam Creating table maintianance generator for particular table. Its working fine when i done the job for the first time. As i forgotten to add one more field in that table i had done it later. now that added field is not displaying in the table maintainance generator (tcode: sm30). what is the procedure that i have to follow in order to display that added field.
Regards,
Maha.Hi Mahalalakshmi,
your new table defnition is not compatable with the internal program already generated for your table.
for this do the following
SE11-->Utilities->Database Utilities----->Click on Activate and Adjust Database.
Then the Table defnition is validated. The Internal Program for your table adjusted
and stored in the R/3 Repository (that is in the DATABASE Level).
If this valueble for you, validate with some points
Regards,
Ramu -
How to add new CMP field to CMP bean
I am back for your amusement. I have seen similar things to this in other postings, but I have not been able to find one that, when action is taken, solves my problem.
I am using Sun Java Studio Enterprise 7 2004Q4
Our database changed by adding one new field. I need to update the bean for that table. Since the bean was created from a schema, I thought I need to update the schema first. Having found no way to do that yet, I recreated the schema under a different name, deleted the old one and renamed the new one to the old name. Follow that? :|
Ok. So now I have a new schema with the old name. I still have the old one in CVS so I can get it back (see I am learning someting).
I then went to the bean and added a new CMP field. I updated all my code to use the new field accessors. Changed the create method to have one more field and use the accessor.
Then in the module where the bean is being used I mapped the new field to the field in the database. The CMP is in a relationship with two other beans, but this field is not used (not yet anyway).
I then compiled and depoyed. Everything went ok. "I am really getting the hang of this EJB stuff", I said to my self. Then I tried to run it.... I should have saved the comment for another time... :(
I got this message and exception :
"Validation error in class com.PersonCMPBean685435892_JDOState: com.sun.jdo.api.persistence.model.util.ModelValidationException: Warning: Cannot find the column person.p_umd_id for mapping the field pUmdId in the class com.PersonCMPBean685435892_JDOState.
Verify that the schema file exists and that its contents are correct."
com.sun.jdo.api.persistence.support.JDOUserException: The mapping for class com.PersonCMPBean685435892_JDOState is invalid. Compile the class in the IDE, correct any errors, and verify that all required files are packaged for execution.
The schema exists. The field is in the new schema. Hmmm. I screwed up. Stamp it on my forehead with the others from working with EJB.... :)
So what did I do wrong? How is this supposed to be done. Is there an easier way to update the schema?
Any help will be greatly appreciated. Thank you.Ok. I found something that works, albeit I don't think it is the recommended way. But since I can't find a recommended way, I will settle for working. This was a suggestion from someone else who had this problem ( http://swforum.sun.com/jive/thread.jspa?forumID=122&threadID=23428 ). But I have broken it down into steps and refined it a bit.
1. Create a new schema under a different name.
2. Go to the module that has a bean that is using the old schema.
3. Find the reference for the bean under the module and look at the properties for the bean.
4. In the properties in the Sun Java System As section there is a property called Mapped Schema. Change it to the new schema.
5. deploy
There's more...
If you need to have the same name for the schema, like I did because I keep it in CVS, do this:
6. Shutdown the IDE
7. Go to the directory where the schema is and rename it to whatever you need (whatever you had originally).
8. restart the IDE
9. repeat steps 2-4
10. restart the IDE again before you deploy!
I know this is insane. But it is all I could figure out so far. If anybody has something else that is better, please, please, please let me know! -
Replication of a new BP field form CRM to R/3
Hi Experts,
We use CRM 4.0. I have created a new field with EEWB in CRM and I would like to replicate this field to R/3. This is a standard field on R/3 side.
Could you please help me what are the steps to do for the replication? We use R/3 adapter and the BP replication works properly.
Thanks a lot in advance!
Regards,
TomHi Thomas,
Replication of new fields between CRM and R/3 will involve a few manual steps.
1. Ensure that that relevant Bdoc structure is also extended with the new field. EEWB should do this for you but i am not sure about CRM 40.
2. There needs to be a logic in the CRM outbound to map the new field to bapistructures. you will have to code a user exit for crm outbound in tx -
crmc_but_call_fu.
3. The R/3 adapter inbound also needs to be made aware of the new field. so necessary mapping to the R/3 standard field has to be done using tx.
comc_bupa_call_fu
Reward if this helps...
Regards,
Sudipta -
How to add new subscreen & fields to ME51N
Hi Experts,
How to add new subscreen and to add new fields at item level, maybe someone have done this before and maybe can guide me...
Thank You.someone have experience on this? so can you guide me... tq
-
How to validate the input field
Hi,
I have a input form which is draged from input port of a RFC.
in this input form i have two input fields nad submit button.
on of this input field should always take the character values only. it should not take any numeric value
and other input field should always take numeric value only.
i.e how to validate this two input fields.
regards
srinivasHi,
U can validate input fields using javascript.Write OnClientClick function for that submit button if ur using htmlb or onClick if u r using html.Refer the follows
http://help.sap.com/saphelp_nw70/helpdata/en/03/900e41a346ef6fe10000000a1550b0/frameset.htm
There are two ways to achieve ur task.
1.By checking for all alphabets.in this u need check all the alphabetic characters one by one.Refer the following
http://www.shiningstar.net/articles/articles/javascript/javascriptvalidations.asp?ID=ROLLA
http://www.shiningstar.net/articles/articles/javascript/checkNumeric.asp?ID=AW
2.By using regular expressions.its very easy and a single line code.here u need to specify single expression for whole alphabets.Refer this
http://aspzone.com/blogs/john/articles/173.aspx
Everything has been given for validating in javascript.i hope u also validating in javascript only.
For more details on "Regular expressions" search google.
Regards,
Tamil K -
How to validate selection-screen field
Hi all,
How to validate a selection-screen field defined as a select-options.for Ex i declared a selection-screen field select-options:s_matnr for mara-matnr.
Then how to validate this field.Hi,
write the below code in AT SELECTION-SCREN.
EX :
AT SELECTION-SCREEN.
*-- Validate the Selection screen data
PERFORM VALIDATE_SELSCR_DATA.
WRITE THE below code in Form "VALIDATE_SELSCR_DATA".
IF S_MATNR[] IS INITIAL.
*--MATNR is initial.
message e000(MsgCLass) with 'matnr is empty'.
ELSE.
SELECT MATNR
INTO MARA-MATNR
FROM MCHA
UP TO 1 ROWS
WHERE MATNR IN S_MATNR.
ENDSELECT.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'Invalid MATNR entered'.
ENDIF.
ENDIF.
Maybe you are looking for
-
Payslip generation takes long time
Hi Experts I have a issue of generation of payslip takes a long time. In one of my client, there are around 35000 employees all under one payroll area, they run the payslip program in the background. This current month it took 30 hrs to complete. as
-
hi, can anybody tell the name of BAPI used to create vendor master data. thanks konala
-
RE: Grop ware Integration
Dear Friends, This is Mr.Prabhu, I need some information reg. Group Ware Integration,ie i require to know about the settings and prerequisites and how CRM is intgerated with Groupware. If some body could reply me with Step by step Procedure it would
-
Hello All, Final Cut X is no longer rendering any of my files. After reading many post I could not find one that helped. I have tried these: Turning off background rendering and going back to manually rendering Turning off "prevent app nap Render a
-
Settings to connect to office windows network using wifi
Hi there, I'm trying to connect my MacBook to the office network using Wifi - it's a full windows network with the usual active directory, fileservers and exchange. I can connect using LAN and can get to the network folders and exchanges etc, But I c