Currency Data type conversion to send as file.

Hello, I have a requirement to pull the ID,total_amount field defined as currency from Salesforce and send  it to file as fixed width 10 bytes. Source values: 1  15.02  11.06 Amount 15.0 has to be changed to 2 decimals while sending it to file. I have multiplied 15.0 * 1.0 to make it 15.00 , but for the 11.06 * 1.0 , I am getting result 11.060. I have to get 11.06 as it is.I have coded the logic  this way.lpad(to_char(Total_Amount__c * 1.0) || '', 10, '0'). Any ideas.ThanksVara

Hi, we are trying to connect to a server from where we have to fetch a fax documet or multiple ones using web services wsdl connection and using a metod call and get the  fax files and write it to salesforce. Below is the error I encounter:] [ERROR] Jul 14, 2015 7:44:47 AM org.ow2.easywsdl.schema.api.abstractElmt.AbstractIncludeImpl retrieveIncludeWARNING: This import is already include : http://ix1faxsvrtst.am.lilly.com:8000/OpenText/ImportingServiceBasic?xsd=xsd4. This probably mean there's a cyclic import Have attached the session log for reference. Connection DetailsConnection Name:CSP_RightFax to SFDC InboundDescription:
Type:Webservices V2 (Informatica Cloud Labs)Created On:Jul 13, 2015 08:45:57 AMUpdated On:Jul 14, 2015 07:08:10 AMCreated By:
Updated By:
Webservices V2 Connection PropertiesRuntime Environment:mohawkWSDL Url:http://ix1faxsvrtst.AM.LILLY.COM:8000/OpenText/ImportingServiceBasic?wsdlHeader CSV Path:C:\CatchallBody CSV Path:C:\CatchallEndpointUrl:http://ix1faxsvrtst.AM.LILLY.COM:9001/OpenText/ImportingServiceBasicAuthentication Type:NoneUser Name:
Pass Word:
CertificatePath:
Auto csv File Creation:Auto Creation of Body/Header csv filesDownload Path for Attachment:
Upload Path for Attachment:
Enable Logging:falseAllow Empty Tags:false

