BInput Data mismatch with currency format

i am working with fs10 transaction
I want to sum up the balance amount with respect to all
companycode and post SUM to the bseg table using Batch input.
i defined sum variable as below and coded.
data : sum like glt0-hsl01.  (currency format)
After all SUM operation.
I have done like this to diplay SUM in report first(to check SUM output)
SUM = SUM * 100.
write : sum decimals 0.
>>>>Now in report output i get value '17,222-'
if u see in  fs10 screen we are getting same value.
but when i try to post in Batch input.
i have done like this below.(before posting i have checked
for negative value )
if sum < 0.
sum = sum *100.
compute sum = abs( sum )
now...
perform open_group................
perform bdc_field using 'bseg-wrbtr'  (currency format)
                                sum.
when i execute this BI i get error in Amount(Sum)value
display screen. (saying something differs in length )
how to match the field.
ambichan.

Hello,
Go to the Domain of the Field BSEG-WRBTR, which is WERT7. There you see the Output length as 16. So you decalre a local variable in BDC which is of CHAR16 in length to hold the value of WRBTR.
Hope this helps you.
Regds, Murugesh AS

Similar Messages

  • Data mismatch with ECC FBL5N report and debtor ageing report(BI side)

    Hi,
    I am facing a data mismatch problem with FBl5N(t-code for customer line item report) report in ECC side and Debtor ageing report in BI side.
    The problem is
    1) there are mismatch of data with some customer amounts in both ECC and Bi side.
    2) and also there are customer Nos with amounts in BI Debtor ageing report which are not there in the ECC FBL5N(t-code for customer line item report)
    for the second problem, I checked in the Tables BSID,BSAD in ECC side ,there also these customer Nos are not available.
    One more strange thing is that with the same selectionin report on both ECC and BI reports the data mismatch and The extra customers in Bi reports are changing everyday, i.e. we are getting new set of data mismatch and extra customers Nos in BI Side.
    If anyone  have worked on this type of issue.....kindly help...
    Thanks in advance

    Hi,
    on the one hand it may be delta mechanism of FI_*_4 extractors with the timestamps issue, that your comparision between BI and ECC is at no time up to date.
    FI Extraction
    on the other hand, it may be the delta problem between data targets in your BI-System, in case you load the FI-Data from a DSO to a cube and make a report on the cube. I have this problem at the moment and will watch this thread for more suggestions.

  • Date search with any format in oracle

    Hi Friends
    i have Problem with the date format In Db i have column with message (VARCHAR2)
    like.
    Admin~Assigned ~01-08-2013 03:12:35~ [email protected]
    Admin~Assigned ~01-AUG-2013 03:12:35~TEXT [email protected]
    Admin~Assigned ~01-JAN-13 03:12:35~text [email protected]
    Admin~Assigned ~01-07-13 03:12:35~TEXT [email protected]
    I enter only date in varchar2 any format '01-AUG-2013' .it will give the all output.
    How do i do that. Pls help me
    Thanks

    I had to deal with crappy data like yours many times. And its always a pain. We always expect for a magical generic solution. But there is never one such solution
    This is the best I have got.
    Lets consider this is your table.
    SQL> select *
      2    from t;
    STR
    Admin~Assigned~01-08-2013 03:12:[email protected]
    Admin~Assigned~01-AUG-2013 03:12:[email protected]
    Admin~Assigned~01-JAN-13 03:12:[email protected]
    Admin~Assigned~01-07-13 03:12:[email protected]
    We can split your data into columns like this.
    SQL> select regexp_substr(str, '[^~]+', 1, 1) col1
      2       , regexp_substr(str, '[^~]+', 1, 2) col2
      3       , regexp_substr(str, '[^~]+', 1, 3) col3
      4       , regexp_substr(str, '[^~]+', 1, 4) col4
      5       , regexp_substr(str, '[^~]+', 1, 5) col5
      6       , regexp_substr(str, '[^~]+', 1, 6) col6
      7    from t
      8  /
    COL1                 COL2                 COL3                 COL4                 COL5              COL6
    Admin                Assigned             01-08-2013 03:12:35  TEXTMGMT             INSERT            [email protected]
    Admin                Assigned             01-AUG-2013 03:12:35 TEXTMGMT             UPDATE            [email protected]
    Admin                Assigned             01-JAN-13 03:12:35   textMGMT             DELETE            [email protected]
    Admin                Assigned             01-07-13 03:12:35    TEXTMGMT             INSERT            [email protected]
    Now the problem is you have the date value (COL3) in various format. That's messed up. To convert a string into a date format the first thing you need to know is the format of the string. Basically how the string is represented as date. Without knowing that there is no way you can convert a string to date. Said that now you need to device a method to convert string input having various date formats into a date value.
    Below is a function that does that. But the problem is that you need to define the possible date formats in that. I have defined 10 date formats (No magic there ).
    SQL> create or replace function convert_as_date
      2  (
      3    p_date_string varchar2
      4  ) return date
      5  as
      6    type l_dt_fmt_tbl is table of varchar2(100) index by pls_integer;
      7    l_dt_fmt_list l_dt_fmt_tbl;
      8    l_ret_dt date;
      9
    10    function check_date_format
    11    (
    12       p_str varchar2
    13     , p_fmt varchar2
    14    ) return date
    15    is
    16      l_dt date;
    17    begin
    18      l_dt := to_date(p_str, p_fmt);
    19      return l_dt;
    20    exception
    21      when others then
    22        return null;
    23    end;
    24  begin
    25    l_dt_fmt_list(1)  := 'dd-mm-yyyy hh24:mi:ss';
    26    l_dt_fmt_list(2)  := 'mm-dd-yyyy hh24:mi:ss';
    27    l_dt_fmt_list(3)  := 'dd-mm-rr hh24:mi:ss';
    28    l_dt_fmt_list(4)  := 'dd-mon-yyyy hh24:mi:ss';
    29    l_dt_fmt_list(5)  := 'mon-dd-yyyy hh24:mi:ss';
    30    l_dt_fmt_list(6)  := 'dd-mm-yyyy';
    31    l_dt_fmt_list(7)  := 'dd-mon-yyyy';
    32    l_dt_fmt_list(8)  := 'yyyy-mm-dd hh24:mi:ss';
    33    l_dt_fmt_list(9)  := 'yyyy-mon-dd hh24:mi:ss';
    34    l_dt_fmt_list(10) := 'yyyy-dd-mm';
    35
    36    for i in 1..l_dt_fmt_list.count
    37    loop
    38      l_ret_dt := check_date_format (p_date_string, l_dt_fmt_list(i));
    39      exit when l_ret_dt is not null;
    40    end loop;
    41
    42    if l_ret_dt is null then
    43      raise_application_error(-20001, 'Invalid date: Specified format not supported');
    44    end if;
    45
    46    return l_ret_dt;
    47  end;
    48  /
    Function created.
    Once you have this you can do the following.
    SQL> var input_val varchar2(100)
    SQL> exec :input_val :=  '01-AUG-2013 03:12:35';
    PL/SQL procedure successfully completed.
    SQL> with my_tbl
      2  as
      3  (
      4  select regexp_substr(str, '[^~]+', 1, 1) col1
      5       , regexp_substr(str, '[^~]+', 1, 2) col2
      6       , regexp_substr(str, '[^~]+', 1, 3) col3
      7       , regexp_substr(str, '[^~]+', 1, 4) col4
      8       , regexp_substr(str, '[^~]+', 1, 5) col5
      9       , regexp_substr(str, '[^~]+', 1, 6) col6
    10    from t
    11  )
    12  select *
    13    from my_tbl
    14   where convert_as_date(col3) = convert_as_date(:input_val);
    COL1                 COL2                 COL3                 COL4                 COL5              COL6
    Admin                Assigned             01-08-2013 03:12:35  TEXTMGMT             INSERT            [email protected]
    Admin                Assigned             01-AUG-2013 03:12:35 TEXTMGMT             UPDATE            [email protected]

  • Time Data loading with missing format

    Hi expert,
    after we load time data, find the following missing information:
    0CALDAY:
    20.080.112 (Error)
    2008.01.12 (correct one)
    0CALMONTH:
    200.801(Error)
    2008.01(correct one)
    0CALQUARTE
    20.081(Error)
    20081(correct one)
    Could anyone let us know how to correct data with missing format to correct one and how to do this step by step? Many thank!

    What is the source for this data ?
    Have it corrected in the source
    Or
    Correct in PSA and load it from there.
    Does it happen only for a few records ?

  • Problem with currency format setting

    hello experts,
    i have one currency filed FDES-WRSHB = 25706515.32.
    i want this field to be converted into currency format which user have selected.
    for ex if user setting for currency in SU01 is 1,23,456.89 then this currency should be converted to 25,706,515.32.
    or if default setting is 1.23.456,78 then it should be converted to 25.706.515,32.
    please tell me how to achieve this... any FM available?
    or tell me how to read these user default setting so i can explicitly convert currency format.
    -Shweta
    Edited by: shweta chavan on Feb 6, 2009 7:19 AM

    Hi Shweta,
    I had the same issue,we dont need to do anything,the display will come automatically in the User format(specified in SU01/SU3).We dont need to use any FM or any coding.
    If u chanegd any settings in SU01/SU3 u need to re-login to see the changes,for example the setting were like 1.23.456,78 and u changed to 1,23,456.89 then it will not reflected immediately.U need to log-off and log-in again to see the changes.
    Hope this helps.
    Thanks & Regards,
    Rock.

  • Trying to compare date columns with differing formats...

    I have an app that created a series of tables via ODBC using ANSI standard datatypes. For most, this isn't a problem, but one in particular is driving me crazy: TIMESTAMP. In Oracle, it shows up as a TIMESTAMP(6). I don't want to mess with the app's tables, so every time there is an insert to their tables, I have a trigger which creates records in corresponding tables I build using standard Oracle datatypes (DATE).
    I have one function that gets called by several of the triggers that retrieves me a specific row to update, and it uses the value from this TIMESTAMP field in the WHERE clause like this (the value is passed into the function as a parmeter):
    SELECT TIMECARD_ID INTO tc_id FROM TS_TIMECARD_MAIN
    WHERE EMP_ID = e_id AND VEHICLE_ID = v_id
    AND IN_TIME <= logout AND OUT_TIME IS NULL; <----
    I seem to have a formatting issue, because unless the "logout" date is a full day later than IN_TIME, it doesn't pull the record (my code does a check to verify there is only one record matching the criteria but I haven't posted it all here for simplicity). I need it to be able to select the correct record with a one second difference.
    I have NLS_TIMESTAMP_FORMAT set to 'YYYY-MM-DD HH24.MI.SS.FF' and NLS_DATE_FORMAT set to 'YYYY-MM-DD HH24:MI:SS'. The relevant describes are included below. Can anyone suggest how to format my query (I expect to use the TO_DATE and TO_CHAR to compensate, but haven't found the right set) so that it resolves properly? Date math is a pain, but it is critical to my purposes.
    Vendor's table
    FIELD3_DATETIME TIMESTAMP(6)
    My table
    TIMECARD_ID NOT NULL NUMBER(10)
    EMP_ID NOT NULL NUMBER(10)
    IN_TIME DATE
    OUT_TIME DATE
    VEHICLE_ID NUMBER(10)
    Also, some sample default output from each table - not sure why formatting is wierd on my table.
    Vendor's table
    UNIQKEY STATUS FORM_ID VEHICLE_NUMBER CREATED_DATETIME
    11515780978071234994451 0 21423 24005 28-JUN-06 05.10.14.000000 PM
    CHECK_DVIR NEW_DVIR SERVICEABLE DETAILS
    1 1 1 everything ok
    INSPECTION_TIME ODOMETER LATITUDE LONGITUDE
    28-JUN-06 05.12.12.000000 PM 119885.1 44.7889490425587 -95.2167677879333
    My table
    TIMECARD_ID EMP_ID IN_TIME OUT_TIME VEHICLE_ID
    5 20044 28-JUN-06 24005

    That sounds a bit complicated. If you post your query I'm sure there will be a simpler approach, perhaps something like
    where  date_timestamp between cast(sysdate -30 as timestamp) and systimestampor if you prefer
    where  date_timestamp between systimestamp - interval '30' day and systimestampas discussed on Re: convert timestamp to date.

  • Excel dates export with wrong format.

    When I exported an Excel Spreadsheet with several date columns, they displayed correctly but because of wrong formatting, they didn't sort right. The cell display was, for example, 2/7/2013 but Excel treated it as 7/2/2013 because it was assigning another country's formatting. some of the cells were formatted correctly, but about half of them were wrong and they were wrong in different ways. some were Argentinian, some Carribean, some European. Any ideas how to prevent this from happening?

    Go to Sequence>Settings and in the lower left use load presets.
    Anything that's in the HD in the sequence will have to be reset using the remove attributes function. If you have mixed media, strange things will happen.
    Also use easy setup to change your preset so any future sequences you create will be in the correct format.

  • Fm that handle data conversion with respective format

    HI ,
    there is FM that retrive the date like the format that was the input
    like
         01.01.2006
         01012006
    i found the CONVERT_DATE_TO_INTERNAL Fm and other ...
    but it return the date in the format 20060101
    Regards
    Alex
    Moderator message: date formatting questions = FAQ, please search before posting.
    Edited by: Thomas Zloch on Dec 7, 2010 5:07 PM

    check out FM CONVERT_DATE_FORMAT.

  • Currency formate.

    Hi
    Good day experts,
    I've problem with Currency formate. In my client 101 i've 1,234,567.89   in Owndata.
    But Functional side they've 1,234,567.89 in 103 client.
    My problem is when the functional guys is entered data in currency field. if they double click in the currency field, they r getting extraa zeros and if they entered end of the position which is right then the digits are not allowing .
    I've taken the data element which is 14 lenght of char. in this i've written the conversions for curr.
    This is my conversions:
    CONVERSION_EXIT_YMXAM_OUTPUT
    DATA LV_16(16).
      IF INPUT EQ SPACE.
        LV_16 = '0.00'.
        SHIFT LV_16 RIGHT DELETING TRAILING SPACE.
        OUTPUT = LV_16.
      ELSE.
        OUTPUT = INPUT.
      ENDIF.
    CONVERSION_EXIT_YMXAM_INPUT:
    DATA LV_AMNT     TYPE YBET00.
      PERFORM TEXT_TO_NUM
                  CHANGING
                      INPUT.
    SHIFT input LEFT DELETING LEADING space.
      CATCH SYSTEM-EXCEPTIONS CONVT_NO_NUMBER    = 1
                              CONVT_OVERFLOW     = 2
                              BCD_FIELD_OVERFLOW = 3.
        LV_AMNT = INPUT.
      ENDCATCH.
      IF     SY-SUBRC = 1.
        MESSAGE 'Invalid Format' TYPE 'E'.
      ELSEIF SY-SUBRC = 2 OR SY-SUBRC = 3.
        MESSAGE 'Number contains too many digits' TYPE 'E'.
      ENDIF.
    WRITE lv_amnt TO output(17).
      OUTPUT(14) = LV_AMNT .
       MESSAGE output TYPE 'E'.
    SHIFT output(18) RIGHT DELETING TRAILING space.
    ENDFUNCTION.
    *&      Form  text_to_num
    FORM TEXT_TO_NUM CHANGING VALUE(IV_FLD) TYPE C.
      DATA LV_DCPFM TYPE XUDCPFM.
      SELECT SINGLE DCPFM INTO LV_DCPFM FROM USR01 WHERE BNAME = SY-UNAME.
      CASE LV_DCPFM.
        WHEN ' '.
          TRANSLATE IV_FLD USING '. '.
        WHEN 'X'.
          TRANSLATE IV_FLD USING ', '.
        WHEN 'Y'.
          TRANSLATE IV_FLD USING '. '.
      ENDCASE.
      CONDENSE IV_FLD NO-GAPS.
    Plz give me solution.
    regards,
    kk

    Hi,
    Thank for ur reply. Caa2 t.code, i've created the finance subscree. in the subcreen, i'vecurrency field which is Char(14).it extras the data from  CI_FKKVKP stracture.
    Wht i've to do for this problem.
    regards
    kk

  • Need help with htmlb:inputField and Currency format

    Hi all,
    i'm looking in vain for the possibility to prepare a field with currency.
    I have a local field in which an amount is available.
    Unfortunately, the amount is spent but not formatted for currency.
    current layout:  123456.78
    requestet layout: 123.456,78
    How do I get through it?
    Here is my code:
    DATA: ld_betrag         TYPE ZBETR.
    definition: the domain of "ZBETR"  = 'WRTV7'
    LOOP AT.....
      ADD wa-betrag TO ld_betrag.
    ENDLOOP.
    The amount will be added in a loop.
    <htmlb:inputField id = "betrag"
                disabled = "TRUE"
                value    = "<%= ld_betrag %>" />
    Output is via a htmlb:inputField
    I have the same definition for a amount field in a htmlb:tableView...
    in this tableView i get the correct layout for my amount. But I haven´t give a special formatting to the tableView...
    Why the BSP works differently at htmlb:inputField and htmlb:tableView
    Thanks 4 help.
    Regards
    Markus

    Hi,
    the Domain of ZBETR = WRTV7 (it´s SAP Standard)
    Data Type          CURR      'Currency field, stored as DEC'
    No. Characters       13
    Decimal Places        2
    Output Length        18
    Convers. Routine
    X Sign
    SBSPEXT_HTMLB Helps
    I forgot the attribute 'type'.
    Thank you...now it works!
    Regards
    Markus

  • Not able to save date column with custom date format. in OBIEE 11g

    Hi,
    I have migrated one report from OBIEE 10g to 11g. There is a date column with customized date format(i.e. Default format is 'dd-MMM-yyyy' and I have used 'MMM-yyyy').
    But when I use this custom format and try to save the report in 11g its giving this below error.
    ''Catalog object privilege validation failed for user to path /shared/ALM BI/Finacial Results/History Income Statement Detail.
    You do not currently have sufficient privileges to save a report or dashboard page that contains HTML markup.
    This HTML might be present in column headings, table headings, text views, narrative views, the print header,
    or the print footer and must be removed before saving.''
    Please let me know what changes I need to do for this.
    Regards,
    Ambika Nanda.

    Hi ,
    privilage issues...check the security settings once..
    Thanks,
    Ananth

  • How to send the form data through mail with pdf format?

    forms 6i
    Hi to all,
    i am developed one master detail form.example is based on the dept number emp details will be displayed.here my requirment is whatever displayed on the form
    the data ,these data send to mail with any format.is it possible? if is possible any one give a proper solution.
    Regards,
    Stevie
    Edited by: 994418 on 6 May, 2013 11:15 PM

    Hello,
    you can create a Report that accepts the search parameters from the Forms mask and generates a PDF. You also have the option to send the report via mail.
    Personally I would generate the report with a tool like as_pdf
    http://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/
    Then you can send the mail using utl_mail or utl_smtp.
    www.google.com/search?q=site:forums.oracle.com+utl_mail+utl_smtp
    Regards
    Marcus

  • Import of credit card data(tcode PRCC) getting error with currency

    Hi Everyone,
    Here is one query regarding Credit Card Clearing in Travel Management.
    We were initially using KR files for uploading SAP specific credit card Transactional data to employee buffer and it contained data for only US employees with currency as US. Now we are migrating to use GL1025 files with employees from multiple countries and multiple currency. But the Service Provider (American Express) is sending transactional details with billed currency as USD for all employees(even for employees from other country). On processing the file in PRCC we are getting the below error for non US employees.
    Do we have any configurations or something that needs to be maintained inorder to allow this?
    Awaiting response.
    Thanks in advance...
    Regards
    Binshi

    Hi All,
    For my above requirement, I made two configuration changes and the transaction details are getting loaded with out any error.
    1) Changed the 'Settlement of foreign currency receipts" to 'hard currency' for the trip provision variant in global settings under control parameters for Travel expenses.
    2) Maintained hard currency as USD for the other country(non US) in country settings. non US employee receipts got loaded in buffer in currency USD as required.
    With this configuration change, even the posting document  for all foreign currency receipts including AMEX receipts were created in USD.But our requirement was to make payment for all AMEX receipts in USD and other foreign currency receipts in the employee local currency.
    So we just tried with the third  option for configuration 1. Changed the 'Settlement of foreign currency receipts" to 'choose Between Trip currency and Hard currency per receipt'.
    Now with this, foriegn currency receipts of the employee posting document getting created in employee local currency and AMEX receipts in USD. But we are confused how the currency for posting document is being selected with this option 3. Could anyone help us please??
    Thanks & Regards
    Binshi

  • Currency format combined with if else issue

    Hi all,
    Basically, I need to get the value from if else statement, then use currency format to format the currency according to their currency code.
    the following is my if else statement to show the A.PAY_PROMISE_AMT or A.PROMISE_AMT
    <?xdofx:if A.PAY_PROMISE_AMT <> 0 then
    A.PAY_PROMISE_AMT
    else
    A.PROMISE_AMT
    end if?>
    <?format-currency:value_*[this value I want to use is the value from the above if else statement];*currencycode; ‘false’?>
    could anyone help me to combine those two statement to get the result I want?
    Thanks in advance

    >
    I tried your solution, but I got some error.
    >
    some?
    try change
    <>to
    !=in my sample
    what if you try IF without xdofx?
    what will be result?
    say
    <?if:A.PAY_PROMISE_AMT!=0?> <?xdoxslt:set_variable($_XDOCTX, 'LVar', A.PAY_PROMISE_AMT)?> <?end if?>
    <?if:A.PAY_PROMISE_AMT=0?> <?xdoxslt:set_variable($_XDOCTX, 'LVar', A.PROMISE_AMT)?> <?end if?>
    <?format-currency: xdoxslt:get_variable($_XDOCTX, 'LVar');CURRENCY;'true'?>plz see
    Working with xdofx:if and xdoxslt variable error

  • Alpha channel data with layered format plugin

    I have a layered format plugin and I am trying to write the alpha channel information separately. I have set up channelPortProcs and I am attempting to read the pixel data with readPixelsProc. The issue is that even though the readPixelsProc function doesn't return any errors the rectangle that is supposed to store the rectangle that was actually read is a 0x0 rectangle. I can't seem to find why this would be or what I might be doing wrong. Here's what I have so far:
    // set up the pixel buffer
    int32 bufferSize = imSize.h*imSize.v;
    Ptr pixelData = sPSBuffer->New( &bufferSize, bufferSize );
    if (pixelData == NULL)
         *gResult = memFullErr;
         return;
    // Define the source and destination rectangles
    ReadChannelDesc *alphaChannel = gFormatRecord->documentInfo->alphaChannels;
    PIChannelPort port = alphaChannel->port;
    PSScaling scale;
    scale.sourceRect = scale.destinationRect = alphaChannel->bounds;
    VRect destRect = scale.sourceRect;
    // Set up the descriptor for reading pixel data
    VRect wroteRect = {0};
    PixelMemoryDesc dest = {0};
    dest.rowBits = imSize.h*alphaChannel->depth;
    dest.colBits = alphaChannel->depth;
    dest.depth = alphaChannel->depth;
    dest.data = pixelData;
    // Put the pixel data into the buffer
    *gResult = gFormatRecord->channelPortProcs->readPixelsProc(port,&scale, &destRect, &dest, &wroteRect);
    if(*gResult != noErr)
         return;
    The alpha channel gives me the proper name, but I just can't get the data associated with it. Thanks.

    I am still trying to find a solution to this.  The propChannelName is read only and the documentInfo structure is NULL when reading.  Any suggestions?

Maybe you are looking for

  • Project Server 2010 PWA - attempting to move folders from root to document library subfolder does not work

    Hello all, We have an issue whereby attempting to move documents from the top level folder to a subfolder in a PWA site appears to work initially, but within a few minutes the documents are moved back to the top level folder with no error message. Up

  • H8-1287 Beats Audio controls do not work in Windows 8.1

    I've upgraded to Windows 8.1 and installed the IDT High-Definition audio driver from HP's website.  The surround sounds seems to be working but the controls do not work to modify the EQ etc.  I've seen the problem has been resolved for Envy laptops b

  • Transport Request and Transport task

    Hi, I have released a task, but cannot see the diff in the changes in the system it should hv been released to..can some one tell me what the procesdure is for transport. thanks in advance

  • Creating result based search programatically

    Hi All, I am trying to create a simple result based search programmatically. I need to do this because I want the user to basically be able to select a specific table name and then the search adjusts the criteria and results automatically based on th

  • Xcode 3.0 & Tiger Building Help

    Hello, I made a very simple Apple Script Studio application in Xcode 3.0 on leopard. The application has a few buttons, with a simple interface. I tested it on a Tiger machine and it doesn't work. It just bounces in the dock for a few seconds, then q