How to send GOS document attached to PO for Printing

Hi,
My requirement is as below.
My user is creating attachment to the Purchase Order using GOS. For purchase order we have created one Z smart from.
So when ever the user print the from for PO, along with the PO form my client want to print all the attachment also.
How we can print the attcahment(GOS) in the PO along with the form.
My client also want to send this attachment via mail and fax when ever the form is sent via mail or fax.
Kindly help.

Continue.........
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
region = 'B'
IMPORTING
folder_id = lv_folder
EXCEPTIONS
communication_failure = 1
owner_not_exist = 2
system_failure = 3
x_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
ENDIF.
lv_object-objla = 'EN'.
lv_object-objnam = 'MESSAGE'.
lv_object-objdes = 'test'.
concatenate '&KEY&' p_url into wa_content-line.
APPEND wa_content TO it_content.
CALL FUNCTION 'SO_DOCUMENT_INSERT'
EXPORTING
parent_id = lv_folder
object_hd_change = lv_object
document_type = 'URL'
IMPORTING
document_id = lv_doc
TABLES
objcont_text = it_content
EXCEPTIONS
active_user_not_exist = 1
dl_name_exist = 2
folder_not_exist = 3
folder_no_authorization = 4
object_type_not_exist = 5
operation_no_authorization = 6
owner_not_exist = 7
parameter_error = 8
substitute_not_active = 9
substitute_not_defined = 10
x_error = 11
OTHERS = 12.
IF sy-subrc EQ 0.
MOVE: p_key TO lv_object_a-instid,
p_bo TO lv_object_a-typeid,
'BO' TO lv_object_a-catid.
CONCATENATE lv_folder-objtp lv_folder-objyr lv_folder-objno
lv_doc-objtp lv_doc-objyr lv_doc-objno
INTO lv_object_b-instid.
lv_object_b-typeid = 'MESSAGE'.
lv_object_b-catid = 'BO'.
TRY.
CALL METHOD cl_binary_relation=>create_link
EXPORTING
is_object_a = lv_object_a
is_object_b = lv_object_b
ip_reltype = 'URL'.
CATCH cx_obl_parameter_error .
CATCH cx_obl_model_error .
CATCH cx_obl_internal_error .
ENDTRY.
COMMIT WORK.
ENDIF.

