Send CV03N attachments present in Purchase order at line item level

I have a purchase order and want to send it via email. The purchase order has attachments at line item level (e.g. a specification in pdf format). Attachments were able to see through T-code CV03N,
When transferring the PO to vendor ,smartform is attached to email and sended to vendor .now we need additioanl attachments also to be sended in same email which is present at line item level (CV03N),Whether it is possible to copy the attachments into the email, so they are sent out, too?
Please explain the methods
Print program used for smartform is custom Z name space.
Thanks in advance
Regards,
arun

part 3
*& Cet GOS attachments
IF pa_incl = 'X'.
  CALL FUNCTION 'BDS_GOS_CONNECTIONS_GET'
    EXPORTING
      classname          = 'BUS2010'
      objkey             = lv_ebeln
    TABLES
      gos_connections    = lt_gos_connections
    EXCEPTIONS
      no_objects_found   = 1
      internal_error     = 2
      internal_gos_error = 3
      OTHERS             = 4.
  IF sy-subrc <> 0.
    MESSAGE i001(zmm) WITH 'BDS_GOS_CONNECTIONS_GET' sy-subrc DISPLAY LIKE 'E'.
  ENDIF.
  LOOP AT lt_gos_connections INTO ls_gos_connections.
    CLEAR lv_docid.
    lv_docid = ls_gos_connections-loio_id.
    CALL FUNCTION 'SO_DOCUMENT_READ_API1'
      EXPORTING
        document_id                = lv_docid
      IMPORTING
        document_data              = ls_document_data
      TABLES
        object_content             = lt_object_content
        contents_hex               = lt_contents_hex
      EXCEPTIONS
        document_id_not_exist      = 1
        operation_no_authorization = 2
        x_error                    = 3
        OTHERS                     = 4.
    IF sy-subrc <> 0.
    MESSAGE i001(zmm) WITH 'SO_DOCUMENT_READ_API1' sy-subrc DISPLAY LIKE 'E'.
    ENDIF.
* Create attachment name as file name
    CONCATENATE ls_document_data-obj_descr '.' ls_document_data-obj_type INTO at_subj.
*add attachment
    IF ls_document_data-obj_type = 'TXT'. "If text document, attachment type should be 'RAW'
      CALL METHOD document->add_attachment
        EXPORTING
          i_attachment_type    = 'RAW'
          i_attachment_subject = at_subj
          i_att_content_text   = lt_object_content.
    ELSE.
      CALL METHOD document->add_attachment
        EXPORTING
          i_attachment_type    = 'BIN'
          i_attachment_subject = at_subj
          i_att_content_hex    = lt_contents_hex.
    ENDIF.
  ENDLOOP.
ENDIF.

