Problems Validating User Fields in Change Lease-Out

Good Morning,
I've defined two Date Fields in Change Lease Out (transaction FOV2).
I need that when the first date field is empty the system returns a error message stating that the first data field should have data.
The second fill can be with or without data.
The problem is that, right now, the system returns the error message in every case except if both fields are filled.
Here is the code done by the developer:
FUNCTION field_exit_usrdate_1.
*"*"Local interface:
*"  IMPORTING
*"     REFERENCE(INPUT)
*"  EXPORTING
*"     REFERENCE(OUTPUT)
  DATA dt_usr08 TYPE vzsort-usr08.
  IF input IS INITIAL.
    MESSAGE e005(z3_re).
  ENDIF.
  SET PARAMETER ID 'DT_USR08' FIELD dt_usr08.
ENDFUNCTION.
Why the system always return the error message except if both the data fields are filled? Any clue?
Best Regards,
Pedro Gaspar

Solved Myself

Similar Messages

  • DTW valid user fields

    Dear Experts,
    I am working w/ a customer who has hundreds of OITM valid user fields to set up.  I found the  oUserFields folder in DTW templates, with UserFieldsMD.xlt (corresponds to CUFD) and ValidValuesMD.xlt (corresponds to UFD1).  Seems straigthforward.
    But when running import function of DTW there is no corresponding Business Object for user fields / valid user fields. Or at least not one that is obvious to me.
    What am i missing?  Running 2007A PL 46, DTW 2005.0.23, API version 8.0.181 
    thanks for your help,
    Beverly

    You don't need to include ValidValuesMD.xlt if nothing need to be set.  Try DTW just one or few UDF name by UserFieldsMD.xlt to start.
    Thanks,
    Gordon

  • Problems with user fields

    Hi, I need some help.
    I try to assign a user field from a float var, the problem is, only the entire part was wrote on the field and the decimal part doesn´t appear or it´s lost. 
    From user field to a var doesn´t have problems.   
    FoUsrTable.UserFields.Fields.Item(TObject(j)).Value := tobject(fValor);   
    I need to do something special?  
    Regards and thanks

    Hi Juan Correa
    You must make sure that your userfield is of the correct type, make sure it does accept decimal points. Check from the front end of SBO if it is correct. If not, change the type of the field until you get it in the desired format in the UDF definition. Remember that under general settings you can also set the additional decimal points as you please.
    If it is still giving you a problem then the way you are placing it in there is causing a problem. Maybe place a small code snippet if you don't come right.
    Hope this helps

  • My user group photo changed with out my authorization

    I went to log onto my computer and noticed that the photo of myself which come up on the screen when i type my password in had changed to a picture of an animal.  How did this happen with out my authorisation?

    Some one may have access to your MBP.  I suggest that you change your password.
    Ciao.

  • Field status as mandatory while creation of RE-FX Lease Out Contract

    Hi SAP Real Estate Friends,
    I have a requirement wherein we need to make the field status of some specific fields as mandatory for data input in RE-FX Lease Out Contract. The fields are mentioned below:
    1. Profit Centre in Organizational Assignment Term.
    2. Payment Terms in Postings Term.
    3. Account Determination Value in Postings Term.
    4. Resubmission Rule needs to be mandatorily selected by the user creating the RE-FX lease Out Contract.
    5. Fixtures and Fittings Characteristics needs to be mandatorily selected by the user creating the RE-FX Rental Object.
    Also we need to achieve a requirement that in case a posting has already been carried out for a given RE-FX Contract for a given Account Determination Value, same shall not be available for change in the RE-FX Contract subsequently.
    Plz write back with your valuable inputs.
    Thanx in advance
    Pankaj

    Hello,
    You can set the field status from this path:
    RECACUST > Contract > Dialog > Screen Layout > Field Groups > Field Status per Contract Type
    Regards,
    Suvarghya.

  • Changes to Rebate Agreement Validity Date Field

    Hi,
    We are trying to prevent people from changing the "Validity To" date field (KONA-DATBI) on Rebate Agreement masters (VBO3). They are back dating the field which is causing probelms for running billings.
    Is they any way this can be done via a validation on that field or a message that pops up when the field is changed to something earlier than current date?
    Thanks

    Hi,
    This fields is opened for a good reason, sometimes the end-date of an agreement should be reduced when you want to split a period and therefore create a new agreement for the remaining period.
    In my opinion this is a procedure problem, your users must know what they do.
    If someone still keeps on introducing incorrect data in the system, this person should receive additional training and / or be warned.
    To answer your specific question:
    There is no user-exit for the rebate agreement master data. Quite a shame.
    Best Regards,
    Franck

  • Validating if a field has changed value

    I have a custom field: Oportunity Number. This number will be generated for new Opts. by a web service.
    I am trying to validate if a user tries do change or delete this number with editing.
    I am using:
    FieldValue('<nNmero_Oport_ITAG>') = PRE('<nNmero_Oport_ITAG>')
    and it seems to be working fine for changes. OTH if the user just blanks out the field, above expression is not catching it...
    I´d appreciate any help.
    Txs.
    Antonio

    Just a guess. You can also try
    FieldValue('<nNmero_Oport_ITAG>') = PRE('<nNmero_Oport_ITAG>')
    OR [<nNmero_Oport_ITAG>] IS NOT NULL
    Thanks VK

  • Unique problem with validation/ making field required

    I have searched the forums trying to find a way to make a field required based on the users selection of a check box, or something else. So far, everything says use nullTest = "error".
    I have tried to do this and get the following results: The red highlighting, which shows up around my other required fields, will not show up unless you click in the text box and then out of it. Weird! Then, when pressing the submit button, it will not actually give you an error message if there is nothing in that text box, as it will if there is nothing in the fields that I originally make required.
    Any thoughts, or fixes would be greatly appreciated.
    Thanks in advance for any help.

    We do the same thing here. We haven't had any issues with the submit not validating the field correctly though. Our only issue was the red highlighting. To get around this, we would call resetdata on the field. resetData clears out the value of the field so you need to store it off and then reset it.
    if (form1.BP1.ChangeActivities.Pos1.Department==1) then $.validate.nullTest = "error" else $.validate.nullTest = "disabled"
    endif
    $=$
    var x = $
    xfa.host.resetData("form1.BP1.ChangeParticulars.Pos1To.DeptNo")
    $ = x

  • Change of Business Partner in RE-Fx Lease Out Contract.

    Hi,
    I would like to know the possibility of change in the Business Partner in a RE Lease out contract wherein some postings have already made.i.e. A contract was created with Business Partner X and postings and invoicing was done. Later it was decided that the posting and invoicing shall now be done on new business partner Y which was attached to the contract.
    Please suggest.
    Pankaj Wadhwa

    Hi Diana,
    Thanks for the update.
    My requirement is slightly different from what you have answered. The business case is explained below:
    I have a lease out contract with Partner Company X. Some postings and invoices have been created in the system with Partner Company X. Now the partner company X is bought by Partner Company Y. The earlier postings and invoices shall be in the name of partner company X only and subsequent postings and invoices shall be in the name of Partner Company Y. The solution proposed by you shall reverse the earlier postings which is not desired.
    Please suggest some way to tackle this problem.
    Thanks and regards,
    Pankaj Wadhwa

  • Problems when user enter the field

    I have problem when user enter the field, but it cannot retrieve from the table. Below is my program, help me to check is it correct or not, THANKS
    <input type="text" name="po_num<%=i%>" style="width:100%;text-align:left;" onChnage="chkPOexist(<%=i%>)">
    Function chkPOexist(i){
    if documen.all.po_num.value == null {
    alert ("PO cannot be null");
    else {
    po_num = new String;
    po_num = eval(document.po_num[i].value)
    alert(po_num);
    <% System.out.println("PP " +po_num);
    sql_query = "SELECT po_num"+
    " FROM pomast"+
    " WHERE po_num '"+po_num+"' ";
                        try{
                        rset = db.execSQL(sql_query);
                        catch(SQLException e) {
                        System.err.println("Error in query");
                        while(rset.next()== true){
    po_num = rset.getString("po_num");
    %>
    </select value="<%=po_num%>"><%=po_num%></select>
                        <%}%>

    You seem to have some confusion between java and javascript, and when they run.
    Java code runs only on the server, and produces an HTML page.
    Javascript code runs on the client.
    The two can not communicate. Specific to your example you seem to think that the java code will be executed by your onChange event.
    This is not the case.
    In order to run java code again you have make a request by submitting the form, or clicking on a link.
    Cheers,
    evnafets

  • SOA EM down after password change - OracleSystemUser is not a valid user principal in the current security realm

    Hello,
    I've got a SOA Suite development environment set up and whilst trying to change the weblogic password using this tutorial a problem arose with my soa managed server.
    Firstly I was unable to start the Managed SOA server due to mismatching passwords, and after I modified the boot.properties file, now I cant start the usermessagingserver and soa_infra applications due to the following error:
    Error 1
    Getting weblogic deployment manager.
    Got weblogic deployment manager.
    Invoking Start Up operation.
    Start Up operation for application usermessagingserver on target soa_server1 RUNNING.
    Start Up operation for application usermessagingserver on target soa_server1 FAILED.
    weblogic.application.ModuleException: Exception preparing module: EJBModule(sdpmessagingclient-ejb-parlayx.jar)
    Unable to deploy EJB: MessagingClientParlayX from sdpmessagingclient-ejb-parlayx.jar:
    The run-as security principal, 'OracleSystemUser', chosen for the EJB 'MessagingClientParlayX(Application: usermessagingserver, EJBComponent: sdpmessagingclient-ejb-parlayx.jar)' is not a valid user principal in the current security realm. Please specify a valid user principal for the EJB to use.
    Getting weblogic deployment manager.
    Got weblogic deployment manager.
    Invoking Start Up operation.
    Start Up operation for application soa-infra on target soa_server1 RUNNING.
    Start Up operation for application soa-infra on target soa_server1 FAILED.
    weblogic.application.ModuleException: Exception preparing module: EJBModule(hw_services_wls_ejb.jar)
    Unable to deploy EJB: ASNSInteraction from hw_services_wls_ejb.jar:
    The run-as security principal, 'OracleSystemUser', chosen for the EJB 'ASNSInteraction(Application: soa-infra, EJBComponent: hw_services_wls_ejb.jar)' is not a valid user principal in the current security realm. Please specify a valid user principal for the EJB to use.
    I've checked both weblogic and OracleSystemUser users and their groups are (respectfully) Administrators and OracleSystemGroup.
    I've searched for an answer to this problem and found this other support article but couldn't resolve the issue.
    The weblogic server version is 10.3.2.0 and it's running on RedHat Linux.

    @Sri_Sonti
    In the Admin Console, I can see both users in the security realm with the following configs:
    weblogic:
    all atributes with the "value" column blank
    groups: Administrators
    OracleSystemUser
    all atributes with the "value" column blank
    groups: OracleSystemGroup
    Also I have not found the system-jazn-data.xml file you mentioned. In that folder there's only a readme.txt file.
    Best Regards,
    luismcs
    Enter Cookie as format:
    (ex: name=val;) separate with ';'
    OKCancel

  • Change "valid to" field in Profit Center master collectively

    I want to change "Valid to" field in Profit Center master collectively, e.g. from 31.12. 9999 to 31.12.2010. I have tried KE55(mass change profit center) but it seems the "Valid To" field is greyed out, i.e. not able to change this field in massive change.
    Therefore, I have to go to KE52>change valility period to shorten the "valid to" filed invidiually. There are too many profit centers i have to change.
    Is there any way to change this field in mass change configuration?
    Regards,
    Frances

    Hi
    Use an LSMW to do this task... It has to be done from KE52... So, better to create an LSMW
    Regards
    Ajay M

  • How to add Valid values in user field?

    Hi,
    I'm trying to add a user field (valid values) in my user table, but i don't know what's wrong with my code.
    It creates the field, but not the field that i want.
    oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                oUserFieldsMD.TableName = sTableName
                oUserFieldsMD.Name = sFieldName
                oUserFieldsMD.Description = sDescription
                oUserFieldsMD.Type = FieldType
                oUserFieldsMD.Size = iSize
                'Valid Values 1
                oUserFieldsMD.ValidValues.Value = "D"
                oUserFieldsMD.ValidValues.Description = "Disable"
                oUserFieldsMD.ValidValues.Add()
                oUserFieldsMD.DefaultValue = "D"
                'Valid Values 2
                oUserFieldsMD.ValidValues.Value = "A"
                oUserFieldsMD.ValidValues.Description = "Active"
                oUserFieldsMD.ValidValues.Add()
                Dim i As Integer
                Dim err As String
                i = oUserFieldsMD.Add()
                If i <> 0 Then
                    oCompany.GetLastError(i, err)
                    SBO_Application.MessageBox(i & "; " & err)
                End If
    Bruce

    Hi Bruce
    It looks good, just take out the second one "UserFieldsMD.ValidValues.Add()". Leave the first one. Just take out the second one after oUserFieldsMD.ValidValues.Description = "Active"
    Hope this helps

  • ICSS_B2C Customer relogin problem "Enter a valid user id and password".

    Hi Gurus,
    In ICSS_B2C, I have login problem with the userid and password that i have created. I have maintained all necessary settings in XCM, reference user etc.,
    I have configured icss_b2c Admin with value "CRM_SU01UserID" for component usertype in http: //server:port/icss_b2c/admin/xcm/init.do.
    UserID is getting saved but when i try to relogin with the same, I am getting the message ""Enter a valid user id and password".
    I tried with alias, su01i
    Guide me Where all I can check to solve this?
    Thanks and points will be rewarded.
    urgent
    Srinivas.

    Hi
    The User Id that you have created, must have been assigned to a BP in the tcode BP and role BUP005.
    Goto the BP and check the Internet User tab
    The user name that you are suppose to use is the one mentioned in the Internet User field in the Logon data dataset.
    Hope this helps
    Regards
    Rekha Dadwal

  • User exit for validation of field NEWKO in f-48 tcode in finance

    hi,
           Previously we  validated the Field XBLNR (Reference) in the document header from the table EKKO, for the PO Number. now we want to validate the vendor number(LIFNR)  in the field NEWKO from the table EKKO with reference to the PO number entered in the field XBLNR.
    we want to find out the correct user exits or any enhancement for the above validation.
    pls help me in this regard ,matter most urgent.
    Thanks & regards
    veera

    hi,
    for f-48 you could use FI-validation with tcode OB28
    use an exit (UK...) for your check in Program ZGGBR000
    A.

Maybe you are looking for

  • How do I remove Mountain Lion and reinstate the original server OS

    I have upgraded to Mountain Lion on my MacBook Air, the problem was that my Mac mini showed it available on the apps store, which I then (Stupidly) downloaded. Can anyone tell me know how to turn back time and remove Mountain Lion from my Mac mini an

  • Functionality of the function module - FAGL_GET_OPEN_ITEMS_GL

    Hi, I would like to know regarding the working of the module FAGL_GET_OPEN_ITEMS_GL, and details about the parameters to be passed to the function module and the returned values. thanks.

  • Wierd bar with blue circle appeared above tabs

    HI -- last night, shortly after (not sure how long exactly) having installed Silverlight - direct from the amazon prime video site, a strange white bar with a blue ringed circle appeared above my tabs in the browser. I don't think it appeared directl

  • Os x 10.8.4. download stuck in waiting

    App store app shows update available for os x 10.8.4. and iTunes 11.0.4  I I clicked on 'update' and now I am stuck with 'waiting' next to the update box. I tried to quit the Mac store app and couldn't because the message reads the os is in the proce

  • My bb came without email setup application?

    The title is self explanatory. I've searched a while for the download link but i'm out of luck today, anyways i'm not that good searching online :/. I'm hoping someone could give me a link? Thanks. Solved! Go to Solution.