How to get document liked to material

How to get documents liked to certain material? I have material number and I want to get the document number of each linked document.
I tried to use MATERIAL_READ_DOCUMENTS function, but the call returned "SYSTEM_FAILURE".
Here is the code:
theFunc = functionCtrl.Add("MATERIAL_READ_DOCUMENTS")
theFunc.exports("MATNR") = matNum
materialDocuments = theFunc.tables("IDRAD")
returnFunc = theFunc.Call
If returnFunc = True Then
    rows = materialDocuments.rowcount
    ReDim dataTable(rows, 1)
    For i = 1 To rows
        dataTable(i, 0) = materialDocuments(i, "DOKNR")
        dataTable(i, 1) = materialDocuments(i, "DOKAR")
    Next i
Else
    callException = theFunc.Exception
End If

Hi,
One soloution would be to use the BAPI,
BAPI_DOCUMENT_GETOBJECTDOCS.
Pass 'MARA' to field OBJECTTYPE and the 18 digit material number to field OBJECTKEY and u will get all the material document links assosiated with the material. What more, it is a BAPI so it is RFC enabled.
Hope this helps.
Sharath.

Similar Messages

  • How to get Document Set property values in a SharePoint library in to a CSV file using Powershell

    Hi,
    How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
    I suggest you can get the document sets properties like the PowerShell Command below:
    [system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
    $siteurl="http://sp2013sps/sites/test"
    $listname="Documents"
    $mysite=new-object microsoft.sharepoint.spsite($siteurl)
    $myweb=$mysite.openweb()
    $list=$myweb.lists[$listname]
    foreach($item in $list.items)
    if($item.contenttype.name -eq "Document Set")
    if($item.folder.itemcount -eq 0)
    write-host $item.title
    Then you can use Export-Csv PowerShell Command to export to a CSV file.
    More information:
    Powershell for document sets
    How to export data to CSV in PowerShell?
    Using the Export-Csv Cmdlet
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Sharepoint Workflow : how to get document full path + file name into variable?

    Hi,
    Anybody knows how to get document full path + file name into a variable in Sharepoint 2010 workflow?
    Example http://sp1:80/InvoiceQueue/Shared Documents/123.pdf
    I am using List Workflow which links to a document library.

    Hi SAMSUNG,
    According to your description, my understanding is that you want to get the full path of a document in a list workflow.
    You can set the variable to the Enconded Absolute URL of the document. The screenshot is my testing. In my testing (in the red area), when the title of a document was equal to the tile of the current item, set a variable to the Enconded Absolute URL of the
    document. I used ‘Log to history list’ to check the value of the variable in Workflow History .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to get documents in BPS

    Hi
    Someone can help me with how to get documents in BPS, Is there one how to.... documents in BPS?
    We try to use the function modules UPC_DOCUMENT_GET and UPC_DOCUMENT_LIST_GET but is not working because is missing parameters.
    Thanks
    Vero

    Veronica,
      I am assuming that you want to know how documents are
      handled in BPS and how you can configure your system to
      do so.
      Here is the "How to" paper that explains this:
      https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20handle%20documents%20in%20sem-bps%20and%20bw-bps.doc

  • How to get documents from RMS linked to particular case id using webdynpro

    HI friends,
    Can  anybody knows " How to get documents from RMS linked to particular case id."
    From end: webdynpro
    backend: RMS.
    please do the needful.
    Thanks and Regards
    -Sujatha

    HI friends,
    Can  anybody knows " How to get documents from RMS linked to particular case id."
    From end: webdynpro
    backend: RMS.
    please do the needful.
    Thanks and Regards
    -Sujatha

  • How to get attachments to a material and open it via fm ?

    Hello experts,
    in crm 5.0, in tx commpr01 I have a material where I have attached some documents in tabstrip documents.
    Now I want to select the documents for this material per report and and then after clicking on the
    selected attachement I want to open it.
    Does anybody know how to do this with a fm etc. ?
    Thanks and best regards
    Gerd

    Hi Pankaj,
    first I did call fm:
       function zcom_product_get_documents.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(IV_PRODUCT_GUID) TYPE  COMT_PRODUCT_GUID
    *"  EXPORTING
    *"     REFERENCE(LT_IOS) TYPE  SKWF_IO
    *"     REFERENCE(LT_PHIOLOIOS) TYPE  SKWF_LPIOS
    *"     REFERENCE(LT_IOS_PROPERTIES_RESULT) TYPE  CRM_KW_PROPST
    *"     REFERENCE(LTT_LOIOS) TYPE  SKWF_IO
    *"     REFERENCE(LTT_PHIOS) TYPE  SKWF_IO
      data :
        ls_cm_business_object   type  sibflporb.
      check not iv_product_guid is initial.
      ls_cm_business_object-typeid = 'BUS1178'.
      ls_cm_business_object-catid  = 'BO'.
      ls_cm_business_object-instid = iv_product_guid.
      data: lt_loios type table of skwf_io.
      data: lt_phios type table of skwf_io.
      call method cl_crm_documents=>get_info
        exporting
          business_object       = ls_cm_business_object
    *        PROPERTIES_REQUEST    =
             newest_only           = 'X'
    *        PROPERTIES_QUERY      =
          importing
            phioloios             = lt_phioloios
            ios_properties_result = lt_ios_properties_result
            loios                 = lt_loios
            phios                 = lt_phios
    then I did:
        loop at lt_lt_ios_properties_result into
    wa_lt_ios_properties_result.
        ls_result =
          wa_lt_ios_properties_result-properties.
        if wa_lt_ios_properties_result-objtype = 'P'.
          ls_dokumente-objid = wa_lt_ios_properties_result-objid.
          sort ls_result by name ascending.
          append ls_result to lt_result.
          loop at ls_result into  lss_result.
            if lss_result-name = 'KW_RELATIVE_URL'.
              ls_dokumente-name = lss_result-value.
            elseif  lss_result-name = 'CREATED_BY'.
              ls_dokumente-description = lss_result-value.
            elseif   lss_result-name = 'KW_PARENT_FOLDER_ID'.
              ls_dokumente-kw_parent_folder_id = lss_result-value.
            endif.
            ls_dokumente-kw_parent_folder_class = 'BDS_POC22'.
            ls_dokumente-product_id = lt_comm_product-product_guid.
          endloop.
          if ls_dokumente-name <> ''.
            append ls_dokumente to lt_dokumente.
          endif.
        endif.
        clear ls_dokumente.
      endloop.
      loop at lt_dokumente into lss_dokumente.
        do 1 times.
          ls_phio-class = lss_dokumente-kw_parent_folder_class .
          ls_phio-objtype = 'P'.
          ls_phio-objid = lss_dokumente-objid.
          ls_component-alias_name = lss_dokumente-name.
    ** get URL for doc:
          call method o_cl_crm_documents->get_with_url
            exporting
              phio     = ls_phio
              url_type = '2'
            importing
              url      = ls_urls-url.
        enddo.
        append lss_dokumente to ltt_dokumente.
      endloop.
    I get the URL and it works.
    But I don't know If  I had to start any service in sicf, thats very long ago.

  • How can get document from mac to iphone

    How can I get document from imac that is saved, to my iphone?

    What kind of document?
    iWork documents (Pages, Numbers, Keynote) can be saved to iCloud and opened by the corresponding apps on the iPhone.
    PDFs can be transferred via iTunes or Dropbox and read using an application such as Goodreader.
    If you can add some detail to your request, we can try to offer a better solution.
    Matt

  • How to get document for jdbc-subprotocol

    I want to know,which subprotocol supports the jdbc.How to get the document of this.

    That question is either way to open ended, or you are using the terms in a way that is not normally meant.
    Maybe something here would help you .... http://java.sun.com/products/jdbc/

  • How to get documents into adobe reader iphone

    hi all -- new to my iphone -- i want to read pdfs using the adobe reader -- how do i get pdfs loaded into ???? so the phone can download it

    hazardzzz,
    Please take a look at the following FAQ document to see if it helps you get started with Adobe Reader on your iPhone.
    How to get PDF documents into Adobe Reader for iOS (iPhone on iOS 7 version)

  • How to get the Newly Created Material

    Hi all,
    Iam creating Materials using BDC sessions method,My Problem is to update the Newly Created Material in a Ztable.
    so iam getting the Newly created Matnr by the following peice of code
        SELECT  matnr FROM mara INTO  TABLE v_matnr
                               WHERE ersda = sy-datum
                               ORDER BY matnr DESCENDING.
    But the thing is,we are getting Previously created material.i.e the new material will be  created only after the sessions are processed,but when i write the above code in the program we are getting previous material.
    so how to update the newly created material.
    I think we can't do  that through program because we can get new material only after processing the session..so what is the solution for this.should we use userexits for getting the newly created material.
    thanks in advance
    balaji

    Hello,
    Use the <b>BAPI_MATERIAL_SAVEDATA</b> to create the materials.
    The BAPI will return the Material number which is created at that instance by which u can update the ZTABLE.
    Vasanth

  • How to get Documents folder back in the Dock?

    Hi all
    While playing Leopard, I accidentally removed the Documents folder from the dock. Anyone know how to get it back in its original form (ie- not adding the Alias, but the stackable, entire Documents folder)?
    many thanks

    Thanks.
    I am an idiot.
    I tried to drag the Documents folder from the sidebar and it wasn't working. Now I did it from my home folder and its fine.

  • How to get first level BOM material if I know 4th level material code only?

    Dear all,
    I have 4th level BOM material only. How to find first level ( finish material) BOM material ?
    We can find bottom level material easily through CS11 if we know top level material.
    But how to find top material if we don't know ? we know only bottom most material.........
    Thanks....

    Kishore,
    Multiple runs of "CS15" will help you.
    Regards,
    Prasobh

  • How to get document object on kBeforeOpenDocSignalResponderService

    Hi ,
    I want to change the document on kBeforeOpenDocSignalResponderService.
    I have tried following code on kBeforeCloseDocSignalResponderService
    case kBeforeCloseDocSignalResponderService:
    InterfacePtr<IDocumentSignalData> documentSignalData(signalMgr, UseDefaultIID());
    if (!documentSignalData)
          CAlert::ErrorAlert("documentSignalData is Nil");
         break;
    UIDRef documentUIDRef = documentSignalData->GetDocument();
    if (documentUIDRef.GetDataBase() == nil)
          break;
    InterfacePtr<IDocument> document(documentUIDRef, UseDefaultIID());
    if(document == nil)
         break;
    but here i am not able to get document object.
    Is there any way to achieve it.
    Please suggest some way
    Thanks,

    Hi Pooja_IDDev,
    void MyImpl::Respond(ISignalMgr* signalMgr)
         do{
              ServiceID serviceTrigger = signalMgr->GetServiceID();
              InterfacePtr<IDocumentSignalData> docData(signalMgr, IDocumentSignalData::kDefaultIID); //kDocumentSignalMgrBoss
              if(docData == nil)
                   break;
              UIDRef doc = docData->GetDocument();
         }while(kFalse);
    Best regards,
    Oleg

  • User-Exit - MIGO How to get the Number of Material Document

    Hi everyone!!
    I'm looking for an user-exit after saving in MIGO transaction. I need the Number of Material Document (MKPF-MBLNR) to generate an IDOC.
    Does anybody knows an user-exit to get this number?
    Regards,
    Rubens Kumori
    Edited by: Rubens  Kumori on Oct 20, 2008 3:26 PM

    In BADI definition [MB_DOCUMENT_BADI|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badi&adv=false&sortby=cm_rnd_rankvalue], you may use interfaces [MB_DOCUMENT_BEFORE_UPDATE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badiMB_DOCUMENT_BEFORE_UPDATE&adv=false&sortby=cm_rnd_rankvalue] (before update task) and [MB_DOCUMENT_UPDATE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badiMB_DOCUMENT_UPDATE&adv=false&sortby=cm_rnd_rankvalue] (in update task)
    Regards

  • How to get document number in user  created form?

    Hi All,
             I am creating a form.In that i want to maintain Document number for each form(each order)(like in sales order form (Document  No. field)).
                   Please help me to maintain the document number either manually or by system generated.If u have code example   please send.
            I tried for Manage series and all.But i couldn't get.
    Expecting ur reply soon
    Thanks
    V.Rangarajan

    Hi V.Rangarajan,
    I haven't used this code yet, but herewith an extract from the SBO SDK Training material which I think is related to your problem.
    // create a combo box for the series oItem=oForm.Items.Add("SeriesName",SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
    // fill the combo with relevant series
    oComboBox.ValidValues.FillWithSeries(True, False, 0) new method
    oComboBox.DataBind.SetBound(True, "@MATH", "Series")
    // edit text to hold the numbering of the series
    oItem = oForm.Items.Add("SrValue", SAPbouiCOM.BoFormItemTypes.it_EDIT)
    oEditText.DataBind.SetBound(True, "@MATH", "DocNum")
    // get the next series number in add mode
    lNum = oForm.BusinessObject.GetNextSeriesNumber(CLng(str))
      oEditText = oForm.Items.Item("SrValue").Specific()
       oEditText.String = lNum
    I don't know if this will solve your problem, but hopefully it will put you on the right track.
    Hope it helps,
    Adele

Maybe you are looking for

  • Problem in the monitoring with 12c

    Hi All, I deployed the agent into two machines with OAS. A host level if sample data monitoring (CPU, network ...) but the forms or http or remains in a state pending . I review the agent status and is correct oraias@XXXXXXXX:/datos/oraias/app/agent/

  • Is there a way where I can back up only certain stuff to iCloud

    I have a lot of photos on my iPhone and I want to be able to back up my photos to my computer instead but still be able to back up contacts, calenders, ect to iCloud.Is there a way to assign certain stuff to backup to iCloud and still have my photos

  • I got a Firefox alert My PC may have a serious virus! Is this legitimate

    I got the following message on my computer screen, is it legitimate, should I respond to it or ignore it?. Firefox-Alert! Warning: Your PC may have a serious virus! Browser: Firefox 34.0 OS: Windows If you are seeing this message you need to call Win

  • SAP Business Object attached to FB03 transaction

    Hi, Can any body tell me the SAP business object associated with the transaction FB03? Also please tell me how we can find it out? Regards, Ratheesh BS

  • Please Help... Problem creating triggers...

    I am using Oracle 8i Personal Edition for WinNT/Win2k. I am trying to create a trigger, and keep getting a message that I can't create triggers on tables created by SYS, although I am logged in as SYS. I looked at some documentation, and it said that