Excel alligment is not coming proper

Hi guru
My requirement  is convert spool to excel format .
i am using  'RSPO_RETURN_ABAP_SPOOLJOB' and 'SO_RAW_TO_RTF' function module  and after that i loop the internal table value in one string . my problem is that excel alignment is not coming proper and all are coming in one cell . please help me i need to finish this requirement
<< Priority normalized >>
Edited by: Rob Burbank on Jan 10, 2012 12:21 PM

my code is this please provide me exact solution
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
        EXPORTING
          rqident              = gd_spool_nr                    "Spool Request Number
          first_line           = 1
        TABLES
          buffer               = it_spool_xls                            "Internal table that will have the Spool Request No data
        EXCEPTIONS
          no_such_job          = 1
          not_abap_list        = 2
          job_contains_no_data = 3
          selection_empty      = 4
          no_permission        = 5
          can_not_access       = 6
          read_error           = 7
          OTHERS               = 8.
   LOOP AT it_xls_spool.
        CONCATENATE xls_string it_xls_spool INTO xls_string.           "xls_string will have the data as one string
      ENDLOOP.
   CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          text     = xls_string                         "String of String data type
         =_       =
        IMPORTING
          buffer   = xls_str                             "String of XString data type
        EXCEPTIONS
          failed   = 1
          OTHERS   = 2.
      IF sy-subrc <> 0.
        message 'converted not in excel' type 'E' .
      ENDIF.
pdf_content = cl_document_bcs=>xstring_to_solix( xls_str ). 
but data is not coming with proper alligment please suggest me where i need to change the code.

