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.

Similar Messages

  • 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

  • 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

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

  • 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

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

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

  • Next and Previous Document menu items greyed out

    I have Reader 8.1 and the next document and previous document menu items under View > Go To are greyed out, even though I have several document open and they show up in the windows menu. Any thoughts? Thanks.

    Are you definitely opening the correct version of After Effects, or are you perhaps opening the After Effects Render Engine instead?
    The Render Engine is, as its name suggests, purely for rendering existing projects, and most other functions are greyed out.
    Bill Hirsh wrote:
    I downloaded the guru 5.0 or ;after Driver,
    I don't understand what this means.  Please repost and explain more precisely what the problem is.

  • View List of BP's in Segmentation Basis and Target Groups

    Hi Experts,
    We are using Segmentation Basis for Segmentation. When I create the Segmentation Basis using WINGUI I see that the list  of Business partners in the Segmentation Basis is around 15,000 but I can view only 100 of them in the List output. Is there any other way where I can see all the BP's that are assigned to a Segmentation Basis/Master group.
    I have a similar issue with the Target Group members in a Target group. The Target Group to file export will save the file to an application server to which all the users will not access . Is there any alternate method to view all the BP's in a Target group other than the file export to the application server.
    Please Help.
    Regards,
    Pooja

    Hi Pooja
    I have the same problem with segmentation basis.
    I have created a segementation basis  for  certain number of targetgroup example: 500 members
    When  i am trying to create a new profile set by selelecting the created segementation basis , no target group was displayed and it is showing as Zero.  but  the target group is displaying in SAP GUI.
    Is anything i am missing , can you please let me know the steps for segementation basis procedure and how we can use them for further segementation.
    Thanks
    shashi

Maybe you are looking for

  • How can i mirror my mac book pro with apple tv

    I need to know how to mirror my macbook pro with my apple tv so I can watch youtube and use my browser on my tv. So what I can see on my computer I want to see on tv. Is there a program I need or should it do it by it's self?

  • Status of Z10 sync with MS Outlook

    I loved my old BB Curve.  The sync option was awesome.  Sadly, when it was time to get a new phone a few years ago, BB had nothing good on the market.  Now, well, it's decision time.  I was about to buy the Z10, but then learned to my dismay that per

  • How to hook up Power Mac G4 to my i.Mac

    Been browsing through discussions and Apple stuff, talked to support techs at Apple Care (with less than desired results), but still need help on how to do this. Here's what I want to do: Get step-by-step instructions on how to hook up an "old" (thin

  • Authorization Switches in SAP HR

    Hi All, We are about to start the security role build in our development system. As per my knowledge, there are some authorization switches to be activated before we start the role build through t-code OOAC. I would like to know, if changing the valu

  • Flex 4

    Are there any plans to support flex 4 in the creative suite sdk? I can't find any information about it. Would make life easier... . Right now my projects contains some libraries compiled with 3.4 and some parts with 4.1: 1. A core library compiled in