Data conversion to PDF

Hello,
Iam working on SRM system which is UNICODE,I have tos end the mail with pdf attachment from SRM system ,but the problem is i have to get the data from R/3 System(in which iam using CONVERT_OTFSPOOLJOB_2_PDF to convert the spool request number to PDF data),If i use the same converted PDF data in SRM iam unable to open the PDF in mail.
My code in SRM is like this ::
If i use the below code iam getting the PDF but with some RAW data ::
is there anything more i have to add ????/
options-tddest  = 'LP01'.
  options-tdimmed = 'X'.
  options-tdnewid = 'X'.
  options-tdgetotf = 'X'.
  options-tdnoprev = 'X'.
  call function 'PRINT_TEXT'
    exporting
      dialog                   = ' '
      header                   = header
      options                  = options
    importing
      result                   = result
    tables
      lines                    = textlines
      otfdata                  = otf
    exceptions
      canceled                 = 1
      device                   = 2
      form                     = 3
      options                  = 4
      unclosed                 = 5
      unknown                  = 6
      format                   = 7
      textformat               = 8
      communication            = 9
      bad_pageformat_for_print = 10
      others                   = 11.
   IF sy-subrc  0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
   ENDIF.
  call function 'CONVERT_OTF'
    exporting
      format                = 'PDF'
    importing
      bin_file              = ev_count
      bin_filesize          = filesize
    tables
      otf                   = otf
      lines                 = it_lines
    exceptions
      err_conv_not_possible = 1
      err_bad_otf           = 2.

here is the sample code
CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
   EXPORTING
    COPIES                         = 0
    DEVICE                         = LP01
    DIVISION                       = '*'
    ENDPAGE                        = 0
    PRIO                           = 0
    RECEIVER                       = '*'
    REQEST_TITLE                   = '*'
     spool_request_id               = ls_spool_id
    STARTPAGE                      = 0
    TELELAN                        = '*'
    TELENUM                        = '*'
    POSNAME                        =
    ACTTIME                        =
  TABLES
    ATTRIBUTES                     =
  EXCEPTIONS
    ARCHIVE_DEST_INVALID           = 1
    ARCHIVE_DEST_NOT_FOUND         = 2
    ARCHIVE_DEST_NO_RIGHT          = 3
    CANNOT_ARCHIVE                 = 4
    CHANGE_ARCHDEST_NO_RIGHT       = 5
    CHANGE_COPIES_NO_RIGHT         = 6
    CHANGE_DEST_NO_RIGHT           = 7
    CHANGE_DEVTYPE_NO_RIGHT        = 8
    CHANGE_PRIO_NO_RIGHT           = 9
    CHANGE_TELENUM_NO_RIGHT        = 10
    CHANGE_TITLE_NO_RIGHT          = 11
    DEST_INVALID                   = 12
    DEST_NOT_FOUND                 = 13
    DEST_NO_RIGHT                  = 14
    INTERNAL_PROBLEM               = 15
    INVALID_FAX_ATTRIBUTE          = 16
    INVALID_PARAMETERS             = 17
    NON_OWNER_NO_RIGHT             = 18
    NO_LAYOUT                      = 19
    NO_SPOOL_REQUEST               = 20
    OUT_AGAIN_NO_RIGHT             = 21
    SPOOLER_PROBLEM                = 22
    OTHERS                         = 23
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
  CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
      EXPORTING
        src_spoolid              = g_spool
      TABLES
        pdf                      = pdf
      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.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
     ELSE.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'C:\DOCUMENTS AND SETTINGS\JANAGAR_S\DESKTOP\TEST.PDF'
          filetype                = 'BIN'
        TABLES
          data_tab                = pdf
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDIF.

