hi
i am trying to use a BAPI to replace the transaction MIRO or FB60 or MIR7. To park the document.
Can any worked in this area? Any input is highly appreciated.
thanks
mlnaras
Request clarification before answering.
And I hope Narasimman do come back to check out this thread which he had opened... and probably contribute some of his thoughts...
At least, this thread has a closure...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
Just realized this issue is dated since 2003. Any solution to this? I'm having the same issue here. I need to PARK my invoice without referencing to PO but by vendor...
Anyone here knows any alternative solution or alternative BAPIs? I know we can use BDC to park the invoice withour referencing to PO, but I would like to know if there are newer BAPIs by SAP that can fulfill the objective?
So far, I've tried "BAPI_INCOMINGINVOICE_PARK" but the very first checking it does is fail my missing PO. This BAPI does not work for those who need to park their invoice without referring to PO.
I tried Prabhu's "POSTING_INTERFACE_DOCUMENT", but the TCODE its using is not FB60.
Any suggestion?
Regards,
William Wilstroth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could u find any solution for this ..if plz kindly help me
"Just realized this issue is dated since 2003. Any solution to this? I'm having the same issue here. I need to PARK my invoice without referencing to PO but by vendor...
Anyone here knows any alternative solution or alternative BAPIs? I know we can use BDC to park the invoice withour referencing to PO, but I would like to know if there are newer BAPIs by SAP that can fulfill the objective?
So far, I've tried "BAPI_INCOMINGINVOICE_PARK" but the very first checking it does is fail my missing PO. This BAPI does not work for those who need to park their invoice without referring to PO.
I tried Prabhu's "POSTING_INTERFACE_DOCUMENT", but the TCODE its using is not FB60.
Any suggestion?
Ah, this issue....
dear Kranthi,
my colleague and I had looked up and down for a solution. In the end, we couldn't find one solution to park it without referencing a PO with that BAPI.
We didn't pursue on it, we had a big discussion with users AND we finally decided to drop parking without referencing to PO from our customized program.
According to functionals, even if we did find a solution to park it... user might need to go into the parked document to release the items one by one... and what if the PO has 100 items, users are not going to one by one to release the items...
Therefore, this feature was drop off from our customized program.
If you do find out... let me know too...
Hi,
You can now use the BAPI BAPI_ACC_DOCUMENT_POST to park Non-PO invoices as documented in note 2092366. In case you are unable to apply the SP as stated in the note you may use the enhancement spot BADI_ACC_DOCUMENT method CHANGE to do the needful for you. Set the field C_ACCHD-STATUS_NEW to '2' as mentioned in the note.
Also check note 2021422 before you plan to be more adventurous.
Hope some long time pains are resolved.
regards
Nitesh
I've followed many threas on this topic. I have a problem. I need a BAPI/Fn mod that will park an outgoing invoice doc.
I've tried the fn mod PP_COMPLETE_DOCUMENT_ENJ but..
get error RW002 "No item information transferred into Accounting" in form CHECK_ENTRIES in LRWCLF01 either itab t_accit or t_acccr is not populated. I've tried to set the BSEG fields but I can't get the correct values to get past these errors. Looks like somewhere these itabs are set up and this is not being done.
Any ideas on what you did to get round this?
Thanks
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uma,
I tried to pass only item data in the BAPI, but it generatees a credit memo. When i go to view the document, this takes me to MIRO transaction and only the GL account tab but it createes a credit memo, which i think is not right. It should just create an invoice. I'm talking in the case where we have a non po related incoming invoice (like utility invocies, telecom, ewlectricy etc)
Please help and let me know if there is a BAPI that will use simulate the tcode FV60 and not MIRO
Thanks
Anusha
Hi,
You can now use the BAPI BAPI_ACC_DOCUMENT_POST to park Non-PO invoices as documented in note 2092366. In case you are unable to apply the SP as stated in the note you may use the enhancement spot BADI_ACC_DOCUMENT method CHANGE to do the needful for you. Set the field C_ACCHD-STATUS_NEW to '2' as mentioned in the note.
Also check note 2021422 before you plan to be more adventurous.
Hope some long time pains are resolved.
regards
Nitesh
Try function module PP_COMPLETE_DOCUMENT_ENJ.....It worked for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello,
has SAP provided any BAPI for parking a document(FI/MM)?
will SAP provide PARK BAPI?
it would be very helpful if a BAPI for parking be available in future releases since there is a standard parking transaction already existing... wont you guys agree??
anyway, if i have been looking in the wrong places then can someone direct me where i can find a Parking BAPI so that we can make an inbound interface with SAP (4.7)
thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rurik,
SAP does have a BAPI for Parking Documents under MM. At least it does for Invoices and related documents (corresponding to transactions MIR7 etc). Check out BAPI_INCOMINGINVOICE_PARK and the entire list of BAPIs under:
Material Management > Purchase Order > Incoming Invoice
It does not, however provide any BAPIs (as I know) under FI (corresponding to transactions FV60 etc).
This is for 4.6C, though I believe that 4.6B and above should work.
Hope this information helps.
Hi Crapus Maximus,
Thank you for your response.
You are definitely correct on the BAPI for parking an invoice in MM... but how about FI? I do believe that FI has more volume of transactions and parking feature has brought a lot of smiles to SAP customers... so how about a BAPI for parking then?
especially in the area of interfacing a non-SAP system. is it enough to do posting directly(on the fly) without validation or feature of parking in-between?
anyway, i am exploring BAPI_INCOMINGINVOICE_PARK if it can do posting without reference to a PO, only a vendor is enough...so that it can be posted in FI.
If you would find a BAPI in FI for parking in 4.7... i'll be gladly appreciate it!...
Thanks again.
Hi Rurik!
Was on leave, and left things to mould for abit.. 😛
I do not recall if I'd tried posting with only a vendor (without PO). I am quite certain I did, and it did not work.. pity.
I did a check on the codes for BAPI_INCOMINGINVOICE_PARK and there is a fail-safe checking that will automatically return an error when the PO is not provided, even before attempting to park. I have thought of creating a customized BAPI editing that fail-safe out, but going through the 1st parts of the codes gives me the impression that it is not a plausible path.
I have decided to use BDC on the FI transaction FV60, and then layering a BAPI interface on top of the resulted codes instead.
If you do find a solution tho, I would appreciate it very much if you'd share it.
Hello Crapus, hello Rurik,
I was also trying to find a BAPI for the creation of pure FI invoices (outgoing invoices).
My situation was different, but came to the same result: I have to use BDC on FBV1 using the RFBIBL01 program.
For changing parked docs it is even worst: you do not have any RFBIBL program ;-).
Regards, Ana
> For changing parked docs it is even worst: you do not
> have any RFBIBL program ;-).
I do not believe that you can change Parked Documents within SAP. It's a fail-safe procedure that you can only Reverse any Parked Documents by creating a series of counter-documents, as a parked document updates various components within the system, which might have different procedures for handling an error.
So, in order to Edit, you'd have to Counter and Reenter.
At least, that's to my understanding. Please correct me if I'm wrong.
Hello Crapus,
yes you can change parked documents in SAP (transaction FBV2).
I have the impression, that you are speaking about posted documents (and not parked documents ).
The sense of creating parked documents is that you are able to change them before posting, since after posting you are not able to change it anymore.
As an example, we use this change functionality if after the approval workflow for the parked document it is rejected by the Finance Department -because using some wrong tax code, or wrong customer, etc...
But anyway thank you for the feedback!!
Cheers, Ana
Hi Ursula,
I did try my very best in parking an FI invoice using the BAPI_INCOMINGINVOICE_PARK in FI but to no avail. It requires a PO since this is originally an MM related BAPI.
In my scenario, its an integration from a non-SAP(Oracle) system to SAP... since our clients wanted a standard SAP... we redesigned Oracle to have simple Parking GUI for them to POST in SAP.
In short, Parking or validating the FI invoice document was done in Oracle and when they have verified the document... we POST in SAP.
I do hope SAP can have a BAPI in Finance for Parking...
Thanks for reading my experience...
Best regards,
Rurik
Hi all!
I'm facing the very problem. Tho a year late to reply, I was thinking of the neccessity to create a new thread since I found this. so I'm hoping of bringing this to life again.
I am currently facing the problem of parking invoices from both MIR7 and FV60 through BAPI. Furthermore, I have to post the parked invoices as well, and the neccessity to Edit and Delete (not Reverse) invoices all using BAPI.
I have done some searching and came up with BAPI_INCOMINGINVOICE_PARK for transaction MIR7. I have successfully parked an invoice already, although functionality wise, have yet to verify the full correctness of the invoice. I have also found BAPI_ACC_INVOICE_RECEIPT_POST, which I believe should post the invoice parked using BAPI_INCOMINGINVOICE_PARK. I have yet to iron you the required entry data for the BAPI as yet, and there is probably some problem with the testing data, but that's a matter I would have to solve myself.
I do need help however, from those who have experience for the BAPI that performs transaction FV60. I fail to find any relevant BAPI (or any with POST in its name) under the MM, FI or Accounting headings, although BAPI_ACC_DOCUMENT_POST seems to post the invoice that should be created from such a BAPI. Does anyone know of the existance of such a BAPI? Please point me in the right direction.
Also, while the BAPIs for the Reversal of Invoices seem readily available, there seems none to Deletion of Invoices (for those with wrong entry parked etc) nor Editing/Changing of data for Created (Posted/Parked Invoices, but mainly the latter). Again, I would really appreaciate the help of those that have experience here.
Any suggestions and help welcome. Thank you.
PS: I am also willing to answer questions regarding the two BAPIs mentioned as best I can.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was needing to park a MIRO invoice using BAPI_INCOMINGINVOICE_CREATE in order to post with reference to a PO, as the ACC BAPI would not post with reference. The invoice create bapi does not appear to be able to park invoices. BAPI_INCOMINGINVOICE_PARK uses the exact same tables as CREATE. So where I needed to Create I used that BAPI and when I needed to Park I used the PARK BAPI, using the same exact structures/tables to submit to both BAPIs. Works like a charm.
I'm trying to use a BAPI to replace transactions like **MIRO**, **FB60**, or **MIR7**—specifically to **park** a document.
Has anyone worked on this before? Any input or guidance would be greatly appreciated!
---
And here’s the full detailed response translated into English:
---
Recommended BAPI for **Parking a Vendor Invoice**:
**`BAPI_INCOMINGINVOICE_PARK`**
This BAPI is specifically designed to **park incoming vendor invoices** and functions as the programmatic equivalent of transaction **MIRO** in **Park** mode.
---
### 🔧 Key Parameters of the BAPI:
- **`INVOICE_INDICATORS`**: Specifies invoice type (e.g., GR-based invoice verification)
- **`INVOICE_AMOUNT`**: Total invoice amount
- **`TAX_AMOUNT`**: Tax amount
- **`ITEMDATA`**: Line item details (including G/L account, cost center, amount, PO number, PO line item, etc.)
- **`ACCOUNTGL`**: General ledger account information (if needed)
- **`ACCOUNT_PAYABLE`**: Vendor account details
- **`DOCUMENT_DATE`**, **`POSTING_DATE`**, **`COMP_CODE`**, **`FISC_YEAR`**, **`DOC_TYPE`**, **`REF_DOC_NO`**, etc.
Yes, to **park** an accounting document or vendor invoice in SAP (equivalent to transactions like **MIRO**, **FB60**, or **MIR7**), you can use standard SAP **BAPIs**. Below is a precise guide based on common scenarios:
all **`BAPI_INCOMINGINVOICE_PARK`** with the appropriate data.
2. Check the **`RETURN`** table for errors.
3. If no errors occur, the output parameter **`INVOICE_DOC_NUMBER`** returns the parked document number.
4. You can then:
- **Post** it using **`BAPI_INCOMINGINVOICE_RELEASE`**, or
- **Cancel** it using **`BAPI_INCOMINGINVOICE_CANCEL`**.
---
### 📝 Important Notes:
- This BAPI is **independent of MIRO** but implements the exact same parking logic.
- If you need to **park a general accounting document** (not a vendor invoice), you’d need to use **`BAPI_ACC_DOCUMENT_CHECK`** and **`BAPI_ACC_DOCUMENT_POST`** with a parking/hold indicator—but this is more complex and requires specific SAP customizing (e.g., defining a document type that supports parking).
- In **SAP S/4HANA**, document parking is fully supported via these same BAPIs.
DATA: ls_invoice_header TYPE bapi_incinv_head,
lt_itemdata TYPE STANDARD TABLE OF bapi_incinv_item,
lt_return TYPE STANDARD TABLE OF bapiret2,
lv_invoice_number TYPE bapi_incinv_head-inv_doc_no.
ls_invoice_header-comp_code = '1000'.
ls_invoice_header-doc_date = sy-datum.
ls_invoice_header-pstng_date = sy-datum.
ls_invoice_header-vendor = '100001'.
ls_invoice_header-invoice_amt = '1000.00'.
ls_invoice_header-currency = 'IRR'.
ls_invoice_header-ref_doc_no = 'REF12345'.
" Fill lt_itemdata with line item details...
CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
EXPORTING
invoice_header = ls_invoice_header
IMPORTING
invoice_doc_no = lv_invoice_number
TABLES
return = lt_return
itemdata = lt_itemdata.
" Check lt_return for serious errors (type = 'E' or 'A')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.