BAPI_DOCUMENT_CREATE2 -Updating object links

Hi I am using this bapi to create documents through CV01n.
but, problems is i could not update this OBJECT links tab. I want to populate Customer no. I am trying by sending through Object links structure, but no use.
What mght be the Problem?
Pls. Help Me.
Regards,
Krishna.

Hi,
Please read the Function module documentation. An example is given there.
**.... Object links
   DATA:    lt_drad  LIKE bapi_doc_drad OCCURS 0 WITH HEADER LINE.
**.... Object link to material master
CLEAR lt_drad.
REFRESH lt_drad.
lt_drad-objecttype = 'MARA'.
lt_drad-objectkey  = 'M4711'.
APPEND lt_drad.
You can find the entries for the object type 'OBJECTTYPE' in the table TCLO (MARA for material). The object key 'OBJECTKEY' is made up of the key fields of the SAP object that is also is in the table TCLO.
Edited by: Neenu Jose on Nov 3, 2008 9:41 AM
Edited by: Neenu Jose on Nov 3, 2008 9:42 AM
Edited by: Neenu Jose on Nov 3, 2008 9:44 AM
Edited by: Neenu Jose on Nov 3, 2008 9:47 AM

Similar Messages

  • OLE objects linked to MS Word/MS Excel do not update in InfoView

    I am facing the following problem:
    - Embedded a Word document as linked OLE object into a crystal report and stored it to Enterprise repository.
    - When opening the report with CR Developer from my workstation, links are updated and changes made in the .doc file are reflected, the report is updated
    - However when displaying and refreshing the report in InfoView changes aren't reflected.
    The OLE link (type document) is set to update automatically. I tried to store the report to the enterprise repository with and without data. Yet no difference - no update in either case. Neither scheduling nor opening and refreshing the report in InfoView helps.
    I further inserted an OLE object linked to a bmp image, and for the image refreshing works, even in InfoView
    So am I doing something wrong?
    Some threads in this forum indicate that only OLE linked pictures (bmp, jpg) can be refreshed dynamically, e.g.
    [Dynamically change path to OLE file]
    Others indicate that it is also possible to dynamically refresh OLE objects linked to .doc, e.g.
    [Re: Link to Word document doesn't refresh when running from Infoview]
    - Is it at all possible to dynamically display the contents of .doc or .xls files in a CR when viewing and refreshing the report in InfoView (without the need to reopen and resave the report with CR Developer first) ?
    - We are using BOE XI3.1 SP3 and Crystal Reports 2008 SP3.  On the BOE server Crystal Reports Developer is not installed. Can this be a prerequisite for the OLE links to update in InfoView?
    - Any other suggestions?
    Thanks
    Konrad

    Hi Don,
    Thank you for the quick reply.
    - You say that this works in CR Designer. That's right. As described above, even I can open the report with CR Designer and the links are getting updated.
    - However if I do not reopen and resave the report with Designer ... if I just open and refresh the report in InfoView to get the updated information from the files ... changes are not shown. I face this problem ONLY with ole links to .doc and .exe. OLE links to image formats such as .bmp do work. WHY?
    My files are already stored locally to the BO server and the (changed) image files are read and updated from exactly this directory. But not the linked Excel and Word files...
    Thanks
    Konrad
    Edited by: Konrad Hartl on Jan 25, 2011 8:04 PM

  • Object link is not created for batch  through BAPI_DOCUMENT_CREATE2

    Hi ,
    I am trying to create  document for batch object through program using bapi BAPI_DOCUMENT_CREATE2.
    In transaction CV01N while creating document  there is a provision to to link your material with Batch. I am able to create it through CV01N. But, While creating through program I am not able to create the object link. I am able to create link for material,vendor,PO.. but not for BATCH objects. The table where link objects values to be passed is OBJECTLINKS.
    I have tried all possible combination but unable to create a batch object link to a material through BAPI_DOCUMENT_CREATE2.
    Thanks,
    Sandeep

    Hi,
    Please explain detailly about FM BAPI_DOCUMENT_CREATE2
      Thanks
      Madhavi

  • Who is determining object link for Contracts in SRM

    Hi all
    SAP Says
    The determination of object relations takes a long time.  This is indicated by the long runtime of the report "BBP_GET_STATUS_2", for example. If you use transaction SE30, for example, to view an ABAP trace, it displays a long runtime for "Perform BBP_PDH_OR_READ".
    get status or clean rereq up?
    who creates a object lingk for GOA contract? get status or clean reqreq up ?
    muthu

    yes jay. Are those  links or reference ?
    i think both are same.
    object link means it connects both objects srm GOA and Purchasing Contract BO. it is reference too..
    i think it is duty of clean req job .
    for eg.
    i have only GOA in SRM not other SRM business objects sc etc.
    should i require get status jobs to be run ?
    i use srm only for creating GOA.
    i dont see any thing on my spool get status job for contract.
    let me stop status job and see..i dont have access to cancel . but update u shortly.
    br
    muthu

  • BAPI Object Links Classification

    Hello,
    I am using BAPI_DOCUMENT_CREATE2 for creating document info records, which works great. I make an object links to an equipment number and you can classify this object link in CV02N with class 048 object link. This also works in transaction CV02N, but how can i classify the object links in the BAPI?
    Kind regards,
    Nick

    Dear Nick,
    to achieve this the BAPI_DOCUMENT_CREATE2 is not the correct one. This BAPI only allows to create document info records and do nearly the same actions as in CV01N.  But here it is not possible to classify object links.
    For this specific case the following BAPI sequence could be useful:
    BAPI_OBJCL_GETDETAIL - read the existing classification data
    BAPI_OBJCL_CHANGE    -  edits the classification data
    BAPI_TRANSACTION_COMMIT - necessary to write the whole changes to the database.
    Instead of BAPI_OBJCL_CHANGE you can also use BAPI_OBJCL_CREATE to generate an assignment.
    Further information on these BAPIs you will find in transaction BAPI under Cross-Application Components >> Classification.
    Best regards,
    Christoph

  • Custom Object Link in DMS

    Hi
      I need to create Object Link For Inspection lot (table QALS). I followed the steps like Maintain Screen for Object Link, Maintain Key Fields ,Define Object Links for Document Type and implemented BADI DOCUMENT_OBJ. And the object link record is successfully creating in DRAD table. Where as the record is not updating in QALS table(Inspection Lot table). I have a question here, Do i need to save explicitly in QALS table through coding?
    Regards
    Neelima

    Hi,
    When you are saving the object link in the Document Info Record(DIR), at that point of time itself, it can be updated in the QALS table via User exit / BADi.
    secondly, you had to get some coding for displaying of DIR  as additional data in the display screen of inspection lot.
    The technical consultant will help you in doing the coding and identification of user exit/ BADi.
    Thanks
    SUMIT

  • Update All Links Problem

    Problem: Links will not stay updated in inDesign. After each time I place images, I get errors in pre-flight and then I must go to links panel and 'Update All Links' and pre-flight goes to green. After the next Place, the errors return. Preflight tells me the files have been modified, but they have not to the best of my knowledge.
    Computer: 2012 MacPro (Mavericks, now Yosemite (same issue with both). Adobe CC updated. I have even uninstalled CC and reinstalled to try and fix. I do not use an external or network drive (for storing project files or links) and do not change folder location after starting a project.
    Workflow: I use inDesign for creating photo books primarily. I am very organized with folders on my system and build all client work in the same place. I use one folder for each client book and I never move the folders. Inside the Client Book Folder, I create one folder called 'Images' (I have also experimented with calling it Links to test). I usually save the indd file in the root client folder outside of the Images folder.
    Place: I primarily use Bridge to Place Images in inDesign (also use Cmd-D inDesign) to place images, same results either way.
    The images have already been retouched, so I rarely leave inDesign to edit. I mainly layout complete books
    Preferences: I have tried every combination in File Handling, Links, etc that I am aware of. I have only been a heavy inDesign user for about 2 years so I am expecting to feel stupid when I fix this problem, but I cannot figure it out on my own. I have no corruption in files or problems exporting, but I must constantly 'Update All Links'.
    Any suggestions?
    thanks,
    mike

    I have never personally seen this happen, but it only takes one placed object to have changed for the InDesign preflight to indicate that the links are out of date. If you keep any of the asset open in another program, even if you aren't changing them, perhaps that is triggering this behavior.
    Another possibility would be some type of continuous backup process that is marking the file attributes in some way that make InDesign see the file as modified. InDesign does not actually go “inside” the linked assets to see if they are different, but rather looks at modification dates of the linked files. And ironically, even if  a file is not actually changed, if it is opened for read/write in another program or possibly if  its backup metadata is changed, the file's modification date may reflect this. Just a thought to check out.
              - Dov

  • Object link RE-FX

    Hi all
    I want to find object link of RE-FX. Please give me if you know.
    Best Regards
    An NLP

    I found them. Use them with screen 500.
    Architectural object VIBDAO
    Business entity VIBDBE
    Land VIBDPR
    Building VIBDBU
    Rental object VIBDRO
    Real estate contract VICNCN
    Participation group VISCPG
    Settlement unit VISCSU
    Adjustment measure VIAJAT
    Mandate VIMMMN
    Offered object VIOROO
    RE search request VIORRR
    Contract offer VIOROF
    Parcel VILMPL
    Parcel update VILMRC
    Land register VILMLR
    Joint liability VILMJL
    Other public register VILMPE
    Notice of assessment VILMNA

  • Problems updating a linked table

    Hi,
    I am running a win 7 with Excel 2013, 64 bit, Swedish version. I try to update a linked table in the data modell and get an error message saying:
    ============================
    Exception from HRESULT: 0x800A03EC
    ============================
    Call Stack:
    ============================
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at Microsoft.Office.PowerPivot.ExcelAddIn.ExcelInterOpUtil.GetLinkedTableExcelTableName(String modelTableName, Workbook workbook)
       at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.FixLinkedTableExcelTableName(LinkedTableInfo tableInfo)
       at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.UpdateAllLinkedTablesClick()
    ============================
    The file is saved as .xlsx so there shouldn't be a compatibility problem. I have also tried removing the added rows to make sure the added data didn't contain any bad data and running the file on a different computer but the problem keeps showing up.
    Anyone having any ideas on how to solve this?
    //Caj
    Csten

    Does anyone have a suggestion for Csten?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Issue while creating Object Links

    Hi Gurus,
    We are trying to upload documents by creating link  to sales order through BAPI_DOCUMENT_CREATE2..
    When we try to upload documents by creating the object link to sales order we are getting the error message as
    "The link to SAP object is not allowed for document type".
    Manually we can able to create document and link to sales order..
    Pls let me know when we run BAPI is there any seperate configuration required for the document type and object links
    Regards
    Bhanu

    Thanx

  • Error in updating object SURVEY

    Hi Experts,
    The following error occurs not always but very rarely while updating the notes field or while saving an Activity.
    SAP Note
    The following error text was processed in the system P60:
    Error in updating object SURVEY
    The error occurred on the application server crmpcs2c_P60_09 and in the work process 6.
    The termination type was: ABORT_MESSAGE_STATE
    The ABAP call stack was:
    Function: CRM_SURVEY_UPDATE_DY of program SAPLCRM_SURVEY_DU
    Form:CRM_SURVEY_UPDATE_DY of program SAPLCRM_SURVEY_DU
    Form:%_UPDATES_NO_UTASK of program SAPMSSY4
    Form: LOCAL_UPDATE_TASK of program SAPMSSY4
    START-OF-SELECTION of Program SAPMSSY4
    Could you help me in this regard.
    Thanks in Advance.
    I will reward full points to the expert.
    Regards,
    Madhura.

    Hi Gervase,
    No, but there was an associated dump in the transaction SM13.
    Here is the detail:
    Function Module: CRM_SURVEY_UPDATE_DU
    Status: Update was terminated
    Report: LCRM_SURVEY_DUU02
    Row: 94
    Error details   Class: CRM_ORDER_MISC Number: 002
    Error in updating object SURVEY
    Thanks in Advance.
    Regards,
    Gabriel.

  • Adding new field to detail data screen of object link

    Hi All,
    I've a requirement of adding a new field to the detail screen of object link. But the field is a combination of 3 other standard fields.
    Please let me know how could i realise this functionality?
    Thanks in advance.

    Hi Srini,
    Thanks for your Reply
    I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
    But still that field is not visible in the dynamic selection screen.
    Thanks
    Ajay.D

  • Is there a limit on number of object links to DIR, and any impacts of this

    Hello All,
    Can you please let us know if there is any limit on the No of Object links to be maintained in the Object Link tab of DIR,
    Our major Concern comes as there is One DIR logo / symbol, which is maintained in most of the Material Master around 1000s
    and also the same DIR is used in all the Service and maintenance Notification as an Attachment, so the list of Object link in DIR Object link tab  is going beyond control above 10000s,
    i wanted to know if there is any limit on no of Object links to be maintained in DIR object links, and is there any impact on DMS functionality if the list is ever increasing,
    ( also can i know if there is any workaround that the DIR is only displayed going in to Material master or Notifications but the same is not listed in the DIR object links tab as here it is going on increasing,)
    Thanks and kind regards
    Kumar S

    Hello Christoph and Every one,
    Thanks for the responses given, and providing a hint not to have many Object links, as it could be an performance issue going to the DMS DIR Object link TAB,
    But in this particular case we are not assigning the Objectlinks going by the DMS Object links TAB, but it is done in other way round, going by the Equipment or Notification Screens,
    There are few Health and safety document ( Which is created as a DIR in DMS) which needs to be assigned in  Most of the Equipment and the new notifications created, and this document DIR is assigned from the Equipment and notification Screen,
    And we may not be interested to go to the DIR to browse and Assign the Object Links, so as we do not frequently go and check the DIR or Use DIR Object link TAB for Object Link assignment will it in any ways cause performance Issue here??
    And also as asked earlier can we have a one way attachment like the DIR is Visible in the Equipment or Notification Screen, but the DIR is not adding up the Equipment or Notification details in its Object links TAB, (by development or it is totally illogical to ask for)
    Thanks and Kind regards
    S Kumar

  • Opening a new window when clicking on object links

    Hi,
      I have installed business package for crm and configured the object links, but when i click on object links, it is opening a new window, but i want it to be opened in the same window form which that link was activated.
    could you please help me in this regard
    Thank you

    Hello Koduru,
    you should have a look at the work protect modus settings of the user.
    Regards
    Gregor

  • CProjects - Adding a new field to the detail screen of object link

    Hi All,
    I've a requirement of adding a new field to the detail screen of object link. But the field is a combination of 3 other standard fields.
    Please let me know how could i realise this functionality?
    Thanks in advance.

    Hi Srini,
    Thanks for your Reply
    I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
    But still that field is not visible in the dynamic selection screen.
    Thanks
    Ajay.D

Maybe you are looking for

  • IPhoto 6 crashing whenever I make ANY changes to images

    Here is the rather long error report: Date/Time: 2006-01-28 17:54:06.614 -0800 OS Version: 10.4.4 (Build 8G32) Report Version: 3 Command: iPhoto Path: /Applications/iPhoto.app/Contents/MacOS/iPhoto Parent: WindowServer [66] Version: 6.0 (6.0) Build V

  • Search resources based on created date

    Hi, I am unable to search the resources based on creation date. I used the code as follows. sqb = new SearchQueryListBuilder(); Timestamp ts3 = new Timestamp(d3.getTime()); String searchCreDt = "default:created(value>"ts3.toString()")"; sqb.setSelect

  • Please help me... I'm not able to connect my iphone with itunes.

    Everytime I try, I only get this message: error (0xE8000065) Does anyone know what this is about?

  • No Flash Player on Metro style IE 10?

    Now that Microsoft has claimed not allowing plug-ins on Metro style IE 10, what it means for future of Flash?

  • Dashboard,cannot create file

    when I try to download widgets, the download window appears and looks like it doing what it's supposed to, but then it says it cannot create file. does anybody have any idea what the problem is. this also happens when i do software updates or any dow