How do I post an Invoice with 'on hold' status using this BAPI?

Hey everyone,
Okay, I'm working on an interface that will take Incoming Invoice information we receive from vendors and post it into the SAP system.  I'm still relatively new to ABAP, so it's a little slow-going for me...
The BAPI is IncomingInvoice.  What we want to do is try to post the Incoming Invoice using the CreateFromData method.  That part, I'm clear on.  However, if there are any problems, the client wants us to post it with a status of 'on hold.'
I'm been doing a lot of searching and a lot of BAPI documentation reading, but I'm not finding the answer.  I thought at first I could use the Change method, but it looks like I have to have an Invoice already out there in a particular status.  So if the CreateFromData somehow fails and doesn't really post an Invoice, then I think using the Change method is pointless.
I thought the answer was to use the PreliminaryPostSingle method, as the documentation states that "enables you to post provisional invoice documents. Provisional invoice documents have the status 'on hold', 'on hold (from parking)', 'parked', 'parked as complete' or 'parked and released'."  But here's the kicker -- it expects IMPORT parameters of the INVOICEDOCNUMBER and FISCALYEAR.  But I don't have those yet, right?  Why does the method tell me it can post documents with this kind of status, but it expects me to provide key fields to an Invoice that doesn't yet exist, doesn't have a field that lets me set the status, and only returns the standard "return" table?
I'm pulling my hair out on this one, guys.  I'm really hoping someone out there can help out.  As always, helpful posts will be duly rewarded with points.  Thanks everyone!

Vyerah, sorry for the delay in the reply, but we only recently decided how to approach this.  Due to further discussions about the criteria, it was decided that we wouldn't worry about the "on hold" -- if we try to post an Incoming Invoice and it fails, then it'll be reported as such in an output file.
Certainly made my life easier, as I thought I was going to have to clone the BAPI and try to get it so that it posted with an "on hold" status.  I'm very, very surprised to see that, apparently, SAP doesn't provide a function or BAPI to allow you to post an Invoice as "on hold."  Oh well.
Anyway, I wanted to give you the update.  Thanks again!

