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

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

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

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

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

  • 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

  • How do I keep the source document open when linking to a target document using the destination option in Adobe X?

    How do I keep the source document open when linking to a target document using the destination option in Adobe X? Have several links to create in the source document and want to keep the source document and target document open at the same time.

    Go to Edit - Preferences - Documents and un-tick "Open cross-document links
    in the same window".

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

  • Linking Source and Target language PDFs with ref. points

    Dear adobe folks,
    I am new to this forum, so my excuses if such a topic has already been discussed. I could not find anything:
    In my department, we are often handling English source and language-specific target pdfs, for example to do a review of a translation.
    What I would like to achieve is to LINK these two pdf documents in such a way that when I scroll through one, the other one scrolls with it to the appropriate point.
    IMHO, this should be possible with a grid of "reference points" that an automated function/tool identifies in both docs and creates links. Such reference points would be: chapter beginnings, cross references, images, anyhting that is safely identifiable in both the English pdf and the Target language pdf.
    The precision rate of the grid determines how accurate the linking works, of course. But even a rough relationship would help. It could be very beneficiary to all translators, reviewers, anybody who has to compare versions or translations of the same.
    Is there any technique of doing such a thing? I am not a programmer myself, but we would perhaps have this done by somebody. I do have a wee bit of programming knowledge though, to understand your answer :-)
    Thank you so much
    Techlitter

    Why wouldn't bookmarks be sufficient for this purpose?

Maybe you are looking for

  • Photosmart 7515 Not Working

    I bought my HP Photosmart 7515 All-in-One (Print / eFax / Scan / Copy / Web) when it first came out - honestly can't remember.  I use a 2008-MacBook Pro and 2009-27" iMac desktop computer.  Originally, the 7515 worked wonderfully.  I updated my compu

  • How to identify a role that is not working

    In what table or through witch function module can I see that there's a problem with a user's role via ABAP? I have a role that seems to be fine when I search it with  function module PRGN_READ_USERS_FOR_ONE_AGR. But when I search it with SU01, it ap

  • Function Moduel for Acceptance of Service Entry Sheet

    Dear Experts, We have a requirement, in which we need to accept the Service Entry sheet from a web service. For this purpose, we are searching for suitable BAPI. We have BAPI for Release of Service Entry Sheet. But failed to find any BAPI / Function

  • I need to install 64 bit flash player on my 64 bit system

    How do I uninstall the 32 bit flash player  that is on my system now?

  • Mouse doesn't work correctly

    I bought a new computer over the weekend and everything works fine EXCEPT the mouse ONLY when I'm on Facebook.  It works for a few seconds, stops for a long time and then continues.  Why does this happen and how can I fix this?  I'm using the mouse t