Similar Messages

  • Date format not coming proper after formula

    Hi All,
    I have two time characteristics "Goods Issue date" and "Goods Return date" and One key figure "No. of days elapsed".
    The key figure "number of days elapsed" is being calculated by taking difference of "goods issue date" from "goods return date", but the format for that is not coming proper for example:-
    Goods Issue Date is 21.06.2006
    Goods Return Date is 22.08.2006
    According to formula No. of days elapsed shud be 62
    but it is coming as 04.03.0001.
    Please help as it is a urgent requirement.
    Much Appreciated,
    Sunil Morwal.

    HI,
    Change the data type to number and try it out.
    i think i will solve your problem.
    Cheers,
    viren.

  • Output form is not coming proper.

    Hi,
    I am using call function CONVERT_OTFSPOOLJOB_2_PDF to convert OTF spool number to PDF file.
    When I gone to tcode SP01 and checked out the output of same spool number then found out the proper output .
    But when I run my program using above function module to convert the spool number to PDF file then in PDF file some chanracters coming in chaniese.
    So what is the proper solution for the same.
    Thanks in advance.
    Regards,
    Vikram

    Try standard program RSTXPDFT4 to convert spool to PDF. Just give the spool request no and it will be converted to PDF. If this program converts the spool correctly then problem is with ur customized program.
    anya

  • Link Display is not coming proper.

    Hi All,
    I am Creating a link and where I have to display "Please click here to fetch Category ". But the problem I am facing is the message is not comming in one line rather it is coming wrapping the whole message. I need to do No wrap of that link so that whole message come in same line.
    Please let me know how to do this ?
    Thanks
    Debashree

    Hi Tapas,
    I have tried the row layout but I am facing same issue.
    Let me give you the structure.
    I have one cellformat. Under that I have labeledfieldlayout. Under that i have different item. There i have created a rowlayout region and under that i have created a cellformat and there i created the link. For this cell i have used width 100% colspan 10. then also it is not working. Please let me know how to do that?.
    Thanks
    Debashree

  • While saving alv report to local file(excel) OA number not coming fully..

    HI,
    actually in my aliv report output OA no contains 10 characters (0010100276) but after saving into local file (excel) , it appearing in excel file only 7 characters(1010027) any one plz tell what is the reason how we rectify it.......
    with regards
    Ganesh.

    Hello Ganesh,
    When you export the file from SAP to your PC, select "unconverted" radio button.  Enter a file name and path, then save it with a text file (.txt) extension.  Then do the following steps on your PC.
      1.  Open the Excel application.
      2.  Open the text file in the application.  The system will automatically open the text import wizard.
      3.  Select "Fixed Width", then press next pushbutton.
      4.  After you parse the columns, press next pushbutton.
      5.  Go to the column where you want to keep leading zeros.  Select "Text" in the "Column data format" box.
    Kind Regards,
    Rae Ellen Woytowiez
    Edited by: Rae Ellen Woytowiez on Mar 8, 2011 4:27 PM

  • Date not coming in proper format after applying formula in Update Rules

    Hi All,
    I have two time characteristics "Goods Issue date" and "Goods Return date" and One key figure "No. of days elapsed".
    The key figure "number of days elapsed" is being calculated by taking difference of "goods issue date" from "goods return date", but the format for that is not coming proper for example:-
    Goods Issue Date is 21.06.2006
    Goods Return Date is 22.08.2006
    According to formula No. of days elapsed shud be 62
    but it is coming as 04.03.0001.
    Please help as it is a urgent requirement.
    Much Appreciated,
    Sunil Morwal.

    Dear Sunil,
      Kindly check if creating 2 new KeyFigures (DATE) will be of help by assigning the said "two time characteristics" values.
      From these 2 new KYFs, apply your formula..
      Hope this helps..
      Thanks.
    Message was edited by: Arnold Padiernos

  • In excel sheet tab name is not coming-urgent

    hi all,
    one small rewquirement. if u run this test program it opens a excel sheet which contains signle tab. here tab name is not coming. i dont no hot to display tabname here.anybody can  make the changes and send me the code.
    i am sending my code below.
    thanks,
    maheedhar.t
    REPORT  ytestvij MESSAGE-ID zv.
    TABLES sscrfields.
    TYPE-POOLS: icon.
    TYPES : BEGIN OF zfnames_ds,
            reptext TYPE reptext,
            END OF zfnames_ds.
    TYPE-POOLS ole2 .
    DATA: wa_fntxt TYPE smp_dyntxt.
    DATA : wa_t75_booking TYPE zvt75_booking_h,
            t_t75_booking TYPE STANDARD TABLE OF zvt75_booking_h.
    DATA : wa_fields TYPE dfies,
            t_fields TYPE STANDARD TABLE OF dfies.
    DATA : wa_fnames TYPE zfnames_ds,
            t_fnames TYPE STANDARD TABLE OF zfnames_ds.
    handles for OLE objects
    DATA: h_excel TYPE ole2_object,        " Excel object
          h_mapl TYPE ole2_object,         " list of workbooks
          h_map TYPE ole2_object,          " workbook
          h_zl TYPE ole2_object,           " cell
          h_f TYPE ole2_object.            " font
    DATA  h TYPE i.
    DATA : lin TYPE i.
    data: excel       type ole2_object,
          application type ole2_object,
          books       type ole2_object,
          book        type ole2_object,
          sheet       type ole2_object,
          cell        type ole2_object,
          column      type ole2_object.
    PARAMETERS : p_input TYPE localfile.
    Add button to application toolbar
    SELECTION-SCREEN FUNCTION KEY 1.  "Will have a function code of 'FC01'
    INITIALIZATION.
    Add displayed text string to buttons
      wa_fntxt-icon_id = icon_xls.
      wa_fntxt-icon_text = 'Input File template'.
      wa_fntxt-quickinfo = 'T75 Header Data'.
      sscrfields-functxt_01 = wa_fntxt.
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'FC01'.
    do nothing
        PERFORM open_excel.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_input.
      PERFORM get_filename USING p_input.
    START-OF-SELECTION.
    *set pf-status 'ONE'.
    END-OF-SELECTION.
      WRITE : lin.
    *&      Form  GET_FILENAME
          text
    -->  p1        text
    <--  p2        text
    FORM get_filename USING p_file TYPE rlgrap-filename . "localfile.
      DATA : w_rc TYPE i.
      DATA : wa_file_table TYPE file_table ,
              t_file_table TYPE STANDARD TABLE OF file_table.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
       EXPORTING
         WINDOW_TITLE            =
         DEFAULT_EXTENSION       =
         DEFAULT_FILENAME        =
         FILE_FILTER             =
         INITIAL_DIRECTORY       =
         MULTISELECTION          =
        CHANGING
          file_table              = t_file_table[]
          rc                      = w_rc
         USER_ACTION             =
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          OTHERS                  = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT t_file_table INTO wa_file_table.
        p_file = wa_file_table-filename.
      ENDLOOP.
    ENDFORM.                    " GET_FILENAME
    *&      Form  open_excel
          text
    -->  p1        text
    <--  p2        text
    FORM open_excel.
    SELECT * FROM ZVT75_BOOKING_H
              INTO TABLE t_t75_booking
              UP TO 10 ROWS.
    start Excel
      CREATE OBJECT h_excel 'EXCEL.APPLICATION'.
      PERFORM err_hdl.
      SET PROPERTY OF h_excel  'Visible' = 1.
      PERFORM err_hdl.
    get list of workbooks, initially empty
      CALL METHOD OF h_excel 'Workbooks' = h_mapl.
      PERFORM err_hdl.
    add a new workbook
      CALL METHOD OF h_mapl 'Add' = h_map.
      PERFORM err_hdl.
    output column headings to active Excel sheet
      PERFORM fill_cell USING 1 1 1 'Financial year'.
      PERFORM fill_cell USING 1 2 1 'Financial quarter'.
      PERFORM fill_cell USING 1 3 1 'Customer number'.
      PERFORM fill_cell USING 1 4 1 'Booking Year'.
      PERFORM fill_cell USING 1 5 1 'Financial quarter'.
      PERFORM fill_cell USING 1 6 1 'Contract type'.
      PERFORM fill_cell USING 1 7 1 'Sub Contract type'.
      PERFORM fill_cell USING 1 8 1 'Customer purchase order number'.
      PERFORM fill_cell USING 1 9 1 'Booking Amount'.
      PERFORM fill_cell USING 1 10 1 'Currency Key'.
    LOOP AT t_t75_booking into wa_t75_booking.
    copy items to active EXCEL sheet
       H = SY-TABIX + 1.
       PERFORM FILL_CELL USING H 1 0 wa_t75_booking-BOOKYEAR.
       PERFORM FILL_CELL USING H 2 0 wa_t75_booking-BOOKQTR.
       PERFORM FILL_CELL USING H 3 0 wa_t75_booking-.
       PERFORM FILL_CELL USING H 4 0 wa_t75_booking-BOOKYEAR.
       PERFORM FILL_CELL USING H 5 0 wa_t75_booking-BOOKQTR.
    ENDLOOP.
    disconnect from Excel
      FREE OBJECT h_excel.
      PERFORM err_hdl.
    ENDFORM.                    " open_excel
    *&      Form  ERR_HDL
          outputs OLE error if any                                       *
    -->  p1        text
    <--  p2        text
    FORM err_hdl.
    data test type sy-subrc.
    test = sy-subrc.
      IF test <> 0.
         Message e000(ZV) with 'Error in OLE-Automation:'.
        STOP.
      ENDIF.
    ENDFORM.                    " ERR_HDL
          FORM FILL_CELL                                                *
          sets cell at coordinates i,j to value val boldtype bold       *
    FORM fill_cell USING i j bold val.
      CALL METHOD OF h_excel 'Cells' = h_zl EXPORTING #1 = i #2 = j.
      set property of sheet 'Name'  = 'T75'.
      PERFORM err_hdl.
      SET PROPERTY OF h_zl 'Value' = val .
      PERFORM err_hdl.
      GET PROPERTY OF h_zl 'Font' = h_f.
      PERFORM err_hdl.
      SET PROPERTY OF h_f 'Bold' = bold .
      PERFORM err_hdl.
    ENDFORM.

    Hi,
    Look at the below thread, i posted complete code in this one, just copy that Program and past in your SAP and run the Program, it will create 3 sheets with the names also, then look at the Sheet name in the code, you will understand where to add the code
    Re: format an excel
    Regards
    Sudheer

  • Print out in MB90 for GRN is not coming in English

    Dear Friends,
    While taking the print out in MB90 for GRN document, it is not coming in English.It is coming in some unreadableformat.
    In MN21 I have mentioned the language as EN.
    In the configuration of output type WE03 I have mentioned the language as EN intransaction code M706.
    A reply will be highly appreaciated.
    Regards
    Rutabhadra Panda

    hi
    check whether the printer you installed is having the proper driver.

  • Net Value in QUOTATION is not coming

    Hello,
    Net value is not coming at HEADER LEVEL and ITEM LEVEL.
    Done with the all customization in case of pricing.
    At Sales Org level, Doc pricing procedure, Customer pricing procedure everything has been properly Customized.
    (Here i am not facing any issue with pricing determinition)
    Let me know is there exiist any maintaining pricing procedure like in ECC.
    Waiting for the early reply.
    Regards,
    Sathyadev.
    Edited by: Kanagala Sathyadev on Mar 4, 2010 12:57 PM
    Edited by: Kanagala Sathyadev on Mar 4, 2010 1:15 PM

    Hello Rajiv,
    i am getting pricing procedure determintion is not happening at Salesorganization, distrbution channel. and division.
    But as per the error disply i am done with the all customisation settings in the system.
    Like Customer pricing procedure at BP SOLD TO PARTY level,
    Doc Pricing procedure at doc
    At BP level maintained SALES AREAS with the proper pricing procedures maintained ant Determinition Procedure.
    Regards,
    Sathydev

  • Tax rate is not coming up in PO

    Hi,
    The rate is not coming for one of the tax condition type in the PO
    1)Tax percentage 12 percent is maintained against the condition type in FV11.
    2)Calculation schema is proper.
    3) Tax code is maintained properly .
    this problem has arised after migrating to ECC6.0.Earlier version was 4.7
    the base amount in PO is also zero condition type BASB in the tax calc procedure

    Is the material taxable? Check material master
    Also check the invoice tab of the PO to verify if tax code is getting populated and what jurisdiction codes. Then check ftxp for tax rates maintained for that combination or not.
    Edited by: SB on Sep 17, 2008 10:46 PM

  • VFL Speaker sound from both the front speakers while FR sound is not coming out at all.

    I have a creative gigaworks s750 connected to a xtreme gamer sound card. The system was working absolutely fine but now it has started behaving very strangely; system is playing back Front Left Speaker sound from both the front speakers while Front Right sound is not coming out at all. If i click the front right speaker in audio console speaker setup wizard, no sound comes. However when i click the front left speaker, sound comes out of both speakers. I counter checked it with playing 5.1 dts movie and muting all the speakers except the front left one from ac3 filter, sound came out of both the front speakers. However when i muted all the channel except the front right, no sound was coming out of front right speaker.
    Message Edited by hussain on 06-10-2009 10:26 PM

    Just want to add another relieved reader of this thread.  I had lost the sound to my speakers even though I had sound to headphones. I was convinced it was a damaged headphone jack because I had pushed the headphone plug in harder the last evening when my wife complained that she could still hear the speakers while I listened with the headphones.  The next morning--no speaker sound.
    I spent a few hours searching the web to see how to disassemble a satellite A505 and get to the jack.  But I wasn't even sure I could get a proper replacement jack that fit, and I was concerned that small damage, say to the ribbon connectors could render the computer useless--a large price to pay for just missing audio.  
    Fortunately, I stumbled onto this thread and I recalled I had put the unit to sleep the night before--something I don't usually do, but I didn't want all the Chrome web sites to have to reload so I just put it to sleep.
    When I put it to sleep again and fired it up--Sound!  I am so glad to find this solution so I just want to let people know it remains a viable option.
    Doug

  • Condition value in billing not coming properly.

    Hi All,
    We have an issue wherein the condition value in billing document is not coming properly.
    When qty is multiplied by the price the value should come as 208.04 ( 54.51 * 4 qty ), but the condition value is coming as 16.77.
    We checked but could not find any proper reason for this.
    When checked in details of condition type, we can see the Condition Origin as manually entered, but we are ot ale to trace the changes and also who entered the condition manually.
    Kindly advise on the issue as it

    Hi Mr. Satish,
    I agree with Mr. Rajesh and for your 2nd question.
    We can easily track down who entered the condition type in order
    there are two possiblities
    Either user who created the order, enter that condition type, that will not recorded in the changes so you can see the user id at header level--> on sales data page "Created by"
    If some other user come in VA02 and enter the condition type then you can see it in
    Go to Menu "Enviroment" --> Click at changes --> your document number is there --> Execute and see who entered it
    Regards
    MT

  • Presentation Services not coming up after modifying instanceconfig.xml

    Hi,
    I am trying to export more than 500 rows to excel from OBIEE dashboard. (500 is default). So I modified instanceconfig.xml file to add below tags in both Pivot and Table sections.
    <MaxVisibleColumns>5000</MaxVisibleColumns>
    <MaxVisiblePages>2500</MaxVisiblePages>
    <MaxVisibleRows>500000</MaxVisibleRows>
    <MaxVisibleSections>5000</MaxVisibleSections>
    Now my OBIEE presentation services are not coming up and found the error message in log saying: "Unknown element - MaxVisibleColumns".
    Appreciate any ideas how to fix this. Thanks.

    Hi,
    I solved my problem, i set up only the parameter MaxVisibleRows and it works fine!
    Export to Excel from Analysis - 500 row limit? ----------------------this thread given final solution as mention above.
    Re: OBIEE 11g - Download All/Display All of rows in Answers this thread also given some solution.
    Please refer this link.
    http://obieeelegant.blogspot.in/2011/09/unable-to-export-all-rows-from-request.html
    http://123obi.com/2011/03/increase-number-of-rows-to-displayexport-to-excel-from-analysis/
    Award points it is useful.
    Thanks,
    satya
    Edited by: satya R on Apr 27, 2012 11:14 PM
    Edited by: satya R on Apr 27, 2012 11:15 PM

  • 0CSM_USER_TEXT Text not coming through to  PSA

    Hi,
    I install a standard data source 0CSM_USER_TEXT to extract data from ECC to BI.
    RSA3 extraction gives the username and text. But the text info not coming to BW. Not even to PSA. The only user that has the text is for the userid ALEREMOTE.
    This is the case in Dev and Production system. Everything is fine in quality system. It must be something related to authorization.
    I see some people facing the issue but no one posted the proper solution.
    Appreciate if some one can help.
    Regards

    text messages aren't supposed to come through on iPads.

  • My Trips and Expenses - Create new expense report is not coming up..

    Hi,
    We are facing a issue in T&E that, when we try to click on "Create new Expense Report" from My Trips and Expenses it is not coming up..
    And same when we execute the backend application through SE80 it is coming fine.
    Please anyone suggest the root cause..
    Your help would be much appreciated...

    Hi Veer,
    Yes, I just tested this thing out in 11.1.1.5. Please find more details below.
    1. I create a sample 'BIConsumer' user.
    2. Logged into the BI Server.
    3. Navigated to Catalog and clicked on New
    4. I could get only two options 'Report Job' and 'Action Intelligence'.
    To provide proper privileges,
    1. Logged into BI Server as BIAdministrator.
    2. Navigated to Administration -> Manage Privileges -> Catalog/
    3. Given explicit permissions to 'BIConsumer' to create folders and 'My folders and Dashboard'.
    To verify,
    1. Logged back to BI Server as 'BIConsumer' user.
    2. Now, in the catalog could see 'New Folder' option under 'My folders'
    For further analysis, can you please check which roles this particular user is having? You can click on username at the top right corner -> My Account->Roles and Catalog Groups.
    Thank you,
    Dhar