Similar Messages

  • How can I associate 2 appleids with one account or use a different Appleid for imessage as described in another post?

    How can I associate 2 appleids with one account or use a different Appleid for imessage as described in another post?
    I have rejoined the iPhone community, not with one iPhone but with two. My wife agreed to move from the unenlightened!
    I have set up both under my apple account and want to keep it that way. But I do not want iMessages going to both phones. I would like separate message queues but share all apps and other purches from the store.
    I have created a separate AppleID for her but under Settings>Message>Receive At (it currently says 2 addresses) > ... will not allow me to change the current eMail address and when I add hers (her appleid) it errors out. The only thing I can do in the Apple ID field is to manage my account and not change it to hers.
    How can I have 2 iPhones (and my iPad) on the same account but have separate identies?
    Thanks,
    LpGrumpy

    1. Yes. Restart with the Option key held down as needed.
    2. No, it won't be a problem.
    (83373)

  • Post Vendor invoice with Down Payment via BAPI_INCOMINGINVOICE_CREATE

    Hi Experts,
    We have configured downpayment functionality for PO's. We have below process
    Create PO with down Payment request -> Create down payment request -> Run payment program for paying down payment -> Post GR -> Post invoice with BAPI (considering down payments against invoice)
    But unfortunately when I am trying to post PO invoice with downpayment details using BAPI_INCOMINGINVOICE_CREATE I do not see any fields related to down payment. Can some one confirm me if SAP has provided this functionality? if NO any workarounds?
    Rgds,
    Harish

    Hi experts,
    any suggestions?
    Regards,
    Elena

  • How to create item wise invoice with reference to sales order.

    Hi ,
    Please let me know how to create item wise invoice with reference to sales order.
    Ex : Sales order has 2 line items .
              When creating invoice system should create two invoices for each line items.
    I have tried with copy control but I am not able to do it.
    Please advise.
    Regards

    Hi,
    Please let us know your exact requirement. Whether you want it to be fixed like only one line item to be billed every time ot it to be based on selection you do every time.
    As per my understanding it should not be fixed and in that case it should like as follows,
    In VF01 you will select Del. document/S.O. number and click on selection list and will take you to next screen as mention below,
    and select desire line item to be billed and click on copy and will take you to billing screen.
    Regards,
    Ajit K Singh

  • Error when posting AR Invoice with serial

    Hi experts, just want to ask what is the problem when posting AR Invoice with serial number. The error is "Internal error (-5002) occurred [الرسالة 131-183]"
    Here's my code :
                                If Not oSerial Is Nothing Then
                                    oSerial.DefaultView.RowFilter = "product_reference_code = '" & oDrView("product_reference_code") & "' " 'AND site_reference = '" & oDrView("site_reference") & "' "
                                    For Each oDrSerial As DataRowView In oSerial.DefaultView
                                        Try
                                            .Lines.SerialNumbers.Quantity = 1
                                            .Lines.SerialNumbers.InternalSerialNumber = oDrSerial("serial_no")
                                            .Lines.SerialNumbers.Add()
                                        Catch ex As Exception
                                        End Try
                                    Next
                                End If

    Hi Bryan,
    Have you try to debug it , which line is causing problem.
    With serial numbers you don't have to set the qty.
    other fields that need to be set are :
    for (int count = 0 ; count < totalcount; count ++)
         if (count > 0)
              .Lines.SerialNumbers.Add();
         .Lines.SerialNumbers.SystemSerialNumber = SysSerialNum;
         .Lines.SerialNumbers.ManufacturingSerialNumber = ManufacturingNum;
         .Lines.SerialNumbers.InternalSerialNumber = internalserialnumber;
         Count++ ;
    Hope it will help.
    Regards

  • WIth LabVIEW how do I control an instrument with a RS232 output, using a RS232 to USB converter cable.

    WIth LabVIEW how do I control an instrument with a RS232 output, using a RS232 to USB converter cable since I dont have rs232 ports. I have two instruments that I want to control in this manner. One is an Imada ZPS force gage with RS232 output. The other is a Panasonic HL-G103-S-J laser micrometer sensor which is RS422. I've done considerable LabVIEW programming using GPIB but I have no experience with devices like these. Any tutorial or examples would be greatly appreciated.
    Thanks.
    Solved!
    Go to Solution.

    I understand that you want to control a device which having RS 232 port as output. If so, you can use an USB-RS232 cable from PC to device and you can control or monitor the device.
    See this link http://zone.ni.com/devzone/cda/epd/p/id/2669
    Also, first check the device in hyperterminal and then continue to program in labVIEW. You can find the serial VI's in Instrument I/O.

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

  • How to calculate any two date with diffence calculation by using obiee11g?

    Hi,
    i have a requirement like,
    location wise current month and previous month with movement calculation,can to tell me how to calculate any two date with diffence calculation
    by using obiee11g
    Note,
    I tried to implemented ago function as well as dynamic two dates calculation using $2-$1 methods..but i am getting the o/p it's self i am getiing some null value also that' why it's not tallying with our actual report.
    i tired to used ifnull(mesaurecolumn,0) also case condition on the mesaure colution still it's not tallying.
    THanks and Rds,
    Devarasu.R

    Hi,
    for Date Difference........
    TimestampDiff(interval, timestamp1, timestamp2)
    ex:TimestampDiff(SQL_TSI_DAY, cast('1-apr-2011' as date), current_date)
    Where:
    interval
    The specified interval. Valid values are: SQL_TSI_SECOND, SQL_TSI_MINUTE, SQL_TSI_HOUR, SQL_TSI_DAY,
    SQL_TSI_WEEK, SQL_TSI_MONTH, SQL_TSI_QUARTER, SQL_TSI_YEAR.
    Cheers,
    Aravind

  • How an apple logo will appear on my Facebook Status using IPad?

    How an apple logo will appear on my Facebook Status using IPad?

    ah ok... thank you so much... i will try

  • Posting of invoice with no reference to a PO from MIRO transaction

    Dears,
    I'm wokring on a SAP R/3 4.6 release and I would like to know if it is possible to post invoices with no PO from MIRO transaction. If it is so would it be possible for you to let me know which are the customizing steps to undertake and/or the fields to be populated in the MIRO transaction.
    I know that this kind of invoices should be processed throught transaction FB60 but in this case the use of MIRO transactino is required.
    Thanks in advance for the help.
    Davide

    Hi Davide,
    You have first to fill in the header the tab basic details and then in the tab Details "Inv.Party"
    Now you can go to the tab G/L account.
    With a PO the system take the vendor from the PO now you have first to fill the vendor number
    Paul

  • How do i post Etsy pictures with imac?

    I just switched from PC to Mac. With PC I can put pictures in my Etsy shop easily because they want jpeg or similar images.  Apple apparently does not use this format. How can I add this extension to my pictures on my iMac so I can post them on Etsy?

    Apple does use the JPEG format. If your images aren't already in that format, you can convert them by opening them in the Preview application and selecting File > Export as... from the menu bar.

  • Does anyone know how can i post to twitter with my app logo?

    I am integrating my app to twitter using account store.
    and i need to post to twitter with my app's logo.
    so anyone knows how can i do it?
    Thanks in advance..

    You don't need any other software to get files off an ipod.
    http://www.cnet.com/4520-7899_1-6477981-1.html
    Follow those instructions and you should be ok. When you connect to the PC make sure you don't sync with itunes or it will wipe the ipod clean, just put it in disk mode and then follow those steps.

  • Reg: How to capture the Excise Invoice with respect to Inbound delivery

    Hi All,
    Please give the process follow for capturing the excise invoice with respect to inbound delivery.
    Thanks & Regards
    Siva

    Hi Siva,
    Please check this link
    CIN with Example..?
    Regards,
    Bijoy Kumar

  • How to input FI invoice with many line items using FB60

    Dear All,
    Currently the users are posting document consisting of 500 to 700 line items every period using transaction FB60. The line items that are posted every period are not repetitive in nature. It is consuming lot of time.
    Is there any efficient (simpler) way of posting the document with so many line items? could you please share your thoughts in this regard?
    Thanks & Regards
    Vasu

    Hi Vasu,
    Try to do a recording for a BDC program with Tcode SHDB.
    Then ask your ABAPer to developa program with this BDC recording.
    This will fix the purpose.
    Thanks,
    Srinu.

  • How can I show ipad3 icon with my online status of Facebook?

    I am using Facebook apps on my iPad.. When I upload any photos through this app it can not show iPad icon with my online status seen to others? How it will work plz help...

    I think you will be seeing the unread count.

Maybe you are looking for

  • How to get the current month value for a customer exit variable?

    How to get the current month value for a customer exit variable?  And also if we have an InfoObject with date value (including date, month, year), then how to derive the month value from this date type of Char.? Thanks!

  • Legally valid electronic signatures

    My boss has asked me to research legally valid electronic signatures. I was wondering if Adobe provided these so they can be used to sign certain documents for business and banking?

  • Internal order with a budget

    I have a real internal order with a budget. In case I create the settlement of the internal order by period end- how this will impact from the budget point of view (I am steeling the cost with the original account to a cost center). I mean to say-  w

  • What is the Best Usage to Prolong MBA Battery Life?

    Hello, I have a new (1/27/2011) MacBook Air 13" (4G, 256G, 2.13Ghz CPU). This is being written: 4/29/2011. For some time my charge indicator has not gone above 99% except very occasionally, and then, very briefly. I have noted an apparent decrease in

  • Installing Creative Suite 6 on a second computer despite not having a disc drive

    Hello, I was wondering if I would be able to install Creative Suite 6 on a second computer despite only having the disc and not having a disc drive. To elaborate, I purchased Creative Suite 6 with the disc to utilize with my iMac this past year. It w