OLE: export quantity with decimals according to UoM

Dear Guru,
I encounter a problem when exporting data from Itab to Excel using OLE.
In the itab, there are many Quantity fields (with UoM). When I export to Excel, I want the number of decimals of each quantity field must comply with UoM (for ex: PC with 0 decimal, Kgs with 3 decimals).
I try to write the qty to text, it's ok but I also need the exporting qty is formatted as a number in Excel so user can do a sum.
The solution for this problem seems complicated. I have to write qty to text, convert text to number...But for a large number of data, it is really slow.
Is there anybody encounter the same problem? Please advice the solution.
Thanks.

> The solution for this problem seems complicated. I have to write qty to text, convert text to number...But for a large number of data, it is really slow.
You make confusion about the real problem. Converting the quantity is not time consuming (or your program is really badly programmed ).
What is time consuming is making many calls to OLE.
To avoid that issue, SAP uses the Data Provider and the Desktop Office Integration (DOI). The whole data is sent to the frontend once (more or less), and sends only a few instructions to the frontend to process this data. I don't really know the exact process, but it's really, really  much faster.
DOI can be programmed directly (there are SAP demo programs which show how it works, search forum), and there is an upper abstraction if you only need to paste data, set colors, that is indicated by Pedro.

Similar Messages

  • Stock Quantity With Decimals

    Hi All,
    I have noted that we've got some stock items whose Quantity include Decimals yet they are suppossed to be whole numbers.
    For instance: for Bread: OITM.OnHand=10.5
    I want to come up with a query to display all these kind of items. Whats the right Condition in an SQL query to achieve this? Thanks
    Regards,
    Henry

    Try this query:
    Select itemcode, itemname from OITM where Onhand > Round(Onhand,0)
    Thanks,
    Gordon

  • How to display or write quantity with decimals?

    Exists some mask or function that make next?:
    1.- If a quantity is 1500.000 should display 1,500
    2.- If a quantity is 1500.010 should display 1,500.01
    3.- If a quantity is 1500.555 should display 1,500.555
    In others words, only display decimals if apply.

    i think below code will helpful to u :
    data: var(10) type c,
          var2 type string,
          var3 type string,
          var1 type string.
    var = '15000.000'.
    var1 = var.
    split var1 at '.' into var2 var3.
    if var3  ge '000'.
       condense var3.
       SHIFT var3 RIGHT DELETING TRAILING '0'.
       condense var3.
    endif.
    if not var3 is initial.
    concatenate var2 '.' var3 into var.
    write: / var.
    else.
    write: / var2.
    endif.

  • SNP purchase requisitions quantities generated with Decimals

    HI Gurus,
    When we run the location heuristics in SNP the purchase requisitions are (Distribution Receipts Planned ) are created without decimals.But when these are published to ECC the  purchase requisitions are generated with decimals.For Example the SNP PR value is 15 and the ECC Pr is 15.200.How can i restrict this because i want the same quantity which is generated by SNP heuristics .Are there any settings in UOM(Unit of measure).I checked in the planning area for the key figure everthing is fine.
    What are the settings to be made.
    Dhanunjay.

    The SNP might be generating 15.2 based on your lot sizing settings.
    Most probably the reason you see 15( with no decimals) in SNP Planning book is because for your keyfigure, you have 0 decimals.
    Go to Design mode for the plannning book, select the keyfigure and change the decimal places from 0 to 3(or any higher number)
    Now you should be able to see 15.2 as stated in your example even in the plannning book
    One other way to check would be in the product view(RRP3) or as someone already suggested( RRP2)
    Thanks
    Kumar

  • KP06 cannot enter number with decimals in fxd. consumption

    Hi!
    When using transaction
    KP06 Change Cost Element/Activity Input Planning with
    Planner Profile SAP102,
    layout 1-102 Std.layout Activity input ActInd/ActDep
    we cannot enter number with decimals in field Fxd. consumption
    Field name MEF
    Data element MEFXXX
    When we enter number with decimals like 12,45 it gets rounded in 13.
    I have tried to change number format of this collumn from Not defined
    to 0,00 but this is not helping. The rounding still takes place.
    My question is where can I assign the unit (of measurement) for posting of quantities.
    Regards,
    Marina

    The UOM is assosiated with Activity Type, and has a certain number of decimal points in the definition of UOM.  The other place to influence decimal points in the proper planning layout (column settings).

  • Exporting OMF with Volume Levels

    My movie's done, I'm trying to export the audio as OMF files for my post guy to use on his machines at work.
    Problem is that I can't figure out a way to export and leave my volume levels intact. We've done a lot of the mixing already, but according to Mr. Audio the OMF files I burned for him have all volume levels at 0, no deviation.
    Can I export OMF with the volume controls using only Final Cut 5 or Soundtrack?
    Next question is about Automatic Duck, a Final Cut plug-in that is supposed to solve my problem. I tried installing it and it seems to not want to work without a copy of After Effects on the same machine. Is there a way to load that plug in for just Final Cut and have it work?
    Thanks

    hey Mike
    welcome to the FCP forum.
    FCP5 does not to my knowledge export clip based audio gain or pan adjustment data in its OMF export ... you'll need something like Automaic Duck's Pro Export plug-in for that
    if you already own Automatic Duck's fabulous plug-in then you should have no problem exporting your timline with (almost) all dissolves, keyframes and effects intact.
    if you are having a problem then I can only guess you've bought the wrong plug-in ... you need the FCP Pro Export plug-in.
    you'll be glad to know that Wes Plate, from Automatic Duck is a regular contributor to the forum so you can be sure you'll get the advice you need.

  • Importing and Exporting Data with a Clob datatype with HTML DB

    I would like to know what to do and what to be aware of when Importing and Exporting data with a Clob Datatype with HTML DB?

    Colin - what kind of import/export operation would that be, which pages are you referring to?
    Scott

  • How to export data with column headers in sql server 2008 with bcp command?

    Hi all,
    I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
    am trying to import data with bcp command data has been copied but column names are not came.
    I am using the below query:-
    EXEC master..xp_cmdshell
    'BCP "SELECT  * FROM   [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
    Thanks,
    SAAD.

    Hi All,
    I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
    DECLARE @BCPCMD
    nvarchar(4000)
    DECLARE @BCPCMD1
    nvarchar(4000)
    DECLARE @BCPCMD2
    nvarchar(4000)
    DECLARE @SQLEXPRESS
    varchar(50)
    DECLARE @filepath
    nvarchar(150),@SQLServer
    varchar(50)
    SET @filepath
    = N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
    as varchar(4))
    +RIGHT('00'+CAST(MONTH(GETDATE())
    as varchar(2)),2)
    +RIGHT('00'+CAST(DAY(GETDATE())
    as varchar(2)),2)+'.log" '
    Set @SQLServer
    =(SELECT
    @@SERVERNAME)
    SELECT @BCPCMD1
    = '''BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT '
    SELECT @BCPCMD2
    = '-c -t , -T -S '
    + @SQLServer + 
    SET @BCPCMD
    = @BCPCMD1+ @filepath 
    + @BCPCMD2
    Print @BCPCMD
    -- Print out below
    'BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
    EXEC
    master..xp_cmdshell
    @BCPCMD
      ''BCP' is not recognized as an internal or external command,
    operable program or batch file.
    NULL
    if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
    EXEC
    master..xp_cmdshell
    'BCP "SELECT  * FROM  
    [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
    Thanks, SAAD.

  • Invalid export DLL or export format" with Crystal Reports 2008 to Excel xls

    We are experiencing the same issue as reported in the sticky thread. I answered in that thread, but thought that I woudl open a new thread to keep track of this issue.  I can give you the responses to your questions you have requested in that thread:
    Server Operating System - MS Windows Server 2003 R2 Enterprise Edition SP2
    Version of the .NET Framework - MS .NET Framework 3.5 SP1
    How did you deploy? - Installed CR 2008 SP1 runtime with msi package
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size? CRRuntime_12_1_mlb.msi dated Sept. 16, 2008 12:55:00 PM, size: 56,717,824 bytes
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory - File was created 9/13/08 11:21AM, 9451KB File Version: 12.1.0.882
    How many libpng10.dll files are on your system? List all instances. - 1 instance is on the system located in C;\Program Files\Business Objects\Business Objects Enterprise 12.0\win32_x86 directory. It is dated 9/13/08 8:52:26AM 132KB version 1.0.30.1
    Any additional comments - We have tried to export to PDF and this works successfully. However, we can not export to xls or rft formats.
    CRXF_XLS.dll is 905KB 9/13/08 9:38AM Version 12.1.0.882
    CRXF_RTF.dll is 509KB 9/13/08 9:35AM Version 12.1.0.882
    We also have the CR XIR2 server runtime installed side by side on the server as we migrate from CR 2008 to CR XIR2 SP4 ( where this function does work currently).
    Please let me know if you need anything additional.
    Phil
    "Invalid export DLL or export format" with Crystal Reports 2008
    Posted: Sep 27, 2008 12:36 AM       E-mail this message      Reply 
    I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK.
    Issue
    Exporting a Crystal Report to Excel or RTF format
    .NET application using the Crystal Reports 2008 runtime (version 12.0)
    error Invalid export DLL or export format
    We've been doing some testing in-house and haven't reproduced this behavior. In order to figure this issue out we will need your help. If you are getting this error please reply to this post with the following information:
    Server Operating System
    Version of the .NET Framework
    How did you deploy?
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size?
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory
    How many libpng10.dll files are on your system? List all instances.
    Any additional comments
    What We Know
    The error invalid export DLL or export format may occur when exporting to Excel and RTF formats in .NET applications utilizing the Crystal Reports 2008 runtime (v 12.0)
    Other export formats like Adobe PDF, Crystal Reports, CSV all export with no error
    Some customers have resolved this by adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to their environment path variables
    This may have something to do with the file libpng10.dll. Both crxf_xls.dll and crxf_rtf.dll are dependent on it.
    Thanks in advance for your co-operation. We hope to figure out what is causing this issue soon.

    Hi,
    I am also having the same problem, except that I am not using Crystal Report 2008 runtime but the actual Crystal Report 2008 installation on Windows XP SP2 with VS Studio 2005 (VC++). MS .NET Framework 2.0.
    Cyrstal Report XIR2 was installed on the same machine but uninstalled before installing Crystal Report 2008.
    So only one instance of libpng10.dll and found in C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
    Crpe32.dll        3/1/2008 version 12.0.0.683
    Crxf_xls.dll       3/1/2008 version 12.0.0.683
    Crxf_rtf.dll         3/1/2008 version 12.0.0.683
    crdb_oracle.dll  3/1/2008 version 12.0.0.683
    libpng10.dll       3/1/2008 version 1.0.30.0             122880 bytes
    There is no problem for exporting to pdf, html, word, csv, Crystal Report. If I create a testing report without any data from database, the testing report can then be exported also to rtf and xls.
    Oracle 11.1.0.6 is the DB for the reports.
    Adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to the path did not resolve my problem.
    Any idea to fix this issue?
    Thanks
    Kin H Chan

  • Error "Failed to Export PDF" with big image on CS6 (32) and CC (64)

    Hi everyone,
    I'm on indesign CS6 (v8.0.2) and when I try to export pdf with a very big image ( *.tiff, 25000*35000 pixels, ) , the action failed with this message :" Failed to export a PDF".
    To be sure that there is no any corrupted elements, I made a very simple layout (one page , and just one element for my image,I turnoff prefilgth and all  ressource intensive options, and export with no downsampling or resampling) and try to export with different size image:with 20000*30000 -or smaller -image the export works, always failed with image .The export failed to in scripting mode.
    If I diveded my image in four , the export works but this solution is not convenient (I actually made tests for a fully automatised process, and we want to be sure that the indesign  component is  enough "safe")
    I try the same action with an evaluation version of indesign CC 64 bits (v9.2) and have the same behavior.
    I can imagine that there is a memory issue there, but my config seems to be strong ( windows server 64 with  16GB ram, DD with more than 100GB free). I don't undersant why-in a "full" 64 bit environnement- it is not possible to manipulate and export very large image ?
    I'm wonder If the background task is a part of the problem, and if it 's possible to disable it in CS6 or CC as in cs5 ( creates an  “DisableAsyncExports.txt” file in  Adobe InDesign executable directoty don't seems to disable it  in CC or CS6).
    Thank you for your help and good ideas..
    DC.

    this is a .tif (not a "big"tiff) compressed in LZW or ZIP.
    I just tried with another format (png), the error is the same...

  • After creating a new slideshow I export it with the  setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not  as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?

    After creating a new slideshow I export it with the  setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not  as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?

    DVD's are only 640 x 480 (interlaced), so yes, the quality is not nearly as good.  You should probably create your .mov in DV format to best match the DVD format

  • Videos export with purple/green artifacts/splotches/flashes with Media Encoder CC but export fine with Premiere Pro CC?

    I use Premiere Pro CC to edit videos, and videos render fine when I export through Premiere Pro, but when I try to use Media Encoder CC, the video exports with weird splotches of green/purple artifacts all throughout. It almost looks like the video is glitching and having a seizure of green and purple. No idea why this happens. Could anybody help me? I use Media Encoder to export bulks of videos at a time through its queue feature, which is why I prefer to use Media Encoder for video exporting.
    Please and thanks.
    Specs:
    Motherboard:  MSI® Z87-G45 Gaming [Red on Black color] 2x SLI/CrossFire
    Processor:  Intel® Core™ i7 4770K 3.5GHz/3.9GHz Turbo 8MB L3 Cache HD 4600
    Memory:  16GB Corsair® Vengeance™ DDR3-1600 1.5V (2x8GB)
    Graphics and GPGPU Accelerator: AMD R9 295x2
    Power Supply:  1300W EVGA
    Operating System:  Microsoft Windows 7 Home Premium 64-bit

    Mitch,
    I was hoping that you and others might have some insight as to whether the purple and green artifacts / splotches seen in the attached screenshots (taken from 4 consecutive frames here but occurring through the entirety of the clip) could possibly have resulted from exporting video with ~ Premiere Pro CS5 or 6 ? As seen below, these splotches alternate back and forth between purple and green in every consecutive frame. I was also hoping that someone might know if this is a relatively common type of artifact and how it is caused.

  • Exporting audio with a patch?

    I have been using Logic Pro X to record some musical tracks in my studio. The sound quality of the program is phenomenal. I haven't ever had the idea to switch programs, it's just this one thing that gets me. So my question is, How do you export one of the audio tracks you lay down WITH the patch you added to it? I have put patches on the tracks before and tried exporting the track as an audio file, but it does not export it with the patch I put on it in Logic Pro X (it only exports the audio that was recorded originally). Please Help! I have struggled with this one area for so long, I have even gotten "I Don't Know" from Apple support members, given that this is a very complex program with all of the possibilities, i understand that they don't. Therefore, I am asking you guys. Thank you so much!
    I am using Logic Pro X 10.1.1
    iMac with OS X Yosemite 10.10.2

    Use the word "Bounce" as a search term.
    http://help.apple.com/logicpro/mac/10/

  • I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?,

    I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?

    Thanks, Flex harUI, for the direction in regards to isolating build changes. That aside (still working on it), can you offer any direction in regards to my original question on SDK and AIR compatibility? I'm specifically looking for a version compatibility mapping or anything that definitively states, "Flex SDK x.y.z works with the following versions of AIR". This information is crucial for us in order to more specifically plan our own roadmap built upon these two frameworks as we consider both existing installations of our software and future distributions.

  • In iPhoto, how can I export images with the metadata - including the title and caption information - intact as part of the image?

    In iPhoto, how can I export images with the metadata — including the title and caption information — intact as part of the image?

    Check those boxes in the export dialogue - Exporting From iPhoto
    LN

Maybe you are looking for

  • How can I restrict Adobe Creative Cloud to run for just one mac user?

    Can anyone help with this please ... (This is about how the Adobe Creative Cloud app works with OS X User accounts.  I have posted it on Adobe's Support forums, but nobody there had the solution.  Perhaps someone from the Apple/OSX end can help?) I'm

  • How do I apply renamed display profiles in Display Preferences?

    Can someone tell me how I get my renamed colour profiles to show with their new names in Display Preferences? After creating new profiles when calibrating my monitor, I discovered that because the applied profile names were too long to show up in the

  • No Safari just bouncing icon

    Hi there- below is a copy and paste from a previous user (in italics): +I accidentally installed Safari 3.1 on my G4 10.3.9. Somehow I was confused and thought that it would run on my OS.+ Wrong. +Problems caused:+ +Various programme's did not run, l

  • System copy for R/3 4.7 MSCS

    Hi all, Currently we are planning a system copy using R3Load import/export on R/3 4.7. Below is the details: Target : New PRD with clustering MSCS & OFS configured (both win & oracle 64 bit) Source: Old PRD with clustering MSCS & OFS configured (both

  • Pacman-color depends on pacman 3.2

    the title says it all, a user has to remove pacman-color in order to update to pacman 3.3. EDIT 1: hmm, I found that the AUR page on pacman-color has been updated and it says that it is compatible with the latest pacman 3.3 so I will try to install i