How to release an invoice that is already parked and completed

Hi Experts,
We are writing a workflow method, where an invoice enters with status 'B' which is parked and completed in our syste.
We need to change teh status to 'E' which is released.
I tried following bapis but they dint work, can you advise please.
BAPI_INCOMINGINVOICE_RELEASE - Only for invoices with payment block, doesnt work for normal invoices.
MRM_INVOICE_PREPARE_AND_POST - this posts the invoice, we just want to release
MRM_INVOICE_RELEASE_UPDATE - Gives me an FI error.
thanks,

Hi
try something like:
PERFORM set_new_status(SAPLMR1M) USING    i_rbkpv-rbstat
                                  i_okcode
                         CHANGING f_rbstat_new.
Where i_rbkpv-rbstat = 'B'
and f_rbstat_new = 'E'
and  i_okcode must not be empty (try with 'PB').
and then:
  CALL FUNCTION 'MRM_INVOICE_PARK'
    EXPORTING
      i_rbkpv           = i_rbkpv
      i_xupda           = f_xupda
      i_simulation      = f_simulation
      i_rbstat_new      = f_rbstat_new
      ti_drseg          = ti_drseg[]
      ti_selbest        = ti_selbest[]
      ti_selfrbr        = ti_selfrbr[]
      ti_sellifs        = ti_sellifs[]
      ti_selwerk        = ti_selwerk[]
      ti_selerfb        = ti_selerfb[]
      i_editor          = editor
    IMPORTING
      e_belnr           = f_belnr
      e_gjahr           = f_gjahr
      e_only_parked     = f_only_parked
    EXCEPTIONS
      error_message     = 1
      user_exit         = 2
      update_impossible = 3
      OTHERS            = 4.
where f_xupda = 'U'
In a few words: try to replicate subroutine DOCUMENT_PARK
of include LMR1MF0D
(consider Srinivas advise before proceeding further)
Best regards.
Edited by: Pablo Casamayor on Oct 2, 2009 8:39 AM