Similar Messages

  • How to create GOS view attachment list in ECC6

    Hi,
    I created Z transaction. I have to create View attachment List to this transaction. How to create GOS view attachment list in ECC6. can anybody send sample code on this.
    Thanks in advance.
    Zakir.

    Hi all,
    I've following problem with class CL_GOS_ATTACHMENTS.
    Transaction IE01/02/03 (create/change/display equipment) starts and instantiate GOS manager, and related BAdI are called.
    Then, when I choose one of available service, CL_GOS_ATTACHMENTS is instantiated, and inside that class a new GOS manager is instantiated, inspite of already existing instance.
    As a result, related BAdI are called twice, but unfortunately second time some SY variables are not correctly filled, particularly SY-TCODE and SY-MODNO are both empty.
    I've develop a workaround so that when sy-tcode is filled I save it somwhere, and when it's empty I filled it from saved value, does anyone know any other solution??
    Many thanks
    Regards
    m@x

  • How to: Send any document using mail via "Right click"

    Hello-
    Does anyone know how to send a document, whether it is a Word, Eccel, Pages doc, etc. via a "Right Click" or similiar key stroke as we can on a WinPC? I am certain it is possible, and the closest commandIi have found is the "Services:Mail" drop down which is seemingly useless (i.e. I do not know how to make use of it). Any suggestions are appreciated. Thx
    MacBookPro 15"   Mac OS X (10.4.6)  

    thexr6,
    Welcome to Apple Discussions.
    Try this if you want to add an attachment to a new mail message:
    1. Open Automator.
    2. In the Library column, click on Mail.
    3. In the Action column, double click on New Mail Message.
    3. In the Action column, double click on Add Attachments to Front Message.
    4. In Automator>File>Save As Plug-In...>Save Plug-in As: (Type your desired name here) Plug-in for: Finder>(Save)
    Right click on the file you wish to attach and select Automator>(your desired name).
    If you know where you actually want to send the message, enter the specific information required in step 3, and add/select "Send Outgoing Messages" after step 3.
    ;~)

  • How To send DMS(Documents cv01,cv03n,cv04n) from one sap system to othersap

    Hello Experts,
    I am working Document management system(CV01,cv02n,cv03n,cv04n)...
    I want to send the documents from one SAP system to Other SAP system
    Using ALE/Idocs....
    Please Help on this any sample programs....or function module....
    Thanks
    Preethi

    Hello,
    Please refer to the thread:
    How To send DMS(Documents cv01,cv03n,cv04n) from one sap system to othersap
    Best Regards, Murugesh AS

  • When I open a word document attachment in mail for IOS 7.1.1 the previous jpeg is showing on the first page. When I open the attachment from mail in mac OS X the jpeg does not appear. Can anyone help?

    When I open a word document attachment in mail for IOS 7.1.1 the previous jpeg is showing on the first page. When I open the attachment from mail in mac OS X the jpeg does not appear. Can anyone help?

    gonsa47 wrote:
    When I open it in pages or word the correct company logo appears.
    Does the mail app display whatever is in the document without the ability to differentiate between hidden or non hidden images?
    The mail app will not display fillable form fields in PDF files that can be seen in real PDF apps. I say real PDF apps because the form fields in PDF apps will not appear in the iBooks app either. IMO, iBooks is not a real PDF app.
    So, I would say that the mail app cannot differentiate between hidden and non hidden items

  • New document alert: How to get PDF documents into Adobe Reader for iOS

    Opening PDF Files in Reader for iOS (iPhone and iPad) has been very helpful to many users of Adobe Reader for iOS.  However, Apple has drastically changed the user interface in iOS 7, which made the original document obsolete. 
    According to Apple Developer Support's App Store Distribution page, 89% of devices connected to the App Store are using iOS 7 during a 7‑day period ending June 29, 2014.
    Because of the exceptionally high iOS 7 adoption rate, Adobe Reader for iOS version 11.3 now supports iOS 7 only.
    Here are the new How-To documents for iOS 7.
    How to get PDF documents into Adobe Reader for iOS (iPad on iOS 7 version)
    How to get PDF documents into Adobe Reader for iOS (iPhone on iOS 7 version)
    (It had to be split into two separate documents because each contains way too many screenshots.)
    Hope these documents are as helpful as the original one.
    Please let us know if you have any feedback or suggestions on the topics for other help documents/tutorials.

    Dennis (or any Adobe rep),
    Any updates to the OP's question? I'm with a large government agency, and we're moving away from GoodReader for reasons I can't go into here, and the ability to add user-defined bookmarks within the app is a mandatory feature for the document reader we select. I have the latest version of Adobe Reader (11.6.1) installed on my government iPad, and the ability to add user-defined bookmarks still seems to be missing. Does Adobe have any plans to add this feature, or is it already present and I'm simply overlooking it?
    Thanks,
    Cam

  • How can I change the default page setup for printing messages in Apple Mac Version 4.6 (1085)

    How can I change the default page setup for printing messages in Apple Mac Version 4.6 (1085)

    As soon as I posted, Ifigured this one out on my own by going into user settings and changing the default there. Then I was able to delete the default @mac account. Thanks!

  • How to send mail with attachment

    Hi,
    How to send mail with word document as attachment in oracle pl/sql.
    kindly help me .
    thank you
    regards
    P Prakash

    create or replace procedure pdf_mail(
        p_sender     varchar2, -- sender, example: 'Me <[email protected]>'
        p_recipients varchar2, -- recipients, example: 'Someone <[email protected]>'
        p_subject    varchar2, -- subject
    p_text   varchar2, -- text
    p_filename  varchar2, -- name of pdf file
    p_blob   blob     -- pdf file
    ) is
      conn      utl_smtp.connection;
      i number;
      len number;
    BEGIN
      conn := demo_mail.begin_mail(
        sender     => p_sender,
        recipients => p_recipients,
        subject    => p_subject,
        mime_type  => demo_mail.MULTIPART_MIME_TYPE);
      demo_mail.begin_attachment(
        conn         => conn,
        mime_type    => 'application/pdf',
        inline       => TRUE,
        filename     => p_filename,
        transfer_enc => 'base64');
        -- split the Base64 encoded attachment into multiple lines
       i   := 1;
       len := DBMS_LOB.getLength(p_blob);
       WHILE (i < len) LOOP
          IF(i + demo_mail.MAX_BASE64_LINE_WIDTH < len)THEN
             UTL_SMTP.Write_Raw_Data (conn
                                    , UTL_ENCODE.Base64_Encode(
                                            DBMS_LOB.Substr(p_blob, demo_mail.MAX_BASE64_LINE_WIDTH, i)));
          ELSE
             UTL_SMTP.Write_Raw_Data (conn
                                    , UTL_ENCODE.Base64_Encode(
                                            DBMS_LOB.Substr(p_blob, (len - i)+1,  i)));
          END IF;
          UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
          i := i + demo_mail.MAX_BASE64_LINE_WIDTH;
       END LOOP;
      demo_mail.end_attachment(conn => conn);
      demo_mail.attach_text(
        conn      => conn,
        data      => p_text,
        mime_type => 'text/html');
      demo_mail.end_mail( conn => conn );
    END;
    ref:
    http://www.plpdf.com/23-1725.html
    Edited by: Mahanam on Jan 9, 2011 10:32 PM

  • How to send a document I have scanned and renamed

    Once I have scanned the document how do I get to the document so I can email it?

    Hey @jerryshea, thanks for asking that question on the HP Forums today!
    I'm happy to see that your printer is working great and scanning properly. You say you renamed and saved the scans, but you are wondering how to send them via email/how to find them on your computer to send.
    Here is the Windows tutorial - How to Send an Email with an Attachment
    Here is the Mac tutorial - How to Send E-Mail on Your Mac
    If these tutorials are not helpful remember you can always contact your respective support companies. Windows or Mac.
    Hope this helps! Look forward to hearing back from you about how this goes!
    I worked for HP.

  • How to send dms document as email attachemnt

    Dear Techies
    Can you share the code to send the dms document as an email attachment through abap program.
    Thanks in advance.
    regards
    Omer Humayun

    Hi Omer,
    Please have a look into SCN document http://wiki.scn.sap.com/wiki/display/Snippets/DMS+Document+send+as+email+attachment
    Send DMS Document Attachments in Mail
    Hope this helps.
    Regards,
    Deepak Kori

  • How to send email with attachment

    Hi friends,
    I am using soa 11.1.1.7.0
    Jdev 11.1.1.7.0
    WebLogic:- 10.3
    I want to generated email with attachment in BPEL 11g. Below is what i did in my bpel process
    Create simple hello world bpel process.
    In email activity below details are given
    <scope name="Email1">
    <bpelx:annotation>
    <bpelx:pattern patternName="bpelx:email"></bpelx:pattern>
    </bpelx:annotation>
       <variables>
       <variable name="varNotificationReq"
                              messageType="ns1:EmailNotificationRequest"/>
                    <variable name="varNotificationResponse"
                              messageType="ns1:ArrayOfResponse"/>
                    <variable name="NotificationServiceFaultVariable"
                              messageType="ns1:NotificationServiceErrorMessage"/>
                </variables>
                <sequence name="Sequence1">
                    <assign name="EmailParamsAssign">
                        <copy>
                            <from expression="string('Default')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:FromAccountName"/>
                        </copy>
                        <copy>
                            <from expression="string('')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:FromUserName"/>
                        </copy>
                        <copy>
                            <from expression="string('')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Bcc"/>
                        </copy>
                        <copy>
                            <from expression="string('')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Cc"/>
                        </copy>
                        <copy>
                            <from expression="string('')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:ReplyToAddress"/>
                        </copy>
                        <copy>
                            <from expression="bpws:getVariableData('inputVariable','payload','/client:process/client:subject')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Subject"/>
                        </copy>
                        <copy>
                            <from expression="bpws:getVariableData('inputVariable','payload','/client:process/client:to')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:To"/>
                        </copy>
                        <copy>
                            <from><Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"><MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">multipart/mixed</MimeType><ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"><MultiPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"> <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"><MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/><ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/><BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/></BodyPart> <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"><MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/><ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/><BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/></BodyPart></MultiPart></ContentBody></Content></from>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content"/>
                        </copy>
                        <copy>
                            <from expression="string('text/html; charset=UTF-8')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[1]/ns1:MimeType"/>
                        </copy>
                        <copy>
                            <from expression="bpws:getVariableData('inputVariable','payload','/client:process/client:body')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[1]/ns1:ContentBody"/>
                        </copy>
                        <copy>
                            <from expression="string('text/plain')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:MimeType"/>
                        </copy>
                        <copy>
                            <from expression="string('SampleStudent.txt')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:BodyPartName"/>
                        </copy>
                        <copy>
                            <from expression="concat('file:///', bpws:getVariableData('inputVariable','payload','/client:process/client:attachmentURI'))"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:ContentBody"/>
                        </copy>                
                    </assign>
                    <invoke name="InvokeNotificationService"
                            portType="ns1:NotificationService"
                            partnerLink="NotificationService1"
                            inputVariable="varNotificationReq"
                            outputVariable="varNotificationResponse"
                            operation="sendEmailNotification"/>
                </sequence>
            </scope>
            <!--
              Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
            -->
            <invoke name="callbackClient"
                    partnerLink="sendingemailwithattachmentsprcs_client"
                    portType="client:SendingEmailWithAttachmentsPrcsCallback"
                    operation="processResponse" inputVariable="outputVariable"/>
        </sequence>
    </process>
    I am able to generate Email with attachment but i cant see the data in the attached file.
    I think i need to convert the data before sending as a attachment. Could someone please help me in generating the txt files.
    Regards,
    Rajireddy.

    Re: sending fax

  • How to send a document from pages in email

    Can u send a document from pages in email that can be opened by a PC.

    Ourdream wrote:
    even if I dont have word it can be sent as word?
    Yes, try Share > Send Via Mail

  • How to send BLOB in attachement in oracle 10g?

    Hi,
    Actuall we requried to send and email from Oracle 10g database having attachements big in size aprox 10 to 30 MB.
    Is there any Custom Procedure or standard procedure for this.
    We are using UTL_SMTP and UTL_MAIL (Only support RAW attachement upto 32 k in size).
    Regards

    Hello,
    using UTL_SMTP and UTL_MAILI think It's difficult.
    But you can use DBMS_SCHEDULER, And DBMS_SCHEDULER is able to run OS command.
    So You might be able to send email with attachment via postfix etc...
    Although it might not have the solution for your req.
    Regards,

  • How to send material jpg attachment  from R3 to FTP with XI

    Hi All,
    I wantto send material JPG attachment from R3 to FTP with XI 3.0. Is there a way ?
    Thanks.

    Check these two blogs:
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    http://sapient.xi.googlepages.com/xi-excellentintegration
    Regards,
    Abhishek.

  • How to send a document to multiple signers

    In this tutorial, learn how to send an agreement to multiple unique signers who are signing the same agreement.

    Ourdream wrote:
    even if I dont have word it can be sent as word?
    Yes, try Share > Send Via Mail

Maybe you are looking for

  • Firefox 4: Bookmarks will not Open in New Tab"

    Firefox 4.0 Bookmarks menu, the option to Open in New Tab is not working. I can open bookmarks in existing tabs but nothing happens when choosing new tab.

  • Any suggestions on what RAM to get??

    Any advice on what is the best brad to get? I've heard stories of peoples laptops going bad after installing bad RAM I have a mid 2012 macbook pro

  • Key Chain Access won't open - crashes - please help!

    I had to hard reset my laptop the other day and a few things happened - I had to rebuilt the microsoft entourage database which is now fine but Key Chain Access crashes everytime I try to open it! Have repaired all permissions etc. I've all of a sudd

  • Kodo 2.3 speed

    Kodo 2.3 speed of updates seems to improve a lot over 2.2.x. Probably due to tuned writes and statement caching(?) Speed of read seems to be a bit slower. I am wondering is it due to support for large queries? I would like to be able to configure Kod

  • How to edit trace info FN_TRACE_GETINFO('1')

    Hello all, Do someone know how to edit trace info from query below, for example, I want to edit value of property from 2 to 4 for security reason, thanks so much select *  FROM ::FN_TRACE_GETINFO('1') traceid property value 1    1    2 1    2    C:\P