Converting CHAR(21) to CURR(15) - CRM system

Hello,
(I have read many threads about this "conversion from CHAR to CURR" topic, but none of them were able to answer my question).
I am basically trying to convert a CHAR(21) to CURR(15).
What I have learned is: CURR(15) needs the format: 3423.23. In other words, there shouldn't be any commas and the decimal separator should be a dot. So, I have seen a lot of algorithms that convert various CHARs to this format and it works fine.
However, the problem is the regional settings. My input CHAR will depend on the regional settings of the user.
Example: Here is what the pricing returns to me in the CHAR format depending on the user settings:
DE: 1,214.99 EUR
EN: 1.214,99 EUR
So, there is no actually fixed format that I receive.
Is there a function module/method that takes into account this user settings and does the conversion (in the CRM system)?
Thanks,
Guven.

Hi
Get data from user master record(USR01 table) where BNAME = sy-uname.
check the decimal format, based on it convert u r currency. the decimal format will
available in field DCPFM.
Regards,
raghu.

Similar Messages

  • How to convert char to curr ?

    Hi gurus.
    Forgive me for the silly question.
    I have a problem with data conversion from char to curr with 2 decimal places.
    This is the scenario, I have a Z transaction which receives an excel file containing data from invoices and when the field contains a value such as 35,0 the program records the value 3.50 in the destination variable. But when the value is 35,45, it works.
    Here is the piece of code:
    WHEN '0007 '.
            TRANSLATE USING ITAB-VALUE. " '.
            ITAB-VALUE USING TRANSLATE',.'.
            CONDENSE ITAB-VALUE NO-GAPS.
            WA_OPER_MENORES-VL_BRUTO = ITAB-VALUE.
    If I format the column in the excel file for numeric value with 2 decimal places also works, because when the value is formatted 35,0 change to 35,00. But I can not tell all the users hey formatt your files before upload to SAP.
    To test I generate a simple report that reads the excel file and makes the conversion of the columns, like the code above, so I had no problems. I think there should be some configuration that has been changed in the transaction, but I'm new in ABAP, I come from "Java World" and I have no idea that could be.
    I could just use a quick and dirty solution, adding a zero at the end of the column, when there is the 2 decimal places, but I prefer a clean solution.
    Guys, is there any function module or class that does that kind of data conversion? If not, you could tell me what is the best practice to solve this problem?
    thank you very much,
    Ronaldo S. Vieira

    Follow this example to convert Char to Curr and Vice-Versa
    DATA iamnt(17) TYPE c VALUE '243567.00'.
    DATA eamnt TYPE p DECIMALS 2.
    DATA oamnt(17) TYPE c.
    MOVE iamnt TO eamnt.
    WRITE eamnt TO oamnt.
    WRITE oamnt.

  • Convert char to currency

    Hi all,
    i searched alot but couldn't find solution.
    i have l_value char(45) field value has 4560
    I need to convert this into vbak-netwr field in sales order user exit MV45AFZZ
    when i assign vbak-netwr = l_value.
    I am getting 45.60 in vbak-netwr field.
    when i try same login in report progam it is working fine but not in user exit.
    any suggestions?
    Giri

    Sample program to convert Char to Curr.
    data: curr type kna1-umsa1,
          char(254) type c.
    data: temp type p length 15 decimals 2.
    char = '1,405.25'.
    REPLACE ALL OCCURRENCES OF '.' IN char WITH space.
    REPLACE ALL OCCURRENCES OF ',' IN char WITH space.
    CONDENSE char NO-GAPS.
    temp = char.
    curr = temp / 100.
    write: 'CHAR = '.
    write :/ char.
    write:/ 'CURR = '.
    write: curr.
    << Removed by moderator >>
    Regards,
    Uttam Agrawal
    << Removed by moderator >>
    Edited by: uttamagrawal on Feb 22, 2011 9:21 AM
    Edited by: Neil Gardiner on Feb 22, 2011 9:01 PM

  • Convert char to ascii code and vice versa

    HI
    Is there any function module to convert char to ascii code and vice versa.
    Thanks in advance

    Hi,
    be careful if you have unicode running in your system. URL_ASCII_CODE_GET is platform-dependent so it will return the internal HERX representation of the character in your system - which is hopefully and in most cases ASCII.
    Under unicode, we use double-byte characters here. I tried this function and the result CHAR_CODE is '00' regardless what character I specify for TRANS_CHAR. But the coding is so simple I corrected resultig in this sample code:
    [P]
    convert p_form to ASCII (internal) representation
      DATA:
        l_ofs TYPE syfdpos,
        l_len TYPE sy-linsz,
        l_ascii TYPE i.
      FIELD-SYMBOLS:
        <x> TYPE x.
      l_len = STRLEN( p_ascii ).
      DO l_len TIMES.
        l_ofs = sy-index - 1.
        ASSIGN p_ascii+l_ofs(1) TO <x> CASTING.
        l_ascii = <x>.
        WRITE: l_ascii.
      ENDDO.
    [/P]
    Here, for each character of string p_ascii, the internal (ASCII) representation is determined and written to the output list.
    Regards,
    Clemens

  • Error while downloading Contacts from R/3 to CRM system

    Hi All,
    I am trying to download Contacts from R/3 to CRM system.
    Through Initial Download. For this i have set filters through Tcode: R3AC1
    as on KNVP and KNVV for the field VKORG.
    As we have our requirement to download contacts based on or differentiating
    on 'Sales Org".
    We have downloaded our Accounts properly without any errors.
    But for Contacts we are facing issues such as one or more extra
    relationships are getting created between Contacts and Accounts other than
    its original Contacts.
    Means already existing contacts are creating more relationships after
    download.
    But a unique feature is visible for all, All those with false
    contact-account relationships.
    Contact has field value for 'Address type' missing while the same address
    type field is properly added for correct relationships. ( please find attached the screenshot of the same)
    Any pointers in which direction we should proceed for the solution would be
    appreciated.
    Thanks in advance.
    Cheers,
    Sharad

    Dear Vimal,
    Sorry not sure then...
    Sometimes the RFC connection is refused and use to give that particular error messgae due to:
    The old RFC library having version 6.20 automatically converted the
    password into uppercase with a size limit of 8 characters before sending it to the SAP system.
    The RFC library version 6.40 does not perform this conversion any more, because mixed case passwords upto 40 characters are now supported by SAP Basis version 7.00 (eg. NW2004s) and above. 
    So need to use upper case passwords when connecting to an SAP system having version less than 7.00. 
    But this is not valid in this scenario.
    Thanks,
    Atin

  • Converting char to upper

    How can I convert a char to upper case like you would a string?
    char code;
    String Stringcode;
    code = letter.getText().charAt(0);
    Stringcode = String.valueOf(code).toUpperCase();
    Can't I just convert the char to upper?

    public class Test {
        public static void main (String[] parameters) {
            for (char ch = 'a'; ch <= 'z'; ch ++) {
                System.out.print (Character.toUpperCase (ch));
    }

  • Mass Delete of BDocs in SAP CRM system

    Dear SDC team,
    We like to hard delete some BDocs which are hanging in the txn SMW01 in CRM 5.2 system.
    As of now we do not see a option to delete these unnecessary BDocs,  as they are in Intermediate state (I04) .
    Please tell us if there any standard report which can be used to do Mass Delete of BDocs in SAP CRM system.
    Or Is there any Tables which need to be emptied .
    Please help ..Points would be rewarded .
    Regards
    Ritvij

    hi
    Concerning the BDOCs without error, there is a job that you can schedule to run daily that cleans the BDocs processed without errors from the database.
    The details of this job are:
    Job name: SMO6_REORG
    Job program: SMO6_REORG
    Variants: SAP_MW_REORG
    Trace data (days to hold): 7 (recomended by SAP)
    Trace log (days to hold): 7 (recomended by SAP)
    Period: daily.
    Besides i should tell you I looked through Help and there are no best practices that I could find.We went through this process at one of my clients. They had 40,000 pluserror'd BDOCs and thousands of processed ones. The Middleware guycreated a program to delete the BDOCs that were over 2 months old andhad completed successfully to prevent the further build up of theseBDOCs. SAP Help says they are marked for deletion after they areprocessed, but it doesn't look like they get removed as wanted..
    From SAP Help:
    Deleting Processed BDoc Messages
    1. Processed BDoc messages cannot be archived.
    2. BDoc messages that have been processed successfully are marked fordeletion.
    Procedure
    To delete processed BDoc messages choose Architecture and Technology >Middleware > Message Flow > Delete Processed BDoc Messages
    The messages you selected will be deleted.
    and regarding deletion of non errant Bdocs
    Usually there are two schools of thought on this issue:
    1) Make the hard decision to go back to the beginning and startcorrectly all the things that caused these to error out (bank codes, taxcodes, config on R/3 side but not on CRM side, etc.). Then these can bereprocessed and everything will be brought up to date in the system.This takes time and may neccesistate hiring a Middleware resource for ashort term to help go through the process. The big part of this isidentifying those config items that are out of synch between R/3 andCRM.
    2) The other way to handle these is to go through the errors quickly,gain an insight into the cause of the errors, and correct the bigthings. Delete all the old error'd BDOCs and then bring down all the bigitems again - BPs, Sales orders, products, and so forth. This is muchfaster process, but has it's own risks and problems vs Option 1 above.As these items come in, if you haven't fixed the config problems, theywill error out again. It's a fix and move - fix and move process. In theend you may have some missing data still, but the time commitment ismuch lower. You just need to get leadership's buy-in to this process.
    Those error'd BDOCs are a problem and point out all the datainconsistencies that exist in the system. They are also a drag onperformance and need to be processed one way or another. After that,keeping them under a "1000" number is imperative. If you don't, theproblem will get away from you again.
    finally Some Transaction Codes that people might find useful for working withBDOCs:
    SMW01 Display BDocs
    SMW02 Display BDoc Summary
    SMW02A BDoc Messages: Show Top N Errors
    SMW03 Show stats of unproc. BDoc messages
    SMW10 Bdoc structure chekker
    SMW19 Copy BDoc and process
    SMW20 Process BDocs
    SMW3EX1 Flow Carrier Example
    SMW3FDBDOC Maintain Bdoctype dep. Flows
    SMW3FDCUST Maintain Customer Flows
    SMW3FDIF Maintain Bdoctype dep. Attributes
    SMW3FDSTD Maintain Standard Flows
    SMW3RBM Convert BDoc Messages to XML
    SMW3RC BDoc Message Error Recovery
    SMW3RCW BDoc Message Error Processor
    SMW3STOP1 General Stop Configuration
    SMW3STOP2 BDoc Type Stop Configuration
    SMW3WD Watchdog for failed BDoc Messages
    SMW3_00 BDoc Type Settings
    SMW3_GSB Generic Bridge Activation
    SMW3_GSB2 Generic Synch. Bridge Configuration
    SMW3_GSB_SHOW Display Generic Synch Bridge Config
    SMWMBSTATDISP BDoc statistics
    hope info will help your cause,i told all this coz before deleting the Bdocs complete understanding of the errant and non errant Bdocs is necessary,
    best regards
    ashish

  • Download E-Mail + Attachment from CRM System to Local Harddrive

    Hello,
    I need to download all E-Mails (incl. Attachment) from the CRM EIC Webclient System to the local
    harddrive (alternatively to the server drive). If its possible, I need the relation from the one order
    number to the mails (inlc. Attachment).
    Does anyone knows where the Mail are stored in the CRM Webclient System? Or can anyone
    give me a hint how I can realise a mass download (function module, class, method,...).
    The reason is, that the CRM System will be shutdown concerning insolvency and the Mails are
    necessary for the liquidation.
    Thanks,
    Andreas
    Edited by: Andreas Faatz on Jan 25, 2010 4:26 PM

    Hello Andreas,
    Just to clarify, I assume that you are referring to emails that arrive into the system via SAP Connect interface and are processed via the Agent Inbox (and not referring to emails that arrive via the ICI interface and are directly pushed to agents)? The ICI emails are typically stored on a third-party email server, so they would not be stored in SAP CRM. On the other hand, the SAP Connect emails are stored in the CRM system, sort of, though its rather complicated. The emails are converted into a combination of CRM workflow and SAP Office document and are broken up and stored in a variety of different tables. So there isn't really an single email that is stored and easily retrieved.
    Incoming ICI emails are first converted into an SAP workflow work item until accessed in IC and then are converted and stored as SAPoffice document in tables SOFM, SOOD  (header info) , SOC3  (for non krpo) , SOFFCONT1 (for  kpro / binary data) -- and if the document has been sent -- also in SOOS, SOST, and SOES (for externally sent documents). I'm not sure if this helps you at all
    Best regards,
    John

  • Converting Char  type  structure to Hex type structure

    Hello ,
             In unicode system how to convert char type structure to hex type structure . I am having structures as follows :
    DATA: BEGIN OF HEXBYTE,
      X TYPE X,
      END OF HEXBYTE.
    DATA: BEGIN OF CHARBYTE,
      C TYPE C,
      END OF CHARBYTE.
    HEXBYTE-X = CHARFIELD.
    CHARBYTE = HEXBYTE.
    But error coming is Charbyte and HexByte are not compatible . Plz suggest!!
    Thanks ,
    Keith

    Hi,
    These function modules are:
    NLS_STRING_CONVERT_TO_SYS (hex to char)
    NLS_SRING_CONVERT_FROM_SYS (char to hex)
    Regards,
    Nikhil

  • How to Sales Reports in CRM system

    Dear all,
    we have CRM and ECC system which are up and running.
    and also we have BW server connected to both systems. We want to see some reports like quotations report, sales orders report, deliveries report,etc... which are exclusively available in ECC system.
    Could any one of you explain me how to activate BW Infocubes and how to see Sd reports in CRM system with the help of BW system.
    Your suggestions will be highly appreciated.
    Thank you
    Raghu Ram

    Refer pre-configured scenarios and step by step guide here:
    http://help.sap.com/bp_biv170/html/BW/I15_EN_DE.htm
    For further more scenarios refer:
    http://help.sap.com/saphelp_nw70/helpdata/en/04/47a46e4e81ab4281bfb3bbd14825ca/frameset.htm

  • Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in oracle and yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in Oracle and  yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Thanks for your advise.
    However, I missed to mention that we have two set of users  One is for Finished Goods and another for Spares.
    Only Spares users need to be prevented from creating Direct/Manual Sales Orders in Oracle.
    As you suggested, if this will be done at Form level, that may Disallow FG users also to create Manula Sales Orders which should not be the case.
    Further, I tried to test one scenario through Processing Constraints but it did not work.
    Application
    OM
    Validation Type
    Entity
    Temp
    Short Name
    TBL
    Validation Semantics
    Created By
    Equal To
    User(Myself)
    Processing Cosntraint
    Application
    OM
    Entity
    Order Header
    Constraint
    Operation
    User Action
    Create
    Not Allowed
    Conditions
    Group
    Scope
    Validation Entity
    Record Set
    Validation Template
    101
    Any
    Order Header
    Order
    Above Created
    Please advise.

  • Business Content for Bill Up transaction in CRM system

    To all Experts,
    I'm currently working on a project that requires Bill Up transactional data ( Source Table: CMSD_BU ) to flow from CRM to BW system. I'm looking for Business Content that can fulfill this requirement. However, till to date, I couldn't find any information of such Business Content. I'm not sure if such BC exist. Can anyone help if you have experience implement this data flow?
    When searching for the DataSource / Extractor, I found BW Extract Structure CMST_BU_BW and CMST_BU_BW_C in the CRM system. But couldn't find any DataSource for both extract structure. Not sure if we need to install any support pack in order make the BC available in the system. Please help if you have any idea. 
    Thanks in advance.
    Regards,
    Hui Pin

    Hi Shalini,
    The document is replicated from ECC to CRM without any errors.
    For this document I just want to create follow up transaction in CRM.(I dont want to change the document in CRM)
    The follow up transaction is in display mode. this is my problem.
    Hi Rekha:
    I have done following setting in CRM to create follow up transaction in CRM for the document which is replicated from ECC to CRM.
    1)     Defined the Copying Control for Transaction type
    2)     Defined Copying Control for Item categories
    3)     Defined Item category determination when copying
    Thanks in advance,
    Regards,
    -Rahul.

  • I am looking for a CRM system that integrates with mail chimp or constant contact, hoot suite and forms stack

    I am looking for a CRM system that integrates with mail chimp or constant contact, hoot suite and forms stack

    Hi,
    I could resolve the issue since there were lot of issues after system copy.
    1. During distribued to Cenrtal system - system copy.
    You need to combine both DB and CI export copies in one folder during which one thing can happen.
    SOURCE.PROPERTIES - this file will be there in DB export JAVA folder and also CI export JAVA folder where
    DB SOURCE.PROPERTIES file doesn't have an entry of "src.ci.host". This will stop the SAPINST with error and after modifying the file "SOURCE.PROPERTIES" Traget System Copy finishes without any issue.
    Then after this stage I encountered an issue with bind hosts entry in config tool which was due to virtual host name usage in my HACMP setup due to whcih JAVA gives a startup problem.
    I eliminated this issue also.
    After JAVA started I faced an issue with XI related navigations.
    ecchangeProfile url still had an entry of Production System. This may be a bug.
    After changing that entry, exchangeProfile was downloaded but it had all the source system host entries which were manually changed.
    Now I can access all the XI related navigations.
    I need to also perfrom SGEN and Profiles import.
    Do I need to change any additional settings after this so that my production and DR can work without any issue?
    Do you have any additional checks which I can perfrom to ensure my DR systems consistency before I start the log shipping from Production?
    Regards,
    Rajkumar

  • Convert Char to Date format - Evaluate

    Hi,
    Could anyone provide us the Evaluate formula to convert Char to Date format
    2009-06-20 should be converted to 06/20/2009
    Regards,
    Vinay

    Hi,
    Refer the below threads...
    Re: How to convert string to date format?
    how to convert character string into date format????
    Regards,
    Chithra Saravanan

  • Convert Char to Date in SQL Server

    Hello Experts,
    I am trying to convert Char to Date but getting error in Universe designer. Can anybody advise please?
    Thanks,
    Ravi

    Hi,
    Try with CAST() and CONVERT() functions. For more information refer use this url : http://msdn.microsoft.com/en-us/library/ms187928.aspx.
    It is more easy to get solution if you can post your query.
    Cheers,
    Suresh Babu Aluri.

Maybe you are looking for

  • Logic Pro X not seeing any loops    Garage band does!!

    Need help in directing Logic Pro to see and list loops...tried re indexing...uninstall and reinstall program....updates....about at the end for Logic pro...but I hate to give up!....any Help? Thanks Forrest S

  • How can I have a text field that auto detects a previous entry?

    Like I have a text field example "First Name" and I want to be able to add another text field that will auto detect that input.

  • Iphoto crashes when settings clicked in mobileme gallery

    On both of my computers, an Air and a Pro with Leopard, when the settings "gear" icon is pressed in a Mobileme Gallery, iphoto freezes and must be force quit. The browser version of the gallery can be accessed but settings such as allowing downloads,

  • Related to Work Structures - HRMS

    Hello, I'm working on a requirement to fetch employee details. In regard to this, there is a need to fetch 'Division' and 'Group' of the given employee's "Assignment Organization". It's my sincere request either to provide me with the snippet for thi

  • Are there any JDBC Drivers for SQL Server 2000?

    Hello Everyone, Any news on the JDBC drivers for SQL Server 2000? I know it is not certified yet but is there a date when it will be. Which versions of WLS will they work with? Any help is appreciated. Sincerely, --Luis