Similar Messages

  • Returns referred to an invoice that is already cancelled

    Hi gurus;
    I have a little problem.  My user had noticed that he can make a return referred to an invoice that is already cancelled. ¿how can I avoid this? You can imagine all the troubles this could make.
    Regards

    Hello,
    In the copy control (Return Order -> Invoice), in the field Copying requirements, please take the help of the ABAPer to build in an additional logic to prevent the creation of the Return Order against a cancelled Invoice.
    Regards,
    Raghavendra YN

  • Any ideas on how to edit a video that's already embedded in keynote (latest version)?

    Any ideas on how to edit a video that's already embedded in keynote (latest version)?

    You can change the edit points in:    Inspector > Format > Movie
    If you want to edit in a more complex manner: save as a package:
    File > Advanced > Change filetype > Package
    Save As using a different name
    right click the file > select show package contents
    in the data folder; copy the movie file by option and dragging to the desktop

  • How do I combine files that have already been combined

    How do I combine files that have already been combined?

    Hi Oldshep1959
    I didn't get you ...Please Explain your workflow ...

  • How do i finish a download that was already started and not finished because the library closed befo

    how do i finish a download that was already started and not finished because the library closed before it done

    What are you trying to download and how were you downloading it?

  • How to release a object that is set to obselete?

    Hi All,
    In my development system i need to develop a workflow using BUS1007/BUS1008.
    But it is set to obselete.
    Can anyone tell me How to release a object that is set to obselete?
    Thanks and regards,
    Raj

    Hello,
    As per the documentation on Business object builder on help.sap.com,
    Obsolete object types/object type components show that the functions are being discontinued and replaced with other functions that are incompatible.
    Object types or object type components being discontinued and designated by SAP as obsolete are still supported in the change release and the next release. The old functions and the new functions are available in parallel for this period.
    Incompatible changes are included by SAP in a central release note.
    So, it is better that you look out for other business objects. I am not sure, but I think you can use the BO KNA1 in place of 'BUS1007' and LFA1 for BUS1008 as the key fields are same for both the business objects.
    Hope this will help.
    Regards,
    Samson

  • How do you download apps that you already have on your itunes account on to your iphone 3gs, how do you download apps that you already have on your itunes account on to your iphone 3gs

    how do you download apps that you already have onto your i tunes account onto your iphone 3gs

    Sync them as you do wverything else.
    Open itunes, connect iphone, select what you want to sync, sync.
    iPhone User Guide (For iOS 5.0 Software)

  • How do you disable available downloads that keep trying to download?  they are items that i already have and keep popping back up!

    how do you disable available downloads that keep trying to download?  they are items that i already have and keep popping back up!

    No one from Apple can answer this question???  Come On!!

  • How to release batch number that's allocated in a "closed' sales order

    Hi,
    Does anyone knows how to release batch number that's allocated in a "closed" sales order? I'm using SAP B1 2005B PL42.
    This batch number 'A' was allocated in the sales order. However, when this sales order is copied to multiple delivery orders, one of the delivery order's batch number is changed to another batch number 'B'. The sales order had changed status to "closed" as full quantity is copied to Delivery orders. But from the batch number trans. report, the remaining quantity of batch number A is still "allocated" (I think due to bug in SAP B1) although the sales order is closed.
    Please help. Thanks!
    regards,
    sianghing

    Hi Suda,
    Thanks for reply. But I realize that batch number allocation in sales order is a hard allocation. We cannot use batch number quantity allocated in that closed sales order into another Sales Order or Delivery Order anymore.
    Thanks,

  • Updating unpaid invoices that are already approved?

    Does anyone know if it is possible to change the exchange rate type and rate for an unpaid invoice that has already been approved? I am working in an 11.5.10.2 Financials Module and am trying to update the exchange rate from the Invoices front end form. Certain fields are updateable but the exchange rate type and rate are grayed out which leads me to believe that they are not updateable but would like to confirm if it is based on certain setup configuration settings. If anyone has any helpful information regarding this, it would be greatly appreciated. Thanks.

    Thanks for your reply. I believe you are correct however the currency will not change. The rate type and rate based on the daily rate for that type can change and instead of canceling the Invoice and re-creating it with the new rate type and rate I was curious to see if it can be updated or not.

  • How to get Apple ID and password that is different to iTunes store account which I have already activated and completed contracts, tax information and bank information I want to create a Paid Books Account use apple ID

    I was given this address from the Apple customer support team.
    I have an active existing iTunes store account and use the same Apple ID for signing into my iTunes Connect Account that distributes Apps.
    I have created some books using the iBook author and in order to distribute content on the iBookstore I have been told electronically that I need a new Apple ID and password that is different to iTunes store account which I have already activated and completed contracts, tax information and bank information valid until 2013?
    I want to create a Paid Books Account using the same email address, tax information and bank information. This has been most frustrating, as I cannot get passed the sign in section and there is no contact person I can speak to. I was of the understanding the iTunes connect account and the Developer programs which I paid good money for is all what I needed to be paid for selling iBooks on the iBookstore???
    I only have one email address and wish to also use it for the Paid Books Account. I have books ready to be exported and published.
    I am also having trouble locating and downloading iTunes Producer. I understand I need to have the Paid Books Account active to access the iTunes Producer program. Please help.
    See additional information below:
    What device did you use to connect to the store?  Mac computer
    Which operating system is installed?  Mac OS X v10.7.x
    What version of iTunes is installed on your computer?  iTunes 10.6
    Choose the iTunes Store or App Store for your country:  Other
    Please select your country:  Australia

    Hi Lrwill,
    If the apps that are on your son's iPad were purchased under his Dad's Apple ID, then signing your Apple ID onto the iPad will not help you with updating those apps.
    Also, if the iPad was sync'd with his Dad's iTunes library, then hooking it up to your computer/iTunes library, will require you to reset the iPad, and everything that was loaded under the other Library and Apple ID will be wiped out.
    Can you provide a little more info about what was set up under which Apple ID and what iTunes library the iPad was sync'd with?
    Cheers,
    GB

  • I recently had to completely restore my laptop, so I lost the music on my itunes. It's still on my iphone, but how can I keep the music I already have and continue to add more music from the newly set up itunes again?

    I recently had to completely restore my laptop, so I lost the music on my itunes. It's still on my iphone, but how can I keep the music I already have and continue to add more music from the newly set up itunes again? Is there actually a way to do this? I can't help but wonder what the stupid icloud is for if my music is still somewhere in the 'cloud' but it's zero help for restoring music when it's lost on a computer....any help even a site that get's around apple would be great!

    It has always been very basic to always maintain a backup copy of your computer.
    Have you failed to do this?
    If so, not good, you can transfer itunes purchases from the iphone to your computer.  File>Devices>Transfer Purchases
    You can also redownload some itunes purchases in some countries:
    Download past purchases - Apple Support

  • When  I try to add songs, iTunes wants to take off everything that is already there and will only add what I've added from my computer

    the problem is that when i try to add songs, it wants to take off everything that is already there and will only add what I've added from my computer

    shellhornj wrote:
    the problem is that when i try to add songs, it wants to take off everything that is already there and will only add what I've added from my computer
    An iPhone can only sync with one computer at a time. All of the music you want on your phone must be on the same computer.

  • How generate a random number that is between 0 and 15! (0-15)

    how generate a random number that is between 0 and 15 ??? (0-15)
    pls tell me, thx!!!!!!!!!!!!!!!!!

    import java.util.Random;
    Random r = new Random();
    int mynumber = r.nextInt()%16;
    For (2^1)-1 number use:
    -> int mynumber = r.nextInt()&15; // speedup

  • Import invoices that have already been paid.

    Hi.
    I am trying to importing invoices through the Oracle Payables Open Interface that have already been paid. I understand that it is not possible to import invoices this way and have them marked as paid.
    Can anyone help me figure this out? I just need a push in the right direction because i am new to Oracle.
    Someone has suggested to me to run a payment batch for these invoices and make sure that the payment for these is stopped. Does anyone know how to do that programatically? I also want to mark each of these invoices with the Check Number it was paid with. I have this information in an another database and i need to get it into Oracle. Any ideas on how to do that?
    Thanks,
    Scott

    Gareth,
    Hi. I am presuming that the flow on to the General Ledger and Bank reconciliation would work as it works with other payments that are made by the system. My hope that is far as Oracle is concerned is that these invoices were created in Oracle and Paid in oracle. General Ledger and Bank reconciliation would all work as is.
    I really just need to know where i should start looking to try and accomplish importing these payments. It appears i can do what i want with the invoices through the Open Payables Interface and writing to these two tables - AP_INVOICES_INTERFACE and AP_INVOICES_LINES_INTERFACE.
    However, how can i import the payments that have already been made for those invoices.
    - Is there a programming API to accomplish this. Some kind of java library that calls some Oracle stored procedures or something.
    - Should i be looking at the Oracle XML Gateway, BPEL or anything like that?
    - Can i write to a set of tables or call any specifc Stored procedures directly.
    Thanks,
    Scott

Maybe you are looking for

  • UK Payroll PU12 Issues

    Hello Friends:   I have issues in UK Payroll PU12.  Wage types in SAP are not going to Ceridian file.  Mostly happening with IT0014 wagetypes.  I noticed that if I generate the File layout in PU12 then the wage types are going to Ceridian file.  Howe

  • Changing Lion PDF default security settings

    After I create a document in Word or Pages, I save them as a pdf.  I then want to digitally sign them in Adobe Reader.  But the default security settting when saving as a pdf does not allow adding a digital signature.  Anyway to change the default OS

  • So i have an iphone4 but i have sprint, is there a way i could just use it as an itouch ?

    i dont even have a sim card for it is there a way i could get a sim card just so i can use the phone and its apps like an itouch ???

  • Hdmi wire

    Hi! I bought a wire to connect my new Mac Book Pro with my HDMI Tv. This wire is suppose to transmit image and sound, but does not happen with the sound. Am I supossed to to anything? Please, help, Thanks!!

  • How do I apply the same effect to all frames in CS5 animation?

    I need to add lens flare to all frames at once - but it needs to be applied to the flattened image.  I don't want to have to flatten, click lens flare for each of the 70 frames seperately. Here is the gif and photos illustrating what happens if I sel