Open AR Invoice-Drafts via UI-Api

Hy All!
Im loocking for a way to open the window of a AR Invoice-DRAFT using the UI.
I need to open a specific Draft that i added bevore via DI, so i know the DocEntry aso. of my Drafts.
I can't open the invoice-form, set it to "Search" mode and search for the Draft that i added bevore.
Does somebody knows a way to do this ?
Thanks!
Regards Andreas

Add an edittext and a link arrow object to a form.
The link arrow should be linked to the edittext, and have a linkedobject of type lf_Drafts (112)
You can then use UI code to put the DocEntry into the edittext, and then call the click method of the link arrow.  This will result in the Draft Invoice window (or other window depending on the type of draft document) opening with your record displayed.
If you don't want to see the link arrow and editext, simply position them off the visible part of the screen.
John.

Similar Messages

  • How to add data to A/R Invoice Matrix via DI API ?

    Hello everyone,
    Could you please answer to my question?
    I insert new button on SAP system form (A/R Invoice). I want to add new line with item code at Invoice Matrix when I click the button.
    Thanks,
    KZT

    Hi Kyaw,
    If you want to update an Existing Sales Invoice Document then I am sorry but it is not possible.
    But if you want to create a whole New Document with DIAPI then try this:
    Dim oInvoice As SAPbobsCOM.Documents
                    oInvoice = ocompany.GetBusinessObject(BoObjectTypes.oInvoices)
                    oInvoice .CardCode = "C001"
                    oInvoice .DocDate = "Date"
                    oInvoice .DocDueDate = "Date"
    oInvoice .Lines.ItemCode = "ItemCode"
                oInvoice .Lines.Quantity = 1
                oInvoice .Lines.Price = 100
                oInvoice .Lines.DiscountPercent = 2
                oInvoice .Lines.TaxCode = Tax
                oInvoice .Lines.Add()
    Finally try to add using oInvoice .Add()
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Cannot create AR Invoice negative amount with WithHolding Tax negative amount via DI API

    Hi All,
    I tried to create AR Invoice Document via DI API, but with negative amount and negative withholding tax amount.
    Document added successfully, but when i open the document in SAP, and i open WTax Table information, withholding tax amount become zero,
    Please see image below.
    But when i add the same document through SAP Screen, i can fill WTax Amount with negative amount.
    SAP Version 9.0 PL 5
    Please kindly help,
    Thanks
    Best Regards
    Siddharta

    Hello.
    If this is different to the behavior of the B1 application it should be considered a bug - like any such difference between DI API and app.
    HTH

  • Create a A/P Invoice Draft for approval

    Hello Experts,
    I want to create a A/P Invoice-Draft via Purchasing module,when clicking The Add Button the invoice is directly posted to the G\L without create a draft that other user who have permissions can view and approval via the Approval Decision Report.
    Please Tell me what is wrong...
    Thanks.
    Ben

    Hi
    I am not sure about your  problem.It looks to me that your approval query is not triggered .
    There could be th reason:
    1.If you are using user defined query ,and you are not meeting the condition to trigger.
    2. For example : If you said  Trigger approval procedures if sales order total is greater than 200.
         It won't trigger approval procedures if sales Order total is less than 200. And User can add the document .
    When Approval Procedures triggers, then the document that triggers  stays as a draft  until it is approved .
    One quick way to check if it not your query , on the condition  specify always .(Approval template >> term >> always . See if it creates the same situation .
    Hope this helps to narrow down your problems .
    Thank you
    Bishal
    Edited by: BIshal Adhikari on Dec 10, 2008 4:18 PM
    Edited by: BIshal Adhikari on Dec 10, 2008 4:39 PM

  • API for PO freeze/unfreeze, hold/release hold, open, open for invoice

    I know there is PO_ACTIONS.CLOSE_PO API which allow us to close the PO. We need to Freeze, Unfreeze, HOLD, release hold, open, open for invoice and open for receiving standard purchase orders. Does anyone know the Oracle API which can do this jobs. Thanks in Advance.

    Currently they are not available as public APIs. Is there are specific reason you are looking for them?
    Edited by: Shivaraj on May 29, 2012 4:10 PM

  • Apply a Payment to an Invoice via DI API

    Good day,
    I'm trying to apply a payment to an invoice through the DI API. All I did was follow the sample code in the included reference document but it gives me a runtime error "invalid cardcode". Any help would be appreciated.
    Thanks in advance!

    Hey Guys,
    The sample code it is not connected to any Invoice, it is posting a cash receipt (payment without reference ib B1).
    The correct code is
    Dim vPay As SAPbobsCOM.Payments = oCompany.GetBusinessObject(BoObjectTypes.oIncomingPayments)
            vPay.CardCode = "ACC" ' ENTER HERE A VALID CARDCODE
            vPay.CashAccount = "38110100" ' ENTER HERE A VALID CASH G/L ACCOUNT
            vPay.CashSum = 84 ' ENTER HERE A VALID AMOUNT (eg DocTotal)
            vPay.DocDate = Date.Today()
            vPay.VatDate = Date.Today()
            vPay.DueDate = Date.Today()
            vPay.TaxDate = Date.Today()
            vPay.LocalCurrency = BoYesNoEnum.tYES
            vPay.Invoices.DocEntry = 13 ' ENTER HERE THE INVOICE DOCENTRY
            vPay.Invoices.DocLine = 0
            vPay.Invoices.InvoiceType = BoRcptInvTypes.it_Invoice
            vPay.Invoices.SumApplied = 84  ' ENTER HERE A VALID AMOUNT (eg DocTotal)
           If (vPay.Add() <> 0) Then
                MsgBox(oCompany.GetLastErrorDescription)
            End If
    Regards
    János

  • Upload Inventory Transfer as Draft via DTW

    Hy!
    I'm Gen from Japan.
    My customer want use Draft Inventory Transfer data as Shipping Instruction to 3PL.
    Are there any way to upload Inventory Transfer as Draft using DTW oDraft?
    I cannot find FromWarehouse which in ODRF stored in Filler column.
    My B1 version: 2005B PL40
    regards
    Gen

    Thanks Jeyakanthan.
    I've checked the note, and tried the step using my DTW.
    Unfortunately in my DTW (version 2005.0.19 API Version 6.80.320) there is no 'save as draft' checkbox.
    I've asked to SAP support, and they answered like below
    The FromWarehouse will be the default Warehouse that is set in the
    General Settings/Inventory/Items tab page/Default Warehouse field in the
    application. The reason for that is that the FromWarehouse property is
    not exposed for the documents object via DI API since draft does not
    implement stocktransfer interface and we are using regular document
    instead, so we are losing the properties of the stocktransfer.
    Business requirement is like below.
    *Customer has another system which creates shipping instruction to 3PL.
    *Firstly, I supposed to use the system for shipping instructo
    , and import the result from 3PL into Stock Transfer via iBolt.
    (Shipping instruction not to customer but to anothere WH)
    *But today, customer said that they want centralize all interface to 3PL via B1.
    *For that requirement, I tried to do whether it is able to interface Shipping Instruction as Draft Stock Transfer, create
    Shipping Instruction Data for 3PL from B1. After getting the result from 3PL create real Stock Transfer and update Draft Stock Transfer's status from open to close.
    Maybe it's simple to realize using SDK.
    As I haven't ever used SDK, I tried to check using DTW.
    Fortunately I'm in blue print face.
    I'll try to change the flow.

  • A/P Invoice Draft convert to actual A/P Invoice Error

    Hi all,
    I had a problem as of mention in the Subject header.
    First of all, I am using SBO 2004.2B and 2004 SDK.
    I had created a small program to read in text file to create A/P Invoice Draft, no problem up till now.
    However, when I convert the A/P Invoice Draft to actually A/P Invoice Document, system will prompt me a message "[ADO12] ..... cannot insert the value null into column ObjectType table 'DatabaseName.dbo.ADO12';column does not allow null.... "
    I do a self checking and release that the Draft document I added,using DI, did not add a line in table DRF12. Thus, when I convert the Draft to actual document it prompt me this error. I also realised if I will to use Data Transfer Workbench to create Draft Document, and when I convert the Draft Document to actual document it also result in the same error.
    Any help on how to tackle this?
    Thanks!

    Have you tried to visualize the Draft you have created with B1 application and save it as document by directly using B1? Do you have the same error?
    If you create the Draft with B1 and try to add it after that as document the DeliveryDate and TaxCode are missing, do you fill this information when adding your document?
    I think you should open a message for support in SMP, they will try to reproduce your problem.
    Regards
    Trinidad.

  • Error when trying to Cancel an invoice document via MR8M Transaction

    Greetings Everyone,
    l am having an issue when trying to cancel an invoice document via MR8M transaction. It gives me the following error message;
    SYSTEM ERROR: error in routine MRM_DRSEG_CR_CREATE
    Message no.M8008
    Procedure:
    Contact your system administrator.
    This invoice was related to a check payment. The check has been voided already and there is no clearing document for the accounting document. So, the item remains open. However when l try to reverse, it display the error message above.
    Thanks in advance

    read notes 449277 and 750455, your solution is probably there.

  • Duplicate a BO via DI API

    Hello,
    as far as I know the only possible way to duplicate a document (for example a Sales Order) via DI API is to save it as xml and then to open it again. but it doesn't work properly, because I get a message "bad value RDR1.BaseLine line: 1". And if I change the property to one manually, the new document can be saved, but it can't be changed any more. I get a message "table rdr1 was changed by another user". What shall I do, so that it works properly?
    Best Regards,
    Alexander

    Hi,
    anfortunatly there is nothing I could omit. I need the same Document and also links to the base documents. There is a code below I used to duplicate a document.
    Private Function CopyDocument(ByVal oDoc As SAPbobsCOM.Documents) As SAPbobsCOM.Documents
            Dim oXmlDoc As New XmlDocument()
            oXmlDoc.LoadXml(oDoc.GetAsXML())
            For Each oNode As XmlNode In oXmlDoc.SelectNodes("//DocEntry")
                oNode.InnerText = ""
            Next
            oXmlDoc.SelectSingleNode("//DocNum").InnerText = ""
            oXmlDoc.SelectSingleNode("//JrnlMemo").InnerText = ""
            oXmlDoc.Save(Application.StartupPath & "\Document_" & oDoc.DocEntry.ToString() & ".xml")
            CopyDocument = moSBOCompany.GetBusinessObjectFromXML(Application.StartupPath & "\Document_" & oDoc.DocEntry.ToString() & ".xml", 0)
        End Function
    Can somebody help me?
    Best Regards,
    Alexander

  • Retrieve contact list  via the API not with the last updated date but created date?

    I can connect via the API and retrieve a list of contacts  but it seems that the only paramater i can pass is to search since the last Update  Date.
    Is it possible to search on the Created date and to have a date range as well?
    I found the xml result is slow to come as it gives all entries since the "lastUpdateDate" entered.

    A change in score does not cause the Date Modified field to change on the contact record. This field only changes when some data in one of the fields has changed.
    However, some of the confusion can come from the fact that lead scores have a Profile and Engagement portion. So if you have certain fields on the profile section being modified, that would cause a rescore at the same time. Engagement criteria such as form submits often cause the contact record to be modified while website visits and email clicks/opens do not.
    Hopefully this helps clarify,
    Bojan

  • Add limits to step settings via TestStand API from LabVIEW

    Dear LabVIEW and TestStand Community!
    I'm trying to add FileGlobal Variables as limits to TestStand step NumericLimit programmatically, via LabVIEW, via TS API. I attach screenshot of the code, which I use (part of it - the module, which only sets values to low and high limit of the step), and also I attach, what I manage to get.
    In TS, when I open sequence file, after running of the code, I can see in the description line of the test, that it accepted limits, which I set from LV - you can see it from the screenshot, it is marked with yellow. But in the Tab "Limits", there are still default numeric values, not FileGlobal Variables.
    Could anyone explain, what doest it mean, and how to set up them correctly?
    Thanks a lot in advance!
    Solved!
    Go to Solution.
    Attachments:
    Limits.PNG ‏33 KB
    Add Limits.PNG ‏15 KB

    It's kind of sequence generator what I'm doing now...
    Thank you very much for fast reply, but when I setup "UsexxxExpr" to true, it doesn't change the situation... Could you, please, check my attachment? Maybe, some mistake in syntax?
    Attachments:
    Add Limits.PNG ‏23 KB

  • How to generate the User-Input XML Body for executing workflows via REST APIs: The Solution

    I see that executing a workflow via REST APIs requires lot of work to be done just to prepare the right User-input XML body. Any mistake and you have some major debugging to do. Larger the number of User-Inputs, the bigger is the problem.Life is so much easier at the WFA GUI with Display names and tooltip help for User Inputs which are very easy for reading and providing the right values. I don't have any such privileges when manually preparing the User-Input XML body.It’s been asked numerous times how to provide User-Input values for type table, or Query (Multi-Select) etc. These are complex User-Input types and has lots of scope for user mistakes.I can have User-input dependency at WFA GUI which allows me to make the right selection, but while preparing my XML body I need to take care of it myself.An operator is allowed to execute workflows, but the same Display names which help him make the right user-inputs, makes it impossible for him to prepare the user-input body xml. Display names can't be used in in XML body and he can't know the exact parameter names by looking at the Display names. So he need to always contact the Admins/Architects for this. And Architects/Admins can't be expected to keep providing User-Input XML body to operators every operator. How about if I could enter all the User-Input values in my workflow execution at WFA GUI, I can do a preview which passed to my satisfaction and then I can magically get the XML body for it which I can use to execute my workflow from REST APIs from any client. It could be so very much easy for me than building my User-Input XML body manually. This is exactly what I'm going to give you right now. You open the WFA in browser, Go to your workflow, Start execution, you input values from GUI reading carefully the display names, preview it to your satisfaction and then get the XML body. Assume your workflow is called “Workflow to Print a given Message”. It’s a simple workflow with only 1 user-input Displayed as "Message to Print" Prerequisites:  The following are the one-time prerequisites. You need PowerShell 3.0 on your WFA server.Import the attached Generate_Workflow_User_Input_Body_in_XML.dar in your WFA. It’s our magical command called "Generate Workflow User Input Body in XML"Add credentials of a WFA Admin/Architect in you WFA itself with Name/IP: localhostMatch: ExactType: OtherName/IP: localhostUsername: <WFA Admin/Architect Username>Password: <User Password>   Steps: Suppose you have a workflow called "Workflow to Print a given Message". You want to execute it from REST apis and need to prepare the user input XML body.  Select this workflow and clone it. The workflow clone is the exact copy of your original workflow word by word, input-by-input. It will open in Edit mode with name "Workflow to Print a given Message - copy".Add the command "Generate Workflow User Input Body in XML" at the beginning of your workflow. This is a must. This command need to be the first command in your cloned workflow.This command requires no input. So for its Parameters just press okay and save the workflow.You are done.Now Execute the clone workflow. You'll see all the user-inputs available to you. Make your choices as you wish. Preview it to confirm that planning is passed and u have no errors.Execute it now.You'll see that the our magical command "Generate Workflow User Input Body in XML" has failed in our clone workflow execution. Don't worry, its fate was decided to be so. But it didn't fail before giving me what I really wanted. i.e. my XML body for my real workflow. It displayed it in the GUI as well as saved it in your WFA server @ C:\temp\<workflow_name_dd_MM_yyyy_hh_mm_ss_.xmlIt also deleted all the reservations of this particular failed job. So NO major residue left to be cleaned.To summarize: Clone Your workflow and Add the command "Generate Workflow User Input Body in XML" as your first command.    Start Execution, provide your User-inputs and preview it. Be satisfied and Press Okay.   Now Execute it.  After a few scconds this cloned workflow will fail with Error "All done. The Workflow will fail now."     See the command execution logs for this command. You'll see the User-Input XML body. It has also saved the XML file at C:\temp in your WFA server.   Have fun. sinhaa  

    Providing a new version 1.1.0 of the command "WFA Schedular" Changes made: Added conditional String Representation based on the Scheduling parameter provided. Provided check for the right number of parameters passed into the command.Added a new parameter "Expiry Date" to automatically stop the recurring execution upon expiry.Check for Posh3.0 version in code.Have Fun!! sinhaa Below example for:Schedule a workflow for recurring execution every alternate day i.e. once in 2 days at 10:30 PM starting 06-Jul-2015 (Today's date is 02-Jul-2015) . The recurring workflow execution  should expire on 31-Dec-2015 and stop.  

  • "Open Interface Invoices" Form takes time to open!

    Hi Guys,
    In our production system, it takes 3 minutes to open "Open Interface Invoices" form (AP Manager>Invoices>Entry>Open Interface Invoices). So what should we do so as to avoid this.
    I was thinking to delete data from two tables (AP_INVOICES_INTERFACE & AP_INVOICE_LINES_INTERFACE) based on certain crieterions. Like all the records which have been successfully imported i.e. with status='PROCESSED' can be deleted. So, I can achieve this using two methods:
    1. Manually using SQL Delete statement. i.e.
    DELETE FROM AP_INVOICES_INTERFACE WHERE status='PROCESSED';
    DELETE FROM AP_INVOICE_LINES_INTERFACE
    WHERE invoice_id IN (SELECT invoice_id FROM AP_INVOICES_INTERFACE WHERE status='PROCESSED');
    2. Or I can use "Payables Open Interface Purge" Program.
    I ran this program for my specific source, and checked the count from tables but the result is the same. This means this program has not deleted any of the processed records from these two tables for the particular source.
    What can be the reason for this? Please suggest me on this.
    Thanks a lot!
    Regards,
    Sumir Chawla

    So I tested it out on Windows Pro Reader X 3GB and it opened right away. Then I put it down to 1GB and it took over a minute! Best bet is to get a faster machine! (or at least a memory upgrade)
    In the mean time, I had a look at your form and there were a lot of objects and subforms that didn't need to be there, so I cleaned it up and made one repeatable subform. It works a lot faster now even on a 1GB.
    You can edit the title of each entry in the scripting object myLists.
    Here you go:
    http://www.fieldeffecttechnologies.com/AdobeForums/PAR_v3.pdf
    Kyle

  • Query to identify Open AP invoices

    HI
    How do you identify open AP invoices?
    I've gone through the discussions and noted two answers marked as correct that are yielding different results.
    1. You should use the invoice_amount and amount_paid columns in ap_invoices_all
    2. Use the payment_status_flag in ('N','P') and cancelled_date in not NULL
    Which of the two gives an accurate representation of open AP_invoices and where do Invoices with Amount = 0 fall? should I exclude them from the query?

    I dont see any using in using below approach :
    1. You should use the invoice_amount and amount_paid columns in ap_invoices_all
    This would highlight all open/unpaid invoices

Maybe you are looking for

  • Single File into multiple files

    Hi, I am working on scenario where I will be getting Header,Trailer and in between plant records. I will be picking file and need to create a new file for each plant. Do we require BPM for this? Can it be achieved in Message mapping only? If so how?

  • Assembly BOM Option

    How do I need to configure an item in order for it to display an assembly BOM option? I take a current item which is configured as an assembly BOM and duplicate it. Give it a new code and name, then add it. When I go to Bill Of Materials and want to

  • OJVM bug ??

    Hi, I found some discrepency on the results shown by memory profiler of JDEV (9.0.2) and that of NetBeans (IDE 4.0). Also, results of JDEV profiler is in contradiction to what Sun Java says (as per my own interpretation!). Here is what I am trying to

  • Upgrate os x 10.5.8 do 10.6

    hi i am trying to download adobe cs6 design and web premium and can not do it because my system is os x 10.5.8 and i need at least 10.6 how to update or upgrade my mac?

  • Searching through .fla files

    Usually when I am looking for a specific field name, section of code or variable, I will run a GREP regex search to search through my ASP files, which works great as they are just stored as plain text, however I was wondering if anyone knows of a way