Similar Messages

  • Data Conversion for BOMs and/or Routings

    I am looking for any examples for design spec for Data Conversion of Bill of Materials and/or Routings.
    Not sure if this would be in form of MD050 but any example would be appreciated

    Hi;
    Please check below links:
    Oracle Bill of Materials User's Guide
    http://download.oracle.com/docs/cd/A85683_01/acrobat/115bomug.pdf
    http://horizon.more4apps.com/doco/BMWRelease/output/index.htm
    Also see:
    Getting Started With R12 - Discrete Manufacturing Support Enhanced Release Content Document [ID 415922.1]
    Regard
    Helios

  • Data conversion/migration

    Hi,
    what kind of data conversion/migration are we looking in plant maintenance and inventory management?
    Regards,
    Vijay

    Dear Vijay Srikanth,
    I think you are asking for all such activities in Plant Maintenance which can be automated using some data conversion / data migration programs. Where by the user will just upload his data and the activity is achieved by the program. Please refer to the following documentation and search for the term 'Activites in Plant Maintenance'.
    http://help.sap.com/printdocu/core/print46c/en/data/pdf/MYSAP/SR_PM.pdf
    You will find all the required information there. Thank you.
    Regards,
    kartik

  • Converting Contributor Data File to PDF

    Hi,
    I have a requirement where end users should be able to download the content from a website(created using sitestudio) as PDF. I have configured the IBR,created Provider in Content server,I am able to convert xml to PDF. But it is showing raw content in pdf. How can I convert Contributor data file to PDF along with the rich content.
    Any pointers would be helpful.
    Thanks in advance.

    In that case, can you please tel me,how it can be done? Is it converting xml to HTML & then the HTML to pdf??
    I am new to UCM. Request you to elaborate more.
    Is this possible using any UCM provided components for conversion. If yes,which component would be suitable?
    Thanks
    Edited by: RR on Jul 25, 2011 4:08 AM

  • Data conversion ECC 6.0 Upgrade

    Hi SAP Guru's.
    My Client is intend to do a ECC6.0 Upgrade from 4.6. My goal is find out is there any data conversion requirement is needed for the project. My Client is doing a technical upgrade and then a full upgrade.  Can anybody guide me what are the possible data conversions we can expect for the upgrade.
    Thanks
    SN

    Dear Sankara,
    When it is a technical upgrade from a lower version to ECC6.0, many objects like includes, Function modules, reports, OSS notes, DDIC objects, BDC/Print programs, SAP scripts, screens will get affected due to the upgradation. So we need to check with all these objects.
    • We will encounter short dumps while executing certain programs. This may be due to the usage of obsolete function modules or Unicode errors.
    • The BDCs in the upgraded version will become defective as many of its screen field names will be changed during version change.
    • Program texts of many programs will be lost. They have to be restored.
    • In case of tables, enhancement category has to be provided.
    • There is a possibility of losing the variants during upgradation. So care should be taken to retain them before upgradation.
    • ECC6.0 is case sensitive, so many of the interface programs will fail to transfer (FTP) files between systems. These objects have to be changed so that the commands passed to the external system be UPPERCASE.
    So a developer should be aware of the following:
    •Unicode programming is followed in ECC6.0. So we need to be aware of it to rectify certain Unicode errors which are likely to occur.
    •You have to run the transactions SPAU & SPDD to check for list of standard & custom objects that needs modification in the upgraded version.
    Check the below link to find more details on usage of SPAU & SPDD transactions
    http://help.sap.com/saphelp_nw2004s/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/content.htm
    •Should be aware of the objects that have become obsolete in ECC6.0. They have to be replaced by appropriate ones.For eg.:
    --> The WS_* function modules have been replaced by GUI_* FMs in ECC6.0 as WS_* FMs have become obsolete from 4.7
    -->Tables like TVARV & TTREX have been replaced by TVARVC & TTREXN respectively in ECC6.0.
    •In case of tables, we need to specify the Enhancement category.
    •Due to upgradation, we will lose out some variants. So we should take a back-up before proceeding with the upgradation.
    •In case of BDC programs, some field names will be changed. So they have to be named appropriately.
    Please check with the below links for more details:
    SAP Upgrade guide:
    http://www.thespot4sap.com/upgrade_guide_v2.pdf#search=%22upGRADE%20STEPS%20-%20SAP%22
    From ABAP's perspective, the following link helps you:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5ac31178-0701-0010-469a-b4d7fa2721ca
    For technical upgrade inputs:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/07/upgradeFROMR3TOmySAPERP-PARTII&
    https://wiki.sdn.sap.com/wiki/display/profile/UPGRADEFROMR3TOmySAPERP-PARTIII
    Do award points if you found them useful.
    Regards,
    Rakesh
    P.S. you can send me a mail at my mail id [email protected] for any specific details

  • TIM Interfaces data conversions

    Hi,
    I appriciate you.
    Pl. tell me what is "TIM interfaces" and
    how to do TIM interfaces data conversions
    thanks
    AC

    Hi Arun,
    This is a very vague question, without any information about the context of your question. But what I did was to go out to google and type in TIM interfaces.
    I think this may be Textile Integrated Manufacturing(TIM) application. The link below takes you to a pdf document about the product.
    http://www.infics.com/collaterals/Datatex.pdf
    I don't know if it has any relevance to you. Check it out or if it is not what you are looking for, please post more information as to how you heard about it and in what context.
    Here are the Google search results
    http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLD,GGLD:2005-09,GGLD:en&q=%22TIMinterfaces%22
    Srinivas

  • GL Data Conversion from Legacy to Oracle EBS

    Hi All,
    I am tasked with converting legacy data into GL. I have worked on other conversions like supplier, AR and AP conversions but never worked on GL conversion, so I don't know how and where to start, what are the pre-requisites for entering data into gl_interface table how to ensure that data is correct in the .csv file etc.
    Kindly request you all to guide me in right direction. Hope to hear from you all very soon!!! :)
    Regards

    Hi,
    When you talk about GL-Data it is the trial balance to be loaded from legacy to oracle applications.
    You can use Web-ADI to upload it ,the check list are
    The balance for each account comibnation in the legacy system to be mapped to GL-Oracle code combination balance
    With respect to open AR, AP Invoices if the invoices are converted using a control account for migration in GL then
    the the balance transfered from AP,AR need not be reversed in GL from the source receivables and payables.
    In case if the same account combination are for migrating the balances from AP,AR to GL ..Then the balances transferred from AP,AR should be reversed ..so that it does not affect the TB-GL-Balance
    Finally ensure that the balance for the TB-tallys with your legacy system and upload it using Web-ADI ,import and
    review and post it.
    Hope this points helps your GL-Data conversion.
    Regards,
    Ramaa

  • Data conversion strategy for new SOB

    Dear Viewers
    on 11.5.10
    We are creating a new SOB with a change in currency from Feb-11 as this is the requirement
    For the same, we need to do data conversion.
    I have a confusion for Purchase Orders and Sales Orders
    Purchase Orders:
    Open purchase orders will be converted, means the unfulfilled PO`s i.e the ones not received and are fully open.
    The PO`s which have been recieved but not delivered, Requested the users to clear the intransit receipts.
    The PO's which are partially received, what to be done for them?
    If a PO is fully received and Delivered will not me converted to the new SOB as its not an open PO
    but If invoice comes after Feb-11, than how the matching will be done?
    What if a return has to be made moving forward in FEB-11 under new SOB
    Sales Orders:
    Open sales orders will be converted, that is the ones that have been entered and not yet booked.
    Users have been requested to clear off the Sales order lines which are already pick confirmed but not yet shipped, hence they will be shipped and interfaced to AR
    For the Sales orders that have been booked, those lines that are not yet processed further will also be converted.
    Now what if a receipt comes after feb 11, how to handle this as the sales order wiould not have been converted?
    Please give your advise on the data migration strategy for PO`s and SO's.
    Please do add any point that may have been missed by me
    Appreciate your help
    Thanks
    Emm

    Hi David,
    for master data conversion you can use LSMW and the RE-FX BAPIs. (please refer to SAP note  [782947|https://service.sap.com/sap/support/notes/782947] ).
    Regards, Franz

  • Data conversion for new sob

    Dear Viewers
    on 11.5.10
    We are creating a new SOB with a change in currency from Feb-11 as this is the requirement
    For the same, we need to do data conversion.
    I have a confusion for Purchase Orders and Sales Orders
    Purchase Orders:
    Open purchase orders will be converted, means the unfulfilled PO`s i.e the ones not received and are fully open.
    The PO`s which have been recieved but not delivered, Requested the users to clear the intransit receipts.
    The PO's which are partially received, what to be done for them?
    If a PO is fully received and Delivered will not me converted to the new SOB as its not an open PO
    but If invoice comes after Feb-11, than how the matching will be done?
    What if a return has to be made moving forward in FEB-11 under new SOB
    Sales Orders:
    Open sales orders will be converted, that is the ones that have been entered and not yet booked.
    Users have been requested to clear off the Sales order lines which are already pick confirmed but not yet shipped, hence they will be shipped and interfaced to AR
    For the Sales orders that have been booked, those lines that are not yet processed further will also be converted.
    Now what if a receipt comes after feb 11, how to handle this as the sales order wiould not have been converted?
    Please give your advise on the data migration strategy for PO`s and SO's.
    Please do add any point that may have been missed by me
    Appreciate your help
    Thanks
    Emm

    emm wrote:
    Purchase Orders:
    Open purchase orders will be converted, means the unfulfilled PO`s i.e the ones not received and are fully open.
    The PO`s which have been recieved but not delivered, Requested the users to clear the intransit receipts.
    The PO's which are partially received, what to be done for them?
    If a PO is fully received and Delivered will not me converted to the new SOB as its not an open PO
    but If invoice comes after Feb-11, than how the matching will be done? <br>Business needs to take a decision whether they are fine with matching the POs manually (i.e. referring the documents and verify), in this case you may capture the PO information in a DFF in the Invoice distribution. Otherwise if it has to be converted identifying the POs under this scenario, you may consider converting those maintaining receipt close tolerance as 100% and matching type as 2 -way (again business approval needed to handle audit issues) in order to avoid the receipts/delivery conversion etc.<br>
    What if a return has to be made moving forward in FEB-11 under new SOB<br>Ideally returns can be done using Miscellaneous/Account Alias Issues specifying the appropriate transaction reasons to clarify the scenario.<br>

  • How to read data from the PDF file

    Hi
    i need pdf related API details and sample program to retrive the data from the pdf.

    Did you even try looking this one up yourself? Google "java pdf" and you get plenty of results. The first one looks pretty promising, and I'm sure there is plenty of documentation with the API.

  • Need guidance entering my own data in a PDF file

    Please refer to this example:
    http://www.gnupdf.org/Introduction_to_PDF
    I am trying to teach myself PDF internals. My immediate objective is to save some private data in my PDF files. My data is structured as "variable/value" pairs but I chose not to save it as custom properties because of its bulk and the possibility of confusion and undesired manipulation by the end user.
    The above example immediately suggests that I should use an object of "dictionary" type. Let's try to assemble the file manually:
    44 0 obj
    <<
      (Favorite Baseball Team) (Boston Red Sox)
      (Age) (35)
      (Planet of Birth) (Klingon)
    >>
    endobj
    Is the above initial attempt correct? I will of course use the corresponding API to create the dictionary, but I am concerned about breaking things. Won't Acrobat get confused when it finds this foreign stuff?
    TIA,
    -Ramon

    Hi Leonard,
    Thanks for your always valuable help. FYI, my data is of a global nature. I suppose I should come up with some unique name ("MyPrivateData" or something) and place such entry in the Catalog?
    This thread brings up a related topic. It is about the uniqueness of the JavaScript namespace. My PDF files are generated automatically and JavaScript code is added to them. I haven't done any tests yet, but I foresee the following problem: those generated PDF files may end up being merged with each other which brings the potential of namespace conflicts.
    Let's say that the first JS-laden document has 3 pages and another one has 2 pages. I suppose there is no way to restrict it like: "this JS code applies to the first 3 pages only". As soon as the 2 documents are merged all the JS code (and worst of all: the variable and function names) applies to the 5 combined pages, correct?
    There are 2 possible solutions:
    - Perhaps there is a way to declare some JS code as belonging to one page only?
    - Use collections. This brings a whole new layer of complexity and expense.
    Thanks again,
    -Ramon

  • How to Extract Data from the PDF file to an internal table.

    HI friends,
    How can i Extract data from a PDF file to an internal table....
    Thanks in Advance
    Shankar

    Shankar,
    Have a look at these threads:-
    extracting the data from pdf  file to internal table in abap
    Adobe Form (data extraction error)
    Chintan

  • In Responses, Can I export the data in a pdf form excluding null data?

    In Responses, Can I export the data in a pdf form excluding null data?

    Let me make sure I understand the request...  There is a feature in the Response table to "Save Response as PDF Form" and you'd like to do this excluding the null data (unanswered questions).  If that is correct it is not supported, the "Save Response as PDF form" will save a PDF that is the entire form filled out as the user filled it.
    Thanks,
    Josh

  • What are the reasons for disabling the saving of data in a PDF?

    I seem to have had more than my share of encounters lately with PDF files that have editable fields but have their data saving capability disabled.
    In some of these situations this has been an absolutely maddening inconvenience.
    When I attempt to bring this to the attention of whomever's responsible I get brushed off.
    One person's response was: Actually the majority of the PDF forms I have are Adobe reader and you cannot make changes electronically at all.  The reason for this is to make sure that the documents are not altered in any way.  The <companies creating the PDFs> must make sure that changes are not being made to their forms. 
    I just don't understand that.  How is entering and saving data 'altering' a PDF?
    Is this just bone-headed bureacracy, an urban legend, or is there some fundamental practical matter I am not aware of?

    Saving a filled-in form has always been disallowed with Adobe Reader, formerly known as Acrobat Reader. Though there are a few exceptions...
    History lesson:
    Forms features were first introduced in Acrobat 3. As you might imagine, a number of folks wanted to be able to save filled-in forms using Acrobat Reader. Since this functionality simply was not a feature of Reader, it was not possible. If you wanted to save a filled-in form, you needed to use Acrobat (Exchange).
    Upon recognizing the potential market for a product that they could sell, Adobe developed and released Acrobat Business Tools, which was a version 4 product. It was positioned between Reader and Acrobat, was reasonably priced, and allowed users to save filled-in forms, apply digital signatures, and add comments. Unfortunately, this was marketed poorly and did not achieve commercial success.
    The next iteration was a similar product named Acrobat Approval, which was a version 5 product. It too could save a filled-in form, but was in some ways more limited than Business Tools, and suffered a similar fate. That is, it was not a market success. It was however distributed for free to US taxpayers on the IRS tax products CD-ROM.
    The next idea from Adobe - which was a good one - was to provide for a means of embedding usage rights in a PDF document. These rights would allow Reader to do things it normally would not be able to do, such as saving a filled-in form, adding comments, importing/exporting form data, creating new pages using templates, connecting to databases and web services, etc. At first, the only way to enable these usage rights was with an expensive product from Adobe, so the potential was initially not realized.
    With the release of Acrobat 7, Acrobat users were able to add some usage rights, such as commenting. While this was a welcome addition, folks still wanted to be enable forms to be saved with Reader. Finally with the release of Acrobat 8 Pro, users were able to enable forms to be saved with Reader, but it came with licensing restrictions. In short, if the licensee distributed the form for more than 500 recipients, the licensee could use data from no more that 500 copies of a particular form that was returned to them, including hardcopies. This was great for forms used inside of an orginization, but not so great for forms that needed to be used by the general public. Still, it was a very useful feature for a majority of businesses for internal forms, the vast majority of which have fewer than 500 employees.
    Acrobat 9 or 10 didn't change things. Adobe still wants to capitalize on this market, which certainly is not a bad thing for Adobe and their stockholders. The US IRS forms have long been saveable with Reader because they licence Adobe Reader Extensions, which provides revenue for Adobe.
    Note that some third-party PDF viewers allow users to save filled-in forms whether or not the documents have usage rights. Such software has a different marketing model than does Adobe Reader/Acrobat, and rides the coattails of Adobe by taking advantage of the popularity of PDF forms.

  • Data Conversion in SAP E-Recruiting.

    Hi SAP E-Recruiters,
    Our client is using a Legacy application for recruiting candidates where it has 5000 candidates data base (internal and external candidates' applications).
    Now they are asking for movement of this whole data to the newly implementing SAP E-recruiting system. We are exploring various data conversion methods and found that BDC, LSMW will not work for E-recruiting data upload as we have every thing in BSP/Web Dynpro pages here.
    We need your help in finding a solution for moving this data from legacy to SAP E-Recruiting. Pls do the needful.
    Thanks,
    Sudheer

    Sudheer,
    So far there are no SAP delivered migration methods or BAPI's available conversion of candidates/applications, as you have already specified BDC's wouldnot work. Internal candidates always can be brought over in eRecruitment with integration techniques between PA and eRecruit depending upon the landscape.
    However, for external candidates custom conversion programs have to be written by making use of methods/function modules that are used in BSP/WebDynpro.
    regards
    Sridhar

Maybe you are looking for

  • Minimal Photoshop CS4 Crashes . . .

    I'm running Photoshop CS4 on an '07 Mac Pro with Photoshop GPU execration turned on.  I had installed Photoshop CS4 after installing a new internal SATA drive and partitioning the new drive by the limited abilities of the OS 10.4.x Mac Pro OEM instal

  • Email PO to OA partner - How to add different email add

    Hi Gurus, I have a requirement to be able to email PO to Partner function OA maintained in Schema already and gets defaulted into PO. Presently output type NEU uses External send 5 and uses email address maintained in Vendor master and send it to VN.

  • CO27 : Item text in Created Material document

    Hi , We are executing CO27 to pick material against Prodn orders / maintenance orders. I noticed Line Item Text (MESG-SGTXT) automatically gets updated with certain text (different from material desc) in material documents mtype 261 created from CO27

  • Q&A database for MM and PP

    Hi Experts, I am looking for the ASAP Q&A database for MM and PP modules. Can anyone send me the documentation please? Fotso

  • Error in crystal external component has thrown an exception

    When the customer tries to print a report in crystal send this error  external component has thrown an exception