External printin via SAP

Hello experts!
I would like your help regarding printing external files via SAP.
I tried the following code :
create object gs_word 'WORD.APPLICATION'.
set property of gs_word 'Visible' = '0' .
call method of gs_word 'Documents' = gs_documents.
call method of gs_documents 'Open' = gs_newdoc
exporting #1 = 'C:\My Documents\test.doc' .
exporting #1 = p_file .
call method of gs_word 'ActiveDocument' = gs_actdoc .
call method of gs_actdoc 'PrintOut' .
call method of gs_actdoc 'Close'.
call method of gs_word 'Quit
and it works fine with microsoft word documents. But how about .xls or .pdf or any other file format????
Please give me abny hint..
Thanks in advance!!!!!!!!

Hi Iria,
Hope this helps:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a9f3e590-0201-0010-4da9-c195623f88c3
Kindly Reward Points If You Find The Reply Helpful.
Cheers,
Chaitanya.

Similar Messages

  • Starting external programms via SAP XI

    Hello everybody,
    is it possible to start external programms via SAP XI?
    I have following scenario:
    A user in a webapplication should approve a process. Then a file which is on a fileserver should be encrypted und should be sent via ISDN (external programms are responsible for this doing).
    Can SAP XI handle this requirement? Does it make sense? Or should the webapplication starts this programms without SAP XI?
    Best regards,
    Jürgen

    Hi,
                   webservice                         File Adapter
    Website-->>>>>>>>>>>>>>>>  XI  >>>>>>>>>>>>>FILE
                    Soap Adapter
    Regards
    Hemant
    Reward points if find helpful

  • Printing existing PDF-File via SAP-Spool

    Hi to all,
    I'm looking for a solution to print existing PDF-Files (external Directory) via SAP-Spool, in order to create a set of documents in correct succession, where some of them are created within SAP and others beeing created externally (PDF-Files).
    We use NW7.0 and have AdobeDocumentServices activated.
    I don't want to create PDF-Files out of SAP-Spool-Requests.
    Thank you for any helpful hint.
    Best Regards
    Christian

    Thanks for this, having a look through at the moment, just one question do I have to install this SDK just to automatically print an existing PDF document from a 3rd party application when I have only the Reader installed?
    Thanks

  • Extract data from SAP and send to external system via Webmethods & IDOC's

    Hi,
    We need to Extract data from SAP and send to an external system via Webmethods middlewear using IDOCs. I have never used webmethods before and would like to know more about how to implement this scenario. I have used IDOCS in an EDI scenario before but not used it along with WebMethods.
    Any pointers would be of great help. Thanks

    If you have already ABAP programs /BAPI's in place then try to develop RFC interface and write some back ground programs to scheudl BAPI's and develop scenario but you need to implement error handling , data validation in PI mapping level.
    or
    take help from ABAPer to design in ABAP like writing Proxy program to pull data and send it PI.
    if you are dealing with master data bit risky(correctness) but can be achived using PI.

  • How to display document from external archive via archivelink?

    Hi,
    I would like to display in SAP (via ArchiveLink) scanned document which was stored in an external archive (FileNet). The archive system is connected to SAP via ArchiveLink. However the scanned document isn't stored in the archive system via SAP so I don't know the ARCHIV_DOC_ID. I only know OBJECT_ID as far as the metadata of document is considered.
    I tried to use ARCHIVOBJECT_DISPLAY function module with object_id and arvchiv_id but I get the message no. OA512 (Parameter info was not transferred for command docId). I can only display scanned document entering the right value of ARCHIV_DOC_ID parameter. But actually I don't know the value of this parameter from the level of SAP system.
    Could anybody give me some clue or hints?
    Best regards,
    Zacaria

    Hi
    Just as Fred written SAP needs to be linked to external archiving system by a Contenent Repository (transaction OAC0).
    The menu for ArchivLink setting is in customazing:
    Was it done that?
    Max

  • Call to Web Sevice in external system from SAP CRM

    Hi,
    I have to make a call to External system from SAP CRM 5.0 system. The external system will provide a sample webservice which SAP will try to initiate
    Can you please tell me:
    1. What settings/object needs to be maintained in SAP in order to make this call.
    2. how I can make a call to this Web-Service from a BADI and pass the values to web service and also capture the returning value.
    Please explain in detail
    Thanks,
    Mike

    Mike,
    You should honestly search the SDN site for consuming web services with ABAP.  There are some good examples.
    However the general procedure is easy:
    1.  Generate an ABAP proxy using the WSDL provided to you by the external program
    2.  Configure an HTTP destination for the server of the web services (needed for HTTPS calls)
    3.  Configure the logical port for the web service using lpconfig
    4.  Write the abap code to call the webservice via the proxy.  Works very similar to FM call in my opinion.
    To expose a webservice(bapi being called from outside) you need to do a little more work
    1.  Create a web services for the RFC enabled function module via SE80
    2.  Use wsadmin and wsconfig to make the service available
    3.  Publish the service out to the UDDI as needed.
    Once again this code is pretty well documented in the standard help and SDN.  Do a simple search on ABAP proxies and you will find what you need.
    Take care,
    Stephen

  • Accessing Solution Manager CHARM Via SAP CRM

    Hi
    Is it possible to accces charm of soultion manager via SAP CRM
    If so how does it work and documentation are welcomed
    Thanks in advance
    R-K

    option 1
      > customise sap crm to cater for the external product in terms of what solution manager charm / service is currently doing for sap componet
        . Create all the status for this products eg: transport is in Dev for product A, Transprot is in QA for product A or product is in Prod then test and close the call
    > access solution manager from crm (NB: work center / service desk can be accessed through crm) the problem is WE NOT SURE OF CHARM
    > also customise crm to cater for IT related issues like broken laptop or netowrk cable not working or  IT related query,
    Option 2
    > intergrate the external product to solution manager o
    > Customise CHARM / service desk to cater for this external product in solution manager the way it does for sap components / ibase

  • Sending external email via SAPCONNECT

    Hi all,
    I want to know how to send external email through sap.
    Thanks in advance,
    Manosh.

    HI,
    Try this  code:
    *& Report  ZSENDEMAIL                                                  *
    *& Example of sending external email via SAPCONNECT                    *
    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default '[email protected]' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
          Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
          Send email message
    form send_email_message.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = it_receivers
           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.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    Reward points if found helpful....
    Cheers,
    Chandra Sekhar.

  • Sending external email from SAP with following requirements...

    Hi All,
           I need to send external emails from SAP by meeting following requirements.
    1) With subject line more than 100 characters.
    2) No attachments, only body which has specific format (blueprint/layout) and would be amended often, hence code shouldn't be touched during amendments.
    3) Should be able to know the success/failure of mail sending at program level.

    Hi,
    The code below demonstrates how to send an email to an external email address
    *& Report  ZSENDEMAIL                                                  *
    *& Example of sending external email via SAPCONNECT                    *
    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default '[email protected]' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
          Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
          Send email message
    form send_email_message.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = it_receivers
           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.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • UWL object link missing parameters when jump to external page via portal

    We configured SWFVISU in ECC to jump out to an external application via a portal page. Our resultant URL looks like this:
    http://XYZ:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fcom.xyz.portal.frameworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.xyz.pct.xyz%2Fcom.xyz.pct.rols.func_Sales_Representative1%2Fcom.xyz.pct.wrks.s.func_Sales%2Fcom.xyz.pct.pgs.func_Order_Accounts_OA&uname=USER.CORP_LDAP.mdeklerk&langu=EN
    BUT the work item object link parameter i.e. Sales Order No. does not get passed/attached to the string. What are we missing?

    It is passed as an implicit UWL parameter and will not be displayed in URL. You can read this parameter from webdynpro application.

  • SSO to SAP via SAP Logon Group

    Hi,
    I've tried to configure SSO to SAP via SAP logon group. When trying this I'll get the following error:
    Connect to message server failed Connect_PM MSHOST=<server>, R3NAME=IB1, GROUP=IB1_Web LOCATION CPIC (TCP/IP) on local host ERROR The message received isn't from a message server. Are you really connected to the message server? Please check your connection parameters. (<server> / sapmsIB1) TIME Tue Dec 16 16:48:49 2008 RELEASE 640 COMPONENT MS (message handling interface, multithreaded) VERSION 4 RC -2
    I've also configured the file services under winnt\system32\drivers\etc on the BO server with the following line:
    +sapmsIB1      443/tcp     +
    Is there anything I'll have to configure too? Or what does this error mean? The server which I have tried to reach is a message server.
    Thanks in advice.
    Claudia

    HI Ingo,
    yes I can connect with SAP GUI via message server and application server. I can also connect with BO via sso to the application server. Only the message server failed.
    I have now found out that I had the wrong port. But also the right port doesn't work. I have tested the port with telnet. The port is reachable.
    Thanks
    Claudia

  • Problem with T61 and DVI External Monitor (via Advanced Mini-Dock)

    Ever since I upgraded to Vista SP1 on my ThinkPad T61 (with an Intel integrated 965 series graphics card), I've been having problems when I try to use an external monitor via the DVI port in my Advanced Mini-dock.  I'm curious if other people have experienced this problem.
    The problems surfaces when I first boot up, or sometimes after my ThinkPad has been running for awhile (particularly when I do something graphics related, such as right-clicking to open display properties).  The picture starts to flicker (or disappear and reappear, like the screen does when changing graphics resolutions).  I also hear the "ba-bum" sound that you hear when disconnecting a piece of hardware, followed by the "bum-ba" reconnection sound - these two sounds happen repeatedly (sometimes as fast as once per second).  If I don't do anything, sometimes I'll get a bluescreen.
    Not long ago, I found a fix of sorts: to stop the flickering/reconnecting, I just open Task Manager and stop the process called "igfxpers" (an Intel driver problem).  The problem always disappears after I do this, although I have to remember to do it every time I reboot or else the problem comes back.  So it's not an ideal fix.
    This problem doesn't happen when I connect an external monitor using the analog VGA port, or when I'm just using the notebook LCD.  It's limited to just the DVI connection.  I've tried two different digital monitors (one LG, the other BenQ) as well as two DVI cables - the problem is still the same.  So it seems like a driver problem of some sort - unfortunately, the Intel drivers haven't been updated since last February.
    I should also note that I've tried reinstalling my OS two or three times, and the problem always comes back.  Has anyone else had this problem, and is a fix on the way?

    Error Message:
    Input signal out of range. Translation:
    You will see this on an otherwise blank screen. Assuming that the data cable is plugged in correctly, the video card is feeding the monitor a signal stream in excess of what the monitor can accommodate. The two main causes for this are that the user has set either the resolution or the vertical frequency rate too high. For example, you might set a new graphics card to display at 1,280 x 1,024, but if the monitor is only capable of 1,024 x 768 resolution, you’ll get a Sync Out of Range error. This is especially common in 14-inch monitors.
    Solution:
    Because you obviously can’t make settings changes from within regular Windows, you’ll need to reboot into Windows Safe Mode. When you restart the system, there is a point during boot up when the system switches from reporting diagnostics and detected components to loading Windows. This point is usually accompanied by a beep and the screen going black. Just before this point, you want to start repeatedly pressing the F8 key. This should bring up a menu of Windows boot options. The one you want to pick is Safe Mode.
    From Safe Mode right-click the Desktop and select Properties. Go to the Settings tab and use the slider to drop your resolution a notch or two. Reboot and let Windows try to go into Normal mode. If this still doesn’t work, go back into Safe Mode and get to the Settings tab of Display Properties. Click the Advanced button, go to the Monitor tab, and check your refresh rate. The lowest advisable rate is usually 60Hz, although this works better for LCDs (liquid-crystal displays) than CRTs (cathode ray tubes). Apply the change and reboot.

  • User is getting email delivery failure when processing via SAP as it tries to send an email to a user who have left the company

    Hi Experts,
    I need to remove a name on a group list in Outlook as the user is getting email delivery failure when processing via SAP (He sends the invoice for approval and emails get sent to different users for approval.) One of those users has left the company and so the user gets a email delivery failure error.
    How do I remove this user who is no longer with the company?
    The user is saying: When I approve an invoice in SAP it sends an email notification through outlook. One of those users is no longer with the company so it cannot deliver the notification, and in return send a delivery failure (in outlook). I am approving the invoices from my SAP Workplace inbox.
    How do we know what group the email is going to?
    Please let me know if you have seen this issue before. Greatly appreciate your help.
    Thanks,
    Asad

    Hi,
    Please check whether you are using a custom z program for sending emails of approved invoices to users. If yes then either the user email ids are hardcoded in the program else a ztable is maintained for them.

  • Error while attaching PDF to FI doc via SAP services

    Hi,
    I am calling SCMS_DOC_CREATE_FILES funtion module to attach PDF to FI doc via SAP services and SAP internally calling standard function 'HTTP_POST_FILESu2019 with RFC_DESTINATION u2018SAPHTTPAu2019 and returned error due to connection fail.
    RFC DESTINATION SAPHTTPA checked and   its working fine.
    call function 'HTTP_POST_FILES' destination rfc_destination
        EXPORTING
          uri                   = absolute_uri
          path                  = component_path
          proxy                 = proxy
          trace                 = http_trace
          prefix                = component_prefix
          user                  = user
          pwd                   = password
        IMPORTING
          status                = status_code
          stext                 = stext
          error                 = cerror
          etext                 = comp_err
        TABLES
          resp                  = response_entity_body
          resphead             = response_headers
          reqhead               = request_headers
          comp                  = components
          compx_255             = componentsx
        EXCEPTIONS
          system_failure        = 1  message msg
          communication_failure = 2  message msg.
         output:   Sy-subrc is 0 and status_code is '403'
    response_entity_body internal table return the below error information:-
    -     HTTP/1.1 403 Forbidden
    -     Server: Apache-Coyote/1.1
    -     X-ErrorDescription: Genuine channels operation exception: Can not connect to the remote host "gtcp://127.0.0.1:49008". System error message: No connection could be made because the target machine actively refused it 127.0.0.1:49008.
    -     Content-Type: text/html;charset=utf-8                           Date: Tue, 08 Nov 2011 21:36:02 GMT
    -     Connection: close
    Please help i am not to able find the reason why i am getting status_code is '403' and RFC failed.
    Thanks
    Sireesha
    Edited by: Sireesha_SAP on Nov 10, 2011 8:53 PM
    Edited by: Sireesha_SAP on Nov 10, 2011 10:16 PM

    Hi,
    I would like to know what font type, you are using in the forms.
    Ideally it should be HELVETICA .
    If you are using any other font in your style/form,try changing it to HELVETICA & Test.
    Also Check the OTF data at the call of gen. FM,before converting it to PDF.
    Regds,
    AS
    Edited by: abheesawant on Oct 12, 2011 7:48 AM

  • Production Order and external system non-SAP

    Dear Friends,
    I need to send a Production Order to a external system no SAP, and upload the information back to SAP,
    SAP does something standard to accomplish this task?
    To send Production Order, I created an IDOC with report RCCLORD, this IDOC contains all information of a production order (AUFNR, WERKS,..) and all operations and materials. But I don't know how to process the information returned.
    Also I have read some information about the interface PP-PDC, but I don't know how to use it.
    Please, Can anyone tell me the best way to accomplish this task?
    this is the scenario:
    SAP R/3 -
    > Production Order -
    > External System
    External System -
    > Return information about Production Order -
    > SAP R/3
    Thanks!

    Hi,
    PP-PDC is for confirmations only, see further details
    http://help.sap.com/erp2005_ehp_05/helpdata/en/31/fcbd3411d411d3b6b60000e8359890/frameset.htm
    maybe usage of POI is an option for you. See details here
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/1a/0e347b539911d1898b0000e8322d00/frameset.htm
    BR Sabine

Maybe you are looking for