Open PO convert to A/P Invoice

Hi,
I'm new to SDK. I hope someone can give advice and help me on this.
Can I create A/P Invoices based on open PO(s) selected by user using ASP.net & SDK?
If in case on failure, any rollback feature being activated?
Best Regards,
Swee Sen

Hello,
Use the following sample:
Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices)
        oDoc.CardCode = "SUPPLIERCODE"
        oDoc.DocDate = Today
        oDoc.DocDueDate = Today
        oDoc.Lines.BaseEntry = e ' PO docentry
        oDoc.Lines.BaseLine = 1 ' PO Base Line starts from 0
        oDoc.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oPurchaseOrders
        If oDoc.Add <> 0 Then
            error = "Error " + oCompany.GetLastErrorDescription()
        End If
Regards,
J.

Similar Messages

  • Open and converting raw in ps 7

    how can i open and convert raw nef images from my 35mm nikon into pdf using ps 7?  Raw is listed under OPEN as a category but i cannot make it happen.

    You need to first open the NEF file in Photoshop, and if you are really talking about the very old version 7, there is every chance that will be a problem.  I don't even know if Version 7 supported Camera RAW, but I think it did.  So I am having to guess because of the age of the version you are using, but you will probably need to download the free DNG converter.
    http://www.adobe.com/nz/products/photoshop/extend.displayTab2.html

  • I just purchased the new Canon SX60 camera. Despite downloading and installing the latest version of Adobe DNG converter, I receive an error message saying that Photoshop CS4 can't open up/convert raw files (.CR2). This is the same file format as used by

    I just purchased the new Canon SX60 camera. Despite downloading and installing the latest version of Adobe DNG converter, I receive an error message saying that Photoshop CS4 can't open up/convert raw files (.CR2). This is the same file format as used by the SX50, with which I never had any problem. Does anyone have a suggestion on how to fix this problem? Thanks.

    Camera Raw plug-in | Supported cameras  I do not see that SX60 as supported. Just how new is the SX60 when was it announces. Its support is not even listed in ACR 8.7 RC

  • "Open XML Converter" opening when I click "Open in finder" in stacks

    Today, suddenly, "Open XML Converter" opens when I click "Open in finder" in stacks or select a folder in Spotlight.
    This happens in only one account (mine; I have quarantined admin and guest accounts).
    I have repaired permissions a number of times, re-booted, used Time Machine to restore the Preferences folder from before it started up, deleted and re-installed the program and nothing changes it.
    This is highly annoying and I don't know what to do, except delete Open XML Converter, which I'd rather not do.
    Any thoughts would be much appreciated.
    Computer details are:
    Hardware Overview:
    Model Name: MacBook
    Model Identifier: MacBook4,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 3 MB
    Memory: 2 GB
    Bus Speed: 800 MHz
    Boot ROM Version: MB41.00C1.B00
    SMC Version (system): 1.31f0
    Serial Number (system): W8816NQM0P1
    Hardware UUID: 54F8B60E-340B-5619-8A73-97B31C95E140
    Sudden Motion Sensor:
    State: Enabled

    Try reset ipad. Hold down Sleep and Home button for about 10 seconds until you see the Apple logo.

  • How can i open the "Convert to Indexed Color" dialog with custom presets?

    Hi,
    I need to automatically open the "Convert to Indexed Colors" dialog in Photoshop. Before and after that i have some scripts running so its not possible to open the dialog manually. Also i want to set some custom presets (like number of colors etc.).
    Found something similar to what i want for the Color Range selection (opens the dialog with the presets you put in):
    function colorrange(enabled, withDialog, fuzziness) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        desc1.putInteger(app.charIDToTypeID('Fzns'),fuzziness);
        var desc2 = new ActionDescriptor();
        desc2.putDouble(app.charIDToTypeID('Lmnc'), 31.22);
        desc2.putDouble(app.stringIDToTypeID("a"), 0.86);
        desc2.putDouble(app.stringIDToTypeID("b"), 0.31);
        desc1.putObject(app.charIDToTypeID('Mnm '), app.charIDToTypeID('LbCl'), desc2);
        var desc3 = new ActionDescriptor();
        desc3.putDouble(app.charIDToTypeID('Lmnc'), 95.34);
        desc3.putDouble(app.stringIDToTypeID("a"), 54.59);
        desc3.putDouble(app.stringIDToTypeID("b"), 49.85);
        desc1.putObject(app.charIDToTypeID('Mxm '), app.charIDToTypeID('LbCl'), desc3);
        desc1.putInteger(app.stringIDToTypeID("colorModel"), 0);
        var desc4 = new ActionDescriptor();
        var desc4 = executeAction(app.stringIDToTypeID('colorRange'), desc1, dialogMode);
    How can i achieve the same for the indexed color conversion dialog? Apart from doing a lot of guessing regarding the stringIDs.
    Is there some kind of "lookup table" for char and string IDs?
    Thank you guys in advance! This forum has been a great help many times.

    Ok never mind i got it, stupid me.
    Recorded it with Script Listener and changed the "DialogMode" parameter of the executeAction function from "DialogModes.No" to "DialogModes.All".
    var idCnvM = charIDToTypeID( "CnvM" );
                var desc249 = new ActionDescriptor();
                var idT = charIDToTypeID( "T  " );
                    var desc250 = new ActionDescriptor();
                    var idPlt = charIDToTypeID( "Plt " );
                    var idClrP = charIDToTypeID( "ClrP" );
                    var idSele = charIDToTypeID( "Sele" );
                    desc250.putEnumerated( idPlt, idClrP, idSele );
                    var idClrs = charIDToTypeID( "Clrs" );
                    desc250.putInteger( idClrs, 4 );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idNone = charIDToTypeID( "None" );
                    desc250.putEnumerated( idFrcC, idFrcC, idNone );
                    var idTrns = charIDToTypeID( "Trns" );
                    desc250.putBoolean( idTrns, false );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDfsn = charIDToTypeID( "Dfsn" );
                    desc250.putEnumerated( idDthr, idDthr, idDfsn );
                    var idDthA = charIDToTypeID( "DthA" );
                    desc250.putInteger( idDthA, 75 );
                var idIndC = charIDToTypeID( "IndC" );
                desc249.putObject( idT, idIndC, desc250 );
            executeAction( idCnvM, desc249, DialogModes.ALL ); //Change from NO to ALL

  • You cannot open row in the document AP invoice

    Hi Experts,
    We're getting "You cannot open row in the document AP invoice" when adding an 3 AP Invoice from draft, it used to work before with our AP Invoices.
    We're using Service Type.
    2005A PL46
    What might be the problem? Any information will be greatly appreciated.
    Thanks!

    Hi,
    What do you mean for adding an 3 AP Invoice from draft ?  Do you have any add-on running?
    Thanks,
    Gordon

  • I've just updated my Macbook to Mavericks and all my .avi files storaged in a Lacie Rugged aren't opening but converting one by one I opened; are they not compatible?. Is there a way to converting all of them simultaneously and faster? Thanks a lot guys

    I've just updated my Macbook to Mavericks and all my .avi files storaged in a Lacie Rugged aren't opening but converting one by one I opened; are they not compatible?. Is there a way to converting all of them simultaneously and faster? Thanks a lot guys

    Have you tried using VLC media player it seems to play almost any codec without converting.
    https://www.macupdate.com/app/mac/5758/vlc-media-player

  • Robohelp 8 crashes while opening a converted project from RH7 to RH8

    case number: 181233117
    when customer when  opens a converted project from version 7 to 8, a busy hour glass is dispalyed all the time and robohelp funtionality is unavai
    lable most of the time.
    Browser: Microsoft IE
    Operating System: Windows XP Professional
    Application server: WBSPHRV60
    have asked the customer to upload the file/project.

    What are you expecting from this post?
    See www.grainge.org for RoboHelp and Authoring tips

  • Commandline: Opening a directory opens Microsoft "Open XML Converter"

    Hello everyone,
    I am trying to open a directory from the commandline, like this:
    user1@HOSTA:~ $ open '/Volumes/Macintosh HD/Applications/'
    I expected the directory to open in the Finder, but instead a program called Microsoft "Open XML Converter" starts up instead. 'Finder' never opens. It seems like the default "type" was munged when "Open XML Converter" was installed.
    I have searched around the internet and in these forums, but I cannot find any answers. I appreciate any help on how to fix this.
    -= Stefan

    try running this script from the script editor (I picked it up somewhere - can't remember where). it should rebuild the launch services database, which might fix the problem.
    display dialog "The Finder must quit and will relaunch after the Launch Services rebuild is complete. The rebuild may take several minutes, during which time you should refrain from using any other apps." buttons {"Cancel", "Rebuild LS Database"} default button 2 with icon caution
    ignoring application responses
    tell application "Finder"
    delay 2
    quit
    end tell
    end ignoring
    delay 5
    tell application "System Events" to set runningapplications to get name of every application process
    if runningapplications contains "Finder" then do shell script "killall Finder"
    do shell script "/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user"
    tell application "Finder"
    delay 2
    activate
    end tell
    tell me to activate
    display dialog "The Launch Services rebuild is now complete." buttons {"OK"} default button 1 with icon note

  • Open XML converter not coverting docx to doc

    I am trying to open docx in word 2004 for mac. On my old iBook I had the microsoft Open XML converter which worked fine. I just download it on my newly acquired macbook and it only converts docxs to rfts. How do I get it to convert docxs to docs?

    Check the MS website; I believe they offer a free docx converter now. TextEdit will open docx documents, but often without the formatting. OpenOffice probably opens them, as well.
    I use docxConverter, a free utility available from many places online.

  • Creating Query to show items from open sales orders with a/p invoice

    Hi experts,
    I am trying to create a query that will show what items/quantities are still in open sales orders that can now be filled by an incoming shipment of goods, processed through the a/p invoice.
    This needs to be done using subqueries, which I have no experience with.  I am trying to do this using the ORDR and RDR1 tables to show the open items from the sales orders and the OPOR and POR1 tables to show items just received in to inventory.  I would like the query to show exactly the open item's, their quantities, the posting date from the sales order and the customer name that can now be filled from the new shipment through the a/p invoice.
    I appreciate the assistance,
    Hayden (on behalf of Todd)

    Hello,
    try this
    SELECT T0.[DocDate], T1.[ItemCode], T1.[Dscription],( T1.[Quantity] - T1.[DelivrdQty]) As "Open Qty" FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocDueDate]  <= [%0]And ( T1.[Quantity] - T1.[DelivrdQty]) != 0
    Try this query in query manager.
    Thanks
    Manvendra Singh Niranjan
    Edited by: Manvendra Singh Niranjan on Jul 13, 2011 6:27 AM

  • Problem with payables open interface import-unable to pick invoice data

    Hi,
    I have put the Interface data in two staging table and then moved them to AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE tables.
    Code:
    insert into XXWU_AP_INVOICES_INTERFACE (
    invoice_id,
    invoice_num,
    vendor_id,
    vendor_site_id,
    vendor_site_code,
    invoice_amount,
    INVOICE_CURRENCY_CODE,
    invoice_date,
    DESCRIPTION,
    PAY_GROUP_LOOKUP_CODE,
    source,
    org_id,
    OPERATING_UNIT
    values (
    ap_invoices_interface_s.nextval,
    'INV345DJ',
    '3317',
    '14335',
    'ACH NY1',
    1200.00,
    'USD',
    to_date('01-31-2010','mm-dd-yyyy'),
    'This Invoice is created for test purpose',
    'WUFS SUPPLIER',
    'Manual Invoice Entry',
    81,
    'WU_USD_OU'
    insert into XXWU_AP_INVOICE_LN_INTERFACE (
    invoice_id,
    invoice_line_id,
    line_number,
    line_type_lookup_code,
    amount,
    org_id
    values (
    ap_invoices_interface_s.currval,
    ap_invoice_lines_interface_s.nextval,
    1,
    'ITEM',
    1200.00,
    81
    INSERT INTO AP_INVOICES_INTERFACE (SELECT * FROM XXWU_AP_INVOICES_INTERFACE);
    INSERT INTO AP_INVOICE_LINES_INTERFACE (SELECT * FROM XXWU_AP_INVOICE_LN_INTERFACE);
    I can very much see the data in Open Interface Invoices(Front End). But when I run the payables open interface import program with correct Operating Unit, Source and Batch Name, the program unable to pick the data from the interface tables and unable to create a invoice.
    Note:
    1] The program run successfully everytime, but there is no output in the output file.
    2] In the Log file One Message is there saying 'Zero(0) invoices were created during the process run.'
    3] All the initail setup is right, i think, because I ran the same program few days back and it was working fine and the invoices were created at that time. Now what is going wrong I am unable to figure it out.
    Please help ASAP.Thanks in Advance
    DJ Koch.
    Edited by: DJKOCH on 17 Aug, 2010 9:51 PM

    Can you run the program - Payables Open Interface Import with Debug mode set to Yes.
    Once the program completes sucessfully verify the log file of the program and try to find out if there are any invoices which is causing the exceptions.
    Also confirm that the invoices which are in the AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE tables are of the correct period in which you are trying to create the invoices.
    Hope this helps.
    Thanks and Regards
    Manish Jain.

  • Problem opening a converted project from previous version of Premiere CC, in Premiere CC 2014.

    Hello. This is the problem. When I try to open with premiere pro CC 2014 a converted and actualized CC 2014 version of a project created previously in a previous version of premiere, the software crash.
    Said in other words if it doesn't clear:
    - I created a project in Premiere CC
    - I actualized the project to Premiere CC 2014
    - I worked in the project with the new Premiere CC 2014 for few days and suddenly, I cannot open the project and the software crash.
    I hope you understand my problem. Sorry about my english. I'm not native english speaker.
    Thanks for your help and support.

    Rather than opening directly, try importing the project via the Media Browser Window.
    Much more efficient as you'll have more options.

  • Problems opening DNG converted file in Photoshop CS3

    I have used Adobe DNG Converter 5.4 to convert my Panasonic DMC-FX150 raw images. The conversion goes well, but the resulting file throws an error when opening in PSCS3: Could not complete your request because Photoshop does not recognize this type of file.
    The only thing I can think of is that the images were taken in the 16:9 aspect ratio.
    Lightroom will render the image to a tiff, which I can then open in PS, but this is a PITA.
    Is the 16:9 ratio unsupported in CS3? appoligies for not pre-searching the forum other than looking for "16:9"

    well, problem is back. DNG radomly failing to process all images. I took 6 pictures all at the same settings, and out of the 6, only two converted successfully. No errors in DNG, but in Finder, for the files that don't open in PSCS3 don't have thumbnail icons.

  • Itunes won't open with converter

    I installed a converting program called WinAVI and ever since then I cannot open Itunes or Quicktime. I uninstalled and reinstalled both quicktime and itunes several times and ran many virus scans with norton and lavasoft. I also uninstalled the WinAVI converting program before reinstalling Itunes the last time, but Itunes and quicktime will still not open. I dont know how many times I have reinstalled itunes and feel I may be over the 5 limit, so I don't want to toy around with that anymore. I would appreciate any help to fix this problem because it's driving me crazy over here.

    feel I may be over the 5 limit
    The 5 limit applies to the number of computers authorized to play purchased songs from one iTunes account. It has nothing to do with whether you can install iTunes or not.
    Remove iTunes and QuickTimes via Start -> Control Panel - Add/Remove programs.
    Then use this -> Windows Installer CleanUp Utility to remove any "left over" bits of those, then reinstall.

Maybe you are looking for