Question about base and target document

Dear All,
Does anyone know which table maintain the relationship between base and target document.
For instance, user clicks the base document in the form of AR invoice and return the base sales order.
From Samson

Hi,
In each and every document table the base docs and the target docs information is stored.
Just take a look at the REF DB help file in which u can see the fields and their relations.
For AR Invoice in the lines table INV1 there are 3 fields BaseRef,BaseType,BaseEntry these fields help u in knowing the base doc details, and for the target doc details the following fileds will help, TargetType,TrgetEntry.
U can find the reference file at the following location. C:\Program Files\SAP\SAP Business One SDK\Help\REFDB.chm
Vasu Natari.

Similar Messages

  • Broken Link between Base and Target document in 'Copy To' option

    Hi Folks,
    One of our client has been facing a peculiar issue. When the 'Copy To'  function is used to Copy document from Sales Order to Delivery and recently one instance of 'Copy To' from Delivery to A/R Invoice ,the base document got copied to the target document in each case but there was no trace of any Base Ref. left in the Target document( either in row level or Remarks), thereby the link between the Base and Target document got broken.The Base document remains with status as open.The same base document when tried again to 'Copy To', it creates the link between Base and new Target document.
    This instance had occurred recently 3- 4 times in a span of 3 months or so. In normal circumstance this never happens. The client is pretty sure they have used 'Copy To' option to copy the document from Base to Target.
    Any hints or possible reasons if one can highlight would be appreciable.
    The current version used is SAP B1 8.82 PL11 and it was upgraded more than a year back.
    Regards,
    Bharath

    Hi,
    All the data in Sales Order and Delivery are matching one to one in terms of row details,
    and Document header level.
    The missing data was Base Ref. data and Del.Date didn't get copied from base to target as shown in screen shot.
    Also i have checked it earlier regarding change of target document row details like changing item, but this will only remove the link of that particular row and remaining row link remains intact, but in this case there are many items and it doesn't seem user will have changed in all the rows.
    Regards,
    Bharath

  • Reconnect base and target document if duplicate marketing document

    How can you reconnect the links between the base and target documents when you duplicate marketing documents? 
    For example,  an error was made during the entry of the GR PO and we performed the Goods Return.  However, when you create a Goods Receipt PO and then a Goods Return, the original PO is now closed.  How can you re-open the original PO or else link a new target document to it?
    Thank you.

    Thats right.  You can create a new business process for Exceptions and exceptions have to handled as a one off situation.
    I would suggest you take measures to minimize the error by putting business rules in place and for these one off situations simply type in the PO / SO number in the remarks.
    Creating all document is a big efforts.
    Suda

  • Linking Base and Target document

    Hello Experts,
                                   How to Link 2 user defined forms as Base and Target document. Like it is done for Sales Order and Sales Invoice.
    Quick Reply will be very helpful
    Please Suggest

    Hello Manish
    Basically it is not possible by default, but you can code the logic behid.
    I am recommend to use linkedbuttons for drill down, and when the linked button is pressed, you can stop the event, and open your user defined form.
    here is a sample code for itemevent. I have a matrix, where i have used linkedbuttons in columns. On Col4 i have my object defined, so when the matrix link pressed i am opening my form.
    Now You can define some Base and Target Document types and keys stored in the database, and you can open your documents by this.
    Please note: Base and Target documents menus (in toolbar) will not work, because you cannot enable/disable them from SDK.
    Case SAPbouiCOM.BoEventTypes.et_MATRIX_LINK_PRESSED
                    If (pval.BeforeAction = False) Then
                        oMatrix = otmpform.Items.Item("3").Specific
                        oMatrix.GetLineData(pval.Row)
                        Select Case pval.ColUID
                            Case "COL4"
                                sCode = otmpform.DataSources.UserDataSources.Item("COL4").Value
                                Call StoragePlacesEX.CreateoStoragePlaceForm(otmpform)
                                Call StoragePlacesEX.GetData(otmpform, sCode)
                        End Select
                    End If
    Regards
    J

  • Activate Base and Target Document menu's

    Hi all,
    i am facing a problem, i have added a new form and know i want want to activate Base Document and Target Document menu's of system for my form but when i am doing
               <b>oForm.EnableMenu("5898",True)</b>
    the system throws an exception that menu not found.
    can any body please tell me that is there any way to enable these menu's for user forms
    Thanks..

    Hi Manu,
    In B1, only when target and base documents arre present for a particular Sales/Purchase document, the menu target doc and base doc menus are enabled. otherwise it will not be enabled. Since this is disabled by the system, when you try to activate the system disabled menu it throws an error.
    Hope this helps.
    Amudha M.

  • Add ability to reconnect base and target documents

    Hello,
    One major issue we keep running into (and is a major headache for us) is when we have created, say, a Purchase Order from a Sales Order and have to change something on the Purchase Order. If we change anything on the line item, SAP loses it's connection back to the Sales Order and unless we recreate the Purchase Order again, we have lost that link (other than adding it into the remarks field). We think the base/target document functionality is great, but this breakdown really gives us problems. Often, we can't actually recreate the Purchase Order because cleaning that part of things up with our vendors is often a mess.
    Anyways, this is one of our major issues that we would like to see addressed. Even just making the base or target doc field on the line item editable would do the trick.
    Thanks for your consideration,
    Brent McDonell

    Hi,
    But I tested in SBO 2005A SP01 PL45, the link between sales order and purchase order which is based on sales order would not be broken.
    When you add a sales order, you could tick the box 'Purchase Orders' in Logistics tab. Then when you click on Add button, the purchase order confirmation windwo will pop up. In this window you can change quantity, price, vendor, and so on. And even you have added this purchase order, you still can edit and update it under purchase order window. But either editing above won't break the link between the sales order and purchase order. You can see the remarks in purchase order, the line information about base document in purchase order and you also could open based sales order by using 'Base document' button.
    This is my testing results. If you could give me more information about version, patch level, local and more detailed reproduce stpes, maybe I could do more test and give you more information.
    Anna Shao

  • Problem with base and target document

    Hi all,
    My customer is telling me that the "copy to AR invoice" function in the sales order doesn't link the documents together (but randomly).
    Have you ever seen this before ? If yes, what was the scenario ?
    Thanks
    Charles

    Hi!
    You can reproduce the issue by
    1. Copy the Sales Order to AR Invoice
    2. Cut the Customer Code
    3. Click on some other filed in header
    4. Paste the Customer code again
    5. You can notice the Base Document Icon get greyed out, which means you lost the document connectivity.
    This is the behaviour in SAP B1 of all version and patches, this is not a bug.

  • Can I enable menu for base document and target document for user forms

    Hello friends
    I want to add Base and target document functionality for our addon
    but when i do this
    oform.EnableMenu("5899", True)   ' 5899 is menu uid for target document
    i got this exception
    Menu - Not found [66000-27]
    Is there another way around
    Thanks in advance ....
    Atul

    Atul try adding this to ur form Xml schema and specify the userdatasrc(bold text) for the form as well..
    <item uid="10000329" type="113" left="475" tab_order="0" width="90" top="481" height="19" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                  <AutoManagedAttribute />
                  <specific AffectsFormMode="1" TabOrder="0">
                    <ValidValues>
                      <action type="add">
                        <ValidValue value="A/R Credit Memos" description="14" />
                      </action>
                    </ValidValues>
                    <b><databind databound="1" table="" alias="SYS_312" /></b>
                  </specific>
                </item>
                <item uid="10000330" type="113" left="380" tab_order="0" width="90" top="481" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                  <AutoManagedAttribute />
                  <specific AffectsFormMode="1" TabOrder="0">
                    <ValidValues>
                      <action type="add">
                        <ValidValue value="Sales Quotations" description="23" />
                        <ValidValue value="Sales Orders" description="17" />
                        <ValidValue value="Deliveries" description="15" />
                      </action>
                    </ValidValues>
                    <b><databind databound="1" table="" alias="SYS_313" /></b>
                  </specific>
                </item>

  • Base Document and Target Document Menu for User Defined Forms

    Hi Experts,
    I am facing a problem regarding enabling the menu "Base Document" Menu UID="5898" and "Target Document" Menu UID="5899" . Both of these menu Items are not enabled for User Defined Form .Actually I have developed a user Defined form for Purchase Requisition that targets Purchase Order . User can Copy Line Items From Purchase Requisition to Purchase Order and I am tracking the DocEntry and LineId of PR into PO Item's using UDS . I want to Open this PR Document upon Click of BaseDocument Menu .I have tried all the options. I have used Form.enableMenu() method also . But none of those options work for this menu . I ahve also searched about this problem i this forum also but there is no soultion so far posted regarding this.
    I really want to confirm whether it is possible or not using SDK for User Defined Forms . Is there any possiblity of implementing any WorkArounds and Having this feature implemented .
    I am Expecting a true solutions as this Forum has so many Experienced Experts .
    Thanks and Regards,
    Pooja Singh.

    Hello Poja,
    It is not possible, because the requested menus are depending on the forms, and the are not exists,
    WorkAround:
    add the menus to the User Defined forms, and use right click to activate them:
    oForm.Menu.Add("5898", "Base Document", BoMenuType.mt_STRING, oForm.Menu.Count)
    oForm.EnableMenu("5898", True)
    And hanle the menu event when you clicked them and the form is your custom form.
    Regards,
    János

  • PO from SO via DI API:Base document card and target document card do not ..

    HI All,
    I am trying to create Purchase Order from Sales Order. This is possible by GUI (on Sales Order on logistics tabs Click On Purcase Orders CheckBox.
    I got the error message: -5002-Base document card and target document card do not match.
    The message itself can be understandable, because the Customer and Supplier has a different CardCode.
    I am sure I am using a correct code
    oPo.Lines.BaseType = BoObjectTypes.oOrders
    oPo.Lines.BaseEntry = sDocEntry
    oPo.Lines.BaseLine = iLineNum
    Where oPo is a Purchase Order document.
    sDocEntry is a Sales Order docentry and iLineNum is a Line number of Sales Order
    For other A/R to A/R and A/P to A/P documents are working fine.
    Has anybody found this error or has anybody created application like this?
    I am using sbo2007PL46
    Regards,
    J.

    Hi guys,
    this is still on the suggestion page:
    Link existing Purchase Orders to (Sales) Orders via DI API : View Idea
    I tryed with 9.1 PL 4 and it didn't work.

  • Please help! -5002,Base document card and target document card do not match

    Hi
    When I try to save an invoice with a payment thro' the DI API I get the following error :
    <b>-5002,Base document card and target document card do not match</b>
    Why am I getting this error and how can I solce it?
    Thanks

    Hi,
    For the sake of anyone else who has this problem:
    After much searching for the answer to why I was getting this message I found that the internal validation must be case sensitive and so 'C00417' on the receipt was not matching 'c00417' on the invoice.

  • Base document card and target document card do not match

    I ran into this error "Base document card and target document card do not match" while uploading Outgoing Payments too AP Invoices.
    The CardCode of the Invoice matches the CardCode of the Payment so it's not that issue. I can't seem to fix this error.
    Any input would be helpful.
    Here's screenshots too
    OVPM - Payments
    VPM1 - Payments_Checks
    VPM2 - Payments_Invoices

    Hi,
    For the sake of anyone else who has this problem:
    After much searching for the answer to why I was getting this message I found that the internal validation must be case sensitive and so 'C00417' on the receipt was not matching 'c00417' on the invoice.

  • COPY EXCHANGE RATE FROM BASE TO TARGET DOCUMENTS

    After several study and anaylsis based on Note 703028, we conclude this feature is not applicable to our normal practice in Singapore.
    SAP Business One copies the base row Exchange Rate to the target document only if items in the base document are defined with prices in a Foreign Currency which is not set as the System Currency or which is different from the Business Partner's Currency (this is the currency selected in the header of the document for a Multi Currency Business Partner). This prevents a discrepancy between the row total and the document total.
    Since this feature is not desirable in your applications, we would like to feedback to SAP and suggest for improvement. 
    Example
    My Local Currency is SGD, System Currency is EUR, BP Currency is USD.
    Foreign Currency exchange rates:
                        USD                               
    3 Oct 2007    1.4                                    
    4 Oct 2007    1.5 (1 USD = 1.5 SGD)    
    Assuming in Sales Order, BP Currency is USD at exchange rate of 1.4, Document Date 3 Oct 2007.
    Qty     Unit Price    Total Amount (SGD)   
    1        USD1,000    SGD1,400                 
    After copying Sales Order to Invoice on 4 Oct 2007 with BP Currency USD, default exchange rate should be 1 USD = 1.4 SGD
    Qty     Unit Price    Total Amount (SGD)    
    1        USD1,000    SGD1,400                     
    Current system behaviour is not desirable.
    After copying Sales Order to Invoice on 4 Oct 2007 with BP Currency USD, default exchange rate is 1 USD = 1.5 SGD though we choose Copy Exchange rate from Base Document in the Copy Wizard.
    Qty     Unit Price    Total Amount (SGD)    
    1        USD1,000    SGD1,500
    Kedalene Chong

    We have had the same issue.
    The BP pricelist currency is in this case important, not the BP currency.
    The question 'copy exchange rate from base to target document' relates to this currency exchange rate used in the base document to calculate from USD to SGD. If your pricelist is in SGD, then the program will recalculate the target document SGD to the same exchange rate in USD as it was in the base document.
    Because the value of the USD currency has changed, there wil be a different amount on the target document.
    If you donot want a different amount on the target document then the only solution is to make a price list in USD.

  • Basic question about storage and safety in iMovie '11

    A very basic question about storage and safety:
    I want to keep a backup of my raw footage on my external hard drive prior to begin working on the movie in iMovie. I want to do this:
    1. Upload the digital files from my camcorder to my Desktop *(as opposed to iMovie)*
    2. Duplicate that footage/clips.
    3. Put the duplicate clips/footage into a folder labeled with the name of that footage (like "Fun At the Dentist" or "Jimmy Learns How to Yodel").
    4. Drag the folder with the footage/clips into my external hard drive into a pre-existing folder titled "Backups/duplicates of all of my raw footage/clips." This big granddaddy folder will house all of the child folders of different movies.
    5 Then, open up iMovie '11 and import the raw footage/clips from my Desktop rather than from my camcorder.
    6. Then I want to make a duplicate of my finished movie and put it in my external hard drive in a "Finished Movies" folder.
    I know that the original raw unedited footage will always be in iMovies '11 but I want the original to also exist immediately accessible in my external hard drive.
    QUESTION:
    Is this viable? Is it wise? (I know it goes an extra unnecessary step, but aside from that.)
    *Do you have any precautionary advice?* Should I do something in my iMovies '11 preferences? What?
    In earlier years with iMovie '04 or '06 (cannot recall) I made many novice errors and ended up losing audio to my finished movie. I also lost footage.
    This time around with iMovie '11 I don't to make such novice, ignorant errors.
    Thanks so much for any comments to this question.
    -L

    Yes I'm sure it will work great for you.
    The iFrame format is something Apple has come up with. The reason for its existence is unknown to me so I can only speculate. But it seems to me that Apple "invented" this format in order to have devices such as Ipod/Ipad/Iphone/Ixxx create clips that are editable on consumer hardware such as already mentioned devices but also standard Mac computers, without the need for format conversion.
    iMovie converts most input formats during import, which takes a lot of time, and this need for conversion often comes as a surprise to most people new to home video editing.
    iFrame has a resolution of 960x540 which is long way from the common standards of 1920x1080 and 1280x720. If your end target is YouTube however, this may not be too bad though. However if you intend to go with YouTube HD, you may find iFrame footage to look wrong since they are effectively upscaled to a higher resolution.
    Technically iFrame uses the H.264 algorithm, a smaller frame size (960x540) and a rather low compression scheme. This will result in large files, but the plus side is that the files are ready for editing without the need for any conversion and iMovie will natively edit the files.

  • A question about grub and USB

    Hi All
    I have a quick question about grub and USB that I can't quite find the answer to by searching.   Most of the FAQs discuss booting a full linux dristribution from USB. My situation is this.  I am getting a new computer with two drives, the second will be arch and the first will be Vista (for my wife).  I want the computer to boot the same way that my wife's machine boots at work so I don't want to install grub on the MBR.  So, is there a way to have all of the grub config files and kernels installed on the second drive and simply install to grub boot loader to the MBR of a USB stick?  My goal would be to simply plug the USB stick into the new PC and boot arch from the second drive. 
    Thanks
    Kev

    i cant say for hp's
    havent worked on any in a while
    recent machines have been coupleof dell's , vaio & emachine
    which dells do offer it at least the ones i tried , my laptop does(dell)
    all home pc's are built by me which do offer to boot individual drives
    what hp you getting it may tell in specs
    are both discs sata? if so it might not offer this option with 2 drives of same interface
    check your power supply alot of these preconfigured machines put cheap under reated power supplies in there
    & will burn your motherboard i just replaced PS(250 watt) & mobo(845gvsr) in an emachines <cheap stuff<
    i hope you researched the pc before buying ie : mobo, power supply are the biggest concerns
    i find it much more benificial to build my own machine gives me peace at mind. the cost is sometimes more in $ but not always , your biggest expense is time researching hardware
    if you live in usa the best places to start looking are bensbargains.net & pricewatch.com
    i am not affiliated with either & niether sell the hardware they are just advertisers a place to buy
    for costomized machines that i would trust is unitedmicro.com theyll asemble & test before shipping
    i have gotten 2 machines so far from them with NO PROBLEMS with hardware (knock knock)
    you may want to consider this in your next venture for pc

Maybe you are looking for

  • It's like a plugin virus, but it's external... however, firefox is all it seems to affect.

    XP Pro, DELL Latitude D520, Duo... 2 gig RAM, and plenty hdd, stock video chipset (naturally -.-) After much scouring... i have run into a program on my drive called MRT.exe coupled in the same folder with a MRTSTUB.exe (not case sensative)... I neve

  • How can I set my y-intercept (b) equal to zero retina macbook 2014

    Hello everyone, I hope you can reply to my question before 11:55p.m. today because that is when my report is due. I graphed my scatter plot and got my trend line, but my professor wants the class to set the y-intercept, the (b) from y=mx+b to zero. C

  • Android Video play via AIR application is jerky

    Hi All,   We are developing an AIR mobile application targetted for Android 2.2 or above. One of the requirement is to play H.264 videos on the mobile from the Assets folder (local file system). We have run in to a show stopper while trying to implem

  • How to connect weighbridge to sap

    Hi Friends, I have a requirement from my client. My client having Way bridge, After lorry coming That vehicle weight taken by a device and its directly prints as gross weight than after unloading it takes the tare weight of the lorry with key gate en

  • Itunes 8

    i decided to update itunes to itunes 8 and it download from the itunes website store .when i try to install itunes 8 it says "the itunes application could not be opened. A required itunes component is not installed.(-42404)"