Trigger VF04 post MIRO
Hi Guys,
I have got a requirement to have one customer invoice generated per one vendor invoice in a 3rd party sales order scenario.
To achieve this, we are planning to trigger billing due list job once MIRO is triggered. Before that, would like to know from you guys, if there are any other option to achieve the above results.
Thanks.
Maintain Billing relevance as F : Order-related billing doc. - status according to invoice quantity in the item category determining in sales order.
By this on Invoice Receipt (IR) in MIRO, the sales order will reflect in billing due list - VF04 (with order related billing active).
Regards
JP
Similar Messages
-
While posting MIRO price difference account is not determimg for price vari
Hi Sapients,
Please solve the production issue which we have faced yesterday while doing month end closing
In one P.O 4 items are there,User has posted entries in below sequence
Material type is TRADING GOODS
1)first MIRO with QTY 10 @100$ each,Later
2)MIGO has done with QTY 10 @100$
Raw Material account -
1000$
to GR/IR CLEARING ACCOUNT -
1000$
2)User has reverse the MIRO transaction with QTY 10 @ 100$ each.(with refer to step1)
3)Finally he post MIRO with QTY 10 @ 90$ each, so here ther is no qty variance has come only price variance has come, so when posting the difference is not going to price difference and the entry is paasing like this
GR/IR CLEARING ACCOUNT -
900$
TO Vendor 900$
If u see in step 2 GR/IR having 1000$, but in step 3 while MIRO posting GR/IR as 900$ so for the remaing balance 100$ not going to price variance .I Belive the entry in step will be like this
GR/IR CLEARING ACCOUNT -
1000$
TO Vendor 900$
TO Price difference 100$.
Kindly give solution why it is not going to price difference it was happening only for item 2 & 3 only for 40 iem it is posting correctly to price difference account.Please advice me why system behavig differently for each item.
Thanks & Regards
YSRHi Padmasri,
Thanks for your explanation. Ok. if the price is maintained in S, does that mean the price difference would get posted only to PRD. In other words, if price indicator is V, is that the only time when the price difference gets posted to stock account. In case if there is no sufficient stock or if there is negative stock at that time, that's when the amount would get posted to stock loss or gain account. Please suggest if I've understood the concept right.
Hi,
The PRD will trigger when the standard price maintained in the material mater record is different from the price in MIGO . The other chance is the material is maintained with MAP and MIRO done before GR ,The value of the quntity (not available in stock )
will get posted to PRD. I hope this will resolve your issue. Thanking you
You had suggested: The other chance is the material is maintained with MAP and MIRO done before GR ,The value of the quntity (not available in stock ) will get posted to PRD. I hope this will resolve your issue.
You are right: I forgot to mention that the price indicator is V. The other point is we purchase the materials from an internal vendor, as and when the materials are dispatched from the main storehouse in Sri Lanka, there is an advice that is created in the system and that is interfaced and parked in the system. However, normally until the GR is done IV will not happen. But there could be a chance, as the advice gets created within 24 hours. However the material to reach the godown in our warehouse will take more than 24 hours as the goods have to be shipped from SL, so IV is possible before GR.
Regards,
Soujanya -
Hi Experts
I got a error like this while posting MIRO
"No amount authorization for customers/vendors in company code 401"
I tried to look out in T043 Table,since i cant able to go further
Let me know the reason for this error and the settings to do
Regards
Amuthan MHi,
While creating tolerance group you are specified the authorization group/ Just delete the name of the group you have created and keep it blank OR assign the user to that group and save.
Note:
If you create tolerance groups then the group must be assigned to the users in t.code:OB57 who are posting the transaction. Defining and assigning the tolerance groups to employees is not going to solve, you have to enter the amount ranges of tolerance for G/L document, Customer and Vendor posting.
In t.code:OBA4 create an entry for your company code. (Group creation is not compulsory). If your requirement permits better keep the group column empty. when no group is created its for all users.Double click on company code and enter upper limits and permitted payment differences and save.In t.code:OBA3 enter the ranges for payment differences and any other columns as per your requirement..
Regards,
Biju K -
Dealer Excise Invoice-Issue while posting MIRO
Dear All,
Today i was doing Domestic procurement with Dealer for Gas Cylinder. In PO we entered total value which includes Excise amount also (1000+103)& VAT @ 14% (154,42).
While doing GR i selected as Only captured excise inv, checked MRP indicator.
Changed the bse value to 1000, entered BED as 100, E Cess as 2 & SEcess as 1.
The accounting entries were correct, Inventory is posting with Rs 1000
Posted excise invoice in J1IEX, the values were coming from GR, its correct and the acc entries were also OK with 103 Cenvat clearing acc Cr & Excise acc Dr.
While posting MIRO, I am facing problems...
In line item i am getting as 1103 Base value...
VAT is calculating on (1103+103) @ 14% 168.84,
so total value is 1271.84
When i simulate, its showing
Vendor 1271.84 Cr
GR/IR clg acc 1000 Dr
Material 103 Dr
VAT 168,84 Dr
There is no cenvat clearing account here
Please help me how to resolve this.
Regds,
CB
When i simulateHi,
have you mainatin 100% setoof condition check it it should be there
check MIRo posting date and excise invoice posting date
check condition record validity in FV13
Regards
Kailas Ugale
Edited by: kailasugale on Feb 10, 2012 12:01 PM -
Error While Posting MIRO of Imports PO
Dear Sir
When we are trying to post MIRO for Imports PO with Local currency we get following Error
Enter rate INR/CHF rate type M for 16.05.2011 in the system settings
For IV (Invoice Verification) we use currency CHF as our Vendor currency is CHF.
But During MIRO for Customs clearing Charges and Freight Forwarder charges we need to use INR at that time we get this Error.
Enter rate INR/CHF rate type M for 16.05.2011 in the system settings
If we maintain currency rate in OB08 of INR & CHF will solve this problem?Dear:
Your question is self explanatory. System is asking you to maintain exchange rate for date 16.05.2011. Maintain the rate in OB08 and your issue will be resolved.
Regards -
Error while posting miro - max permitted no of internal tax items reached
Hi expert ,
When i am posting miro i facing error like 'Maximum permitted number of internal tax items reached' .
Detailed description of error 'The maximum number of internal tax items is limited to 999' but if i entered less than that i.e. upto 600
line item then i also same error coming.
what is the solution for that.
Regards,
JyotsnaHello,
Check SAP note 1431727.
Regards,
David -
FI:While posting MIRO getting Error of Balancing field Segment not filled
Hello SAP Gurus,
While posting MIRO getting Error of Balancing field Segment in line item 001 not filled
Message No.GLT2201.
Please suggest me solution for it i read lots of related threats but could not solve this error.SPRO-Financial Accounting (New)-General Ledger Accounting (New)-Business Transactions-Document Splitting-Edit Constants for Nonassigned Processes-Select your constant-Double click and Select Assignment of profit center- Enter your dummy profit center here otherwise
SPRO-Financial Accounting (New)-General Ledger Accounting (New)-Business Transactions-Document Splitting-Edit Constants for Nonassigned Processes-Select your constant-Double click and Select Assignment of values-Enter here segment. -
while posting miro iam getting one error
ie: taxcode v0 country in is not defined in tax procesure lcltax
but i defined that tax code in my tax procesure and i assigned that to country(In)HI SAI VANI
U have to assign the Tax code to ur co cd. The T.Code for that is OBCl. Just check whether u have assigned that TAxcode to ur CO Cd or not.
Assign me points if it helps u.
Regards
Rajaram -
Document splitting issue while posting MIRO transaction
Hello All
I have a piculiar related to document splitting while posting MIRO entry and this issue started after defaulting the profit center
to the tax gl.
The scenario is like this
While posting a vendor invoice document where there is a difference in the invoice value and stock is allready consumedn
hence system will try to post the difference to the material difference account.
The following is the asccounting entries
01 vendor a/c cr 1000
02 gr/ir a/c dr 800 pc from po document
03 tax g/l 180 default pc
04 inventory diff 20
the error message
system is not able to determine the profit center at line item 04 and message is
Balancing field "Profit Center" in line item 004 not filled
The document splitting settings are all standards related to vendor invoice ..................
One important point to be noted here is that this issue is come after defaulting the profit center at tax gl.
But we cannot remove those default pc also.
Can be their any solution on this
Kindly suggest
ThanksHi
In addition to my previous mail i want to add that
i tried to add even expense item category to splitting rule of business transaction and transaction variant.
Even then it doers not work.
other then is as per standard document splitting rule the expense item category is not included in invoice verication buisness transaction.
Thanks
alok -
Error while using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO
Hi Friends,
Im using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO.
im passing data to table GLACCOUNTDATA.
Below are the table fields im paasing
INVOICE_DOC_ITEM " '000001' deafault always
GL_ACCOUNT "Which is constant for all in my case
ITEM_AMOUNT " Total PO net amt + Frieght charges header level
DB_CR_IND " 'S' always default
COMP_CODE " 'RPPL' always default
TAX_CODE " 'V0' deafault always
PROFIT_CTR " for ex 1100180. based on plant
While posting this bapi is trhrowing error as below
'profit centre RPPL/1100180 does not exist for 01.12.2008'
where 01.12.2008 is the MIRO posting date which im passing in header.
We checked dates for profit centres they are correct.
Awaiting the reply ASAP.
Regards,
VenkyHi,
It would be better if you do a recheck on data input for BAPI. If you sure the data are ok but the BAPI still gives error message, then I suggest to post to OSS.
Regards,
Teddy Kurniawan -
Can not post MIRO due to production order archived
Hi,
We have created production order and with production order as account assignment we have created purchase requisition.
We have converted purchase requisition to purchase order and goods receipt posted.
Now production order is archived (TECO done, setteled manually, deletion and as per residence time ) and we are not able to post invoice receipt for PO.
The question is, how production order archived, is there any check that purchase orders, purchase requisition are open in which this production order is used.
We can post MIRO with CO substituation, but wants to check settings, pre conditions.
Thanks
SudhirHi Thyagarajan
I checked the operations in the PM-order. There are two external processing operations. One has an aggrement which has the validity end 2005-12-31. I don`t see where to see if the other operation is assigned to a purchasing document. In the menu path, extras, cost reports there is a PO which was already invoiced and GR-posted.
I don`t know where to look for more if there are any open purchasing documents?
Thanks.
Esra -
End user deleted posted MIRO invoice, how?
Hi SAP Gurus,
Surprisingly user was able to delete the posted MIRO invoice (infact a paid invoice) using MIR4, then going to Edit- Display/Change and Invoice document-Delete. I can see the deleted invoice under Purchasing history in the PO but when i click on the Invoice it says invoice has been deleted.
How is it possible to delete the posted invoice. How can i track what steps she had carried out to delete the document?
I would appreciate your insight on this issue,
Thanks.Are you sure the document wasn't reversed versus deleted? In order to reverse the invoice, the payment document that cleared the invoice had to be reversed first.
Display the payment document FB03 that cleared the invoice and see if it has a reversal document. -
User deleted posted miro invoice
Hi SAP Gurus,
Surprisingly user was able to delete the posted MIRO invoice (infact a paid invoice) using MIR4, then going to Edit- Display/Change and Invoice document-Delete. I can see the deleted invoice under Purchasing history in the PO but when i click on the Invoice it says invoice has been deleted.
How is it possible to delete the posted invoice. When running MRBR report this particular invoice document is showing everyday in the report. how to resolve this particular issue.
I would appreciate your insight on this issue,
Thanks.
Prabhakar>
Prabhakarreddy Tirumalareddy wrote:
> Hi SAP Gurus,
>
> Surprisingly user was able to delete the posted MIRO invoice (infact a paid invoice) using MIR4, then going to Edit- Display/Change and Invoice document-Delete. I can see the deleted invoice under Purchasing history in the PO but when i click on the Invoice it says invoice has been deleted.
>
> How is it possible to delete the posted invoice. When running MRBR report this particular invoice document is showing everyday in the report. how to resolve this particular issue.
> I would appreciate your insight on this issue,
>
> Thanks.
> Prabhakar
what you describes does not really sound logical.
MIR4 allows only to change via Edit- Display/Change if the invoice is a parked invoice.
but a parked invoice cannot really been paid.
And once the parked ivoice is deleted, then it is not shown anymore in purchase order history.
if that is the case then you should read OSS Note 595535 - MIR7: Undeleted entries in purchase order history -
When try to post MIRO, I get error as
"Inconsistent temporary document number assignment"
Message no. F5726.hi wrote:
When try to post MIRO, I get error as
> "Inconsistent temporary document number assignment"
> Message no. F5726.
Hi,
It seems there is inconstistent No Ranage assignment for the logistics and acc docs. You might have assigned external no range for either of the two and system is unable to assign a temporary doc no and issuing the message. Pls have a chk and correct.
Regards
Shiva -
Hi all,
Does anybody know the BAPI for posting MIRO after GR.
Pl send with sample example code to undestand better.
It is urgent.
Appreciated answeres will be rewarded.
Regards,
Venkatesh
09892 895847Check this code:
clear : it_itemdata, it_accountingdata, IT_CRMEMO_MIRO, IT_CRMEMO_MR8M.
refresh : it_itemdata, it_accountingdata, IT_CRMEMO_MIRO, IT_CRMEMO_MR8M.
*-- Copy all the CR Memo Docs and delete order reason not in S_AUGRU
IT_CRMEMO_MR8M[] = IT_CRMEMO[].
*-- Delete Reversal postings which are not in S_AUGRU
DELETE IT_CRMEMO_MR8M WHERE AUGRU IN S_AUGRU.
*-- Delete Reversal postings where AEDAT is initial
DELETE IT_CRMEMO_MR8M where aedat is initial.
*-- Delete order reason which are not in S_AUGRU
DELETE IT_CRMEMO WHERE AUGRU NOT IN S_AUGRU.
*-- Loop through the credit memo request records
LOOP AT IT_CRMEMO INTO WA_CRMEMO.
lv_tabix = sy-tabix.
*-- If credit memo request change date is not initial then
send change date (AEDAT) to lv_rbkp_bldat
if not WA_CRMEMO-aedat is initial.
lv_rbkp_bldat = WA_CRMEMO-aedat.
else.
*-- If credit memo request change date is initial then
send create date (ERDAT) to lv_rbkp_bldat
lv_rbkp_bldat = WA_CRMEMO-erdat.
endif.
READ TABLE IT_ORDERS INTO WA_ORDERS WITH KEY VBELN = WA_CRMEMO-VBELN
POSNN = WA_CRMEMO-POSNR.
IF SY-SUBRC = 0.
READ TABLE IT_PO INTO WA_PO WITH KEY VBELV = WA_ORDERS-VBELV
POSNV = WA_ORDERS-POSNV.
IF SY-SUBRC = 0.
READ TABLE IT_EKPO INTO WA_EKPO WITH KEY EBELN = WA_PO-VBELN
EBELP = WA_PO-POSNN.
IF SY-SUBRC = 0.
*-- Read IT_EKBE_TEMP internal table which contains records which are not reversed
READ TABLE IT_EKBE_TEMP INTO WA_EKBE_TEMP WITH KEY EBELN = WA_EKPO-EBELN
EBELP = WA_EKPO-EBELP.
IF SY-SUBRC = 0.
*-- Read IT_RBKP internal table with XRECH (Indicator: post invoice) = 'X' ,
check for invoice records for the correspnding CR Memo records
READ TABLE IT_RBKP INTO WA_RBKP WITH KEY BELNR = WA_EKBE_TEMP-BELNR
GJAHR = WA_EKBE_TEMP-GJAHR
XRECH = C_X.
IF SY-SUBRC = 0.
*-- Read IT_RBKP internal table with XRECH (Indicator: post invoice) = SPACE,
and document date = CR Memo creation date
and reference document number = PO number
READ TABLE IT_RBKP INTO WA_RBKP_TMP WITH KEY BELNR = WA_EKBE_TEMP-BELNR
GJAHR = WA_EKBE_TEMP-GJAHR
BLDAT = WA_CRMEMO-ERDAT
XRECH = ' '
XBLNR+0(10) = WA_EKBE_TEMP-ebeln.
STBLG = SPACE.
IF SY-SUBRC = 0.
CONTINUE.
ELSE.
*-- Quantity Conversion (Get the Credit Memo Quantity by passing CMR unit per one PO unit)
perform f_quantity_conv.
*-- Filling the Line items data
*-- Incrementing the item no
lv_itemno = lv_itemno + 1.
v_itemno = lv_itemno.
it_itemdata-invoice_doc_item = v_itemno.
it_itemdata-po_number = WA_ekPO-ebeln.
it_itemdata-po_item = WA_EKPO-EBELP.
it_itemdata-tax_code = WA_ekpo-mwskz.
it_itemdata-TAXJURCODE = WA_ekpo-TXJCD.
*-- Converting SAP amount to BAPI format by passing line item amount and currency
PERFORM f_currency_amount_sap_to_bapi USING WA_EKPO-waers
V_LINE_AMOUNT
CHANGING it_itemdata-item_amount .
it_itemdata-quantity = ( WA_CRMEMO-ZMENG * V_CRMEMO_QTY ).
it_itemdata-po_unit = WA_EKPO-MEINS.
APPEND it_itemdata.
*-- Populate Account Assignment data
IT_ACCOUNTINGDATA-INVOICE_DOC_ITEM = v_itemno.
IT_ACCOUNTINGDATA-XUNPL = space.
IT_ACCOUNTINGDATA-SERIAL_NO = C_01.
IT_ACCOUNTINGDATA-TAX_CODE = it_itemdata-tax_code.
IT_ACCOUNTINGDATA-TAXJURCODE = it_itemdata-TAXJURCODE.
IT_ACCOUNTINGDATA-ITEM_AMOUNT = it_itemdata-item_amount.
IT_ACCOUNTINGDATA-QUANTITY = it_itemdata-quantity.
IT_ACCOUNTINGDATA-PO_UNIT = it_itemdata-po_unit.
IT_ACCOUNTINGDATA-GL_ACCOUNT = C_0000500205.
append IT_ACCOUNTINGDATA.
clear IT_ACCOUNTINGDATA.
CLEAR it_itemdata.
endif.
endif.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
*-- At end of each credit memo request fill the header details of BAPI FM and
*-- post the BAPI
AT END OF VBELN.
read table it_crmemo into wa_crmemo index lv_tabix.
*-- Populate the document Header
*-- Getting the header data for invoice
x_docheader-invoice_ind = space.
x_docheader-doc_type = c_blart.
x_docheader-doc_date = lv_rbkp_bldat.
x_docheader-pstng_date = lv_rbkp_bldat.
x_docheader-ref_doc_no = WA_RBKP-XBLNR.
x_docheader-comp_code = WA_CRMEMO-BUKRS_VF.
x_docheader-CURRENCY = WA_CRMEMO-WAERK.
x_docheader-calc_tax_ind = lc_check.
*-- Logic to find the Tax %
v_tax_per = ( WA_RBKP-WMWST1 / ( WA_RBKP-RMWWR - WA_RBKP-WMWST1 ) ) * 100.
v_tax_amt = ( V_GROSSAMT * v_tax_per ) / 100.
V_GROSSAMT = ( V_GROSSAMT + v_tax_amt ).
x_docheader-gross_amount = V_GROSSAMT.
CLEAR:v_docnr, v_year1.
*-- Calling BAPI to create PO invoice document
CHECK NOT IT_ITEMDATA[] IS INITIAL.
CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
EXPORTING
headerdata = x_docheader
IMPORTING
invoicedocnumber = v_docnr
fiscalyear = v_year1
TABLES
itemdata = it_itemdata[]
ACCOUNTingDATA = it_ACCOUNTingDATA[]
GLACCOUNTDATA =
taxdata =
return = it_return.
*-- Commit work
IF NOT v_docnr IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
*-- Move the data to Success Internal Table
wa_success-crmemo = wa_crmemo-vbeln.
wa_success-cmemo = wa_cmemo-vbeln.
wa_success-orders = wa_orders-vbelv.
wa_success-po = wa_po-vbeln.
wa_success-miro_no = v_docnr.
wa_success-text = 'MIRO is Posted'.
append wa_success TO it_success.
clear wa_success.
ENDIF.
*-- Read the values in the table IT_RETURN.
CLEAR it_return.
READ TABLE it_return INDEX 1.
If message type is error then roll back the work
IF it_return-type = C_E.
*-- Roll back
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
*-- Move the data to Error Internal Table
wa_error-crmemo = wa_crmemo-vbeln.
wa_error-cmemo = wa_cmemo-vbeln.
wa_error-orders = wa_orders-vbelv.
wa_error-po = wa_po-vbeln.
wa_error-text = it_return-MESSAGE.
append wa_error TO it_error.
clear wa_error.
ENDIF.
refresh: it_return, it_itemdata, it_accountingdata.
clear: V_GROSSAMT, it_return, it_itemdata, wa_crmemo, wa_orders, wa_po,
wa_ekpo, WA_EKBE_TEMP, wa_rbkp, wa_rbkp_tmp, v_docnr, v_year1, WA_SUCCESS,
WA_ERROR, it_accountingdata, v_tax_per, v_tax_amt, V_FILL_ITEM, lv_rbkp_bldat.
ENDAT.
ENDLOOP.
cheers
Aveek
Maybe you are looking for
-
How can i use a blob field in a formula field object
Hi , We are using Crystal Report Server XI R2. i have a field "ANSWER" in my datasource which stores value 1 or 0. And i have table to store two images as blob fields are "EVALTICKIMAGE" and "EVALCROSSIMAGE". Now i need to show an image in my report
-
What I would really like, is a crash dump or an error message telling me why the event structure is not responding to user events. FYI The application has lots of log files and error logging that shows that every thing was fine up until Saturday nigh
-
Ok so I was at the Apple Store yesterday becuase of a crash. Im all back up and running but I have one burning question that I would like to get answered. When the Genius started my computer he was able to pull up what appeared to be a hardware tes
-
Query in Stored Procedure accessing another schema
Hi - this is going to sound kind of strange and even i can't come up with an explanation. My JDK 1.1.7 applet uses a type 4 JDBC thin driver (i think v 8.04.06) to access an Oracle 7.3.4 database. We also have a link with full grants and synonymns to
-
How to open CD tray with a non-Mac keyboard
Hello. Some years ago I bought a Logitech keyboard and set it so that a certain key would serve as Eject. For a good long time it worked but in the past few months Eject has been either refusing to open consistently or opening from another key. It fi