Attachments coding - Purchase order

i am trying to find out all the purchase order ( header) which does not have a attachment to it?
Query
select segment1 from apps.po_headers_all pha
where type_lookup_code = 'BLANKET'
AND ORG_ID = 87
AND pha.po_header_id NOT in
( select distinct pk1_value
FROM apps.fnd_attached_documents fad,
apps.fnd_documents fd,
apps.fnd_document_categories_tl fdc,
apps.fnd_document_datatypes fdd,
apps.fnd_documents_tl fdl
where entity_name ='PO_HEAD'
AND fad.document_id = fd.document_id
AND fdc.category_id = fd.category_id
AND fdd.datatype_id = fd.datatype_id
AND fdl.document_id = fd.document_id
AND fdl.LANGUAGE = 'US'
AND fdd.LANGUAGE ='US'
and fdc.language ='US'
But this query is returning the purchase order with attachments. can some one correct this code.?
I have attachements in PDF, XLS etc...

Hi,
What I can see from your query is that you have hard coded the entity_name as 'PO_HEAD'.
Some BPAs might have different values for entity_name.
I think it should work if you do not restrict the entity_name field.
Plz. check and let me know if it works.
Thanks,
Ram.

Similar Messages

  • Attachments to Purchase order via e-mail

    Hi,
    Im working on SRM5.5, Extended classic scenario,
    I have a requirement where :
    Right now , users can send Purchase Orders by mail to vendors but apart from the PDF version of the Purchase Order no other document can be attached to the email.
    I have to attach  an other document to this purchase order in PDF format and send it via email.
    Could anyone tell me if there is any BADI for this ?
    Any technical solution would be of great help.
    Thanks and Regards,
    Aravind Nair.

    Hi Yann.
    At this moment I have the a similar problem... In my case I'm woeking with MySAP Enterprise 4.7 and I want to send the PO and their attachament vía e-mail, currently only the PO is being sent to the Vendor and the attachment only appears like texts into the "body" of PO.  Is there some way to send PO and attachments at the same time??
    Thanks in advanced for your answer and help!!
    Regards,
    Blanca Reyes

  • Getting pdf attachments of Purchase order as OTF

    Hi gurus, i need to get the attachment list of a purchase order and then get the OTF data of each PDF files to convert then an get the pdf Binary data. The problem is that i´m using an enterprise service, so i need to avoid any pop-up. I tried to use the FM GOS_EXECUTE_SERVICE with method 'VIEW_ATTA' and it displays me a popup, so it doesn´t work for my ES.
    Hope someone  can help me with this.
    Regards,
    Diego.

    Solved, i use this thread..
    /people/siddhartha.jain/blog/2007/01/16/how-to-retrieve-a-generic-object-services-gos-or-sapoffice-document-display-it-in-a-bsp-webdynprojava-application
    Thanks for all.
    Regards,
    Diego.

  • Sending attachments in purchase orders

    Hi All,
    I have a requirement where each material would have an attachment of it's drawing. Whenever a PO is raised to the vendor, it should get defaulted in the purchase order. Even if it is not physically visible, if the PO is sent by mail, the attachment should also be sent. Does anybody have any idea ?
    Thanks & Regards,
    Vidya Sagar

    Hi,
    You can use document management system (DMS) to store the drawings, which can be attached to object "material". This can be send along with PO as attachment when the system e-mail to vendor.
    We had a scenario, where in some temperature tracking details documents  need to be printed along with packing list and we achieved using DMS. You can post your query in document management forum and you can get valuable inputs.
    Hope this helps.

  • Removing attachments from Purchase Order using DIAPI

    Dear all,
    I have added attachment to PO using DIAPI. I have given below the code.
               Dim oAtt As SAPbobsCOM.Attachments2 = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oAttachments2)
                Dim FileName As String = ""
                Dim SourceFile As String = ""
                Dim DestinationFile As String = ""
                For i As Integer = 0 To PurchaseOrderInfo.Attachments.Length - 1
                    FileName = PurchaseOrderInfo.Attachments(i).FileName
                    SourceFile = PurchaseOrderInfo.Attachments(i).SourcePath & "\" & FileName
                    DestinationFile = PurchaseOrderInfo.Attachments(i).TargetPath & "\" & FileName
                    If i > 0 Then oAtt.Lines.Add()
                    oAtt.Lines.SetCurrentLine(i)
                    oAtt.Lines.FileName = System.IO.Path.GetFileNameWithoutExtension(FileName)
                    oAtt.Lines.FileExtension = Replace(System.IO.Path.GetExtension(FileName), ".", "")
                    oAtt.Lines.SourcePath = PurchaseOrderInfo.Attachments(i).SourcePath
                    If System.IO.File.Exists(DestinationFile) Then
                        System.IO.File.Delete(DestinationFile)
                    End If
                    If PurchaseOrderInfo.Attachments(i).Override = True Then
                        oAtt.Lines.Override = SAPbobsCOM.BoYesNoEnum.tYES
                    Else
                        oAtt.Lines.Override = SAPbobsCOM.BoYesNoEnum.tNO
                    End If
                Next
                Dim iAttEntry As Integer = -1
                Dim lResult As Long
                Dim lErrCode As Long, sErrMsg As String = ""
                lResult = oAtt.Add()
             It works fine. But, I am not  able to remove an attachment via diapi.
             Could you please help me how to solve this.
    Thanks in advance.
    Manikandan

    I am pretty sure you are looking for SAP Business One SDK Topic Space. To ensure you are posting in the correct SCN Space, always check the description for the Space under the Overview tab.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada

  • Securing Attachments to Purchase Orders

    We have a business need to use Generic Object Services (GOS) to attach documents to business object BUS2012. However, we only want a certain group of people to be able to delete the attachments. We cannot find a way to secure this via a standard security object. We are investigating how to override the display of the delete button in the CL_SREL_LIST_BROWSER.CREATE_TOOLBAR method, but have not figured out how to override the standard SAP method.
    Has anyone put in this type of security? If not, where can I find out how to override the standard SAP delivered class method?

    Found note 491271 - Authorizations for generic object services. The object services authorizations are heavily dependent on the Basis release. For 4.6C we need to look at the entries in the SGOSATTR table and determine which class is being called. We are going to try creating a subclass of the existing one in the table and then update the entry in the SGOSATTR table to use our class instead of the standard one.  More soon...

  • Annexure/Drawings/Attachment on Purchase Order

    Hi,
    Please inform about how to attach additional Annexure/Drawings/Attachments to Purchase Order.
    Thanks.

    Hi,
    In the latest releases there are functions to attach documents to PO etc. as attachements (I haven't seen it yet though).
    but even in 4.6 you have the ability to attach documents such as drawings etc. to Purchase orders etc.
    The difference is that the attachments are only relevant in the traqnsaction that thjey were added in, so an attachment to a PO done in ME21N/22N/23N woudl only be visible in ME21N, 22N, 23N. It would not be visible during MIGO or MIRO. But in the latest versions the attachments do continue through the other transactions also.
    Try the 4.6 version if you don't have the later release.
    On the top of many screens (it is there in ME22N for example), Next to the text that shows the transaction description (Just inder the OK code field) is a special icon, click on this and you have several additional functions that can allow you to attach a note or document to this particular PO (or whatevre document you are maintaining) Click on the "create attachment" icon and add the document that you want attached (make sure that it is on a server and not just your PC)
    this attaches the document and the same icon can retrieve and display any others.
    Steve B

  • Coding to calculate net purchase order value against the contract?.

    Hi ,
    Please help.
    Can any one send me the coding to calculate net purchase order value against the contract?.
    Thanks

    I got the below coding and information from SDN, would you please help me to fix this coding
    infomation from SDN
    For the above requirment I have coded a program in Endroutine but it is not populating cummulative Order value against Contract.
    DATA:
    WA_ty_t_TG_1 TYPE tys_TG_1.
    data: netsum type char15.
    types:begin of ty_net,
    netsum type /BI0/OINET_PO_VAL,
    V_EBELN TYPE /BI0/OIOI_EBELN,
    end of ty_net.
    data:t_net type standard table of ty_net .
    data:wa_net type ty_net.
    SORT RESULT_PACKAGE BY CONTRACT.
    loop at RESULT_PACKAGE INTO WA_ty_t_TG_1.
    WA_NET-V_EBELN = <RESULT_FIELDS>-CONTRACT.
    AT END OF CONTRACT.
    netsum = WA_ty_t_TG_1-NET_PO_VAL + NETSUM.
    ENDAT.
    WA_NET-netsum = NETSUM.
    APPEND WA_NET TO T_NET.
    CLEAR:T_NET,NETSUM.
    ENDLOOP.
    loop at RESULT_PACKAGE assigning <RESULT_FIELDS> .
    READ TABLE T_NET INTO WA_NET WITH KEY
    V_EBELN = <RESULT_FIELDS>-CONTRACT
    <RESULT_FIELDS>-/BIC/YNET_VAL = NETSUM.
    CLEAR: WA_NET-NETSUM.
    endloop.
    <RESULT_FIELDS>-/BIC/YNET_VAL = netsum.
    CLEAR:NETSUM,<RESULT_FIELDS>-/BIC/YNET_VAL.
    ENDLOOP.
    I have coded above one..let me know what mistake I have done.in the bolded loop I have given INTO instead of Assigning, because I need all records which assigns to WorkArea, but while executing DTP its leading to shortdump.if I replace Assigning statement,its working fine. but zero values in output( I think wrong in logic part)
    Let me know the brief coding part if I am wrongly coded.

  • Purchase Order Coding

    Hi All,
                 iam developing a webservice using DI-server in my asp.net application to access my sap company DB.now i have to create a purchase order...can anybody give me some web service coding about how to create a purchase order.....(like creating new customers & updating them...)
    Regads,
    Shangai.

    Hi Shangai
    Below is my sample code about how to add a jornal voucher via DIServer.
    You can add a purchase order in the similar way,the only thing need to be changed is
    the SOAP message format.
        ' add journal voucher
        '<WebMethod()> Public Function AddJV(ByVal SessionID As String, _
        '                                    ByVal xmlJVObject As String) As Xml.XmlDocument
        <WebMethod()> Public Function AddJV(ByVal SessionID As String) As Xml.XmlDocument
            Dim n As SBODI_Server.Node
            Dim s, sCmd As String
            Dim d As Xml.XmlDocument
            d = New Xml.XmlDocument
            n = New SBODI_Server.Node
            sCmd = "<?xml version=""1.0"" encoding=""UTF-16""?> "
            sCmd += "<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/""> "
            sCmd += " <env:Header> "
            sCmd += "<SessionID>" & CStr(SessionID) & "</SessionID>"
            sCmd += " </env:Header> "
            sCmd += " <env:Body> "
            sCmd += "<dis:AddObject xmlns:dis=""http://www.sap.com/SBO/DIS"" > "
            sCmd += "<BOM>"
            sCmd += "<BO>"
            sCmd += "<AdmInfo>"
            sCmd += "<Object>oJournalVouchers</Object> "
            sCmd += "</AdmInfo> "
            sCmd += "<JournalEntries>"
            sCmd += "<Row>"
            sCmd += "<ReferenceDate></ReferenceDate>"
            sCmd += "<Memo>TEST</Memo>"
            sCmd += "<DueDate>20080325</DueDate>"
            sCmd += "</Row>"
            sCmd += "</JournalEntries> "
            sCmd += "<JournalEntries_Lines> "
            sCmd += "<Row>"
            sCmd += "<AccountCode>111101</AccountCode> "
            sCmd += "<Debit>100</Debit>"
            sCmd += "</Row>"
            sCmd += "<Row>"
            sCmd += "<AccountCode>111101</AccountCode>"
            sCmd += "<Credit>100</Credit>"
            sCmd += "</Row>"
            sCmd += "</JournalEntries_Lines>"
            sCmd += "</BO> "
            sCmd += "</BOM> "
            sCmd += "</dis:AddObject> "
            sCmd += " </env:Body> "
            sCmd += "</env:Envelope> "
            s = n.Interact(sCmd)
            d.LoadXml(s)
            Return (RemoveEnv(d))
        End Function
    I posted the xml template format of purchase order here.
      <?xml version="1.0" encoding="utf-8" ?>
    - <BOM>
    - <BO>
    - <AdmInfo>
      <Object>oDocuments</Object>
      </AdmInfo>
    - <QueryParams>
      <DocEntry />
      </QueryParams>
    - <Documents>
    - <row>
      <DocNum />
      <DocType />
      <HandWritten />
      <Printed />
      <DocDate />
      <DocDueDate />
      <CardCode />
      <CardName />
      <Address />
      <NumAtCard />
      <DocCurrency />
      <DocRate />
      <DocTotal />
      <Reference1 />
      <Reference2 />
      <Comments />
      <JournalMemo />
      <PaymentGroupCode />
      <DocTime />
      <SalesPersonCode />
      <TransportationCode />
      <Confirmed />
      <ImportFileNum />
      <SummeryType />
      <ContactPersonCode />
      <ShowSCN />
      <Series />
      <TaxDate />
      <PartialSupply />
      <DocObjectCode />
      <ShipToCode />
      <Indicator />
      <FederalTaxID />
      <DiscountPercent />
      <PaymentReference />
      <Form1099 />
      <Box1099 />
      <RevisionPo />
      <RequriedDate />
      <CancelDate />
      <BlockDunning />
      <Pick />
      <PaymentMethod />
      <PaymentBlock />
      <PaymentBlockEntry />
      <CentralBankIndicator />
      <MaximumCashDiscount />
      <Project />
      <ExemptionValidityDateFrom />
      <ExemptionValidityDateTo />
      <WareHouseUpdateType />
      <Rounding />
      <ExternalCorrectedDocNum />
      <InternalCorrectedDocNum />
      <DeferredTax />
      <TaxExemptionLetterNum />
      <AgentCode />
      <NumberOfInstallments />
      <ApplyTaxOnFirstInstallment />
      <VatDate />
      <DocumentsOwner />
      <FolioPrefixString />
      <FolioNumber />
      <DocumentSubType />
      <BPChannelCode />
      <BPChannelContact />
      <Address2 />
      <PayToCode />
      <ManualNumber />
      <UseShpdGoodsAct />
      <IsPayToBank />
      <PayToBankCountry />
      <PayToBankCode />
      <PayToBankAccountNo />
      <PayToBankBranch />
      <BPL_IDAssignedToInvoice />
      <DownPayment />
      <LanguageCode />
      <TrackingNumber />
      <PickRemark />
      <ClosingDate />
      <SequenceCode />
      <SequenceSerial />
      <SeriesString />
      <SubSeriesString />
      <SequenceModel />
      <UseCorrectionVATGroup />
      <VatPercent />
      </row>
      </Documents>
    - <Document_Lines>
    - <row>
      <LineNum />
      <ItemCode />
      <ItemDescription />
      <Quantity />
      <ShipDate />
      <Price />
      <PriceAfterVAT />
      <Currency />
      <Rate />
      <DiscountPercent />
      <VendorNum />
      <SerialNum />
      <WarehouseCode />
      <SalesPersonCode />
      <CommisionPercent />
      <TreeType />
      <AccountCode />
      <UseBaseUnits />
      <SupplierCatNum />
      <CostingCode />
      <ProjectCode />
      <BarCode />
      <VatGroup />
      <Height1 />
      <Hight1Unit />
      <Height2 />
      <Height2Unit />
      <Lengh1 />
      <Lengh1Unit />
      <Lengh2 />
      <Lengh2Unit />
      <Weight1 />
      <Weight1Unit />
      <Weight2 />
      <Weight2Unit />
      <Factor1 />
      <Factor2 />
      <Factor3 />
      <Factor4 />
      <BaseType />
      <BaseEntry />
      <BaseLine />
      <Volume />
      <VolumeUnit />
      <Width1 />
      <Width1Unit />
      <Width2 />
      <Width2Unit />
      <Address />
      <TaxCode />
      <TaxType />
      <TaxLiable />
      <BackOrder />
      <FreeText />
      <ShippingMethod />
      <CorrectionInvoiceItem />
      <CorrInvAmountToStock />
      <CorrInvAmountToDiffAcct />
      <WTLiable />
      <DeferredTax />
      <NetTaxAmount />
      <NetTaxAmountFC />
      <LineTotal />
      <TaxPercentagePerRow />
      <ConsumerSalesForecast />
      <ExciseAmount />
      <CountryOrg />
      <SWW />
      <TransactionType />
      <DistributeExpense />
      <ShipToCode />
      <RowTotalFC />
      <CFOPCode />
      <CSTCode />
      <Usage />
      <TaxOnly />
      <UnitPrice />
      <LineStatus />
      <LineType />
      <COGSCostingCode />
      <COGSAccountCode />
      <ChangeAssemlyBoMWarehouse />
      <U_BLD_LyID />
      <U_BLD_NCps />
      </row>
      </Document_Lines>
    - <Document_LinesAdditionalExpenses>
    - <row>
      <LineNumber />
      <GroupCode />
      <ExpenseCode />
      <LineTotal />
      <TaxLiable />
      <VatGroup />
      <TaxPercent />
      <TaxSum />
      <DeductibleTaxSum />
      <TaxCode />
      <TaxType />
      <EqualizationTaxPercent />
      <EqualizationTaxSum />
      <WTLiable />
      <BaseGroup />
      </row>
      </Document_LinesAdditionalExpenses>
    - <WithholdingTaxLines>
    - <row>
      <WTCode />
      <WTAmountSys />
      <WTAmountFC />
      <WTAmount />
      <TaxableAmountinSys />
      <TaxableAmountFC />
      <TaxableAmount />
      <AppliedWTAmountSys />
      <AppliedWTAmountFC />
      <AppliedWTAmount />
      <BaseDocEntry />
      <BaseDocLine />
      <BaseDocType />
      </row>
      </WithholdingTaxLines>
    - <SerialNumbers>
    - <row>
      <ManufacturerSerialNumber />
      <InternalSerialNumber />
      <ExpiryDate />
      <ManufactureDate />
      <ReceptionDate />
      <WarrantyStart />
      <WarrantyEnd />
      <Location />
      <Notes />
      <BatchID />
      <SystemSerialNumber />
      <BaseLineNumber />
      </row>
      </SerialNumbers>
    - <BatchNumbers>
    - <row>
      <BatchNumber />
      <ManufacturerSerialNumber />
      <InternalSerialNumber />
      <ExpiryDate />
      <ManufacturingDate />
      <AddmisionDate />
      <Location />
      <Notes />
      <Quantity />
      <BaseLineNumber />
      </row>
      </BatchNumbers>
    - <DocumentsAdditionalExpenses>
    - <row>
      <ExpenseCode />
      <LineTotal />
      <Remarks />
      <DistributionMethod />
      <TaxLiable />
      <VatGroup />
      <TaxPercent />
      <TaxSum />
      <DeductibleTaxSum />
      <TaxCode />
      <TaxType />
      <EqualizationTaxPercent />
      <EqualizationTaxSum />
      <BaseDocEntry />
      <BaseDocLine />
      <BaseDocType />
      <LastPurchasePrice />
      <Stock />
      <WTLiable />
      </row>
      </DocumentsAdditionalExpenses>
    - <WithholdingTaxData>
    - <row>
      <WTCode />
      <WTAmountSys />
      <WTAmountFC />
      <WTAmount />
      <TaxableAmountinSys />
      <TaxableAmountFC />
      <TaxableAmount />
      <AppliedWTAmountSys />
      <AppliedWTAmountFC />
      <AppliedWTAmount />
      <BaseDocEntry />
      <BaseDocLine />
      <BaseDocType />
      </row>
      </WithholdingTaxData>
    - <TaxExtension>
    - <row>
      <TaxId0 />
      <TaxId1 />
      <TaxId2 />
      <TaxId3 />
      <TaxId4 />
      <TaxId5 />
      <TaxId6 />
      <TaxId7 />
      <TaxId8 />
      <TaxId9 />
      <State />
      <County />
      <Incoterms />
      <Vehicle />
      <VehicleState />
      <NFRef />
      <Carrier />
      <PackQuantity />
      <PackDescription />
      <Brand />
      <ShipUnitNo />
      <NetWeight />
      <GrossWeight />
      <StreetS />
      <BlockS />
      <BuildingS />
      <CityS />
      <ZipCodeS />
      <CountyS />
      <StateS />
      <CountryS />
      <StreetB />
      <BlockB />
      <BuildingB />
      <CityB />
      <ZipCodeB />
      <CountyB />
      <StateB />
      <CountryB />
      </row>
      </TaxExtension>
      </BO>
      </BOM>
    You can also get the template by GetBusinessObjectTemplate method.(oPurchaseOrders)
    <WebMethod()> Public Function GetTemplate(ByVal SessionID As String, ByVal ObjectType As String) As Xml.XmlDocument
            Dim n As SBODI_Server.Node
            Dim s, strXML As String
            Dim d As Xml.XmlDocument
            d = New Xml.XmlDocument
            n = New SBODI_Server.Node
            strXML = "<?xml version=""1.0"" encoding=""UTF-16""?>" & _
            "<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
            "<env:Header>" & _
            "<SessionID>" & CStr(SessionID) & "</SessionID>" & _
            "</env:Header>" & _
            "<env:Body>" & _
            "<dis:GetBusinessObjectTemplate xmlns:dis=""http://www.sap.com/SBO/DIS"">" & _
            "<Object>" & CStr(ObjectType) & "</Object>" & _
            "</dis:GetBusinessObjectTemplate>" & _
             "</env:Body></env:Envelope>"
            s = n.Interact(strXML)
            d.LoadXml(s)
            Return (RemoveEnv(d))
        End Function  

  • 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.

  • EBP-SUS - Purchase Order Response (POR) with attachments

    Hi,
       I am working on EBP-SUS scenario with EBP in Extended classic scenario.
       I have couple of questions regarding Purchase Order Response in SUS with attachments. I appreciate your response to these questions.
      1. From SUS, when the Supplier responds to a PO with attachment, does the attachment get copied over to SRM PO?
      2. If so, in case of extended classic scenario, does the attachment get sent to MM?
    Thanks,
    Surendra

    Khan,
      Thanks for your reply.
      So, in case of EBP-SUS scenario, if the supplier sends attachment, the attachment gets copied over to PO when the POResponse is copied over? I tried this scenario and the attachment is appearing on PO Response record. However, does not seem to get copied over to PO when the "Copy" button was pressed. Am I missing any configuration?
    Thanks,
    Surendra

  • Attachments --purchase order

    Hi,
    I have around 200 standard purchase orders and i have to insert attachments to around 100 purchase orders
    My question is
    1. Do i have to create manually or
    2.Is there any Api program for it to insert for that 100 purchase orders.
    Regards
    Sudharshan

    Hi Sudarshan
    We will recommend you to go through Oracle Manufacturing APIs and Open Interfaces Manual and please check "Oracle Purchasing Open Interface" part in the user guide (115mfgapi.pdf)
    We believe below APIs will help you to address your PO attachment issue.
    1) Purchasing Documents Open Interface
    2) Purchase Order Change APIs
    Regards,
    S.P DASH

  • Problem in Purchase Order Attachments

    Hi Team..
    I have a problem, we use the function to attach file in purchase orders (Services for Object > Create Attachment)
    We can attach files and after we can see them without problems.
    But after the days pass... and we want to see the attachment again, they are not listed!! 
    Do you know if there is a process, job, program that archive or delete these files??

    Hi
    Refer the steps below and check for the settings
    You can attach manually any document to PO without using Document Management System ( DMS ) in SAP 4.6C.
    But you cannot attach document while you create PO in T/Code ME21N
    Save you PO ( ME21N ) and again open with change ( ME22N ) then you can attach document through Service for Object button. Service for Object button available down side of Command screen ( in your PO screen ME22N )
    Click your Service Object button -> Create -> Create attachment
    then select your window directory ( which file you need to attach) select your file Now your system shows message  Service "Create attachment" is started.
    Save again your PO. You can see (open) your attachment in same field ( Service for Object ) select and Create and check attachment list. You can attach as many document in your PO.
    Note: This is only information for internal or you can print separately this document for sending to vendor ( fax ) System will not print automatically along PO print out

  • Creating purchase order through coding

    I am trying to create purchase order through Code, for a table field i can insert as :
    odocs = GOD_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
    odocs.CardCode = "200173"
    But if the field is not a table field then , how can i insert it in PO?????

    Hi Ashish Patil 
    Not sure what you mean, not sure what table you are talking about. But here is some sample code on how to add a purchase order.
    Dim PO As SAPbobsCOM.Documents
            PO = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
            PO.CardCode = "VUL001"
            PO.Lines.ItemCode = "02SILVTS"
            PO.Lines.Quantity = 1
            PO.Lines.Price = 120
            If PO.Add() <> 0 Then
                Dim str As String
                str = oCompany.GetLastErrorDescription()
                MsgBox(str)
            End If
    hope it helps

  • Purchase order attachments

    Hi Experts,
    While creating Purchase order,there is an option to attach files or documents.Now the requirement is
    to develop a report.Once the purchase order is given as input, then the list of documents attached to
    the purchase order are to be displayed and once clicks on the document, the document has to be opened.
    Please suggest me any classes are availbale to know how many documents are attached to PO and how to read those documents.
    Thanks in advance.
    S.Gangireddy

    Hi,
    please have a look to the cl_gos_manager class. To view an attachment you can use a code something like:
    DATA: go_myobject  TYPE REF TO cl_gos_manager.
    CREATE OBJECT go_myobject.
    CALL METHOD go_myobject->start_service_direct
    EXPORTING
    ip_service   = 'VIEW_ATTA'
    is_object    = ls_object
    io_container = lo_container.
    Hope this helps,
    kind regards,
    Dirk

Maybe you are looking for

  • TS1702 I need some help the apps were downloading slowly

    The apps downloaded but it didn't cause it's stuck in downloading mode what should I do? The iOS 6 update didn't work. Please I need some help. The apps didn't download. Talking Angela and Ginger didn't download. Talking Santa didn't update.

  • How to pickup a logo in notepad file using file adapter

    hi all, in my csv sourse file i hav companycode ,companybitmap logo. how to i pickup this file by using FCC. thanks. vijay

  • Password Protecting a Folder

    Hey Guys! This is probably a simple question, but I can't seem to find the answer on my own. I am trying to set up a folder on a make shift sever from an iMac G5 Power PC running 10.3.9 that someone on an emac can back up files to. I would like to se

  • JTextField and JSlider

    Hi! I have a JSlider and a JTextField. I would like them to "update" eachother... When the user is changing the JSlider, I need the String in the JTextField automatically to update the recieveing data from the JSlider, and vice versa. I dont know how

  • Embedding a camera profile in DNG

    I've read that camera profiles can be embedded in a DNG file; how does one do this?