Do it exist a FM to check possibility of convertion between different type?

Hi all,
   We have usually met the problem of DUMP when moving or writing a data type of a variable to an other variable which haven't the same data type as data type of moved variable.
   For example:
       - var01 type char10 with content "char_test".
       - var02 type QUAN.
       - MOVE var01 TO var02 => DUMP (because program can't convert "char_test" into QUAN type).
       (we can use instruction WRITE var01 TO var02 to avoid a DUMP, but after, when we use this var02 to compute => DUMP also occurs).
So could you please tell me if it exist a Function Module in ABAP to check the possibility of conversion between different data type?
Thanks a lot in advance,
Vinh Vo

Dear Vinh,
Field symbol should solve your problem. In case that does not work, then as per your requirement you can check for conversion using a try-catch block. The code below should give you an idea.
DATA: var01 TYPE char10 VALUE 'char_test',       " CHAR or any other type
           var02 TYPE quan1.                                   "Field of type QUAN
TRY.
    MOVE var01 TO var02.
  CATCH cx_sy_conversion_no_number.
    WRITE 'Steps in case conversion is not possible'.
ENDTRY.
WRITE / var02.
The above code will not dump in case of conversions to QUAN. In case a conversion to any other format is required, there will be a similar errors. Please let me know if you need any further help.
Regards,
Nimish

Similar Messages

  • Is ATP check possible in Service Order for Sales Item?

    Hi All,
    My question, is ATP check possible in Service Order for Sales Item? My requirement is that when i create a service order in the web UI with a sales item and drill down to the item level, i see the schedule lines assignment block but w/o any Confirming date, so i want to know whether the ATP check is happening or not. For example wen i create a sales order in web UI with a sales item and drill down into the item level, the schedule line AB shows me the Confirming date checking the ATP. But this is not happening in case of service order. So kindly suggest the reason and clarify my query. Thanks
    Regards
    Sridevi

    Nobody can help me???
    Please.
    Thanks

  • No DB freespace check possible

    Hi,
    We are in the process of upgarding our landscape to 4.7 from 4.0b and
    currently carrying the upgrade on DEV system to identify the
    functionalities. We have successfully upgraded the oracle from 8.1.7 to
    9.2.0. We have started the prepare and got the following error in the
    Initialization phase. Error: No DB freespace check possible, code -4
    SEVERE ERROR(S) OCCURED IN SPACECHK_INI. We have referred checks.log
    and no useful information found. We appreciate your help to proceed
    further on this. Here is the checks.log
    =======================================================================
    Starting new execution of PREPARE modules
         Initialization
    at 20080409003106.
    #=======================================================================
       #====================================================#
    Requests and information for module Initialization #
       #====================================================#
    INFO:    The version check of the R3trans in your active SAP kernel
             determined that it has a sufficient level.
             No update of R3trans is necessary.
    INFO:    The version check of the disp+work in your active SAP kernel
             determined that it has a sufficient level.
             No update of disp+work is necessary.
    Thanks & Regards,
    Krishna.

    Hello Krishna,
    Kindly check in DB02 and DB12.
    Also check the space on O.S. level.
    Provide the points if issue solve.
    regards,
    Rohit Mehta

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • Is it possible to work with different languages in different applications?

    Hi,
    is it possible to work with different languages in different applications?
    To have f.e. Photoshop in English and Indesign in Dutch??
    Thanks!

    I am not sure about it that you can use different apps in different language in the same computer, however you can check the following links:
    http://helpx.adobe.com/creative-cloud/kb/change-installed-language.html
    Adjust the install language | CCM
    http://tv.adobe.com/watch/learn-creative-cloud/installing-multiple-languages-of-a-desktop- application/
    Regards
    Rajshree

  • Is it possible to convert .doc to pdf  ?

    Hi..
    I am very new to Livecycle Workflow...! I just want to know whether it is possible to convert .doc to pdf  ?
    Just by googling i came to know that CreatePDF2 Service will do this Conversion ! But it throws me an Exception like "Conversion Exception :" Cannot connect to Adobe Service "...!
    Can u guys pls help me out to slove the problem ?
    Thanks & Regards
    Karthik.

    you don't know the format of a word doc? well, that's good for you because it's a nightmare.
    - check POI (http://jakarta.apache.org/poi/index.html) to see if you can load-up the .doc then generate the .pdf with iText
    - personally i use the Open Office Bean to open the .doc, i save it in .sxw (OO format which is a jar of different XML files), then i use XSLT to transform content.xml in .fo then use FOP to build the PDF. sounds crazy but works fine (only on a machine with graphic support - not via Telnet, etc...)

  • Is it possible to convert a LR3.3 cat back to 2.7??

    I'm pretty tired of the bottleneck in my workflow that the new LR3.3/3.2 has created.  I would like to stop using LR3.3 and switch back to LR2.7.  LR2.7 was powerful and efficient.  I don't really know about LR3.3's power because I'm too busy waiting on its inefficiency. 
    Has anyone switched back to 2.7?  Is it possible to convert a LR3 catalog to LR2.7?  And if you have downgraded were you able to preserve any adjustments (disregarding those that don't exist in 2.7)?  Any thoughts on how to do a downgrade and preserve as much of the adjustments as possible would be greatly appreciated.

    You will probably get some other expert advise.
    However there is no way, as far as I know, for you to convert the existing LR 3 catalog to LR 2.7.
    When you upgraded to LR 3 you would have been given the oportunity to create a LR 3 compatible copy of your LR 2.x catalog. This process would have left the original 2.7 catalog in place. If you reinstall LR 2.7 then you will have to revert to that catalog.
    The files that have been imported into LR 3 since the upgrade would have to be now re-imported into LR 2.7, You can recover most of your work done in LR 3.x by doing a save of the metadata to the files, if you have not already done so, before importing into the LR 2.7 catalog.
    LR 2.7 will not be able to apply the new noise reduction settings and lens correction profiles done in LR 3.x and will use the process version 2003 not 2010.

  • Is it possible to convert a PDF without uploading the file (i.e. by entering a URL)?

    My work-issued laptop doesn't allow me to upload files so it possible to convert a PDF file to Word bu just entering the URL of the document.I have a feeling this used to be feasible,
    Thanks

    Hi asdfg,
    You guess right! ExportPDF is an online service. Check out this 'Getting Started' guide as well.
    Hope this helps!
    Let us know we would love your feedback!
    Regards, Stacy

  • No external no.assignment possible for material for material type HALB??

    no external no.assignment possible for material for material type HALB??... message no:m3317
    i got this error msg while i try to create external material via mm01
    material: pump
    industry type: mechanical engineering
    material type: semi finished product
    after pressing enter error came...

    Hi
    If you created number range already, then you need to remove the number range and recreate the same with external number range w/o check
    Try it out.
    Thanks
    Raman

  • Check of tax code by document type?

    Hi Guru's!
    Ís there a possibility to have a check on allowed tax codes by document type?
    For example: document type: vendor invoice Europe
                          -> only european tax codes are allowed
    In Italy we have the requirement to have many different document types for sepcial number ranges, related to the kind of VAT. This is why we now want to have a system check for allowed tax codes by document type?
    Or any other criteria?
    More than that, do we have a possibility to hide useless document types by company code?
    Many thanks in advance!
    Sandra

    Dear Sandra,
    As far as I know there is no check between the Document type and the vat code into the standard System.
    If I were You, I would build up an FI validation for the user...if the Document type is XX please use the vat code YY.
    I hope this can help You.
    Mauri

  • Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin

    Hi ,
    We have a catalog that defines 2 types of products (they have too many different properties), so wanted to keep them on two different MDEX engines and serve the applications requests. Here DB catalog and front end ATG application is same for both the MDEX instances.
    Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin?
    Thanks
    Dev

    Hi, also have had some problem some monthes ago - I created separete component ProductCatalogSimpleIndexingAdminSecond. After that one of my colleage gave me some advice:
    The creating separate component like ProductCatalogSimpleIndexingAdmin for the second IOC is possible way for resolving your situation. But I afraid that this way will be required creating mane duplicates for already existed components.
    In my opinion the better way is the following:
    starting from AssemblerApplicationConfiguration and ApplicationConfiguration component. It contains details for connecting between ATG and Endeca. Of course you should configure different components for different Endeca Apps.
    After that:
    Find all components that uses AssemblerApplicationConfiguration and ApplicationConfiguration. Customize these components for using one or another  *Configuration component depending on what index works. (many variants released it: the most simple global custom component with flag.)
    Then customize the existed ProductCatalogSimpleIndexingAdmin. Using one or another IOC  and setting the flag in global custom component when index started. You can add some methods into your custom ProductCatalogSimpleIndexingAdmin like:
    Execute baseline index for both IOC (one by one)
    Execute baseline for IOC 1
    Execute baseline for IOC 2.
    Note: you should be afraid about incremental (partial) index in this configuration. But resolving conflicts in incremental index should be done after full implementation these changes.
    Regards

  • About check po no in sales order type.

    Hi SD experts:
                                 When creating sales order,i want to implement checking whether purchase order number exists,and giving the 
                        waring message.
                               But  In the Customizing of sales order type,it can only check with a error message or do not check.
                               In the std SD Customizing,how can it implement,pls give me some advice.
                                     Thank you very much.

    Kindly check following SAP Notes:
    Note 325894 - No message if purchase order number already exists
    Symptom: If the 'Check purchase order number' flag is activated in an order type, when you change the sold-to party, the system does not issue a message that the purchase order number is already assigned for this customer.
    Note 63056 - Validation of PO number for sales order
    Symptom: If the preparations for consolidation are activated in profit center accounting, the partner profit center for a sales order can, if necessary, be determined from the respective purchase order.
    To do this, the purchase order number entered in the sales order for the corresponding customer is validated.
    If this number has less than 10 digits, you need to enter the number with leading zeros.
    Note 317029 - Bad performance in the sales order due to PO number check
    Symptom: Long waiting times occur within the order entry because the system carries out a check to determine whether a document with the particular order type already exists for the relevant sold-to party.
    All the above are under category of Program error.
    Hope it assists you.
    Thanks & Regards
    JP

  • Est il possible de convertir le clavier qwerty en azerty d'un MacBook

    est il possible de convertir le clavier qwerty en azerty d'un MacBook

    Go to the "Keyboard" system preferences
    Select the "Input Sources" tab
    Click the "plus" button in the column to the left
    Select your language (i.e., French)
    Choose the "French" layout
    When you do this, you will see the keyboard layout underneath your selection. Ensure it is the proper AZERTY layout for your needs, then click the "Add" button. When finished, ensure this new layout is the one selected, and the system should now use AZERTY.
    One additional thing you can do is check the "Show Input menu in menu bar" option in the Input Sources tab, which will give you a small system menu (to the left of the menu bar) that will allow you to select different keyboard layouts and see which one is currently active.

  • Into a domain its possible to have 2 different realms?

    Hello,
    We have a server domain with two different realms.
    We have two application, each application have to login against its realm.
    One application logins again default realm --> it's working ok
    The other application logs to a new RDBMS realm --> it dons't work, it still login against default realm (we have used web.xml <realm-name> tag to select the new realm)
    Our doubts are the next:
    1) Into a domain its possible to have 2 different realms?
    2)How can we select a not dafault realm to login?

    Unfortunately, the ability of WebLogic to define multiple realms is a tease. Only the default one is active in WLS 8.1 and 9. I haven't checked 10 so maybe that's changed...
    Mike
    Weblogic/J2EE Security Blog: http://monduke.com

  • Possible to conditionally change item type?

    Hi there,
    I've been trying to find a possibility to change the item type (text item) into another (disabled text-item) based on the value of that field.
    Thus far I haven't found it. Is there anybody who knows if this is possible and how I can do it?
    Thanks!
    Jacob
    null

    Hello Jacob,
    >> I've been trying to find a possibility to change the item type (text item) into another (disabled text-item) based on the value of that field.
    You should check the “Read Only” section of the item. It allows you to define a condition to set the item as “readOnly”, and in version 3.1 also allows you to define a proper (different) style for it.
    Hope this helps,
    Arie.

Maybe you are looking for