Using CONVERT_ABAPSPOOLJOB_2_PDF - 2 PDFs are being generated instead of 1

We are doing upgrade project and problem what i am facing is that
when a mail sent to vendor 2 PDF files are sent. Earlier it was sending 1 file as attachment in 4.6 C.
Can any body help on this issue

Do they contain the same/are they identical? Did you maybe change the page so that two copies are generated? What do you use to create the form - SAPScript or Smartforms?
Markus

Similar Messages

  • How can I turn off archive logs are being generated by system? (ugrent)

    Dear all,
    How can I turn off archive logs are being generated by system?
    Best Regards,
    Amy

    Sorry not to you @kamran its to OP.accidently it reply button pressed for you
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145750508 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 262144 bytes
    Database mounted.
    SQL> alter database noarchivelog
      2  /
    Database altered.
    SQL> Khurram

  • Multiple ALEAUD Idocs are being generated per original Idoc

    We have the following scenario in PI:
    ERP (IDOC)> PI (JDBC)> 3rd Party
    PI sends ALEAUD idocs back to ERP when the process is successful.  Program RBDAPP01 is then ran on a schedule to update the ALEAUD idoc status, which in turn, updates the idoc status of the orignal idoc sent from ERP (03 to 12). 
    We just upgraded our PI from 7.0 to 7.1.  Now, it seems multiple ALEAUD idocs are being created for each ERP outbound idoc.  It used to be 1-to-1.  From what I can tell, it look like an ALEAUD it created for every receiver.  For example, if we sent one idoc and the data goes to 3 receivers, 3 ALEAUD idocs are created.   This causes an issue because the first ALEAUD idoc will update the original outbound idoc to status 12, but any other ones will take it from status 12 to status 09.  We want it to stay in status 12. 
    Any ideas why 7.1 would be any different?

    This seems to be the standard behavior. I will explain it.
    If an idoc comes and message is sent to say three receivers, all the three message  should generate the ack unless they are not disabled. And in this case you will find multiple ALEAUD message at sender. In case the receiver adapters are like File, JDBC which do not support application ack, then ALEAUD won't be sent and you will receiver "Applicaition Ack Not Supported". With this error, if multiple ack are seen in sender then I guess they won't actually perform any update.
    Regards,
    Prateek

  • PDFs are not generated from Burst

    Hi all
    I am getting this error when i schedule my report to run:
    Document generation failed
    [INSTANCE_ID=V110APLFFC006.1305547398367] [OUTPUT_ID=1035][ReportProcessor]Error rendering documentoracle.xdo.servlet.scheduler.ProcessingException: [ReportProcessor]Error rendering document
    at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.renderReport(BurstingReportProcessor.java:455)
    at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.onMessage(BurstingReportProcessor.java:127)
    at oracle.xdo.enterpriseScheduler.util.Checkpoi
    This is my bursting delivery query below (which took me a loooong time to figure out!). I am bursting to the file system on the OBIEE server. Funnily enough when i change the output format to RTF, then the bursting works perfectly, but if i change it to PDF, i get this error. I have looked and looked for a reason as to why this happens but i have no idea. I can see in the job history that the data is split correctly and i can see that it generates the documents (they are shown when i click on Republish). Please if anyone has any idea, please reply - i desperately want to get this working, and i have no idea why it doesnt work.
    I have checked the logs and it seems that everything generates correctly, and when i open the .out files produced in AdobeReader everything opens successfully and the document has the correct information. It is also not related to permissions on the folder specified in the bursting query -> if i use the runReport webservice for the same report and specify C:\Temp as the output path ( and pdf as the attributeFormat), the file is written out correctly. It seems that the problem is with writing out more than one pdf file, but why???????? Not sure if it has anything to do with the scheduler at all ( i run the report by using the RunNow option in the scheduler)?
    Thanks very much for any and all help!
    SELECT nvl("NAME",0) KEY,
    'OIC' TEMPLATE,
    'en-us' LOCALE,
    'PDF' OUTPUT_FORMAT,
    'FILE' DEL_CHANNEL,
    'C:\Temp\' PARAMETER1,
    "NAME" PARAMETER2
    from
    (select "EXT"."NAME" as "NAME",
    "RES"."AT12" as "AT12"
    from "JM"."EXT" "EXT",
    "CN"."RES" "RES"
    where "RES"."AT12" = "EXT"."ID" )

    HI,
    Kidnly check whether Cost Center is maintained in the Work Center which is attached in the Maint. Plan
    Regards,
    Chandru.

  • E-invoice (two invoices are being emailed instead of one)

    Hi,
    When carrying out the e-invoice process customers receive two emails of the same invoice instead of one. Please could someone point me in the right direction to solve this issue.
    Thanks in advance.

    Hi,
    Check if you have defined twice the message in VV33. Check the entries in table NAST (number of entries, ...)
    Sometimes, some mail boxes where have a lot of messages, doesnt know if they have sent the message, so, they send twice or more until they know that it has been sent. So, check how many entries you have in SOST. If you have a lot, reorganize sost. So, check  Note 510969 - SAPoffice: Reorganization - Corrections and related notes.
    I hope it helps you
    Regards,
    Eduardo

  • How do we know how many PDFs are generated?

    Hello All-
    We have created an Application ID with enough credentials on it to call the Adobe Services and our developers are using WebServices to call the Form Server in their code with that particular App Id and Generate the PDFs and what we really want to know is if there is any setting in the Adminui or in the code where we can set that and see how many PDFs are being generated for a period of time from that particular App Id? We are not using PDFGen component.
    we are using Adobe LiveCycle 8.0.1 SP3, WebSphere 6.1 and DB2 8.2 database.
    It will be great if someone can tell me if they did this before.
    Thanks in Advance

    On the old discussion software, they had distinctive avatars and identifiers under the avatars. They could have adopted distinctive avatars with the new forum software but they didn't. The reason that they didn't, I assume, is because the new software allows secondary icons to identify users. Every level had its own icon, the Hosts had their own icon, and Apple employees had theirs. This identification system was temporarily disabled along with the rest of the levels and reputations because of the performance hit that was being caused. It may come back if they can fix the performance problems.
    Until then, Hosts and Apple employees have been using text signatures, such as "Apple Discussions Host" to identify themselves. There may be Apple employees who have not gotten the word about the text signatures.
    BTW, to see what I mean by the identification icons, look at how Jive has implemented this feature on their own support forums. On this forum page, look to the right in the box labeled "Legend".

  • PDFs are created incomplete on my MAC

    Recently my PDFs are being created incomplete (bits left off) on my mac. Is anyone else having trouble?? Any solutions??

    Hi Pat
    Sorry for the lack of knowledge.
    I create a file using Numbers on my MAC I then make a PDF and when I try to Email it it shows up incomplete??
    Any help would be appreciated
    Hutchy01

  • Duplicate requisitions being generated.

    I have two issues that are similar:
    ***FIRST -
    On 5/2/08 I cut a PO (4500113566) for Material 1000067027 (requisition 100213878). 
    A few days later another requisition was generated (100216117)  for the exact same Material.  Min/Max on the Material master is set to 1 and 1, there are no reservations and no work order assigned.
    ***SECOND -
    On 4/28/2008 I cut a PO (4500113270) for the following materials and
    quantities:
    MM 1000071901 (req# 100214520) Qty 3
    MM 1000071902 (req# 100214521) Qty 2
    MM 1000071903 (req# 100214522) Qty 2
    A few days later duplicate reservations were generated for the exact same materials.  With no work orders or reservations assigned and the Min / Max levels set to the appropriate levels.
    MM# 1000071901 (req# 100215638) - qty 1  Min/Max 1/1 MM# 1000071902 (req# 100215639) - qty 2 Min/Max 2/2 MM# 1000071903 (req# 100215640) - qty 2 Min/Max 2/2
    We need to find out why duplicate reqs are being generated.

    Hi Reinhardt,
    I am not sure please give it a try, Auto Syndication Task Delay (seconds) Integer.  Default is 0. Check if it helps..
    Set it to 0 if you have set any other parameter, see Figure 87. The MDSS-specific Report Detail pane page 279/403
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/4b/71608566ae3260e10000000a42189b/MDMConsole71.pdf
    It may be also possible because of Bug, let's have input from others if it works else i would suggest to raise an OSS Note to SAP
    Regards,
    Mandeep Saini

  • Logs not being generated

    I have two wfe servers, in one server the logs file are being generated but another server no log files only usage files
    what could be the reason. Under central admin monitoring uls logs have been already enabled.

    Hi Rizzk,
    Have you solved this issue?
    Have you checked and added the service account for SharePoint Services Tracing in local group Performance Log Users or Administrators on SharePoint server, then restart this service?
    http://www.justinkobel.com/post/2013/06/07/Solving-ULS-Log-Files-Being-Created-But-Empty-(0-Kb).aspx
    http://sharepointinsight.wordpress.com/2010/04/05/solution-for-zero-byte-sharepoint-2010-log-files/
    Thanks
    Daniel Yang
    TechNet Community Support

  • DAC source system parameters not being generated

    HI all,
    We are implementing BI apps 7962 with Informatica 861 Hot FX11, OBIEE 101341 on Linux5. We have installed and set up the configuration completely. The Informatica services are created and the DAC was configured with the Source System Parameters. When I generated the execution plan parameters, the files are being generated in the SRC files folder. But it seems like the source system parameters I set in the DAC client are not being picked up.
    For example I have set the Initial Extract date as 1/1/2008. But when I ran the load and saw the log files it still seems like the Initial Extract date is 1/1/1970. We have set the custom property for Integration Service overrideMpltVarWithMapVar as Yes. Please help me if any one has seen this before.
    Thanks
    MN
    Edited by: MNRK on Apr 5, 2011 12:49 PM

    Hi,
    When you have configured all the tasks in DAC, while running the loads DAC will generate the parameter files at runtime.
    You need to make sure that parameterfileDW.txt and parameterfileOLTP.txt files are present in DAC Installation Directory\bifoundation\DAC\Informatica\Parameter\Input folder.
    If these files are not present in the above mentioned location then you need to copy them from Informatica Installation Directory\PowerCenter 8.6.1\server\Infa_Shared\SrcFiles folder.
    Hope this helps...................
    Thanks,
    Navin Kumar Bolla

  • Why are bookmarks generated intermittently when PDF created using EXCEL VBA?

    I have Windows 7 installed and Acrobat Pro 9 installed. There is an EXCEL application that creates PDFs successfully. Howver, bookmarks are generated sometimes and sometimes they are not generated. This happens without changing any code. I am at my wits end and would appreciate any assistance. Here is the code:
    Function PDF_PRINTING_2007()
    Dim V_NBR_OF_RPTS As Integer
    Dim stdPrinter As String
    Dim Prints, z, n As Integer
    Dim pdfile, pdtitle As Boolean
    Dim V_RPT_ARRAY(800) As String
    Dim V_RPT_PAGES_ARRAY(800) As Long
        Application.ScreenUpdating = False
        V_NBR_OF_RPTS = 0
        Erase V_RPT_ARRAY
        Erase V_RPT_PAGES_ARRAY
        V_PLANT_SUMMARY = ""
        Sheets("TABLE OF CONTENTS").Activate
        V_TOC_LAST_ROW = Cells(65536, 7).End(xlUp).Row
        V_TOC_ROW = 5
        Do Until V_TOC_ROW > V_TOC_LAST_ROW
            If Cells(V_TOC_ROW, 7) = "Y" Then
                V_RPT = Cells(V_TOC_ROW, 2).Value
                If V_RPT = "PLANT SUMMARY" Then
                    V_PLANT_SUMMARY = "Y"
                End If
                If V_RPT = UCase("SUMMARY CAGE & HOIST") Or V_RPT = UCase("PLANT SUMMARY") Then
                Else
                    V_NBR_OF_RPTS = V_NBR_OF_RPTS + 1
                    V_RPT_ARRAY(V_NBR_OF_RPTS) = V_RPT
                    V_RPT_PAGES_ARRAY(V_NBR_OF_RPTS) = Cells(V_TOC_ROW, 6)
                End If
            End If
            V_TOC_ROW = V_TOC_ROW + 1
        Loop
        Sheets("SYS - USER INTERFACE").Activate
        V_RPT_PERIOD = Cells(1, 1)
        V_PLANT_NBR = Cells(1, 2)
        V_PLANT_NAME = Cells(1, 3)
        Set AcroApp = CreateObject("AcroExch.App")
        Set PDBookmark = CreateObject("AcroExch.PDBookmark")
        Set avDoc = CreateObject("AcroExch.AVDoc")
        Set pdDoc1 = CreateObject("AcroExch.PDDoc")
        Set pdDoc2 = CreateObject("AcroExch.PDDoc")
        'Print Worksheets to PDF Files
        stdPrinter = Application.ActivePrinter
        'Commented out next line for Acrobat 8.x - 1/29/2008 - CR24709 and WP25089
        ' Application.ActivePrinter = "Acrobat PDFWriter on LPT1:"
        AppendIni ("C:\temp\Sheet1.pdf")
        'Commented out next line for Acrobat 8.x - 1/29/2008 - CR24709 and WP25089
        'Sheets("COVER SHEET").PrintOut
        'Added the next 3 lines for Acrobat 8.x - 1/29/2008 - CR24709 and WP25089
        Sheets("COVER SHEET").Activate
        PageSetupFitToPage
        SaveToPDF ("C:\temp\Sheet1.pdf")
        pdDoc1.Open ("C:\temp\Sheet1.pdf")
        pdDoc1.SetInfo "Title", "Cover Sheet"
        pdDoc1.Save 1, "C:\temp\Sheet1.pdf"
        pdDoc1.Close
    ' The "TABLE OF CONTENTS" worksheet contains color.  Reset it to black and white.
        Application.DisplayAlerts = False
        On Error Resume Next
        Worksheets("SYS - PDF WS").Delete
    'EOB change for Priority #12--Arial named range dialog box error
    '  Comment out alert below
    '    Application.DisplayAlerts = True
    'EOB change for Priority #12 end
        Sheets("TABLE OF CONTENTS").Copy Before:=Sheets("SYS - USER INTERFACE")
        ActiveSheet.Name = "SYS - PDF WS"
    'EOB change for Priority #12--Arial named range dialog box error
    '  insert alert below
        Application.DisplayAlerts = True
    'EOB change for Priority #12 end
        Sheets("TABLE OF CONTENTS").Activate
        V_TOC_ROW = 5
        Do Until V_TOC_ROW > V_TOC_LAST_ROW
            If Cells(V_TOC_ROW, 7) = "Y" Then
                V_RPT_NAME = Cells(V_TOC_ROW, 2)
                Cells(V_TOC_ROW, 2).Clear
                Cells(V_TOC_ROW, 2) = V_RPT_NAME
            End If
            V_TOC_ROW = V_TOC_ROW + 1
        Loop
        Cells.Select
        Selection.Font.Color = vbBlack
        Selection.Interior.Color = vbWhite
         AppendIni ("C:\temp\Sheet2.pdf")
         'Commented out next line for Acrobat 8.x - 1/29/2008 - CR24709 and WP25089
         'Sheets("TABLE OF CONTENTS").PrintOut
         'Added the next 3 lines for Acrobat 8.x - 1/29/2008 - CR24709 and WP25089
         Sheets("TABLE OF CONTENTS").Activate
         PageSetupFitToPageWidth
         SaveToPDF ("C:\temp\Sheet2.pdf")
         pdDoc2.Open ("C:\temp\Sheet2.pdf")
         pdDoc2.SetInfo "Title", "Table of Contents"
         pdDoc2.Save 1, "C:\temp\Sheet2.pdf"
         pdDoc2.Close
        Application.DisplayAlerts = False
        Worksheets("TABLE OF CONTENTS").Delete
        Sheets("SYS - PDF WS").Copy Before:=Sheets("TEMPLATE TBL OF CONTENTS")
        ActiveSheet.Name = "TABLE OF CONTENTS"
        Worksheets("SYS - PDF WS").Delete
        Application.DisplayAlerts = True
        Prints = 3
        If V_PLANT_SUMMARY = "Y" Then
            Sheets("PLANT SUMMARY").Activate
            Sheets("PLANT SUMMARY").PageSetup.LeftFooter = Now()
            Sheets("PLANT SUMMARY").PageSetup.CenterFooter = "#" & V_PLANT_NBR & " " & V_PLANT_NAME & Chr(13) & V_RPT_PERIOD
            'Sheets("PLANT SUMMARY").PageSetup.RightFooter = "Page 1"
            'eob change start here--Change #9 comment out page numbers
            'Sheets("PLANT SUMMARY").PageSetup.RightFooter = "Page " & Prints
            'eob change end
            AppendIni ("C:\temp\Sheet" & Prints & ".pdf")
            'Commented out next line for Acrobat 8.x - 1/29/2008 - CR24709 and WP25089
            'Sheets("PLANT SUMMARY").PrintOut
            'Added the next 2 lines for Acrobat 8.x - 1/29/2008 - CR24709 and WP25089
             Sheets("PLANT SUMMARY").Activate
             SaveToPDF ("C:\temp\Sheet" & Prints & ".pdf")
             pdDoc2.Open ("C:\temp\Sheet" & Prints & ".pdf")
             pdDoc2.SetInfo "Title", "PLANT SUMMARY"
             pdDoc2.Save 1, "C:\temp\Sheet" & Prints & ".pdf"
             pdDoc2.Close
            Prints = Prints + 1
        End If
        V_RPT = 1
        On Error Resume Next   'DO NOT REMOVE THIS LINE
        Do Until V_RPT > V_NBR_OF_RPTS
        v_sheet_name = V_RPT_ARRAY(V_RPT)
            Sheets(v_sheet_name).Activate
            Sheets(v_sheet_name).PageSetup.LeftFooter = Now()
            Sheets(v_sheet_name).PageSetup.CenterFooter = "#" & V_PLANT_NBR & " " & V_PLANT_NAME & Chr(13) & V_RPT_PERIOD
            'eob change start here--Change #9 comment out page numbers
            'Sheets(v_sheet_name).PageSetup.RightFooter = "Page " & Prints
            'eob change end
            AppendIni ("C:\temp\Sheet" & Prints & ".pdf")
            'Commented out next line for Acrobat 8.x - 1/29/2008 - CR24709 and WP25089
            'Sheets(V_SHEET_NAME).PrintOut
            'Added the next 2 lines for Acrobat 8.x - 1/29/2008 - CR24709 and WP25089
             If v_sheet_name = "EXPLANATION OF PLANT VARS" Then
               PageSetupFitToPageWidth
             End If
             SaveToPDF ("C:\temp\Sheet" & Prints & ".pdf")
             pdDoc2.Open ("C:\temp\Sheet" & Prints & ".pdf")
             pdDoc2.SetInfo "Title", v_sheet_name
             pdDoc2.Save 1, "C:\temp\Sheet" & Prints & ".pdf"
            Sheets(v_sheet_name).DisplayPageBreaks = False
            Prints = Prints + 1
            pdDoc2.Close
            V_RPT = V_RPT + 1
        Loop
        Kill ActiveWorkbook.Path & "\New Costbook.pdf"
        'Consolidate PDF Files
        On Error GoTo Err1
        pdfile = avDoc.Open("C:\temp\Sheet1.pdf", "Window Title")
        Set pdDoc1 = avDoc.GetPDDoc
        AcroApp.MenuItemExecute ("NewBookmark")
        pdtitle = PDBookmark.GetByTitle(pdDoc1, "Untitled")
        pdtitle = PDBookmark.SetTitle("Cover Sheet")
        pdDoc1.Save 1, ActiveWorkbook.Path & "\New Costbook.pdf"
        For z = 2 To Prints
            n = pdDoc1.GetNumPages()
            pdDoc2.Open ("C:\temp\Sheet" & z & ".pdf")
            If pdDoc2.GetNumPages() <> 0 Then
                pdDoc1.InsertPages n - 1, pdDoc2, 0, pdDoc2.GetNumPages(), False
                Set avPageView = avDoc.GetAVPageView()
                avPageView.GoTo (n)
                AcroApp.MenuItemExecute ("NewBookmark")
                pdtitle = PDBookmark.GetByTitle(pdDoc1, "Untitled")
                pdtitle = PDBookmark.SetTitle(pdDoc2.GetInfo("Title"))
                pdDoc2.Close
                pdDoc1.Save 1, "C:\temp\Sheet1.pdf"
            Else
                pdDoc2.Close
            End If
        Next z
        avPageView.GoTo (0)
        pdDoc1.SetPageMode (3)
        pdDoc1.Save 1, ActiveWorkbook.Path & "\New Costbook.pdf"
        pdDoc1.Close
        Set AcroApp = Nothing
        Set PDBookmark = Nothing
        Set avDoc = Nothing
        Set pdDoc1 = Nothing
        Set pdDoc2 = Nothing
        Application.ScreenUpdating = True
        Sheets("SYS - USER INTERFACE").Activate
        AppActivate "Microsoft Excel"
        MsgBox "File Saved As: " & ActiveWorkbook.Path & "\New Costbook.pdf", vbInformation
        Application.ActivePrinter = stdPrinter
        Kill "C:\temp\Sheet*.pdf"
        Exit Function
    Err1:
        AppActivate "Microsoft Excel"
        MsgBox Err.Description
        Application.ActivePrinter = stdPrinter
    End Function

    Acrobat Scripting Forum http://forums.adobe.com/community/acrobat/acrobat_scripting
    or more likely
    Acrobat SDK Developer Forum http://forums.adobe.com/community/acrobat/acrobat_sdk

  • Help Determining Which Methods/Classes Are Being Used

    Hello,
    I'm having issues with my company's Java application and because I've luckily narrowed the classes down to a meager 30+ I need some help pinpointing my problem.
    I realize there are a lot of Java monitoring applets/applications and some are deployment-specific but I need something very detailed-- I haven't found the features I need.
    Specs:
    Jrun4, Java 1.4, Windows Server 2003
    I would like to have a monitor that tells me exactly (real-time) what classes, methods, variables, etc. are being called in real-time. Looking at the JRun launcher console for one process gives me this:
    Generating report:quadbase.reportdesigner.ReportAPI.QbReport with export type:PDF
    01/16 14:05:33 error Software caused connection abort: socket write error
    java.net.SocketException: Software caused connection abort: socket write error
            at java.net.SocketOutputStream.socketWrite0(Native Method)
            at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
            at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
            at jrun.servlet.io.MetricsOutputStream.write(MetricsOutputStream.java:75)
            at java.io.BufferedOutputStream.write(BufferedOutputStream.java:106)
            at jrun.servlet.http.WebOutputStream.write(WebOutputStream.java:64)
            at jrun.servlet.file.FileServlet.pipeData(FileServlet.java:419)
            at jrun.servlet.file.FileServlet.service(FileServlet.java:254)
            at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
            at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)This is cute, but not really helpful. I would like to determine what was passed to the process, from where and what went wrong.
    For example,
    Instead of this:
    Generating report:quadbase.reportdesigner.ReportAPI.QbReport with export type:PDF
    01/16 14:05:33 error Software caused connection abort: socket write errorI would get something like this:
    Generating report:quadbase.reportdesigner.ReportAPI.QbReport with export type:PDF
            Page variables: test.jsp ($var1= "I'm"; $var2= "Going"; $var3="To"; $var4="Break"; $var5 = null)
            Calling: test2.jsp
            With: jrun.bin.db.foo.Bar();
    01/16 14:05:33 error Software caused connection abort: socket write error
            Problem: $var5 = null;Sorry if I'm rambling, I just want to know what is where and who it's calling when it breaks. Then I could deduce which class, what variable, what page, etc. My application is very complicated and seemingly mundane changes can throw it all off.
    Any ideas?

    We'll look into usage tracking. We're on the standard edition, so I'm not sure if it's available. Also, some of these reports may be quarterly -- so there may be a long wait to see if the view is used and I need to know fairly soon. (If it's not used, it saves us some work in a project transition going on.)
    I certainly don't understand the underlying structure of the product, but it seems like there should be some way to determine if a view is used by a report. I apologize if I'm not using the correct terminology. Thanks for your help -- we'll keep looking into it.

  • ALV o/p TO PDF Converison using  CONVERT_ABAPSPOOLJOB_2_PDF

    Hi Geeks,
    My rquirement is to attach the output of ALV report to the mail as PDF file.I am using FM "CONVERT_ABAPSPOOLJOB_2_PDF" for converting the ALV ouput to PDF format but when i check the data in PDF fomat table , it's corrupted and thus pdf file opens with error in the mail.
    Can anyone have some suggestion please !!!
    Usefull answer will be rewarded !!!

    Harmeet,
    Code is :
    Preparing the recepeint list
      LOOP AT S_EMAIL1.
        CLEAR : TBL_RECLIST.
        TBL_RECLIST-RECEIVER = S_EMAIL1-LOW.
        TBL_RECLIST-REC_TYPE = 'U'.
        APPEND TBL_RECLIST.
      ENDLOOP.
      LOOP AT S_EMAIl2.
        CLEAR : TBL_RECLIST.
        TBL_RECLIST-RECEIVER = S_EMAIL2-LOW.
        TBL_RECLIST-REC_TYPE = 'U'.
        APPEND TBL_RECLIST.
      ENDLOOP.
    PDF spooling (For generating spool number)
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
      EXPORTING
        SRC_SPOOLID                    = lv_spool
        NO_DIALOG                      = c_no
        DST_DEVICE                     = c_device
      PDF_DESTINATION                =
      IMPORTING
        PDF_BYTECOUNT                  = LV_BYTE_COUNT
      PDF_SPOOLID                    =
      LIST_PAGECOUNT                 =
      BTC_JOBNAME                    =
      BTC_JOBCOUNT                   =
      TABLES
        PDF                            = TBL_PDF_OUTPUT[]
      EXCEPTIONS
        ERR_NO_ABAP_SPOOLJOB           = 1
        ERR_NO_SPOOLJOB                = 2
        ERR_NO_PERMISSION              = 3
        ERR_CONV_NOT_POSSIBLE          = 4
        ERR_BAD_DESTDEVICE             = 5
        USER_CANCELLED                 = 6
        ERR_SPOOLERROR                 = 7
        ERR_TEMSEERROR                 = 8
        ERR_BTCJOB_OPEN_FAILED         = 9
        ERR_BTCJOB_SUBMIT_FAILED       = 10
        ERR_BTCJOB_CLOSE_FAILED        = 11
        OTHERS                         = 12
       IF sy-subrc = 0.
            LOOP AT TBL_PDF_OUTPUT.
              TRANSLATE TBL_PDF_OUTPUT USING ' ~'.
              CONCATENATE LV_BUFFER TBL_PDF_OUTPUT INTO LV_BUFFER.
            ENDLOOP.
            TRANSLATE LV_BUFFER USING '~ '.
            DO.
              TBL_OBJBIN = LV_BUFFER.
              APPEND TBL_OBJBIN.
              SHIFT LV_BUFFER LEFT BY 255 PLACES.
              IF LV_BUFFER IS INITIAL.
                EXIT.
              ENDIF.
            ENDDO.
          ENDIF.
          DESCRIBE TABLE TBL_OBJBIN LINES LV_TBL_LINE.
        Prepare document
          LV_DOC-OBJ_NAME  = 'ERROR'.
          LV_DOC-OBJ_DESCR = 'ERROR IN OBZT MAINTENANCE – ACTION REQUIRED'.
        Prepare for attachement
          TBL_OBJPACK-TRANSF_BIN = 'X'.
          TBL_OBJPACK-HEAD_START = 1.
          TBL_OBJPACK-HEAD_NUM   = 0.
          TBL_OBJPACK-BODY_START = 2.
          TBL_OBJPACK-BODY_NUM   = LV_TBL_LINE.
          TBL_OBJPACK-DOC_TYPE = 'PDF'.
          TBL_OBJPACK-OBJ_NAME = 'ATTACHEMENT'.
          TBL_OBJPACK-OBJ_DESCR = 'Error in tax code with OBZT'.
          TBL_OBJPACK-DOC_SIZE = ( LV_TBL_LINE - 1 ) * 255  + STRLEN( TBL_OBJBIN ).
          APPEND TBL_OBJPACK .
          CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
              DOCUMENT_DATA                    = LV_DOC
            PUT_IN_OUTBOX                    = ' '
              COMMIT_WORK                      = 'X'
           IMPORTING
             SENT_TO_ALL                      =
             NEW_OBJECT_ID                    =
            TABLES
              PACKING_LIST                     = TBL_OBJPACK[]
             OBJECT_HEADER                    = TBL_OBJHEAD[]
              CONTENTS_BIN                     = TBL_OBJBIN[]
            CONTENTS_TXT                     =
            CONTENTS_HEX                     =
            OBJECT_PARA                      =
            OBJECT_PARB                      =
              RECEIVERS                        = TBL_RECLIST[]
            EXCEPTIONS
              TOO_MANY_RECEIVERS               = 1
              DOCUMENT_NOT_SENT                = 2
              DOCUMENT_TYPE_NOT_EXIST          = 3
              OPERATION_NO_AUTHORIZATION       = 4
              PARAMETER_ERROR                  = 5
              X_ERROR                          = 6
              ENQUEUE_ERROR                    = 7
              OTHERS                           = 8
        ENDIF.
    ENDIF.

  • Emails not being generated using UDF

    Hi,
    We had setup a functionality to send email via UDF using the following blog.
    Mail without email adapter? Part - I - Process Integration - SCN Wiki
    This worked fine for some time. However, it does not generate emails anymore. There were no changes done on the objects. We checked the java mail service settings as suggested in some of the SCN posts and everything looks configured fine.
    We are not able to determine what is preventing the emails from being generated. Any pointers would be really helpful.
    We are using SAP PI 7.31 java only installation.
    Thanks,
    Ravi

    Hi Ravi,
    Did you check SMTP services availability?
    SMTP Configuration in SAP XI - Process Integration - SCN Wiki
    Regards,
    Krupa

  • SharePoint Databases - How to determine which ones are being used and which ones aren't

    I am not sure where to exactly post this question.  On the SQL Server side or on a SharePoint side.
    I am a SQL Server Database Administrator who is monitoring some SharePoint databases.  On a daily basis it seems that they are creating new databases but don't delete the databases that they are no longer using.  For example, they might be testing
    on a development server and if things aren't working properly instead of asking that the databases be deleted they just go ahead and create new databases to do what ever they need to do.  Is there a way on the SQL Server side to determine which SharePoint
    databases are being used and which ones aren't being used?  Or does one determine this information through the SharePoint Central Administration console?
    lcerni

    Hello,
    The following query gives you the databases now in use.
    SELECT
    DISTINCT d.name
    FROM
    sys.dm_tran_locks
    tl INNER
    JOIN sys.databases
    d
    ON
    tl.resource_database_id
    = d.database_id
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • Bottom left screen messages not showing

    Computer Acer Aspire Laptop running Win 7 (Home Premium) 64 bit with large screen fonts. Husband's older Dell desktop running Win 7 (Professional) 32 bit (1024 x 768) shows messages at left side of foot of page confirming access to server for mail re

  • Why is the Hootie and the Blowfish album Cracked Rear View not uploaded?

    I'm specifically looking for the song "let her cry" by Hootie and the Blowfish. I've also noticed the album Cracked Rear View is not uploaded either.

  • ORA-1653: unable to extend table - but enough space for datafile

    We encountered this problem in one of our database Oracle Database 10g Release 10.2.0.4.0 We have all datafiles in all tablespaces specified with MAXSIZE and AUTOEXTEND ON. But last week database could not extend table size Wed Dec  8 18:25:04 2013 O

  • Send link to DPS Gallery

    Hi, How I can send my apple and Android app stores links to DPS Gallery from Adobe. Until last Viewer Builder update I could to send from Manage Panel...but now this option vanish. Any tip? Tks

  • Activesync set up steps for Z10

    Hey everyone, I am not all that familiar with how or what the steps are to set up activesync on the new Z10. I know what email address I want it to recognoze and the server name yet I am unsure about the A to Z steps on were to go and how to complete