Setting properties of Excel File

Hi,
Could you tell me how can I set the properties of individual cells of an Excel file before downloading data onto the file.
In my case I have to change the properties of the first column from General to Text format.
Could you please let me know the function module to be used..

Hi,
   Look at the below link
   http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm
Regards,
Amole

Similar Messages

  • Open data set for reading excel file on application server in back ground

    open data set for reading excel file on application server in back ground

    hi Vijay,
    I am afraid you won't be able to read from Excel file on Appl. Server.
    ec

  • API to access and set properties for MP4 files

    I am looking for some APIs in Visual C++ to use in Visual Studio to set
    and get properties for .mp4 files. Can anyone help me in this regard?

    Hi Rahul,
    Try using the Windows Media Format SDK with help from the below document:
    http://blogs.msdn.com/b/tims/archive/2004/03/28/extracting-metadata-from-windows-media-files.aspx
    Alternatively, you can give a try to ffmpeg libraries for a open source alternative.
    https://www.ffmpeg.org/download.html
    (Please mark as answer if this solves your query. Please upvote if this reply is helpful).
    Regards,
    Rajesh Nath

  • Setting properties of a file

    Hi,
      I've used an ABAP program to transfer a file to the App server. However, i need to set the rwx properties of the file. I tried to use sm49 and create a command to perform chmod. It does'nt seem to work. Does any one know how i can set the attributes of a file.
    Thanks,
    Siddarth

    Hi,
    THe I would go for chmod for a system command in SM49. You don't need to execute it manually though.
    In the same ABAP you can start the external command (defined in in sm49) via eg.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                         = 'Z_CHMOD'
        ADDITIONAL_PARAMETERS               = param
        OPERATINGSYSTEM                     = SY-OPSYS
      TARGETSYSTEM                        = SY-HOST
      DESTINATION                         =
      STDOUT                              = 'X'
      STDERR                              = 'X'
        TERMINATIONWAIT                     = 'X'
      TRACE                               =
    IMPORTING
      STATUS                              =
      EXITCODE                            =
      tables
        exec_protocol                       = tabel
    EXCEPTIONS
       NO_PERMISSION                       = 1
       COMMAND_NOT_FOUND                   = 2
       PARAMETERS_TOO_LONG                 = 3
       SECURITY_RISK                       = 4
       WRONG_CHECK_CALL_INTERFACE          = 5
       PROGRAM_START_ERROR                 = 6
       PROGRAM_TERMINATION_ERROR           = 7
       X_ERROR                             = 8
       PARAMETER_EXPECTED                  = 9
       TOO_MANY_PARAMETERS                 = 10
       ILLEGAL_COMMAND                     = 11
       WRONG_ASYNCHRONOUS_PARAMETERS       = 12
       CANT_ENQ_TBTCO_ENTRY                = 13
       JOBCOUNT_GENERATION_ERROR           = 14
       OTHERS                              = 15
    Put the chmod in a shelk script and use params you give via the above additional params.
    All this with enough permissions in mind.
    Eddy

  • Active Export list of customer discount set up into Excel file

    Hi Every Body,
    How to export a list of customer discount from plant to Excel Spread sheet.  Please provide me your valuable inputs
    Thanks
    Prasad

    Hi Prasad,
    I think you can use the pricing reports to first generate a list of that discount condition type in a report format and then export it to an excel sheet.
    See if the standard pricing reports in V/LD given by SAP is useful for you if you are using standard condition tables. If not, then you can easily create a new report for your condition type and the condition tables that you have used for that.
    Hope this helps.
    Aribis

  • Open excel files in multiple instances

    When ever i open the excel files it opens as different windows of the same instance . Is there any way to open in multiple instances of excel ...  I saw some answes in forums which says about about unchecking 'Ignore other application that use DDE'
    .. once i set that the excel file doesnot open again giving an error "there was a problem sending the command" ....
    Could some one help me on this .. this is pretty urgent for me ...  i am using this in my vb.net project with process.start(file)  ...
    i dont think i want to create an excel application and open the file in the code as i may not be able to release the com objects properly in my fuinctionality .... 

    Try this one:
    1. To begin, we go to the registry. Click START, and in the RUN command line type REGEDIT and hit ENTER or click OK. This will start the registry editor.
    2. Navigate to the following key: HKEY_CLASSES_ROOT\Excel.Sheet.8\Shell\Open\Command
    3. Double click on the (Default) instance over to the right. Right now this probably says something like:
    If you have Office 2007 installed:
    C:\Program Files\Microsoft Office\Office12\EXCEL.EXE /dde
    Or, if you have Office 2010 installed
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /dde
    Change this value to:
    C:\Program Files\Microsoft Office\Office12\EXCEL.EXE /e "%1"
    for Office 2007 and for Office 2010 change it to:
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /e "%1"
    4. Navigate to the following key: HKEY_CLASSES_ROOT\Excel.Sheet.12\Shell\Open\Command
    Again, double click the (Default) entry to the right and change
    C:\Program Files\Microsoft Office\Office12\EXCEL.EXE /dde
    to
    C:\Program Files\Microsoft Office\Office12\EXCEL.EXE /e "%1"
    When you exit the registry this should be all you need to do. Each time you double click on your Excel shortcut or type excel.exe in the command line a new instance of Excel is launched with the default spreadsheet.
    Quote from:
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2011/09/06/opening-excel-in-multiple-instances.aspx
    Max Meng
    TechNet Community Support

  • Conversion from an Excel file

    I recently converted an excel file to a pdf table. However it comes out on two pages each with half of the file. Pg 1 contains the left columns and page 2 has the right side columns.
    Is there a way to have it all appear on one page?

    Based on your description it seems like a setting in your Excel file might be causing 2 PDF pages to be generated.  Can you please look at the 'Print Preview' in Excel to see if it shows you 2 pages?  If yes, you can use the 'Scaling' feature in the Excel 'Print' dialog box to "Fit page to 1 page wide by 1 page tall.'  This should address the issue.  If this issue still persists then please follow-up with a question on a different forum: http://forums.adobe.com/community/acrobatdotcom/acrobatdotcom_storage/
    This forum is for Acrobat.com Tables.
    Thanks,
    Varun

  • OLE2 how to set a column width of an excel file i'm creating?

    how can i set the column width in an excel file i'm creating with ole?
    or even, haw can i set the auto-fix properties?

    Hallo !
    SORRY MY ENGLISH is very BAD.
    I tried to set page header and  footer in Excel sheet with abap ole
    DATA : BEGIN OF enter,
             x(1) TYPE x VALUE '0D',
            END OF enter.
    DATA : format(255) TYPE c.
    FORM set_page_sheet.
      CALL METHOD OF excel 'ActiveSheet' = sheet.
      CALL METHOD OF sheet 'PageSetup' = pagesetup.
      SET PROPERTY OF pagesetup 'Orientation' = xllandscape.
      SET PROPERTY OF pagesetup 'PrintTitleRows' = '$9:$12'.
      CLEAR format.
    ERROR
      CONCATENATE 'PAGESHEET' enter-x 'PAGE &P/&N' INTO format.
    ERROR
      SET PROPERTY OF pagesetup 'RightHeader' = format.
      CLEAR format.
      CONCATENATE ' Text 1 ' enter-x 'Text 2'
    enter-x 'Text 3 ' INTO format.
      SET PROPERTY OF pagesetup 'RightFooter' = format.
      FREE OBJECT pagesetup.
    ENDFORM.                    " set_page_sheet
    Activate report -
    ERROR - The enter-x must by data type c or another then data type x
    Thanks for answer.

  • Setting properties of printing in Excel

    Hello,
    I am working with Excel through ActiveX and I am trying to set the properties of printing an Excel file to PDF file. I managed to print the document but I cannot change the default properties. I write data in many columns and when I print the document, all the columns are not printed. Specifically I want to scale the document to print. This is how I am trying:
    SetPrintAttribute(ATTR_EJECT_AFTER, 0);
    SetPrintAttribute (ATTR_PRINT_AREA_WIDTH, VAL_INTEGRAL_SCALE);
    SetPrintAttribute(ATTR_EJECT_AFTER, 1);
    error_print_excel = Excel_Worksheet_PrintOut (ExcelWorksheetHandle, NULL, CA_DEFAULT_VAL,
    CA_DEFAULT_VAL, CA_DEFAULT_VAL,
    CA_DEFAULT_VAL, CA_DEFAULT_VAL,
    CA_DEFAULT_VAL, CA_DEFAULT_VAL);
    Can anyone help me? Thanks in advance.

    Hi,
    The NetworkConnectionIndex determines which nic is which. So a network card with the NetworkConnectionIndex of 0 is the first nic on the box, 1 is the second nic etc... If you have multiple nics you will need to evaluate through all of them like so:
    $civms = (get-civapp dean* | get-civm)
    foreach ($civm in $civms) {
        $Net = $civm.ExtensionData.Section | Where {$_.GetType() -like "*networkConnectionSection"}
        $nics = $Net.NetworkConnection
        foreach ($nic in $nics) {
      if ($nic.NetworkConnectionIndex -eq 0) {
      $nic.Network = "Network Name 1"
      $nic.NeedsCustomization = $true
      $nic.IsConnected = $true
      $nic.IpAddressAllocationMode = "DHCP"
      if ($nic.NetworkConnectionIndex -eq 1) {
      $nic.Network = "Network Name 2"
      $nic.NeedsCustomization = $true
      $nic.IsConnected = $true
      $nic.IpAddressAllocationMode = "DHCP"
      if ($nic.NetworkConnectionIndex -eq 2) {
      $nic.Network = "Network Name 3"
      $nic.NeedsCustomization = $true
      $nic.IsConnected = $true
      $nic.IpAddressAllocationMode = "DHCP"
      if ($nic.NetworkConnectionIndex -eq 3) {
      $nic.Network = "Network Name 4"
      $nic.NeedsCustomization = $true
      $nic.IsConnected = $true
      $nic.IpAddressAllocationMode = "DHCP"
      $Net.UpdateServerData()
    Cheers,
    CSIEnvironments aka Dean

  • LIST_FROM_MEMORY - Excel File - Open data set

    Hello,
    A long time ago I asked people here how to convert a submit program to html and using open/transfer/close data set altoghter. I got a lot of help for that and I am greatful.
    However, I may need to try something and would like to ask how does this apply when you want to transfer <b>LIST_FROM_MEMORY -> Excel File -> Open/transfer/close data set</b>leading it to be saved to the application server.
    Thank you all and good day.

    Do we have to write the list into application server in XL format?
    Once we get the data from LIST_FROM_MEMORY, then write this data into application server using DATASETS
    Refer to these links
    How can I upload data from excel file from Application Server?
    Regds
    Manohar

  • Can I globally change a setting so that Word/Excel files open in NeoOffice

    We are evaluating the use of open "Office" applications. Is there a global setting that will allow us to force Word & Excel files to open in NeoOffice (and vice versa)? In addition, is there an Import Data feature in NeoOffice or OpenOffice?

    See this article:
    http://docs.info.apple.com/article.html?artnum=106171

  • How to set the size of an Excel-file,Java created in tabbed forma

    Hi all,
    I'm creating an Excel-file by writing data to an outputStream in tabbed format.
    My problem is : How can I set the width of the columns of that Excel-file, not the default-size?
    If anyone can help, that would be very nice.
    Thanks a lot,
    Regards,
    Tim

    You can write a generic xls file containing a Macro to open and set the column widths of text or csv files. Your java program can then call this generic file to open your text files.

  • To set a dropdown list for one column in the excel file before downloading

    Hi all,
    I am downloading an excel file which has the format of an internal table with a number of fields. I want to set a dropdown list for one column in the excel file. How can i do this?
    Thanks

    HI ,
    U can use function module " QINT_GET_EXCEL_DATA " ....
    and modify the excel sheet based on ur requirement ......
    Try this ...
    Hope it works
    Thanks
    Shambhu

  • Do we have Format Checker to test set of Excel files in a Folder

    Team,
    I need to do Format checking (like Arial Font, Bold etc) for set of Excel files in a Folder. Do we have any tool for that?
    Thanks!
    Kiran

    Hi Kiran,
    As far as I know, Microsoft doesn't provide such kind of tools. But If you're familiar with Excel development, you can create your own VBA code or other kind of application(e.g. .Net application) to automate the Excel workbooks in the folder. Use the VBA
    code or applications to access the Excel object model to check the cell format.
    For example, use this vba code to check if cell A1 is bold:
    Sheet1.Range("A1").Font.Bold
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Reason to set MaxErrorCount along with Propogate value for Excel Files

    Hi,
    I had an ETL earlier which processed CSV files from a folder. The requirement was to load the error files into a Rejected folder but continue to process all the files from the source Folder. This requirement was satisfied by setting the value of the
    system variable "Propogate" in EventHandler section for DataFlowTask to "false".
    MaxErrorCount value for the ForEach Loop is having its default value as "1".
    When tested, it was working perfectly fine
    Now currently there is an Excel file as source having same requirement as above. But even when then variable "Propogate" was set to "false" as above, the execution was getting stopped when an error file was found.
    Later I found the below link :
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/0065b5c2-f633-4cbf-81f9-031d1ed25555/how-to-skip-wrong-excel-files-ignore-errors-on-ssis-foreach-task
    As mentioned in the link, I have done below changes
    1)Set MaxErrorCount for ForEachLoop to 1000
    2)"Propogate" variable is set to false
    Now this is working perfectly fine.
    Can you please let me know why did the setting of "Propogate" worked for CSV but did not work for Excel. For Excel files why was an additional setting for MaxErrorCount  was required.
    It would be very much helpful if I can get a detail information on the above
    Thanks,
    Raksha
    Raksha

    Hi Raksha,
    In you SSIS package, setting the Propagate system variable to False of the Event Handler prevents the Data Flow Task (DFT) propagating its failure to its parent container. For the ValidateMetadata property of a Data Flow Task Component, it doesn’t only affect
    the DFT at design time but also at runtime. During the Validation phase, a component is supposed to check to make sure that the cached metadata in the package is still in sync with the underlying table/view/query. If there is a mismatch, the component returns
    a special status (VS_NEEDSNEWMETADATA). When this happens at design-time, SSIS triggers a metadata refresh by calling ReinitializeMetadata(). At runtime, this results in an error.
    In your scenario, by setting the ValidateMetadata property to false, the error of the DFT is avoided, hence, you don’t need to set the MaxErrorCount to a value more than 1.
    For more information about how ValidateMetadate property works, please see Matt’s answer in the following thread:
    http://stackoverflow.com/questions/3297097/validateexternalmetadata-property-what-exactly-does-this-do 
    Regards,
    Mike Yin
    TechNet Community Support

Maybe you are looking for

  • Installed iTunes 10.2.1 for Windows (64-bit), Error 7 Windows 998

    Hello After updating iTunes 10.2.1 for Windows (64-bit)I am getting the dreaded iTunes was not installed correctly, Please reinstall iTunes. With error 7 (Windows error 998) popups. Tried already all the known uninstall/install/repair suggestions. Tr

  • Popup not firing on closing browser or refreshing

    Hi ADF experts, I have set the af:document tag uncommittedDataWarning="on". But my popup not firing. I have made inputText's autoSubmit="true" Please help me out. Thanks.

  • Pre-Order Question

    So I pre-ordered Titanfall for Xbox1, but I won't be in town when it comes out and one of my friends really wants to pick it up on the 11th at the midnight release. Is there any way to change the name on the pre-order, or would I have to cancel the o

  • Reset PDF bookmarks when saving as PDF from structured FM - Book 11.0 with fm components (*.book).

    Hi, I've read the forum discussions/solutions on setting PDF bookmarks, but I'm afraid the various solutions appear to only work if you are consistently working in .fm book files, not if your source files are in structured .fm format. For example, I

  • Web Gallery Linking

    Hi Everyone, This may be a simple task but I want to know if there is a way to add a link to a web gallery that I have created in Adobe Bridge CS6 Windows? The web gallery index.html file is created fine, but I want to be able to re-link it back to m