Spool Output getting truncated

Hi,
    I am using ALV grid display in a report.When we schedule the report in background and check the spool,The output is getting truncated (For eg Customer number is getting truncated ).I have checked the print parameters of background job,The format is passed as 'X_PAPER'.
Pls suggest.
Thanks
Rakesh.

Hi Rakesh,
In SM36 during the Job creation Click on Print Specifications , Properties, Double click on Format value and change it to the required width.
Use transaction SPAD to create width if it isn't available.
Vijay

Similar Messages

  • Report output getting truncated in email attachment

    Hello Gurus,
    My requirement is to send a report output as an email attachment.
    I have done the coding for this but have a small problem. In the attachment the report is getting truncated after certain length.
    Can you advise wats the problem ?
    Regards,
    Suhas

    Hello Guys,
    I too was contemplating on those lines. But actually i was calculating the File Size incorrectly.
    Changed the code & now it working !!!!!!!
    BR,
    Suhas

  • Spool Is getting truncated when sent as email attachment

    Hi All,
    We are sending the spool lists for overnight jobs as emails (outlook) to certain users. The problem we are facing is that when the spool is big then not all the pages are getting transferred in the attachment. The list gets truncated.
    Has anyone faced a similar problem and if there is a way around this. Maybe there is some parameter setting in SAP which has to be adjusted.
    Pl advice.
    Thanks

    Hi
    I faced the same problem because in standard SAP dimensions of attachement is hard coded.
    Regards
    Aditya

  • SPOOL data gets truncated when bckground job output sent to spool recepient

    Hi All,
    I am facing a strange problem.
    I have a background job scheduled. Have specified a distribution list as the spool recipients.
    Background jobs output is sent to the recipients as attachment but data is not complete.
    When I check the spool request for that background job it contains 80 pages but the attachment in the recipients inbox contains just 17 pages.
    SP01/SP02 will display settings to display the range of pages but the emaill attachment doest show.
    Can anyone please help me with this?
    We are on ECC 6.0 (Windows2003/MSSQL2005 SP3)
    Regards,
    Yatin

    Hi,
    When the spool content is sent immediately after the background job its size is 14KB.
    I tested by sending spool content via mail using transaction SP01. I mean after the jobs is completed, I go to SP01 and send the SPOOL content manually. This time recipients receive the correct content of 80 pages and size of the document this time is 73KB.
    Regards,
    Yatin

  • How to suppress line #s fr. rows in SPOOL output file when I use GET

    I'm having difficulty suppressing line #s which show up in my SPOOL output. That is, when I run the following
    SPOOL MySpoolOutputFile.txt
    GET SpoolHeader.txt LIST
    where MySpoolOutputFile is my spool output destination and SpoolHeader is what I'm getting and displaying in the console.
    I get a result like the following:
    1 This is my first row
    2 This is my second row
    3 This is my third row
    4 This is my fourth row
    5 This is my fifth row
    I have my environmental variables set to the following:
    SET FEEDBACK OFF
    SET TRIMSPOOL ON
    SET LINESIZE 100
    SET SQLNUMBER OFF
    SET SQLPROMPT ''
    I'd like to suppress the line numbers but can't find any other SQL*PLUS environment variable that seems to let me do this....
    Thanks, in advance, for any advice!
    Chris
    null

    1. Is the first column in the select clause "rownum"?
    --Stephen
    null

  • Spool header is getting truncated in SP01 after ECC6.0 upgrade

    Hi Experts,
    We have recently upgraded our SAP System from 4.6C version to ECC6.0. We are facing some problem with Spool display.
    Issue: Column header is truncated in spool list display through SP01 (Applied necessary notes)/ ZSP01(Created based on note 186603). The column header is not getting truncated while executing report in online mode.
    Can anybody else got the problem or have any suggestions to rectify this problem?
    Rgds,
    Vinodkumar

    Hello Vinodkumar,
    I have seen this problem and the solution was to follow the note 1226758:
    Do not forget Call SPAD and choose Settings -> Spool System -> Other. Select
    'SP01: Number of Columns for List Display from Format'.
    Hope it helps to you.
    Best regards,
    Rafael

  • Line size in Spool output

    Hi
    in spool, wen i get the out put only upto line 255 is getting printed.Rest are getting truncated.How can I change the line size.Can it be done through the programmimg.In report if we define line size then it is valid only for the foreground job and not reflected in the back ground report.Please suggest the needful.

    Hi Rudra Prasanna ... 
    When u r select print button for printing a report.In output device give the output Device and then click on properties button below .
    It will take u to Spool request attributes.
    Now double click on format and press F4 on format
    Differt formats are available now select the format which gives Maximum coloums for printing.Then u can get the Maxi
    Fields at output.
    Hope this solves u r problem.
    Reward points if found helpful.
    Rajesh.

  • Issue in spool output

    Hi all,
    I have one issue in the spool output.
    In the spool output I see some strange results. At the first column the values COL1N, COL1H, COL0N, COL0H, COL2N .... were getting displayed at the first column in every row. Any one of the above values will be getting displayed in each row.
    After that some contents are getting displayed out of which some values got truncated in production.
    The sample out put is getting displayed like below.
    | COL1H | heading1      | heading2       |......
    | COL2N | row1 value1| row1 value 2| ....................
    This is the sample output where the other values (other than col1n, col1h) are coming from the program from internal table.
    After executing the similar job in production after three days it went fine.
    Kindly let me know what is the issue why did it happen so two days before like that.
    Thanks and Regards,
    M.K. Sanath Kumar.

    I can sense about printer settings - can you please check if anybody changed printer settings in those three days?

  • Mail - PDF Getting Truncated

    My requirement is to convert Spool to PDF then send as mail attachment.
    I am using function module SO_DOCUMENT_SEND_API1 to send the email. Email functionality is working fine.. But I have issues in the PDFu2026
    My spool output is more than 255 characters hence PDF output is getting truncatedu2026
    Please suggestu2026
    I could see many post ..but could not see a proper reply

    Hey Vik,
    I doubt if the spool in longer than 255 characters it will be truncated at first place.
    Even if you set the maximum LINE-SIZE your spool cannot display more than 255. May be i am wrong.
    @OP:
    I think you should have a look at the OSS [Note 1226758 - Displaying wide spool requests in SP01|https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=1226758]
    BR,
    Suhas
    PS: At last i got my access to SAP Marketplace ))
    Edited by: Suhas Saha on Feb 23, 2010 2:28 PM

  • ALV Header getting truncated in excel

    I am using the GRid Layout. but when i am downloading the output in the Excel sheet, the headers are getting truncated.
    I have tried increasing the width in the FIELDCAT and also removing the coulmn-optimze option in the layout also. but still after trying the headers are getitng truncated.
    Any pointers how can i download without the headers getting truncated.
    Thanks

    Refer the code snippet:
    Follow this way:
    CONSTANTS :  c_delim TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
    data :it_excel_dwnld TYPE STANDARD TABLE OF t_zzidwnld_data     ,
           wa_excel_dwnld TYPE t_zzidwnld_data .                      .
       CONCATENATE   'Physical Inventory Document'
                    'Item '
                    'Material '
                    'Material Description'
                    'Material Group'                
                    'Plant'
                    'Sloc'
                    'Doc Date'
                    'Book Qty'
                    'Counted Qty'
                    'Value of Phy Inv Count'
                    'Standard Price'
                    'Difference Qty'
                    'ABS Qty'                        
                    'BUn'
    INTO wa_excel_dwnld-line
                                   SEPARATED BY c_delim.
      APPEND wa_excel_dwnld TO it_excel_dwnld.
      CLEAR: wa_excel_dwnld.
    LOOP AT it_output INTO wa_output.
    CONCATENATE   wa_output-iblnr
                      wa_output-zeili
                      wa_output-matnr
                      wa_output-maktx
                      wa_output-matkl       
                      wa_output-werks
                      wa_output-lgort
                      wa_output-bldat
                      v_buchm
                      v_menge
                      v_wrtzl
                      v_stprs
                      v_difqy
                      v_absqy              
      INTO wa_excel_dwnld-line
                           SEPARATED BY c_delim.
        APPEND wa_excel_dwnld TO it_excel_dwnld.
      ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_flname
          filetype                = 'ASC'
          write_field_separator   = '#'
        TABLES
          data_tab                = it_excel_dwnld

  • Spool output not appearing on one page

    Hello Experts,
    When program runs in foreground, I am getting correct output i.e. ALV blocks are displayed on one page only.
    But when running same program in background, I got output in spool and when looked at spool output that time I realized that the ALV blocks are getting printed on new page.
    So instead of displaying 4 pages it is displaying 8 pages in spool.
    I ran the same report on quality in FOreground as well as background and output appears to be correct.
    But not sure why it is giving distorted (printed on new pages) in SPOOL output.
    Appreciate your help.
    Thank you.
    Saurabh

    HI Saurabh,
    Check the Layout which you are passing which scheduling the job. It seems to be a different layout as compared to other system & hence the issue.
    Thanks,
    Best regards,
    Prashant

  • Problem in download to application server- file column is getting truncated

    We have a program for which there are 2 options a list output or file to be placed on the application server. The TXT file is of length 525 characters.
    My problem is while the list output is generated the whole list is getting outputted, but when we take a output on the application server last 10 columns are getting truncated.
    Can somebody give a help on this.
    Thanks in advance.
    Jilly

    Use the function module
    ARCHIVFILE_SERVER_TO_CLIENT
    Pass the values: as download file and destination in the respective fields.
    File to be downloaded in :(Pass the exact file name)
    PATH :                          
    SDEC01\SAPMNT\INT\HR\OUT\FMLA-20080205-0728
    and
    Destination to download the file in:
    TARGETPATH                      C:\DOCUMENTS AND SETTINGS\JILFEM\MY DOCUMENTS\FMLA-20080205-0728
    Regards,
    Jilly

  • Spool not getting created in batch job

    Hello experts,
    We have a requirement of printing BA00, BA01 and LD00 from different application.
    We have done same code for all BA00, BA01, and LD00.
    Normally the code is working fine except in few cases, when batch job is created but spool is not created.
    DATA: job_name TYPE tbtcjob-jobname,
                  number   TYPE tbtcjob-jobcount,
                  print_parameters TYPE pri_params,
                  wv_pripar    TYPE pri_params,
                  wv_arcpar    TYPE arc_params,
                  wv_val       TYPE c VALUE 'X',
                  wv_false     TYPE c VALUE 'X',
                  gv_mandt     TYPE tsp01-rqclient,
                  gv_user      TYPE tsp01-rqowner.
              CLEAR: gv_mandt, gv_user, number.
              gv_mandt = sy-mandt.
              gv_user  = sy-uname.
              job_name = 'DELIVERY_PRINTING'.
              CLEAR: range1.
              range1-sign = 'I'.
              range1-option = 'EQ'.
              range1-low = 'LD00'.
              CLEAR: range1-high.
              APPEND range1 TO range.
              CALL FUNCTION 'JOB_OPEN'
                EXPORTING
                  jobname          = job_name
                IMPORTING
                  jobcount         = number
                EXCEPTIONS
                  cant_create_job  = 1
                  invalid_job_data = 2
                  jobname_missing  = 3
                  OTHERS           = 4.
              IF sy-subrc = 0.
                SUBMIT sd70av2a WITH  rg_kschl IN range
                                WITH  rg_vbeln IN deli_tab
                                TO SAP-SPOOL
                              SPOOL PARAMETERS print_parameters
                              WITHOUT SPOOL DYNPRO
                              VIA JOB job_name NUMBER number
                              AND RETURN.
                IF sy-subrc = 0.
                  CALL FUNCTION 'JOB_CLOSE'
                    EXPORTING
                      jobcount             = number
                      jobname              = job_name
                      strtimmed            = 'X'
                    EXCEPTIONS
                      cant_start_immediate = 1
                      invalid_startdate    = 2
                      jobname_missing      = 3
                      job_close_failed     = 4
                      job_nosteps          = 5
                      job_notex            = 6
                      lock_failed          = 7
                      OTHERS               = 8.
                  IF sy-subrc <> 0.
                  ENDIF.
                ENDIF.
                WAIT UP TO 10 SECONDS.
    ** to give the data to the printer***
    *            CLEAR gv_rqident.
                SELECT SINGLE listident INTO gv_listident FROM tbtcp
                              WHERE jobname = job_name
                               AND  jobcount = number.
              IF sy-subrc = 0.
                MOVE gv_listident to gv_rqident.
                CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
                  EXPORTING
                    spool_request_id = gv_rqident.
              ENDIF.
    The same code is for all the output BA00, BA01 and LD00.
    The issue is that for few batch jobs (which is created in the above code) , spool is not getting created.
    Thanks and Regards,
    Paritosh Pandey

    Hi,
    The code starting from WAIT UP TO 10 SECONDS. - not only does it look attrocious, is error prone (if no free process for executing batch job is available for 10 seconds, or if the job runs for more than 10 seconds, what will happen...?), but seems utterly unnecessary... Is there any reason immediate spool output can not be handled by simply setting PRINT_PARAMETERS-PRIMM = 'X'?
    cheers,
    Janis
    Edit in:
    Ok, i just read Document in spool but not printed... Do not use an output device relying on frontend access methods to do printing from background processing. Frontend is not available during background processing, period. To my knowledge there is no easy, clean solution to this problem other than defining and assigning, per user, output devices not relying on frontend printing. What if the dialog user has logged off by the time batch job finishes..? May the spool remain unprinted?
    Has the SAP Basis refused to define output devices (I have hard time believing this...)? Well, tell them one time to stop being silly and if they do not cooperate, tell the owner of the requirement that it can not be implemented due to uncooperative Basis then... and that the users will have to keep going to SP01 and manualy start the output!
    Message was edited by: Jānis B

  • The last digit of invoice vbeln is getting  truncated  in the file

    Hi Experts,
    I'm facing problem in both quality and production,the last digit of invoice vbeln is getting  truncated  in the file when i do export-> local file ->spread sheet.I'm having an alv report using grid display alv is getting display.when output is displayed  i'm getting vbeln as 0430098109 and when i'm trying to download into XLS file using export local file spread sheet i'm getting vbeln as 043009810, last digit not appering in the file
    Thanks in advance.

    PERFORM reset_component_price.
    LOOP AT tab_documenti .
        IF tab_documenti-waerk = co_krw .
          tab_documenti-netwr = tab_documenti-netwr * 100 .
        ENDIF .
        MODIFY tab_documenti .
      ENDLOOP .
    DESCRIBE TABLE tab_documenti LINES num.
      IF num > 0.
        IF importa = 'X'.
          PERFORM esporta_file.
        ELSE.
          PERFORM stampa2.
        ENDIF.
      ENDIF.
    *&      Form  recupero_trigger_fatturazione
          text
    FORM recupero_trigger_fatturazione.
      SELECT vkorg fkdat kunnr vbeln vtweg spart vbtyp
             INTO CORRESPONDING FIELDS OF TABLE tab_vkdfs
             FROM vkdfs
             WHERE vkorg IN s_vkorg
              AND  fkdat IN s_edatu
              AND  kunnr IN s_kunnr
              AND  vbeln IN s_vbeln
              AND  vtweg IN s_vtweg
              AND  spart IN s_spart
              AND  vbtyp IN s_vbtyp.
    ENDFORM.   
    *&      Form  TERMINO_REPERIMENTO_DATI_DOCUM
    FORM termino_reperimento_dati_docum.
      IF NOT port IS INITIAL. "APAB 26/01/04
        REFRESH l_tab_vbak. CLEAR l_tab_vbak.
        SELECT vbeln
               erdat ernam                "APAB 26/01/04
               vkorg vtweg spart kunnr
               vkbur vkgrp vbtyp auart augru
               INTO CORRESPONDING FIELDS OF TABLE l_tab_vbak
               FROM vbak
               WHERE vbeln IN s_vbeln "EQ tab_vkdfs-vbeln Ceriati
               AND   ernam IN s_ernam "APAB 26/01/04
               AND   kunnr IN s_kunnr
               AND   vkorg IN s_vkorg
               AND   vtweg IN s_vtweg
               AND   spart IN s_spart.
        CHECK sy-subrc EQ 0.
        LOOP AT l_tab_vbak WHERE vkbur IN s_vkbur AND
                                 vkgrp IN s_vkgrp AND
                                 auart IN s_auart AND
                                 augru IN s_augru.
          REFRESH l_tab_vbap. CLEAR l_tab_vbap.
          SELECT vbeln posnr pstyv werks kondm matnr netwr waerk kwmeng
                 netpr prodh taxm1 knumh                "APAB 26/01/04
                 INTO CORRESPONDING FIELDS OF TABLE l_tab_vbap
                 FROM vbap
                 WHERE vbeln EQ l_tab_vbak-vbeln "tab_vkdfs-vbeln.Ceriati
                   AND pstyv IN s_pstyp. "Ceriati
          CHECK sy-subrc EQ 0.
    APAB 26/01/04 start - find order reason
          CLEAR l_tab_vbak-bezei.
          SELECT SINGLE bezei INTO l_tab_vbak-bezei FROM tvaut
                              WHERE spras EQ sy-langu
                              AND   augru EQ l_tab_vbak-augru.
    find client description
          CLEAR : l_tab_vbak-name1,l_tab_vbak-land1.
          SELECT SINGLE name1 land1 INTO (l_tab_vbak-name1,l_tab_vbak-land1)
                                                                   FROM kna1
                                              WHERE kunnr = l_tab_vbak-kunnr.
    Ceriati imposte
          SELECT SINGLE taxkd INTO tab_documenti-taxm1 FROM knvi
                                     WHERE kunnr = l_tab_vbak-kunnr
                                     AND  aland = 'IT'
                                     AND  tatyp = 'MWST'.
          LOOP AT l_tab_vbap WHERE werks IN s_werks AND
                                   kondm IN s_kondm AND
                                   matnr IN s_matnr.
            IF l_tab_vbak-auart = 'Z1OI' AND ( l_tab_vbap-pstyv = 'TAX' OR
                                               l_tab_vbap-pstyv = 'TAD' ).
              SELECT SINGLE * FROM vbup WHERE vbeln = l_tab_vbap-vbeln
                                        AND   posnr = l_tab_vbap-posnr.
              CHECK vbup-fksaa NE 'C'.
            ENDIF.
            CLEAR vbep.
            CLEAR: qta_uscita_t, qta_cons_t.
            REFRESH l_tab_vbfa.
            SELECT vbelv posnv posnv vbeln posnn vbtyp_n rfmng
            INTO CORRESPONDING FIELDS OF TABLE l_tab_vbfa
               FROM vbfa
               WHERE vbelv EQ l_tab_vbap-vbeln  AND
                     posnv EQ l_tab_vbap-posnr AND
                     vbtyp_n EQ 'J'.
            LOOP AT l_tab_vbfa.
              qta_cons_t = l_tab_vbfa-rfmng + qta_cons_t.
            ENDLOOP.
            REFRESH l_tab_vbfa.
            SELECT vbelv posnv posnv vbeln posnn vbtyp_n rfmng bwart
            INTO CORRESPONDING FIELDS OF TABLE l_tab_vbfa
               FROM vbfa
               WHERE vbelv EQ l_tab_vbap-vbeln
                 AND posnv EQ l_tab_vbap-posnr
                  AND BWART NE SPACE
                 AND ( vbtyp_n EQ 'R'
                  OR   vbtyp_n EQ 'h' ).
            LOOP AT l_tab_vbfa.
              IF l_tab_vbfa-vbtyp_n = 'h'.
                l_tab_vbfa-rfmng = l_tab_vbfa-rfmng * -1.
              ENDIF.
              qta_uscita_t = qta_uscita_t + l_tab_vbfa-rfmng.
            ENDLOOP.
            SELECT * FROM vbep WHERE vbeln EQ l_tab_vbap-vbeln AND
                  posnr EQ l_tab_vbap-posnr
                 AND edatu IN s_edatu
                  ORDER BY edatu.
              CHECK vbep-bmeng NE 0.
              MOVE vbep-bmeng TO tab_documenti-menge.
    CLEAR: qta_uscita,qta_cons.
              IF qta_cons_t = 0.
                CLEAR qta_cons.
                IF qta_uscita_t NE 0.
                  IF qta_uscita_t > vbep-bmeng.
                    qta_uscita = vbep-bmeng.
                    qta_uscita_t = qta_uscita_t - vbep-bmeng.
                  ELSE.
                    qta_uscita = qta_uscita_t.
                    CLEAR qta_uscita_t.
                  ENDIF.
                ENDIF.
              ELSE.
                IF qta_cons_t > vbep-bmeng.
                  qta_cons = vbep-bmeng.
                  qta_cons_t = qta_cons_t - vbep-bmeng.
                ELSE.
                  qta_cons = qta_cons_t.
                  CLEAR qta_cons_t.
                ENDIF.
                IF qta_uscita_t NE 0.
                  IF qta_uscita_t > vbep-bmeng.
                    qta_uscita = vbep-bmeng.
                    qta_uscita_t = qta_uscita_t - vbep-bmeng.
                  ELSE.
                    qta_uscita = qta_uscita_t.
                    CLEAR qta_uscita_t.
                  ENDIF.
                ENDIF.
              ENDIF.
              qta_cons = qta_cons - qta_uscita.
    CLEAR: tab_documenti-inco1, tab_documenti-vsart,
                     tab_documenti-bstkd, tab_documenti-bstdk.
              SELECT SINGLE inco1 vsart zterm bstkd bstdk
                                                INTO (tab_documenti-inco1,
                                                     tab_documenti-vsart,
                                                     tab_documenti-zterm,
                                                     tab_documenti-bstkd,
                                                     tab_documenti-bstdk)
                                                      FROM vbkd
                                           WHERE vbeln = l_tab_vbap-vbeln
                                           AND   posnr = l_tab_vbap-posnr.
    IF sy-subrc NE 0.
                SELECT SINGLE inco1 vsart zterm bstkd bstdk
                                                  INTO (tab_documenti-inco1,
                                                        tab_documenti-vsart,
                                                       tab_documenti-zterm,
                                                       tab_documenti-bstkd,
                                                       tab_documenti-bstdk)
                                                                  FROM vbkd
                                             WHERE vbeln = l_tab_vbap-vbeln
                                             AND   posnr = '000000'.
              ENDIF.
    CLEAR makt.
              SELECT SINGLE * FROM makt WHERE matnr = l_tab_vbap-matnr
                                          AND spras = sy-langu.
              IF sy-subrc = 0.
                tab_documenti-maktx = makt-maktx.
              ENDIF.
    IF qta_cons = l_tab_vbap-kwmeng.
                tab_documenti-qta_c = vbep-bmeng.
                tab_documenti-qta_a = l_tab_vbap-kwmeng - qta_cons
                                                        - qta_uscita.
                CLEAR qta_cons.
              ELSEIF
               qta_cons <= vbep-bmeng.
                tab_documenti-qta_c = qta_cons.
                tab_documenti-qta_a = vbep-bmeng - qta_cons - qta_uscita.
    ENDIF.
    l_tab_vbap-netwr = l_tab_vbap-netpr * ( tab_documenti-qta_a +
                                                     tab_documenti-qta_c ).
    MOVE: l_tab_vbak-vbeln TO tab_documenti-vbeln,
                    l_tab_vbak-vkorg TO tab_documenti-vkorg,
                    l_tab_vbak-vtweg TO tab_documenti-vtweg,
                    l_tab_vbak-spart TO tab_documenti-spart,
                    l_tab_vbak-kunnr TO tab_documenti-kunnr,
                    l_tab_vbak-vkbur TO tab_documenti-vkbur,
                    l_tab_vbak-vkgrp TO tab_documenti-vkgrp,
                    l_tab_vbak-vbtyp TO tab_documenti-vbtyp,
                    l_tab_vbak-auart TO tab_documenti-auart,
                    l_tab_vbak-augru TO tab_documenti-augru,
                    l_tab_vbak-bezei TO tab_documenti-bezei, "APAB 26/01/04
                    l_tab_vbak-erdat TO tab_documenti-erdat, "APAB 26/01/04
                    l_tab_vbak-ernam TO tab_documenti-ernam, "APAB 26/01/04
                    l_tab_vbak-name1 TO tab_documenti-name1, "APAB 26/01/04
                    l_tab_vbak-land1 TO tab_documenti-land1, "APAB 26/01/04
                    tab_vkdfs-fkdat  TO tab_documenti-fkdat.
              MOVE: l_tab_vbap-vbeln TO tab_documenti-vbeln,
                    l_tab_vbap-posnr TO tab_documenti-posnr,
                    l_tab_vbap-pstyv TO tab_documenti-pstyv,
                    l_tab_vbap-werks TO tab_documenti-werks,
                    l_tab_vbap-kondm TO tab_documenti-kondm,
                    l_tab_vbap-matnr TO tab_documenti-matnr,
                    l_tab_vbap-netwr TO tab_documenti-netwr,
                    l_tab_vbap-waerk TO tab_documenti-waerk,
                    l_tab_vbap-netpr TO tab_documenti-netw1, "APAB 26/01/04
                    l_tab_vbap-prodh TO tab_documenti-prodh.
    MOVE: vbep-edatu TO tab_documenti-fkdat.
    IF  NOT tab_documenti-qta_a IS INITIAL
              OR  NOT tab_documenti-qta_c IS INITIAL.
                APPEND tab_documenti.
              ENDIF.
    CLEAR tab_documenti.
            ENDSELECT.
          ENDLOOP.
        ENDLOOP.
        CLEAR tab_documenti.
    ENDIF.
    IF NOT boll IS INITIAL. "APAB 26/01/04
        LOOP AT tab_vkdfs WHERE vbtyp EQ 'J'.
          SELECT SINGLE * FROM vbuk WHERE vbeln EQ tab_vkdfs-vbeln.
          CHECK sy-subrc = 0.
          IF vbuk-wbstk = 'C'.
            PERFORM prendi_dati.
          ELSE.
            IF port EQ 'X'.
              PERFORM prendi_dati.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.

  • Leading zeros getting truncated in plsql report

    Hi,
    I've a requirement of a plsql report with an excel output. When i see the output in excel, the leading zeros get truncated. Is there any suggestion for this, other than enclosing within ' '. Because this particular solution prints the output along with quotes which is not acceptable. Please help me with this.
    -Divya Goteti

    Just prefix with =" and " at teh end of column. like
    select '="' || bank_account_no || '"' from employee_bank_list
    but if you are using same report for pdf also then use decode in pre/postfix.
    Imran