Similar Messages

  • Handling Currency Data type in a Web Service

    hello,
    I have created a Java Web Service n i have tested the support for all the data types w.r.t to Java Client n C# Client.
    In case of other data types, they are supported by both the clients. But in case of currency, it is not supported since there is no currency data type in C#.
    For reference:
    public int testInt (int aValue) throws Exception
    mLogger.info("SampleAPI.testInt: Value: " + aValue);
    return aValue;
    I have created this method to test the support for Integer data type n it is working fine for both the clients. I want that same should be achieved for Currency Data type also.
    Problem is: Since Currency does not have a constructor. i cannot set the value at the C# client end n it shows the error "Cannot create the instance of java.util.currency"
    So, i reached this solution of handling the currency data type on the Service end itself by converting the currency value into decimal when the C# client sends a request for currency data type and convert it again into Currency from Decimal when the client sets the value at the Web Service end.
    But it cannot be achieved since currency is not defined in any monetary sense but is using only the currency codes, so it cannot be converted.
    Please tell me how to handle this thing?? Any suggestion will be appreciated.
    Thanks & Regards,
    Kapil

    hello
    i have created a transfer structure which contains the attributes of Currency class such as CurrencyCode, CurrencySymbol and FractionDigits. I can get these three attributes by:
        public CurrencyStructure getCurrency ()
            mLogger.info("SampleAPIImpl.getCurrency: ");
            Currency currency = mBackend.getCurrencyValue();
            CurrencyStructure currencyStructure = new CurrencyStructure();
            // Get the values
            currencyStructure.code = currency.getCurrencyCode();
            currencyStructure.symbol = currency.getSymbol();
            currencyStructure.fractionDigits = currency.getDefaultFractionDigits();
            return currencyStructure;
        }The C# client can get the values by calling mService.getCurrency();
    The C# client can also set/change the value like this on client-end:
      public void testSetCurrency ()
            CurrencyStructure currencyStructure = new CurrencyStructure();
            // Initialize the values
            currencyStructure.code = "EUR";
            currencyStructure.symbol = "e";
            currencyStructure.fractionDigits = 3;
            mService.setCurrency(currencyStructure);
    }Now i want that these values should be set on the Web Service side but i m not able to set since Currency class has no setters.
    I m setting the values at Service end like this, but there is no setCurrencyCode() method available in Currency class.
        public void setCurrency (CurrencyStructure aValue)
            mLogger.info("SampleAPIImpl.setCurrency: " + aValue);
            Currency currency = mBackend.getCurrencyValue();
            // Set the values
            currency.setCurrencyCode(aValue.code);
            currency.setSymbol(aValue.symbol);
            currency.setDefaultFractionDigits(aValue.fractionDigits);
        }How to achieve this??

  • Data type conversion from packed to numeric

    Hi Experts,
    i have a question on data type conversion. My requirement is:
    i have fields of type packed decimal in my internal table itab. I need to convert the values of packed decimal fields in itab to numeric type.
    Example:
    Data: begin of itab occurs 0,
                ebeln like ekko-ebeln,
                ebelp like ekpo-ebelp,
                menge(15) type p decimals 2,
                netpr(15) type p decimals 2,
              end of itab. 
    if itab-menge has a value of 2.00, i need to convert that value to '         200'.  Right justified.
    if itab-netpr has a value of 1,234.56, i need to convert that to '         123456'.
    The above internal table itab is passed to the Function module GUI_DOWNLOAD and the itab data is downloaded to a text file.
    Please let me know how to acheive this objective.

    Hi ,
    You can use
    SPLIT at '.' into v1 v2
    concatenate v1 v2 into vv1.
    REPORT ZDN_TEST_001 .
    data: lv_var1(15) type p decimals 2 value '123.00'.
    data: lv_var2(15) type p decimals 5 value '123.12121'.
    data: lv_varc1(15) type c.
    data: lv_varc2(15) type c.
    data: lv_varc1d(2) type c.
    data: lv_varc2d(5) type c.
    data: lv_varc11(15) type c.
    data: lv_varc21(15) type c.
    write:/ lv_var1.
    write:/ lv_var2.
    *1)write & REPLACE.
    write lv_var1 to lv_varc1.
    write lv_var2 to lv_varc2.
    REPLACE '.' WITH SPACE INTO lv_varc1.
                 CONDENSE lv_varc1 NO-GAPS.
    REPLACE '.' WITH SPACE INTO lv_varc2.
                 CONDENSE lv_varc2 NO-GAPS.
    write:/ lv_varc1.
    write:/ lv_varc2.
    *2)split & concatinate
    write lv_var1 to lv_varc1.
    write lv_var2 to lv_varc2.
    split lv_varc1 at '.' into lv_varc1 lv_varc1d.
    concatenate lv_varc1 lv_varc1d into lv_varc11.
    split lv_varc2 at '.' into lv_varc2 lv_varc2d.
    concatenate lv_varc2 lv_varc2d into lv_varc21.
    write:/ lv_varc11.
    write:/ lv_varc21.

  • The priority of different data type conversion

    Hi All,
    I want to know the priority of data type conversion rule. if in an expression, I have several kind of data type( I, P, F,N..).
    Then finaly, all the data object will convert to which data type?
    I don't know the priority of data conversion.
    E.g.   data a type i. data b type p. data c type f.
             a = b + c.
    or    data d type p, data e type f.
          if ( d > f ).
    Then who will convert to who's type?
    Thanks and Regards.
    Aaron

    For expressions, the right term in SAP is "calculation type", it's explained here : [abap help - determining the calculation type|http://help.sap.com/abapdocu_70/en/ABENARITH_TYPE.htm]. SAP takes the "biggest" type of all variables in the expression. It can be I, P or F (smallest is I, biggest is F).
    Conditions are handled differently, just using data type conversion (see link given above by Abhishek), SAP converts from smallest to biggest type (in your case, it converts P to F and compares the two F variables).

  • Need Help with data type conversion

    Hello People,
    I am new to java, i need some help with data type conversion:
    I have variable(string) storing IP Address
    IPAddr="10.10.103.10"
    I have to call a library function which passes IP Address and does something and returns me a value.
    The problem I have is that external function call in this library excepts IP Address in form of a byte array.
    Here is the syntax for the function I am calling through my program
    int createDevice (byte[] ipAddress).
    now my problem is I don't know how to convert the string  IPAddr variable into a byte[] ipAddress to pass it through method.

    Class InetAddress has a method
    byte[]      getAddress() You can create an instance using the static method getByName() providing the IP address string as argument.

  • Invalid data type conversions

    what are the invalid data type conversions in ABAP ???
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 10, 2012 6:01 PM

    No Amanda,
    The values that I see in message monitor are also those that comes to XSLT programs as input.
    I investigated our problem a little further myself:
    1) XI always converts messages into XML format - this everybody knows.
    2) In XI documentation it is declared that XI uses ISO 8601 for DATE type formatting. That's why you see dates in format YYYY-MM-DD in XML data in message monitoring.
    3) The appearance of those decimal values are not that obvious for me. If XI uses ABAP transformation for message content then applies the rules for converting ABAP data types into XML. For this there is a SAP document 'ABAP - XML mapping' from TechEd2004. This document seems to describe how ABAP data types are handled by XML transformation.
    Anyway, we currently need to play with decimal values in XSLT mapping programs inside XI:
    a) add leading 0 integer if source value < 1
    RFC returns 0.123 -> XI converts to XML '.123' -> XSLT mapper should return '0.123' ->SOAP response returns '0.123'
    b) add decimal point and trailing zeros
    RFC returns 0.000 -> XI converts to XML '0' -> XSLT mapper should return '0.000' ->SOAP response return '0.000'
    With dates, the problem is actually on documenting mapping rules when writing interface specifications. If you would write an EAI-solution-independent conversion rule (RFC/date->SOAP/char) for date field it could sound like: YYYYMMDD -> dd.mm.yyyy. This works semantically between these systems but would not work for XI-developer, because he get YYYY-MM-DD from the RFC.
    Additionally the decimal type conversion requirements in XSLT mapping programs probably only applies XI and are therefore not reusable in other EAI environments.
    I would be glad if somebody would still have further comments for this data type conversion issue.
    br: Kimmo

  • Data type conversion JCO To ABAP( Double to DEC)

    Hi,
      I want to update a field having data type as DEC with length 11 in APO system using JCO.Whatever i give as input is not getting reflected in APO system. Instead i get some different value.
    It seems that there is some data type conversion for that field..
    Thanks
    Archana

    if(tableName.equals("BAPI10001LOCPRDVERS2"))
                                                           table.appendRow();
                                                           //System.out.println("getting inside table "+tableName);
                                                           table.setValue("SOP112","PRODUCT");
                                                           table.setValue("SCMTEST111","LOCATION");
                                                           table.setValue("1001","LOCTYPE");
                                                           table.setValue("SCMTEST111","LOCATION_INT");
                                                           table.setValue("000","PLANNING_VERSION");
                                                           table.setValue("5000","SAFETY_DAYS_SUPPLY");//this is the field having problem
                                                           table.setValue("5","SAFETY_STOCK");
                                                           table.setValue(" ","SAFTY_STOCK_CALC_METHOD");
                                                           table.setValue("5.00","OPENING_PERIOD");
                                                           table.setValue("15","FORECAST_HORIZON");
                                                           table.setValue(("20000"),"VMI_PROM_LEAD_TIME");
                                                           table.setValue("0","MINIMUM_LOT_SIZE");
                                                           table.setValue(bd1,"TARGET_DAYS_SUPPLY");

  • Getting error "Invalid or no mapping to system data types found" after sending file

    Dear Experts,
    I am successfully able to send file from client to gateway using "CREATE_STREAM". After request is completed i am receiving reponse like this
    "Invalid or no mapping to system data types found". I dont know where i went wrong.
    Did anyone experience same issue?
    Pleases suggest.
    Regards
    Prabaharan

    Hi Peter,
    Good to know that it helped you.
    Problem i am having is I dont have this method "SET_AS_CONTENT_TYPE( )" in class "/IWBEP/IF_MGW_ODATA_PROPERTY" because of my SAP Gateway system SP release level is less.
    So i wasn't able to use this snippet.
    IF lo_entity is BOUND.
      lo_property = lo_entity->GET_PROPERTY( IV_PROPERTY_NAME = 'ContentType' ).
      lo_property->SET_AS_CONTENT_TYPE( ).
    ENDIF.
    Is this the reasin i am not getting correct XML response back?
    Regards
    Prabaharan

  • How to determine data type of cell in Excel file

    I have a company standard Excel file that needs to be read to determine what tests to run.  I have no control over its format.  I need to be able to tell what the data type is in order to read it using the LabView sample code.  It is a hodge poge of numbers and strings.  Some of the numeric fields are formated as hex while some are floating point.  There does not appear to be a vi that I can call to determine info about the cell formating.  As I remember it, the Windows Active X control for accessing Excel support that.  I really was hoping to avoid dealing with the Active X control for Excel directly.
    Any help/ideas?
    Outputting it in CSV or similar is not an option.
    Solved!
    Go to Solution.

    If you have to deal with Excel directly, I don't see how you're going to get around using Active X.
    MSDN page on using ActiveX

  • How to get  values of complex data type  specified in webservice wsdl file

    I'm trying to retreive cid from a complex data type[b] course which I'm getting as response from the webservice, it throwing that cid is not valid .
    <course>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
    <syncbpelResponse xmlns="http://acm.org/samples">
    <course>
    <startDate xmlns="urn:cms_soa">2005-12-11T18:30:00.000Z</startDate>
    <materialid xmlns="urn:cms_soa">234</materialid>
    <cdescription xmlns="urn:cms_soa">learn spoken english</cdescription>
    <instructorid xmlns="urn:cms_soa">145</instructorid>
    <regEndDate xmlns="urn:cms_soa">2005-11-30T18:30:00.000Z</regEndDate>
    <cid xmlns="urn:cms_soa">12222</cid>
    <cfee xmlns="urn:cms_soa">1000.0</cfee>
    <strength xmlns="urn:cms_soa">20</strength>
    <currentStrength xmlns="urn:cms_soa">2</currentStrength>
    <endDate xmlns="urn:cms_soa">2005-12-30T18:30:00.000Z</endDate>
    <cvenue xmlns="urn:cms_soa">ELNET</cvenue>
    <cname xmlns="urn:cms_soa">english</cname>
    </course>
    </syncbpelResponse>
    </part>
    </course>
    I tried using
    <from variable="course" part="payload" query="/tns:syncbpelRespons/tns:course/@cid"/>
    but not at all accepting....
    I 'll be thankfull if u send me a response

    Hi
    This can not be done Vc only "sees" the returned data in the webservice, it can not access the meta data from the webservice.
    Jarrod

  • How to export data to .csv and send that file to folder using sql commands?

    Really hoping someone can provide some code sample or point me in the right direction (with examples using sql).
    I am using oracle 11g with plsql developer. My requirement is that the data retrieval should be automatic. That means when query a data in oracle table , the data should be convert into .csv file and then it should send that to some specific folder.
    Example: Assume that student_sub1 table have all students subject1 data.when i write a query like select * from student_sub1 where student=1, the student1 data should convert into .csv file and then the .csv file should go to student1 folder.
    Hence I am requesting you to suggest me how write a sql code to convert the data into .csv file and to create a folder to send that file using oracle.
    Your inputs helps me alot.
    Thanks in advance!!!!
    Waiting for your replies.... Cheers

    981145 wrote:
    Really hoping someone can provide some code sample or point me in the right direction (with examples using sql).
    I am using oracle 11g with plsql developer. My requirement is that the data retrieval should be automatic. That means when query a data in oracle table , the data should be convert into .csv file and then it should send that to some specific folder.
    Example: Assume that student_sub1 table have all students subject1 data.when i write a query like select * from student_sub1 where student=1, the student1 data should convert into .csv file and then the .csv file should go to student1 folder.
    Hence I am requesting you to suggest me how write a sql code to convert the data into .csv file and to create a folder to send that file using oracle.
    Your inputs helps me alot.
    Thanks in advance!!!!
    Waiting for your replies.... CheersSET COLSEP ,
    spool student1.csv
    select * from student_sub1 where student=1;
    spool off
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ
    Handle:     981145
    Status Level:     Newbie
    Registered:     Jan 10, 2013
    Total Posts:     25
    Total Questions:     10 (8 unresolved)
    I extend my condolences to you since you rarely get answers to your questions here.

  • Data Types for JDBC Sender/Receiver Adapter

    HI experts,
                    I am very much confused how the data types shoudl be for the Sender/receiver for JDBC.
    And is there any standard format where it should be used, or what is the strucutre to be used,.
    Please let me know in clear and help me out in this regard,
    Edited by: Amruth on Dec 4, 2008 6:11 AM

    HI Nagarjuna,
    If my understanding is correct, When you trigger the Idoc from R/3 it thrown the error in XI.
    If  you want to send the same Idoc then go to WE19 in R/3 system enter the same Idoc number and execute the scenaio. It send the Idoc to XI system, but the message number will change.
    Regards
    Goli Sridhar

  • Currency data type

    Hi all
    the currency column in java is mapped to which datatype in oracle?
    regards
    Raj

    Number.
    Currency is not a data type but a format, you would use the to_char function to format a numeric value as a currency.
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/functions189.htm#i79330
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/sql_elements004.htm#i34570

  • Output data type of Read from XML file.vi

    LV 7.1:
    How can I enforce the output data type of the polymorphic "Read from XML file.vi" to be a string instead of an array of strings?

    ahlers01 wrote:
    LV 7.1:
    How can I enforce the output data type of the polymorphic "Read from XML file.vi" to be a string instead of an array of strings?
    In reply to my own post:
    I found the answer and described it in another forum

  • How to avoid oracle implicit data type conversion

    Hello,
    i have a query like below..
    SELECT EMP_NUM
    FROM EMPLOYEE
    WHERE EMP_NUM=SOURCE_EMP_NUM;
    1. My SOURCE_EMP_NUM data type is varchar2.
    2. My table EMP_NUM data type is number.
    3. In one case my SOURCE_EMP_NUM value '00000123'
    4. I have an entry in table for EMP_NUM as 123.
    5. In this case my query is success and giving me row for 123, which i don't want it should compare with leading zeros. But due to oracle implicit conversion the comparision getting passed.
    6. I have an index for this column, so i can't use "like" operator...
    Can somebody help me.....
    Thanks in adv....

    HI,
    Just see this :---
    SQL> select * from emp where deptno=00020;---------deptno is number, 00020 is number and its true
    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    7369 SMITH CLERK 7902 17-DEC-80 800 20
    7566 JONES MANAGER 7839 02-APR-81 2975 20
    7788 SCOTT ANALYST 7566 19-APR-87 3000 20
    7876 ADAMS CLERK 7788 23-MAY-87 1100 20
    7902 FORD ANALYST 7566 03-DEC-81 3000 20
    SQL> select * from emp where to_char(deptno)=00020;=-------------deptno is character type and 00020 is number so still it is leaving 0000 from 20 as it number and has no impact,
    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    7369 SMITH CLERK 7902 17-DEC-80 800 20
    7566 JONES MANAGER 7839 02-APR-81 2975 20
    7788 SCOTT ANALYST 7566 19-APR-87 3000 20
    7876 ADAMS CLERK 7788 23-MAY-87 1100 20
    7902 FORD ANALYST 7566 03-DEC-81 3000 20
    SQL> select * from emp where to_char(deptno)='00020';---now both are character and no row is selected.
    no rows selected
    So you can avoid the implicit conversion according to the requirements and in this case we are usin to_char function to avoid this.
    Regards,
    Navneet

Maybe you are looking for

  • Background color on XML form

    Hi, I've created a 20x20 image of the background color I want, upload it to KM, and then use that in the Background Image parameter of the XML form. (the Background Repeat Mode is set to Repeat.) It doesn't seem to work .any idea why ? Regards, Hadar

  • Control message "Purchase across Company codes is not allowed"

    Hello Gurus We are running SRM5.0 ECS using EP. If we attempt to create a SC that falls foul of the above validation, we get a message but only as a warning. Naturally if a warning, users will ignore and continue the purchasing process up to the poin

  • Date Migration from IBM DB2/400 V4R3M0 to Oracle 11.2G

    Dear ALL< We have a requirement for Date Migration from IBM DB2/400 V4R3M0 to Oracle 11.2g. Can you guys please share your experiences with similar activities done in the past ? We do not have environment at present to try out with Oracle Migration w

  • Can't load Yosemite into IMAC. Get message "try again.

    I tried to move Yosemite into my iMac. The installing program  always hit a dead end and the message said" try again."  I can't get anything execept the"try again" message.

  • Getting video onto my ipod

    I am having problems importing video to my itunes. I want to import some of my favourite movies. When I go to import then open. I have a list of options to open from the video file. When I select a variety of the files nothing happens. Is there a spe