Error in comparision of two fields? ---- urgent

HI
Any body please tell me how to compare two fields one is type c and another one is type p decimals 3 like that
field1 = 2,3000 mm
field2 = 2,3.0000000000e+2 like
give me solution as early as possible
thanks in advance

HI,
For your info when you want to compare this kind of fields your have to convert the field1 type (TYPE C) into the type of field2 (TYPE P DECIMALS 3).
I always to the followong:
DATA:
field1(10)   TYPE C,
field2        TYPE P DECIMALS 3.
temp_field LIKE field2.
REPLACE ',' WITH '.' INTO field1.
temp_field = field1
IF temp_field = field2.
ENDIF.
Hope that the above code will help you

Similar Messages

  • Semantic comparision between two word (urgent help)

    Dear friends,
    Is there any one knows sematic comparision between two keyword? could you please inform me any source code or link which can help me . I am developing sematic classifer . In need to compare two kewyord and get parent- child relationship ??
    please send me if you have any souce code or any existing code to my mail or this forume .
    thanks!
    / Nicks
    here is my e-mail: [email protected]

    But you're the one developing the semantic classifier!
    I really doubt you'll find some code to generically determine the parent-child relationship between two words because, as you say, this is semantics and derived from context not from content. Google might help you out though:
    http://www.google.com/search?hl=en&q=Semantic+Classifier+Java
    Good Luck
    Lee

  • I have two fields and I would like the 2nd field to display the word "Error" if the number is smalle

    I have two fields and I would like the 2nd field to display the word "Error" if the number is smaller than the number in field 1.
    can any one help?

    The code for the field? Sure, it's simple.
    You can use something like this as its custom calculation code:
    var v1 = this.getField("Field 1").valueAsString;
    var v2 = this.getField("Field 2").valueAsString;
    if (v1 && v2 && Number(v2)<Number(v1)) event.value = "Error";
    else event.value = "";
    Edit: Fixed code

  • Error while adding a custom field with Input help via AET

    Hi All,
    I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
    One field is required to have the input search help f4 and autopopulates the second field
    I am able to add one field(not requiring help) successfully through AET .
    I have created one Zsearch_help in se11 and its successfully running  and Autopopulating seocnd field while I am testing it
    While adding second field through AET,I need to enter following details as -
    field label,search relevant ,serach help etc.
    When I type the name of my 'Zsearch_help' against field search help it gives me following error
    'Search help is not compatible'.
    Secondly,not getting getter and setter methods for the attrributes in BTAdminI.
    Last,please tell me if i create zhelp and activate it,would it automatically appear in the list on AETwhile assiging it to input field?
    Please help me out.Kindly be detailed as I am new to SAP CRM.
    Thanks,
    Shivani

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

  • Error message without link to field

    I have a page where I am entering some information and saving it. I am using a VO which is based on an EO. I have two instance of this VO. One is being populated from the page and other one is being populated in the background.
    I have put some validation in EO and using following code in validateEntity()
        if (getTotEngHrs() == null)
            throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
                                      getEntityDef().getFullName(),
                                      null,
                                      "TotEngHrs",
                                      getTotEngHrs(),
                                      "CRM",
                                      "CINT_CRM_TOT_ENG_HRS_NULL");
    When I try to save data without entering any value in TotEngHrs field. I do get the error but without any link to this field (just get the plain message). I then enter value in some other field and save it again and I start getting the error with link to those field.
    Is there anyone who can help me in this?
    Thanks in advance

    Just in case it's not clear from above.
    If I don't enter value for TotEngHrs I get error as I should be but without link to the field ..when I hit save second time the link to error field does appear.

  • How to calculate value based on two fields & set that on the 3rd (in table)

    Hi OAF Gururs
    I have a requirement in which, in an OAF page, the user can add a row in an advanced table and they enter
    the values for two fields say 'rate' and 'entered amt' and immediately on tab out, the 3rd field should be popluated as rate*entered amt.
    Is there a way, we could capture the tab out event? Or any way we could achieve this?
    This is really urgent.
    If anyone can help.
    Thanks!
    AJ

    OAF gurus hang out over in {forum:id=210}

  • How to use same Data Type and Length for two fields

    How to use same data type and length for two fields when using 'FOR ALL ENTRIES IN' in a select statement? For instance the select queries are :
    SELECT bukrs gjahr belnr lifnr budat bldat zlspr dmbtr waers shkzg
    FROM bsik
    INTO TABLE it_bsik
    WHERE bukrs = p_bukrs
    AND lifnr IN s_lifnr.
    IF it_bsik IS NOT INITIAL.
    SELECT belnr gjahr awkey awtyp
    FROM bkpf
    INTO TABLE it_bkpf
    FOR ALL ENTRIES IN it_bsik
    WHERE belnr = it_bsik-belnr
    AND gjahr = it_bsik-gjahr.
    IF it_bkpf IS NOT INITIAL.
    SELECT belnr gjahr lifnr xblnr
    FROM rbkp
    INTO TABLE it_rbkp
    FOR ALL ENTRIES IN it_bkpf
    WHERE belnr = it_bkpf-awkey+0(10)
    AND gjahr = it_bkpf-awkey+10(4).
    ENDIF.
    ENDIF.
    Here it gives an error in the 3rd select query that 'When you use the addition "FOR ALL ENTRIES IN itab", the fields "GJAHR" and "IT_BKPF2-AWKEY+10(4)" must have the same type and the same length.'
    Kindly clarify.

    Hi Saurabh,
    Please see the example code that I have developed for you. It will help you solve the problem.
    REPORT ZTEST_3 .
    tables : BKPF.
    data : begin of it_bkpf occurs 1,
             belnr type RE_BELNR,
             awkey type awkey,
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf.
    data : begin of it_bkpf1 occurs 1,
             belnr type RE_BELNR,
             awkey type gjahr,              " change the data type
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf1.
    data : begin of it_rbkp occurs 1,
             belnr type BELNR_D,
             gjahr type gjahr,
             lifnr type LIFRE,
             xblnr type XBLNR,
           end of it_rbkp.
    select belnr
           awkey
           awtyp
           gjahr
           from bkpf
           into table it_bkpf
           where BUKRS = 'TELH'.
    loop at it_bkpf.
    it_bkpf1-belnr = it_bkpf-belnr.
    it_bkpf1-awkey = it_bkpf-awkey+10(4).           "Here only append the required length.
    it_bkpf1-awtyp = it_bkpf-awtyp.
    it_bkpf1-gjahr = it_bkpf-gjahr.
    append it_bkpf1.
    clear it_bkpf1.
    endloop.
    select  belnr
            gjahr
            lifnr
            xblnr
            from RBKP
            into table it_rbkp
            for all entries in it_bkpf1
            where belnr = it_bkpf1-belnr
    This is just an example. Change the fields according to your requirement.
    Regards
    Abhii
    Edited by: Abhii on Mar 9, 2011 9:08 AM

  • How to calculate value based on two fields & set that 3rd on (KFFfields)

    Hello Gurus,
    I have a requirement customization in which, in an OAF page, tableLayout: (HrSitKeyFlex) having 3 fields 1)Days of Trainging 2)No of days Trainging hours 3)Total Duration when user enter the values for two fields say 'Days of Trainging' and "No of days Trainging hours "and immediately on tab out, the 3rd field should be popluated as rate*Toatal'.
    tableLayout: (HrSitKeyFlex)
    1)Days of Trainging ( 1DAY)
    2)No of days Trainging hours (4Hours)
    3)Total Duration (calculate 1*4=8)
    Is there a way, we could capture the tab out event? Or any way we could achieve this?
    This is really urgent.
    If anyone can help.
    Regards,
    Srini

    Hello,
    1. Firstly set the fire partial event of 2nd column field.
    2. Capture the event in PFR method.
    3. After Capturing event, make a row reference object.
    4 Now store the value of 1st column field and 2nd column field in variable.
    eg. String str= row.getAttribute("Ist Column Name")+"" and String str1= row.getAttribute("2nd Column Name")+""
    5.Convert these string value into integer
    eg. int x=Integer.parseInt(str); and int y=Integer.parseInt(str1)
    6. calculate the value in the integer variable on the basic of these two value
    eg. int z = x*y
    7 Assign the value to 3rd column after converting it into string
    eg. row.setAttribute("3rd Column Name", string variable);
    when u tab out from 2nd column, the calculating value will be assign to 3rd column.
    Regards,
    Manish Chawla
    Edited by: ManishC on Dec 17, 2012 10:36 AM

  • Generic delta   using function module with two fields  AEDAT AND ERDAT

    Hi,
        i have scenario that i have to create a generic data source  having delta using funcation module and the delta speci fields are AEDAT AND ERDAT . Is there possibility with out using these two fields ( i mean AEDAT AND ERDAT)  in the extract structure can i create the data source . and provide sample code for me . it is very urgent.
    waiting for the reply,
    sri.c

    Hi Sri,
    here some coding, I hope this helps!
    first, get the delta-field
          LOOP AT s_s_if-t_select INTO l_s_select.
            CASE l_s_select-fieldnm.
              WHEN 'ZDATE'.
                MOVE-CORRESPONDING l_s_select TO r_date.
                IF r_date-high IS INITIAL OR r_date-high = space.
                  r_date-high = '9991231'.
                ENDIF.
                APPEND r_date.
            ENDCASE.
          ENDLOOP.
    Cursor öffnen
          OPEN CURSOR WITH HOLD s_cursor FOR
          SELECT * FROM
          WHERE  ....
          AND    erdat in r_date
          AND    aedat IN r_date.
          FETCH NEXT CURSOR s_cursor INTO CORRESPONDING FIELDS OF table e_t_data package size s_s_if-maxsize.
    regards
    Siggi
    PS: Note that this coding only works for a very straight forward extraction.
    Message was edited by: Siegfried Szameitat

  • How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version

    How to add the clearing document no. & payment method in FBL3 tcode. Can any one explain me step by step process how to add that two fields. This is ABAP 3.1 version. It's urgent requirement.
    Moderator Message: Duplicate thread locked. Please carry on with this thread: How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version
    Message was edited by: Suhas Saha

    Did you read the note provided in How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version ?
    Regards,
    Raymond

  • How to link or call two FIELD EXIT

    Hi Friends,
    I've to do a Field exit object for MIGO...and my logic is i've to capture the meory id concept by Export and Import function.So, I heard that I've to create one field exit with Export function and again create under one more field exit to import the memory id from Export.
    I know the logic of Export and Import.But i dont know how to fix it in the function module,means how to create one field exit and call the same under one more field exit.
    Pls do the needful and post me with some good field exit examples for my reference.i.,e How to give codes inbetween Function and End Function. and how to call this field exit with one more field exit for import stmt.
    if u find BADI or USER EXIT is good for MIGO,pls reply with good and correct example functions.
    Thanks and regards
    sankar.
    Edited by: sankar babu on Dec 29, 2007 10:00 AM

    Hello Sankar,
          Just you want to use the functionaly Import and Export , that why you required two Fields Exit in transitation MIGO.
    I suggest MIGO is huge transitation which conver some table like MSEG and BSEG which affect the performance of the program. Better you go with one field Exit . Although there are many Some are attach Below.
    Re: MIGO Enhancement
    Re: How to add field to MIGO Urgent??
    SMOD enhancement MBCF0005 looks promising.
    MBCF0002
    MBCF0005
    MBCF0006
    MBCF0007
    MBCF0009
    MBCF0010
    MBCF0011
    MBCFC003
    MBCFC004
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/QMIMIL/QMIMIL.pdf.
    MB_DOCUMENT_BADI or MB_DOCUMENT_UPDATE
    and these exits: MBCF0002, MB_CF001
    Regards
    Swati Namdeo

  • How to switch two fields with one of them OBLIGATORY

    Hi everyone,
    i have two radio button on the screen: RD_A  and RD_B, while there are two fields corresponding to them: P_A and P_B, P_A is OBLIGATORY.
    i want to implment: when i click RD_A, field P_A is enable and field p_B is disable. when i click RD_B, field P_B is enable and field P_A is disable.
    i tried using LOOP AT SCREEN ...screen-input = '0' and screen-required = '0' ....MODIFY SCREEN...statements, but it cannot work fine. when i switch from A to B, it always popup error message 'Fill in all required entry fields'.
    can anyone help me? thanks in advance!

    you can try this approach, instead of using Obligatory Addition.
    REPORT  ztest_radio.
    TABLES: sflight.
    SELECT-OPTIONS: carrid FOR sflight-carrid,
                    connid FOR sflight-connid.
    PARAMETERS: r1 RADIOBUTTON GROUP g1 USER-COMMAND abc DEFAULT 'X',
                r2 RADIOBUTTON GROUP g1.
    AT SELECTION-SCREEN OUTPUT.
      IF r1 = 'X'.
        LOOP AT SCREEN.
          IF screen-name CS 'CONNID'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-name CS 'CARRID'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN.
      IF sy-ucomm = 'ONLI'.   "This triggers only when you press execute button
        IF r1 = 'X'.
          IF carrid IS INITIAL.
            MESSAGE 'Enter Carrid' TYPE 'E'.
          ENDIF.
        ELSE.
          IF connid IS INITIAL.
            MESSAGE 'Enter Connid' TYPE 'E'.
          ENDIF.
        ENDIF.
      ENDIF.

  • Two fields on the same line in sreen programming

    Hi All,
    I need to create a selection screen which would have two fields (their texts and their irespective input fields) in the same line, on the screen.
    I was able to achieve this by using code--
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-a04.
    PARAMETERS: sch_begd LIKE qppnp-begda.
    SELECTION-SCREEN COMMENT 52(22) text-a05.
    PARAMETERS: sch_endd LIKE qppnp-endda.
    SELECTION-SCREEN END OF LINE.
    This could allign the fields - start date (text-a04) and end date (text-a05) in the same line along with their input fields.
    But I am facing two issues with this code-
    1. I am not able to get the underline same as we get when we create selection screen using 'select-options' and 'parameters'.
    2. This is causing accessibility issues, as the field text and the input field are no more linked (since I am using text element to display the field text, like for start date), it cannot find the text to be read for the input field and hence the checkman errors.
    Please suggest how to achieve the same.
    Thanks and Regards,
    Arpita.

    Hi Arpita,
    Are you trying to have select-option field in your screen in dialog programming?
    If yes than you can use the following approach else ignore this.
    Create one screen (100) and create subscreen area on this screen and call this subscreen in PAI and PBO of screen
    Using call subscreen check F1 help for calling subscreen in PAI and PBO.
    Now you should create your selection screen on the subscreen use selection screen begin of screen (100) option of defining
    selection screen and then add your selection options here.
    Regards,
    Pawan

  • I want to register my iPod with iTunes but the registration firm keeps asking for a postcode but there is no field to enter it, although there is an arrow showing where the error is but still no field for entry. Any suggestions how to get past this ?

    I want to register my iPod with iTunes but the registration form keeps asking for a postcode but there is no field to enter it, although there is an arrow showing where the error is but still no field for entry. Any suggestions how to get past this ?

    I can not get to iPhone screen, so no way to get to Settings. That is the problem. When I connect phone to iTunes I get screen asking to insert SIN card. On the phone I'm getting Cinfigure screen asking Launguage , Country or Region, Wi-Fi, ( I can connect to my home wi-fi), and last screen "Activating your iPhone". After two minutes of waiting IM getting message: Your iPhone could not be activated because the activation server in temporary unavailable. try connecting to iTunes or try later or contat apple.com/support.
    Like I mention, I went to Bell as well Rogers store and tried to insert active SIM card with no results.
    Yes, my friend unlock the phone to use with Rogers but I don't know where

  • Can not see two fields in Crystal 2008 Developer explorer/designer view

    I am currently developing crystal 2008 reports against the salesforce.com database using version 12.0.0.683 CR Developer Full version. I am using an updated driver that was provided in July or Aug 08 in order to view self referencing fields. The problem is that when I try and report against one of the tables (lead history) I cannot view two of the fields (New Value and Old Value)? I can see these two field (New Value and Old Value) in the database expert as the last two fields in the actual table, but the two fields are missing when I go into the explorer/designer view. In Salesforce, these two fields can not be filtered on, but I can export all the values in this table using Salesforece Apex data loader.

    Please re-post if this is still an issue to the OnDemand Forum or purchase a case and have a dedicated support engineer work with you directly

Maybe you are looking for

  • Apps Wish List

    Can we have something like what's on the Archos Forum (NOT Oxford educated you know) where users can submit a wish list and specs for apps ? This way apps writers could address specific wants, rather than write an app then find a market for it Admitt

  • Regarding File 2RFC scenario

    Hi Friends, please help me on file 2 rfc scenario . here after completion of the configuration and design. i place my file in my server but it was not picked. can u solve this  issue.i have created this scenario using business service.

  • Oracle Report toolkit and 3rd components

    Hi folks: I am a newbie to Oracle (10g) realm who am expected to write reporting functionality. My question is what the report tool out of the box in Oracle and is there any 3rd components for wrting reports? Thanks, Ricky

  • ACR 8.4 not updating in PS CC

    I keep trying Help....Updates in PS CC and the Application Manager keeps telling me all applications are up-to-date. I've already updated to LR 5.5 and I need to update ACR or I get constant warnings when I try to move images back and forth between t

  • 16,32 or 64?

    I joined the world of Apple this year, purchasing a MacBook, iTouch and AppleTV.  Am now considering the iPad and question whether I need 16,32 or 64G.  We don't run any heavy software.  My 7 and 9 year old kids like to play games.  Any thoughts on t