Maybe you are looking for

  • How we can raise same No of Invoice after Deletion of Particular Invoice

    Dear All,           Pls tell me if i delete a particular Invoice in SAP. And after deletion of Invoice I want to be generate same no of another invoice.  Is It possible. And what is the procedure to generate..   (For Example- if it is a last invoice

  • Cfc component with readonly properties and web services

    I want to transfer a cfc component across coldfusion web services as a data transfer object. This cfc component is received when calling a load web service, and then supplied to an update web service. Some properties within the cfc need to be readonl

  • File uploads stalling when using mac browsers?!

    Im having a recurring issue where i cannot complete file uploads to popular sites such as YouTube, SendSpace, FileLodge, DropLoad and YouSendIt. On all mac browsers (safari, firefox, netscape etc) the upload starts as normal and (via a network monito

  • Default name for saving report output

    Hi, I created an Oracle Report that is run via the rwservlet. Users will be prompted to view/save the output when destype=cache and desformat=pdf, spreadsheet, or delimiteddata. When they try to save the output, the default file name is rwservlet.pdf

  • New Mac OS - MBP convert from Windows

    I just purchased my first Mac and I am loving it!!!  I've used Windows for the past 20 years.  I'm trying to decide if I should use something like Paralells to have W7 on my MBP.  Since I can install Office 2011, the only reason to have W7 installed