Similar Messages

  • Deletion of  the Purchase order at the item level and header level

    Hi Gurus,
    We are using SRM 7.0 system.
    In standard SRM 7.0, the PO can be deleted at header level and at line item level. I need to know the differnce between these deletions. I found that if the PO is deleted at the line item level the  deletion indicator (DEL_IND) field in BBP_PDIGP table is 'X'.
    But i could not find any clue to find the PO which is deleted at the header level. I need to code this logic in a report .
    Kindly provide your valuable inputs.
    Thanks,
    RK

    There are two ways:
    1. From the Header by clicking the DELETE button. And this is only possible when the PO is not yet output to Vendor.
    2. The second way is to delete all the items in the PO. This is possible any time irrespective of the output sent to the vendor. But provided if there are no follow-on documents for this.
    Some times we could see the Deletion icon active in Header  , it is because there is change version existing.
    When a PO is created and ordered, this is the first version of the PO. And this PO is sent to the backend and output is sent to
    the vendor.
    Now when you make a change and hold it, SRM creates the 2ndversion of this PO. Then when you delete this PO, SRM marks this 2nd
    version of PO to closed. Also you receive the pop-op confirmation that PO was deleted at this point. However, this PO deletion is never sent to the backend and output is not sent to the vendor since this PO has never been ordered. This version is the Change Version. This is shown after the PO number field if you pay attention on the screen.
    When you search for the PO, it will show you the ordered PO (No change version shown after the PO number). The system does not show you the deleted version which is version 2. That is why you see status is 'ordered'.

  • Purchase Orders - Updating Line Items After a Portion Has Been Received

    Is there any way to make a line item editable on a purchase order if only a portion of it has been received?
    Basically, our company will create a Purchase Order in SAP, which goes to our office in Hong Kong to arrange shipment. These Purchase orders will, many times, have multiple items listed at, let's say, 10,000 pieces each. Each of the items may ship on different dates due to our request for different dates or due to limited container space. So really...each item on the Purchase Order is like a "mini purchase order"... as I like to call it. 
    So, when we have a situation where only 5,000 of a specified item has been sent, we create a Goods Receipt for that amount...making that line item un-editable on the Purchase Order.
    I would like for it to be editable so that I can add/change the the "Status Update" column I created (this is for our sales reps to be able to determine when product should be arriving).
    The only solution I can think of is readjusting the quantities right when we know they will be split...so by the time they arrive (usually a month after they are shipped from Hong Kong), the quantities are already separated out in the system.
    Only thing is, I have to be REALLY careful not to mess up the original order...or confuse things.
    Any suggestions??

    There is a good reason that a line item will become non-editable on a purchase order if a portion of it has been received.
    Do not fight with system.  If possible, change the order to small one from the beginning. That would be much better.
    Thanks,
    Gordon

  • Purchase Order / Requisition Line Item Approval

    Hi
    Just wondering if Purchase Order / Purchase Requisition LINE ITEM approval is an option for workflow?
    Would the better solution be to use SRM line item approval on a shopping cart and create the Purchase Order from this?

    Hi
    Just wondering if Purchase Order / Purchase Requisition LINE ITEM approval is an option for workflow?
    If the process involved the need to use different approvers for different line items, would the better solution be to use SRM line item approval on a shopping cart and create the Purchase Order from this?

  • Manage Ship-to party Purchase order date at item level

    Hello Experts:
    I have a requirement in which the business wants to maintain "Purchase order date" field for "Ship-to party"
    in "Order Data" tab at the Item level. So different items in the same order can have a different
    date for that field.
    I have check marked the "Business Item" option in Item Category maintenance that
    allows to manipuate the data at the item level.
    I still see the field is greyed out. The field in questions is BSTDK_E.
    Pls. help
    Thanks,
    RR

    Hi
    Please check two things here.
    Business Item field is checked for this item category in VOV7.
    In VOV8 for this order type check in field Variant whether they have assigned some variant or not?
    Check this and update.
    Thank$

  • Create purchase order by line items

    hi,
    create p.o number by 10 or 20 line items .
    how will prepare data in excel sheet  file.
    how will write code update data by header item and line item.

    Hi,
    Please check this thread on this issue of PO -
    /thread/989045 [original link is broken]
    The excel sheet should have the header and thier relevant items.
    ex:
    H-header  1001 10..
    I-Item 10 100-100 ...
    I
    I
    H
    In the program we need to need to create thefile with this and internal tbale with the header and items details respectively.
    Regards
    Chandralekha

  • Locking Sales order and line item from reading

    Hi,
    I am writing an interface program to create an offer list inspection report. If two users are running the program at the same time, and if the first user read and processing a sales order line item, it should not read the same sales order line item twice for the second user.
    Please let me know if anybody has used locking sales order at line item level (VBAP).
    The enqueue function for VBAP is not working.
    Any suggestions will be helpful.
    Regards
    Ravikanth

    hi Ravi ,
    u Can lock the Sales Order for processing ,  u cannt restrict users @ tables level.
    u hhave to enqueue the VBELN
    Regards
    Prabhu

  • Send email when creating a Purchase Order

    Hi,
    I'd like to send an email once a Purchase Order is created. I just need to send basic information to the supplier, such as the number of the Purchase Order.
    I know how transaction NACE works, but I've just used it to Print Forms. I guess I have to use application EF but after that, I'd like to know if I can use an already existing message type and what steps I should follow to send the email properly.
    Thanks in advance,
    Gerard

    Hi,
    Read note 191470 - Purchase order as an e-mail
    Regards
    Sudheer

  • Purchase order has no items

    Hi All,
    While i am posting the MIGO transaction with reference to PO I encountered error as a "Purchase order has no items.
    Thanks and regards,
    Ravi Vruddhula.

    Following are the reason
    Check the confirmation tab ate item level at the purchase order. It should be blank.
    Is there any goods receipt ag. this PO, if yes, check the PO history tab at item livel in the PO. Check the pending qty.
    It sholud not be deleted PO.
    Check the delivery date in the PUrchase order.
    Check the release stratagy in the PO. It should be release.
    Thanks,
    Samir Bhatt

  • PO account assignment Q + Purchase order has no items + M7033

    Hi All,
    I have create a PO with account assignment Q and now when I am trying to post GR to this PO I am getting the error 'Purchase Order has no items' Message number M7033. Please Guide.
    Thanks and Regards
    Pavan

    Following are the reason
    Check the confirmation tab ate item level at the purchase order. It should be blank.
    Is there any goods receipt ag. this PO, if yes, check the PO history tab at item livel in the PO. Check the pending qty.
    It sholud not be deleted PO.
    Check the delivery date in the PUrchase order.
    Check the release stratagy in the PO. It should be release.
    Thanks,
    Samir Bhatt

  • Transfer of tax indicator to purchase order for service items in shopping cart

    Hi all.
    I have a problem with the tax indicator in the shopping carts and in the backend purchase orders for service items. If I create a shopping cart with service items with different tax indicators, the backend purchase order have a unique item including all the services. So, all the PO items are under one tax indicator while in the shopping cart there is more than one indicator. I mean, the PO is not correctly replicated with the information of the SC.
    Example: shopping cart in SRM with 3 items, tax codes: V1, V2, V1. The standard code transfers the information to the backend, and creates a purchase order with an unique item with the 3 services under tax code V1. So, the second service is not under the correct tax code, and will be wrongly invoiced.
    We have debugged all the code of the process, and we think it is a standard bug. When you replicate a PO in the backend from a SC in SRM, have you experienced this behaviour, or the service items are grouped in different PO items each one with the correct tax indicator?
    Thanks in advance.

    Hi again...
    I forgot to mention that we have found and applied the note 1822107 (Purchase order: wrong tax code for PO with 2 service items), that fits exactly to our problem. But after testing, it doesn't work.
    Regards.

  • Unable to cancel - open purchase order where all items are removed

    Hi all,
    When We try to cancel/close open purchase order where all items are removed from item master ?
    It showing error message,
    "No matching records found  'Items' (OITM) "
    Purcahse order was created on may-2007.
    As purchase order showing in open item list.
    Any solution for this problem ?
    Jeyakanthan

    SAP does allow items to be removed from the item master with open documents, but only if the documents have not created journals.
    It does create headaches though, and this situation is one of them.
    If there are not many items, I suggest you recreate the items, close the PO and just cancel the items rather than remove them.
    The other workaround is to change the items on the PO to something different that is in the item master, then close it.

  • Purchase order for KIT item

    Hi,
    my requirement is to raise Purchase order for KIT item.For Example--
    For 1 Kit item A, including 1 table and 4 chairs. Define components (table and chair) for item A by using Bills of Material screen. In Order Management, when user orders 100 item A, system will generate automatically 100 tables and 400 chairs and Ship to customer. Item A does not have Onhand, only its components have Onhand.
    will the oracle purchasing support this KIT purchase concept.
    pl give me suggestions.
    Thanks in Advance,
    regards,
    venkat

    Venkat
    I'm thinking that your requisition from OM will be automatically converted to internal requisition for 100 tables and 400 chairs, based on your setup.
    Would you still need to have 'KIT' setup in procurement?
    The other thing I can think of is, you can use Requisition Templates to help in ordering items on a repetitive basis.
    Let us know what you think.

  • How to link asset with purchase order and PO Item.

    Hello,
           I have to generate a report which contains columns
    Asset No , po no(ebeln) ,PO Item(ebelp),Material no etc
    My query is how to link asset with purchase order and      PO Item.
    I am selecting asset and po no. from anla  but how to get
    po item no(ebelp)?
    po line item is important in this report because every line item has differrent asset and material no.
    i tried to match asset no in mseg table but i am not getting asset no in mseg .
    how should i proceed ?

    Thanks Thomas & Srimanta for the quick response.
    When I checked EKKN table by entering PO there is no asset no. in anln1 field.
    Also I would like to add that, In me23n for a PO, account assignment category we are entering 'F' for internal order settlement.
    Where can i find the link between asset and po no(ebeln) and po item(ebelp)?
    Regards,
    Rachel
    Edited by: Rachel on Aug 11, 2008 7:23 AM

  • Delivery date in Purchase Order in the item overview

    Hi all,
    In which table is Delivery date in Purchase Order in the item overview stored.
    the screen field name is eeind.
    Thanks

    In table EKET in field EINDT the delivery date is stored, based on the Schedule lines in the PO Item

Maybe you are looking for

  • The order that never arrives

    BT is good. At apologising - but nothing else. I have a saga that has been going on since 7 January. Let me explain... I received an email from BT to move my broadmand to them, Infinity package with unlimited downlaods at up to 80Gb etc. and they wou

  • How to create and edit a .ini file using java

    Hi All... Pls help me in creating and editing an .ini file using java... thanks in advance Regards, sathya

  • Its not letting me install itunes on my laptop

    Hello ive gotten a new laptop and i am trying to install Itunes but its not letting me. Keeps saying. Service "Apple Mobile Device" (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system service. I don't kno

  • Sheraz

    Unable to open a PDF file on iPhone 5 ?

  • How to delete public link to CC folder?

    how to delete public link to CC folder?