How to automatically attach document in PO - Extended Classic

Hi,
We are using the SRM 4.0 - extended classic scenario. We are creating the PO via sourcing (Manually converting SC into PO by assigning the Vendor).
In our scenario, the Terms and Conditions have to be attached to PO automatically (without User need to browse and upload them).
Is there a BAdI to attach the Document to the PO automatically.
Regards,
Rahul

Hello Pras,
Rahul is not trying to transfer attachments to R/3, but to create automaticaly an attachment for the PO.
Rahul, the smartform + CUF solution is the simplest and cheapest solution, and the less consumming in DB space (no physical document stored).
If you want to handle it via an attachment, you must code CHANGE or SAVE BADI to add an attachment at header level, is PO is created from transaction BBPSOCO01.
You would have to store this document in SRM KPRO, as a document model, and store its ID somewhere.
So when creating the new attachement, you can retrieve it and duplicate it.
Another approach, to avoid replicating N times the same document, is to handle the PO header CUF only, and interprete this CUF when editing the PO. In this edition step, you could then read model and add it in your PO output.
You could also just create a new attachment link without creating a new physical document by just linking the document model to your PO via an attachment link in BBP_PDATT. To do so, just add a new entry in attachment internal table in CHANGE BADI, using the LOIO Object ID.
For the last solutions, you will need some skills around document storage in SRM (LOIO, PHIO, KPRO...).
Rgds
Christophe

