2013 Dec 10 6:41 AM
Hi Experts,
I need to park and vendor invoice through a bapi (tcode fb60) .And i found a solution to this problem in the thread http://scn.sap.com/message/13463601#13463601 . But I am not able to solve the issue please provide your valuable suggestion to solve this problem???
2013 Dec 10 6:50 AM
There are two steps one is use BAPI PI_ACC_DOCUMENT_POST and second is implement BADI AC_DOCUMENT and set the status their as park?
Nabheet
2013 Dec 10 6:50 AM
There are two steps one is use BAPI PI_ACC_DOCUMENT_POST and second is implement BADI AC_DOCUMENT and set the status their as park?
Nabheet
2013 Dec 10 8:00 AM
Hi nabheet ,
Thank you for u r reply .
Would you please explain how to implement BADi_AC_DOCUMENT.
I would also like to know any bapi available for reject and release the parked vendor invoice??
2013 Dec 10 9:41 AM
HI
BAPI_INCOMINGINVOICE_PARK, This replicate MIR7 functionality. TCode FV60 for parking FI docs however doesn;t have an associated BAPI.
SAP does have a BAPI for Parking Documents under MM. At least it does for Invoices and related documents, 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).
However, The Fv60 calls POST_DOCUMENT function module to post the document.Take a look at the FM
2013 Dec 10 9:51 AM
Go to se18 create implementation for aCC_DOCUMENT badi in method change assign hdr-status_new value 3.
check in debugging when you execute your bapi code will stop here
Nabheet
2013 Dec 10 10:53 AM
Hi,
BAPI_INCOMINGINVOICE_PARK is to park a document pased on the po number.But i need to park the vendor invoice.Can i use the same bapi to park vendor invoice ?(please provide some example).
2013 Dec 10 10:57 AM
2013 Dec 10 11:14 AM
Hi nabheet ,
I got error while using the BAPI_ACC_DOCUMENT_POST
I follow this document to implement
Vendor Invoice Posting using BAPI - Code Gallery - SCN Wiki
Error Like this
Error in document: REACI $ T90CLNT090
G/L account 82570 is not defined in chart of accounts CAJP
2013 Dec 10 11:18 AM
This is master data error either GL account does not exist or it does exist please add leading zeros
Nabheet
2013 Dec 10 12:32 PM
2013 Dec 10 12:33 PM
2013 Dec 11 4:31 AM
Hi Reymond,
Thanks for your reply.
I would like to know there is any bapi available to Release or Reject a parked vendor invoice ?
2013 Dec 11 5:07 AM
For Rejecting you can use PRELIMINARY_POSTING_REL_RESET and for releasing you can use PRELIMINARY_POSTING_RELEASE. Please check FIPP business object in SWO1. check various metthods what code they use
Nabheet
2013 Dec 11 8:03 AM
Hi nabheet ,
I need the result in the mobile screen so I dont think it is working fine for me
2013 Dec 11 8:10 AM
Hi Karthik
SAP standard uses these FM for the same.. In case you want them to be called via RFC or something if they are not rfc enabled then you can create a wrapper rfc enabled fm call thses inside it..
What is the issue if its mobile?
Nabheet
2013 Dec 11 1:17 PM
AFAIK no such BAPI exist, so use FM suggested by nabheet madan, wrap those in customer RFC enabled FM.
Regards,
Raymond
2013 Dec 12 4:52 AM
Hi Raymond,
would pls tell me how can i pass my result to mobile screen if i use Fm suggested by nabheet??
2013 Dec 12 4:59 AM
From mobile screen you can call the RFC enalbled function module...and return the results in tables parameters
2013 Dec 12 6:00 AM
Hi nabheet,
The fm suggested by you doesn't contain any table or changing parameter it call the standarad sap screen based on the company code and document number.
2013 Dec 12 6:26 AM
If you check both the function module they have exceptions getting raised. Based on the exception you can fill return table in your ZRFC function module
For release you can use PRELIMINARY_POSTING_REL_SET.
Go to SWO1--enter FIPP ->Display-->Check methods of release they are calling these fm only
Nabheet
2013 Dec 12 8:31 AM
2013 Dec 18 6:03 AM
Hi,
By using this FM ' PRELIMINARY_POSTING_REL_SET' I am not able to trigger workflow in fb60.
Could you please help me to solve this ??
2013 Dec 18 6:14 AM
Do you want to trigger workflow or what exactly is the requirement..?
Nabheet
2013 Dec 18 7:37 AM
Hi nabheeet ,
I need to do fb60(vendor invoice) through mobile for that i created RFC for doing that ,
then i use the Fm PRELIMINARY_POSTING_REL_SET for release vendor invoice ,then it doesn't get update in the workflow (fb60).
2013 Dec 18 7:42 AM
So does the FB60 release is set but worklfow does not get updated for the same...? First please confrim if the release indicator gets set or not?
Nabheet
2013 Dec 18 8:52 AM
Hi,
Now I am trying to release the vendor invoice which is created through fb60,
but now I am getting update error when excuting the RFC.
2013 Dec 18 11:47 AM
Please switch on RFC debugging to checck what is the issue...
Nabheet
2014 Jan 02 1:27 PM
Hi nabheet ,
Is it possiable to do tcode fb60 through BDC method ?
2013 Dec 11 8:44 AM
Hi,
How can i pass sap screen into mobile ?.