Maybe you are looking for

  • Issues with installing windows on a new macbook pro retina.

    Hello, First time using bootcamp on my new macbook and I am running into an issue. I have read the troubleshooting guide and everything else and no matter what I do I get the same problem. The issue is that when bootcamp restarts after partitioning m

  • Flat  file to upload data using BDC for transaction MM01

    Hi I am trying to update data using bdc code has been attached below using a txt file. It is updating the first set of data into the table mara ,but  for the rest it is not All the data from txt file has being loaded to internal table , but the probl

  • Sending a 3DES encrypted zip file as one fields in the SOAP request xml.

    Dear All, We have a requirement to - to create a text file, after mapping and content converisons, out of an IDoc xml file, - zip this file - encrypt this file using 3DES - send this encrypted file as one of the tags of an xml request file to a webse

  • Triger extract is not  working for USERDETAILS object.

    Dear MI experts, I am doing custom client integration. In that we have faced a problem. Trigger extract is not  working for USERDETAILS object in SWCV SAP BASIS 7.10. 1. I have assign the SWCV SAP BASIS 7.10, user define SWCV to device. 2. I have che

  • Why does my welcome screen say my trial is expired?

    i purchased pse 12 and intalled over pse10.. everything was fine.  then i tried to back up my catalog, and the backup stopped at 33%  now the welcome screen says that my trial has expired...  why and how can I fix this and back up my catalog?