Similar Messages

  • How to Read Attached Document In oracle apps.

    Hi All,
    how to read attached document in Oracle apps.
    Select * from   fnd_attached_documents.
    Regards,
    Mohan Reddy

    Hi Husseein,
    how to read pdf file in blob data type column
    i have tried below query but in this part utl_file.fopen asking directory name i don't have directory name.
    could you give any another solution.
    DECLARE
      l_file      UTL_FILE.FILE_TYPE;
      l_buffer    RAW(32767);
      l_amount    BINARY_INTEGER := 32767;
      l_pos       NUMBER := 1;
      l_blob      BLOB;
      l_blob_len  NUMBER;
    BEGIN
      SELECT FILE_DATA
        INTO   l_blob
        FROM   fnd_lobs
         where file_name = 'est-1.pdf' and FILE_ID = 332810;
      l_blob_len := DBMS_LOB.getlength(l_blob);
      -- Open the destination file.
      l_file := UTL_FILE.fopen('IRB','STD_FlipBook_Religion2013.doc','wb',18306);  --(Here I don't have Directory name)
      DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer);
      UTL_FILE.put_raw(l_file, l_buffer, TRUE);
      l_pos := l_pos + l_amount;
      -- Close the file.
      UTL_FILE.fclose(l_file);
    END;
    Regards,
    Mohan Reddy

  • PO attachment transfer to ECC - Extended classic scenario

    Hi all,
    We are on SRM 5.0 ECS.As standard,can the SRM PO attachments be transferred to  ECC PO?Is this possible in  ECS?If so,what are the steps?

    HI Alexander,
    The purchase order in the Extended Classic Scenario is transferred to the backend system with different Function Modules. The
    attachment transfer logic was only implemented in the Classic Scenario.
    One reason for this decision was, that the leading Purchase Order in the extended classic scenario is the local one, and in the local purchase order the attachments are available.
    At the moment it is not planned to support the attachment transfer in the Extended Classic Scenario. The transfer of attachments to backend PO is developed only for Classic Scenario.
    I am sorry that this is not the result that you wanted. This also explains why in the ECS PO transfer BADI BBP_ECS_PO_OUT_BADI does not have the parameters for attachments where as the Classic PO transfer
    BADI does (BBP_CREATE_BE_PO_NEW).
    We have some notes related to SC and POR reporting issues when transferring attachments to ECC side, but ther are related to Classic scenario:
    1400088: SC attachments transferred to ECC PR are lost on EHP upgrade
    1413792 Attachment deleted after changing purchase order
    I hope this information help you to understand this issue,
    Kind Regards,
    Rafael Rhoden

  • How do i attach documents to emails?

    when i am composing an email I do not have the option to attach documents.  How do I fix this?

    1. Open attachment and tap the box with the arrow (top right) and select Email-File
    http://i1224.photobucket.com/albums/ee374/Diavonex/f8af23b3.jpg
    2. Fill in the name (email address), title and body text
    http://i1224.photobucket.com/albums/ee374/Diavonex/dc616826.jpg
    3. Tap "Send"

  • How to automatically attached multiple PDF reports to an e-mail and send

    Hello.
    I have a requirement to generate multiple PDF reports using Oracle Reports 6i on the web, then automatically attach these PDF reports to an Outlook e-mail and then bring up the Outlook e-mail dialog box so the user can modify the e-mail (such as adding more attachments, adding a CC, BC, change the message text) before sending the e-mail. I want to be able to initiate all these tasks from Oracle webforms 6i in a three-tier environment.
    I have already read various notes and solutions but none of them address all my requirements. Examples:
    1. Using OLE to interface with Outlook - but OLE does now work on the Web
    2. Using Java stored procedure or UTL_SMTP - but this does not bring-up an e-mail dialog box
    3. Using mailto: in HTML and web.show_document - but this does not allow you to attach a PDF file
    Can you please advise on possible solutions to my requirements. Thank you very much.
    Regards,
    Armando

    Here is a great resource for sending binaries.
    http://otn.oracle.com/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    You'll want to use utl_http to run each report with a destype=file and then have another procedure running to check to see when all of your reports have finished. After they are finished, you would run the stored procedure to get all of the binaries, attach them in an email and then send it.
    If you want to concate all of the PDF files into one large file, you can do this with a Java stored procedure using iText.
    http://www.lowagie.com/iText/

  • I have a macbook pro with Lion OS and am using Mac mail.  How do I attach documents as attachments instead of coming up in the body of the email?

    How do I attach a file to mac mail without it going into the body of the email?

    To add to what Kappy said, note that you really can't control how some other mail client might display an attachment.  Some may display them inline, while others may require them to be opened separately.  And different people have different desires in this area...  some want a PDF file, for example, displayed inline, while others prefer for it not to be.  Just attach the file(s) and don't worry about this so much.
    Also, I do have to disagree with Kappy on one point...  I would not say that you "should" compress files and attach the compressed archive file.  That will force all mail clients not to display the attachment inline, but not everyone will want that (you'd be forcing your tastes on all recipients of your e-mail), and some people have difficulty figuring out how to open and view the contents of compressed files.  It's an extra step for you and an extra step for the recipient, and is not needed for most popular file types.  (Of course, we could advise you more specifically if we knew what file types you're dealing with.)

  • How we can attach documents in interactive form through GP

    Hi,
    I am creating a Callable Object(CO) for Interactive Form(IF) through GP. This IF is designed in Adobe Live Cycle Designer 8.  I am unable to get reader rights for this PDF which is downloaded as normal form/Impersonalized form. I am having default value for  Document Handling as Acrobat 8 (Dynamic) XML Form in Adobe Live Cycle Designer 8
    I created a NWDS project to test the reader rights which consists an IF. I tried with NWDS 7. When I run the application, I am getting reader rights, and able to attach documents, and able to sign the document.
    I am unable to get these features when I try with GP.
    Do I need to do any thing when I am doing with GP?
    Can any one suggest what needs to be done.
    Thanks in advance.

    Hi ,
    Check this link.Hope this might help.
    http://help.sap.com/SAPHELP_NW04S/helpdata/EN/0f/619fd378a641b29386063019c24fc4/frameset.htm
    Regards,

  • Automatic generate the PO in extend classic scenario

    HI ,expert :
       I  work  in SRM7.0 and  extend classic scenario.
    requirement :
         The employee create SC manually .If the SC is complete ,the following document PO will generate automaticlly .And if the SC is incomplete ,the purchaser can do "carry out sourcing ",and transfer the SC to RFX .
      Q1 :
        How can I set the "sourcing "-always carry out sourcing ,or nerver carry out sourcing ,Or carry out sourcing for item w/o SOS ?
      Q2:
       IF the PO generate automaticlly ,Can I chage it in SRM ,OR I must change it in ECC system ?
    BR
    Alex

    Hi Alex,
    In the path shared above, you can specify the product category for which you want to enable sourcing under 'Category', in the source system please mention your ECC system and under sourcing you can choose various options available in the dropdown.
    You can choose to have sourcing when source of supply is not assigned or you can carry out sourcing always or never.
    Regards,
    Nikhil

  • How to findout for which product category extended classic is activated?

    Dear experts,
    How to find out for which product category extended classic is activated? I am working in a test system. In spro settings, Cross aplication basic settings -> activate extended classic is unticked.
    I see, the system allows me to create a Extended classic PO against a product category 001.
    The product category has same ECC backend  system as target and source system.
    Is there any BADI implementation?
    regards,
    Ranjan

    Hi
    ECS - flag activated - means Extended classic scenario.
    target determine badi - helps to create a PO in desired place.
    source system and tatget system logical entry sjhown means
    PRODUCT CATEGORY - created in Backend system and follow on docuemnts also created in ECC system - so it could be Classic .
    as jay said determine log system badi used for DECOUPLE scenario ( Classic as well as ECS) .
    some times unless we study the system in depth, hart to findout what is exact techniacl scenario.
    or you can find out what type of POs are in BBP_PD for all PO means ECS.
    This SRM tools can be used for many purposes.
    some customers uses for Supplier registration only,
    some one is using for only Bid invitation and Bid and selecting the vendor only
    some one use for all non stock procurment only.
    some one use for only free text - ....
    taste vary in all business.
    you must give more details like what are the Business docuement s are created in SRM
    Muthu

  • How to automatic encrypt documents with Acrobat 9 standard ?

    Hello,
    I wont to encrypt documents automatically if the document is saved with a standard password.
    Is that possible ?
    I have the feeling it should be possibe with some jave code which is invoked during document close.
    The background for this question is that there is a application running with automatically creates PDF-files using Acrobat standard, and sends the files with smtp-email. I want to enctypt this files and there is no chance to configre the application in this way.
    Thanks,
    Thomas

    I have installed the following Javascript and still have problems to execute the function "this.encryptUsingPoliciy", the error message is "is not a function". It seems that "this" does not identify the currently opend document.
    Using the variable "doc" the code runs errorfree and does what I want, but only on the new opened document.
    I simply want to encrypt every document which is opened and saved with a Security Policy !
    What I'm doing wrong ?
    Thanks,
    Thomas
    /* Applying a Security Policy to a PDF Document */
    /* You need to create a security policy before running this script */
    /* Use "Advanced > Security > Manage Security Policies" menu */
    var ApplySecurity = app.trustedFunction(
    function()
      var oMyPolicy = null;
      var sPolicyName = "StandardPassword";
      app.beginPriv();
      // First, Get the ID of StandardPassword security policy
      var aPols = security.getSecurityPolicies();
      for(var i=0; i<aPols.length; i++)
         if(aPols[i].name == sPolicyName)
              oMyPolicy = aPols[i];
              break;
      if(oMyPolicy != null)
         // Now, Apply the security Policy
         // var doc = app.newDoc();
         // var rtn = doc.encryptUsingPolicy({oPolicy: oMyPolicy});
         var rtn = this.encryptUsingPolicy({oPolicy: oMyPolicy});
          if(rtn.errorCode != 0)
               // Print error message into JavaScript Debugger Console
               console.println("Security Error: " + rtn.errorText);
      app.endPriv();
    ApplySecurity();

  • How do I attach documents in an email message, as well as selecting multiple documents out of an app like Docs to Go?

    I'd like to be able to attach a file while shooting an email on the Phone/Pad.
    Conversely, is there a way to select multiple files out of say DocsToGo or the PDFs in your iBooks bookshelf to be mailed in a single email message?

    Hi,
    Check the code samples given in this [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f86c9290-0201-0010-7a93-dda3716dc0d2].
    Regards,
    Surjith

  • How to attach document from webdynpro TO workflow

    Dear friend,
    For one requirement i want to attach documents(.doc or .pdf)
    from webdynpro form.
    I want to display it with user decision step along with description.
    I am confused that which container element would contain it?
    and how can i display it along with description?
    How can i attach document to the workflow?
    Please guide me stepwise.
    Thanx in advance!
    Regards,
    Purvesh.

    hi,
    Please Refer to the thread.
    How to Attach a pdf file which is created in EP while sending the mail
    Regards
    Sumit Agarwal

  • Attaching documents stored in iCloud to an e-mail.

    I am storing documents in iCloud.  I would like to attach a document (or several documents) to an e-mail to send them to clients, other attorneys, etc.  I can attach documents stored on my Mac, but how do I attach documents stored in iCloud?  I am using Apple's mail program.

    When composing a message in Mac Mail, you can access your iCloud Documents by accessing "all my files" from the finder drop-down menu. You can easily access number, pages and keynote documents.
    Also, at the top of the screen, next to where it also says "All My Files" you can sort the files by application, type, etc. This will include all documents stored in icloud, whether it's preview, pages, keynote or numbers.
    Hope this helps.

  • Attach documents in a forum discussion

    Dear Team,
    I would like to know as to how I can attach documents in a discussion forum packaged application.
    Thanks
    Mathuri.M

    After running the query, right click -> GoTo -> Documents for Navigation Status.  There you can create, edit and view documents.
    Regards,
    Kerry

  • IW32 - Print Attachment Document at the time of form printing

    Hi,
    Anyone help me how to print attachement document in Maintenance Order Document ( IW32 ), by the time of Form printing ?
    Regards,
    Hary

    Hi,
    we are looking for a similar solution. We want to include TIFF,PDF at the end of SAP-Script or SmartForms.
    For example: We want to send a purchase-order Formular (out of ME21N) with attached TIFF's or PDF's, so that the vendor received a purchase-order with a design of the material.
    Did you find a solution ??
    Thank for answer.
    Thorsten

Maybe you are looking for

  • How to write XML into file using JSP

    Hello, I am parsing a XML file, then updating some of it content and trying to write back the updated file into the same location as an xml document but its not happening correctly....it gets written like this. &_lt;db_name&_gt;dataext&_lt;/db_name&_

  • WRT54G 2.4ghz problems

    I just bought a ps3 and had problems connecting to the network. I did all the necessary tweaking on the router and ps3 to get it to work. Sometimes it did and sometimes it didn't. I recently found the problem wasn't in my settings but with my wireles

  • How to create standby database

    Hi, How to create standby database, in other server.

  • Axis client: Always creating null-element even if I dont set it

    I am using Axis client to integrate with Webmethods. They have a type specified with: <element name="x" type="string" minOccurs="0"/> I do not want to set the value in the field because the value is unknown for me. So I choose not to set it at all an

  • Controlling interchange id in UNB

    We have a situation where we send EDIFACT D96A INVOIC messages from BPEL to B2B for transport with SFTP to different external parties. The problem is that both the host and some of the external partners represent multiple companies and use multiple i