Planned delivery cost at PO header
Hello,
I have the following requirement:-
1. There should be a freight condition at PO header level for delivery costs. Freight vendor is different from PO vendor.
2. Even if there is partial GR, delievry cost must be paid in full.
Say PO is for 100 PC and delivery cost is 100 INR. Now at MIGO if the delivered quantity is 75, the freight vendor must still be paid 100 INR.
Issue 1 can be resolved easily by copying FRB* condtiton type and marking it for header level.
I am stuck with how to resolve issue 2. I am unable to make the system post full freight condtion at MIGO for partial GR.
I have thought of the following approach:-
User does normal MIGO for partial GR and at MIRO posts the difference freight invoice amount as unplanned delivery cost. Also how best to treat subsequent delivery cost for 25 PC - as a unplanned delivery cost?.
Material vendor gets invoiced in the normal way.
Is there any setting to make the system post full freight condition (header or item) amount even for partial GR? If not how best to treat this scenario and for subsequent invoice for remaining PO amount.
Waiting for your valuable suggestions.
Thanks,
Saurav.
Hi
If you are aware of the no of goods receipts and the cost of freight per Gr then you can enter this amount at the Po header before the GR. The advantage is that the total freight cost will be divided across all complete Po quantity.
Thanks
Ganapathy Subramanian.N
Similar Messages
-
Bapi to post planned delivery cost of a purchase order
Hi every body,
Can anybody please give me the full details of the planned delivery cost data
to post with BAPI_INCOMINGINVOICE_CREATE
what are the manditory fields,
I am using the following code , but a few are posting , remaining r not posting
but when I post the same through MIRO it is posted what is difference
this error was came
ERROR: enter good reciept data only when working with GR-based IV
REPORT ZBAPI_MIRO .
tables: ekko,ekbe,ekpo,lfa1,EKBZ,t000.
data: itemdata like BAPI_INCINV_CREATE_ITEM occurs 0 with header line,
headerdata like BAPI_INCINV_CREATE_HEADER occurs 0 with header line,
return like BAPIRET2 occurs 0 with header line,
DOC_NO LIKE BAPI_INCINV_FLD-INV_DOC_NO,
FISC_YEAR LIKE BAPI_INCINV_FLD-FISC_YEAR.
DATA:error_flag.
data: item_data like EK08BN occurs 0 with header line.
data: begin of itab occurs 0,
p_order like ekpo-ebeln,
p_item like ekpo-ebelp,
p_ctype like konv-kschl,
p_lifnr like lfa1-lifnr,
end of itab.
data: order(10) type N,
vendor(10) type N.
data: begin of it_doc occurs 0,
DOC_NO LIKE BAPI_INCINV_FLD-INV_DOC_NO,
p_order like ekko-ebeln,
end of it_doc.
PARAMETERS: fn LIKE rlgrap-filename OBLIGATORY.
DATA: FN1 TYPE STRING,
l .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR fn. "p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
field_name = 'FN'
IMPORTING
file_name = fn.
START-OF-SELECTION.
FN1 = FN.
PERFORM upload.
loop at itab.
CLEAR: EKBZ,EKPO,LFA1,ITEM_DATA,HEADERDATA,itemdata.
REFRESH:itemdata,HEADERDATA,ITEM_DATA.
order = itab-p_order.
itab-p_order = order.
vendor = itab-P_lifnr.
itab-p_lifnr = vendor.
select single * from ekbz where ebeln = order
and ebelp = itab-p_item
and kschl = itab-p_ctype
and bewtp = 'F'.
select single * from ekpo where ebeln = order
and ebelp = itab-p_item.
SELECT SINGLE * FROM LFA1 WHERE LIFNR = vendor.
clear: item_data.
refresh:item_data.
call function 'ME_READ_COND_INVOICE'
exporting
I_BUDAT =
I_EBELN = itab-p_order
I_EBELP = itab-p_item
I_FRBNR = ' '
i_lifnr = ' '
I_XBLNR = ' '
RE_KURSF =
RE_WAERS =
I_RESWK = ' '
I_EKKI = 'X'
I_BUBIS =
RE_WWERT =
XEK08B_FLAG =
I_BELNR =
I_BUZEI =
I_READ_KRUEK = ' '
I_DISPLAY = ' '
TABLES
XEK08BN = item_data
XEK08BN_CURR =
read table item_data with key kschl = itab-P_ctype.
headerdata-INVOICE_IND = 'X'.
headerdata-DOC_TYPE = 'KR'.
headerdata-DOC_DATE = ekbz-budat.
headerdata-PSTNG_DATE = SY-DATUM.
headerdata-REF_DOC_NO = itab-P_ORDER.
headerdata-COMP_CODE = 'HPL'.
headerdata-DIFF_INV = itab-p_lifnr.
headerdata-CURRENCY_ISO = ekbz-waers.
headerdata-GROSS_AMOUNT = item_data-WEWWR - item_data-AREWR .
headerdata-BLINE_DATE = SY-DATUM.
headerdata-DEL_COSTS_TAXC = 'V0'.
headerdata-PO_REF_NO = itab-P_ORDER.
headerdata-bus_area = 'OTHR'.
headerdata-ITEM_TEXT = LFA1-NAME1.
*headerdata-HEADER_TXT = .
headerdata-ALLOC_NMBR = itab-P_ORDER.
APPEND HEADERDATA.
CLEAR HEADERDATA.
itemdata-INVOICE_DOC_ITEM = '00001' .
itemdata-PO_NUMBER = itab-P_ORDER.
itemdata-PO_ITEM = itab-P_ITEM.
*itemdata-REF_DOC = ekbz-belnr.
itemdata-REF_DOC_YEAR = ekbz-gjahr.
itemdata-REF_DOC_IT = itab-P_ITEM.
itemdata-TAX_CODE = 'V0'.
itemdata-ITEM_AMOUNT = item_data-WEWWR - item_data-AREWR .
itemdata-QUANTITY = item_data-BPWEM - item_data-BPREM .
itemdata-PO_UNIT = ekpo-meins.
itemdata-PO_PR_UOM = ekpo-meins.
itemdata-COND_TYPE = itab-P_CTYPE.
*itemdata-ITEM_TEXT = .
append itemdata.
clear itemdata.
CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
EXPORTING
HEADERDATA = HEADERDATA
IMPORTING
INVOICEDOCNUMBER = DOC_NO
FISCALYEAR = FISC_YEAR
TABLES
ITEMDATA = ITEMDATA
ACCOUNTINGDATA = I_ACCOUNTINGDATA
TAXDATA = I_TAX
RETURN = RETURN.
if sy-subrc <> 0.
message e999(re) with 'Problem occured'.
else.
loop at return.
if not return is initial.
clear bapi_retn_info.
move-corresponding return to bapi_retn_info.
if return-type = 'A' or return-type = 'E'.
error_flag = 'X'.
endif.
append bapi_retn_info.
endif.
endloop.
if error_flag = 'X'.
message e999(re) with 'Problem occured'.
rollback work.
else.
Return Table from BAPI call is empty
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = RETURN.
endif.
endif.
write:/ 'Document no :', doc_no.
it_doc-doc_no = doc_no.
it_doc-p_order = itab-p_order.
append it_doc.
CLEAR IT_DOC.
endloop.
loop at it_doc.
if it_doc-doc_no = ' '.
write:/ 'purchase order not posted ' , it_doc-p_order.
else.
write:/ 'document no:' , it_doc-doc_no, 'p.order:' , it_doc-p_order.
endif.
endloop.
*& Form upload
text
--> p1 text
<-- p2 text
form upload .
CALL function 'GUI_UPLOAD'
exporting
filename = FN1
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = ITAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
endform. " uploadI think you need to implement user-exit EXIT_SAPMM06E_012 of enhancement MM06E005.
Look in OSS with seach term MM06E005 to get some examples.
Note310154 "ME21N/ME51N: Customer-specific check, generating error log" has some examples.
You should use the macros to set errors/warnings
Example:
mmpur_business_obj_id pt_ekpo-id.
mmpur_metafield mmmfd_partners.
mmpur_message_forced 'W' '00' '208' text-001 '' '' ''.
regards,
JG -
Planned delivery costs (Freight) vendor into an access sequence
Hello,
Our MM users want to maintain a price condition record where they would be able to maintain a cost/ton based on effective dates.
The objective is to maintain a price condition record based on the following criteria: PO header vendor, material, and planned delivery costs (freight) vendor so that they would not have to maintain prices manually in the PO (this price would come directly from the condition record).
However, there is no standard field available to create an access sequence in which the freight vendor (KOMV-LIFNR) could be included. Indeed the field LIFNR is available but I guess it refers to the PO header vendor.
Is it still possible to create such an access sequence? What do you think of this requirement?
Thanks,
Annabelle R.Hello Annabelle,
Raw material vendor A + Raw material A + Truck company A =» Price A
Raw material vendor A + Raw material A + Truck company B =» Price B
can yo please explain the meaning of "Raw material vendor A" stands for what price?
As far as i know, freight cost could easily included in the material cost, because in m/06, there are so many cost that are on quantity basis and are included in the material basis, just make a copy of anyone of them and add it to you pricing procedure as well as supplementry pricing procedure, or else you can directly make a condition record in MEK1 for this condition.
please try it hope it helps
Regards,
yk -
Invoice Verification for Planned Delivery Cost (Freight Vendor)
Dear all
I have created the PO with vendor A for material M and the freight vendor is B. And now I would like to know invoice posting for vendor A for mateiral M and Vendor B for freight.
During PO creation:
1. I enter the Vendor A for PO.
2. I maintain Freight Condition at the Header Condition. And enter the freight Vendor B for that Condition.
During GR:
1. GR with reference to this PO
During Invoice:
1. MIRO reference to this PO
(a) To do Invoice for Vendor A, select Goods and Service and post
(b) Subsequently, MIRO reference PO again, and do invoice for Freight Vendor B, select Planned
Delivery Cost
Questions:
(a) What is the G/L account posting during GR and Invoice? I am particularly interested in the Invoice G/L account posting for both different vendor, assuming I am using the standard sap Account Determination Setting
(b) Instead of following the above approach to do invoice twice for different vendor A & B, can I first Invoice reference PO for Vendor A, and then subsequently use Subsequent Debit reference PO?
Points will be awarded handsomely.
thanksHello
Purchase order: 100 pcs @ 1.3/pc
Planned delivery costs: 0.10/pc
Goods receipt for that PO: 100 pc
A/C postings @ GR
Stock account: 140 Dr
GR/IR clearing: 130 Cr
Freight clearing: 10 Cr
Invoice 100 pc @ 1.3/pc=130.00
freight @ 0.10/pc= 10.00
Total =140.00
A/C posting @ IR
Vendor a/c's: 140 Cr (130 for Goods vendor and 10 for freight vendor)
GR/IR clearing: 130 Dr
Freight clearing: 10 Dr
Since both are different vendors you have to credit the goods value to vendor A and freight charges to vendor B, you have to do them separately.
Regards
Gregory Mathews -
Tax code error while posting Planned delivery costs in Import Scenario
Hi!!!!!
I am getting on error while posting Planned delivery costs in MIRO for Import Purchase Order with zero value tax code v0. The error is
"Tax code V0 country IN does not exist in procedure ZAXINN"
For Import I defined a pricing procedure which contains all condition types for CVD, Ecess, SEcess, Additional Customs Duty and Others.
While making Import PO im putting V0 tax code. I assigned the Tax Codes to the Company code.
Please let me know what config is missing.
Regards,
DurgaIs you ZAXINN assigned to the country India
and is your taxcode (created in FTXP) created for country India?
kr
hakan -
Report for Planned Delivery Costs
Hi,
Is there any Report for Planned delivery costs per month/day.One of our client needs separate report for frieght charges so that he can be able to pay service tax (GTA) for the same.
Thanks
PrasadHai,
Did you check thro' Tcode MIR5. -
Planned delivery cost for the scheduling agreement
Hi Experts
1. I have an requirement to post Invoice ver. for the Planned delivery cost (freight,customs duty,CVD etc) against the Scheduling Agreement just like Import Purchases with checking off the GR Based IV Indicator before doing the GR
I tried it but its giving me that no delivery costs are Planned in the Scheduling agreements it runs fine in case of the PO because PO is a time independent. Please inform how to post the same for schedule agreement with time dependent indicator on. I tried switching off the time dependent indicator and the system allowed, but my requirement is to Post I.V for the delivery cost with the time dependent indicator on.
Appreciate if you can suggest something in this case Urgently .
2. Aother issue is we have some uploaded Scheduling agreement from legacy system with Time dependent conditions. For this we need to post planned delivery cost in Miro. Since the system is not allowing to post, how to about for this. Shall we enter the delivery cost in unplanned delivery cost in Miro and post. Please suggest if any alternate solution is available.
Regards
ArvindHi,
As you know if the delivery cost document is not posted during GR the
delivery cost is not proposed during invoice (MIRO). Planned delivery
cost will be proposed in invoice only when there are records in EKBZ
table. The EKBZ table will be updated when delivery cost is posted
during GR itself.
Please ensure in the PO itself thatr the conditions have been defined
properly with the relevant amounts and values.
During GR when planned delivery cost conditions are present in PO,
system checks for values in amount field. Then only appropriate
calculations will be done for delivery cost and planned delivery cost
document will posted during GR and hence updates EKBZ table.
Solution to this issue is described in below steps,
1) reverse the invoice document
2) reverse GR document.
3) You have to give values in amount field in relevant conditions ZGDS
in the PO.
If you face any issues changing the values, delete above conditions
and put it again manually and give values in amount field also.
4) Post GR once again, delivery cost document will also be posted.
You can check it in PO history.
5) During invoice select Item + planned delivery cost and post the
invoice. If you need planned delivery cost to be posted separately,
then you can post individual invoice for item and delivery cost.
Please note it is not possible to post delivery costs for documents with
multiple accountassignments.
For your second question, I am afraid I can not answer. Please open a new ntry in the forum, so that someone else can answer it.
Best Regards,
Arminda Jack -
Planned Delivery Cost in MIRO for different freight vendor
Hi,
Kindly share, how to get rid of above issue:
1) PO created with a freight condition (FRA1 with a different vendor assigned to it under item conditions tab)
2) GR done, & all accounting entries were OK, (including freight costs in FR1 or FR3)
3) while doing MIRO with selection Planned-Delivery-Cost, Amount & Qty fields are "Blank" and auto flowing from Clearing A/cs
I found this error in both Domestic or Import POs.
I've read many threads, but could not find a clear solutions for the same.
Plz help
SankarHi,
Plz find screens.
Amount & Qty fields not flowing in MIRO from open GRIR/clearing account balance. -
Planned delivery cost in Import of Assets Materail
Hi,
I have a scenario, where we are purchasing (Import) Assets material from abroad. for this we have created Import PO with account assignment A. assigned the planned delivery cost in Condition Viz. Sea freight, Custom Duty, CHA charges and individual vendor also assigned at condition level.
We have posted the MIRO for Custome Duty and Done the GR. Excise Invoice also Captured and posted. While posting the invoice of other Delivery cost after GR system is not showing any value in MIRO line item.
Where as in normal inport cycle Value in Planned delivery cost IV (after GR) is appearing itself.
Please guide how to Post Delievry cost IV in above scenario. we donot want to enter any amount manual in MIRO line item.
Thanks & Regards,
Ranjan KumarHi Ranjan,
The idea with MIRO is to enter the vendor invoice that you got on paper, i.e. the gross amount, the tax amount(s) and the net item amounts - all from the vendor invoice. For this reason the defaulted amounts shouldn't be necessary.
If your business case is different, then there's a workaround. MIRO only suggests amounts if two cases:
- PO doesn't have provision for GR ("GR" flag on the tab "Delivery") or
- PO does have provision for GR and the received qty up to day is higher than the total invoiced qty up to day.
I have however used a user exit to make MIRO think the GR flag in the PO is not set. The user exit is the enhancement point MRM_AMOUNT_QUANTITY_PROPOSE_01 of the enh. spot ES_SAPLMRMC located right in the beginning of the function MRM_AMOUNT_QUANTITY_PROPOSE. The function module receives the GR flag from the PO in the parameter I_MRM_PROP-WEPOS. Let your enhancement reset the flag and make MIRO believe the GR flag in the PO is not set. Then it will propose the PO qty and amount.
However, let me underline again - the idea with MIRO is that you should type in the invoice that you hold your hand.
BR
Raf -
Change the sequence of planned delivery costs in MIRO
Dear Experts,
In import an import PO the various CVD & ACD conditions are maintained in the PO .
To enter the bill of entry , MIRO is used where the invoice is booked for planned delivery costs for the PO .
In MIRO , this planned delivery costs appear by default in certain sequence. I want to change this sequence .
eg by default the system shows :
Sec Ed cess on CVD
ACD
BCD
Ed cess on BCD
CVD
Ed cess on CVD
Sec Ed Cess on BCD
I want to change the seq of appearance in MIRO.
How is it possible
Pls guide
Regards
AnisDear Anis bazmi
You will get the conditions as you desire one below another in PO or MIRO if you have defined them exctly the same way in your calculation schema steps, other wise there is no way in getting the way you want and it can not be changed either in PO stage or in MIRO also.
Just check, when you are processing MIRO, please select Planned delivery Costs form the menu below instead of the combination of both.
Regards -
Planned Delivery Costs in IMPORT PO
Hi,
What planned delivery costs are posted to GL accounts and material accounts.
I want to post Clearing & Forwarding and Demurrage charges to material accounts.How it can be done.
RegardsSolved
-
IN MIRO for planned delivery costs always .19 paise extra coming?
In MIRO for planned delivery costs always .19 paise extra is showing?
very strage issue, kindly suggest me on the same
archanaACtually when I am doing MIRO price is taking as USD * exchange rate = as local currency, instead of the price entered in INR for particular condition type like local freight in PO,
because of which value is increased by .19 paise..
like in PO local freight entered charge is 5000000 rs in first column but the same is displayed 111160.52 usd in second column... but exchange rate is 44.98..
IN MIRO it should take 5000000 for me but it is taking 111160.52 * 44.98 = 5000000.19 rs.. kindly let me know the solution for this
regards,
archana -
Issue in MIRO for Planned Delivery Cost
Hi,
We are facing a problem during MIRO (Planned Delivery Cost)...
First, We create Two PO's with Freight Value (use diff. vendors in both PO). During MIRO (including both PO), we done Invoicing with Goods / Service Items...when we are trying to create MIRO of Freight value (Planned Delivery Cost)... a pop-up open for choose the Vendor...
Here, Issue is that only 2 Vendors should be there BUT there shows many vendors to choose..
Please guide, how to solve this...During MIRO only 2 vendor should appear in that pop-up window...
thanksHI,
Here, Issue is that only 2 Vendors should be there BUT there shows many vendors to choose..
many vendor means how match all vendor list?
have you activate vendor partner function at your end ? if yes check following things
check vendor master record and check Invoicing party of that vendor ,also check invoice party of main vendor
you may get invoicing party of both vendor there
Regards
Kailas Ugale -
How to change posting of Planned Delivery cost in Po?
i need to change posting of planned delivery cost in PO to other expense account.
as when i enter any planed delivery cost in PO it direct posted to the inventory account but i need to change it to be posted to other account.Hi Dear,
You need to maintain the Account Key for the condition type in the Pricing Procedure.
and then for the same key maintain the GL account in the OBYC settings.
Hope it helps you.
Regards,
Yawar Khan -
Issue with reversal of MIRO for Planned Delivery Cost
Hi Xperts
We have found out an issue while reversing the MIRO document for Planned Del costs. When we have done the MIRO, the accounting entry got correctly posted with correct account keys.Conditions are not inventoried.
However, when we had reversed it - the stock account got hit.Do not understand, why that happened.Do you have any clue?
1. Suppose we have done the MIRO for Del Cost & then performed GR.Now Stock has already consumed & afterwards we have found that the MIRO for Del Cost is wrong & reverse - in this scenario shall the Stock account will get a hit????
2. I have maintained Price Control "V" in Material Master.However, I have maintained a Standard Price by mistake.In that case shall SAP ignores the MAP & takes Standard Price into account & post PRD??
Regards
SoumickHi,
Before checking Planned Delivery costs accounting documents in MIRO posting and MIRO cancellation document, 1st check how Planned Delivery costs designed for your procurement process.
Use t.code:ME23N, check your Purchase order
Option-1:
Is Planned Delivery costs added to inventory account and at the same time Planned Delivery costs posted to Separate Planned Delivery costs G/L account.
OR
Option-2:
Is Planned Delivery costs posted to Planned Delivery costs G/L account ONLY
OR
Option-3:
Is Planned Delivery costs added to inventory account ONLY.
Based the above one setting, system will post goods receipt and invoice posting document with corresponding accounting entries. Also cancellation of invoice posting document refer to these setting.But account posting depends on price control available in material master.
NOTE:
Standard price procedure (price control “S”):The system carries out all stock postings at a price defined in the material master. Variances in price are posted to price difference accounts.
Moving average price (price control “V”): The system valuates goods receipts with the purchase order price and goods issues with the current moving average price.Differences in price between the purchase order price and the invoice are posted directly to the relevant stock account if there is sufficient stock coverage.
Regards,
Biju K
Maybe you are looking for
-
Partition Name in Select and Group-By
Is there a function that returns the partition name a row is stored in? I'd like to use it in a SELECT statement, if it exists. The goal is to get row counts per partition to determine skew on a hash-based partition (otherwise, I'd just select and gr
-
How to create an anonymous Distribution List ?
Hi, I have a growing distribution address list created in the Address Book. When I send that address list from Mail, all the names appear individually and everybody can see everybody's else email. How to make it look like it comes just from me, or my
-
Bpel process invoking an ESB problem
Hi All, Im fairly new to bpel and i encountered the following problem. I am receiving an input, and transforming the data to a canonical model, i then send that canonical model data to an ESB to invoke another bpel process but when im invoking im get
-
Ipod Mini won't restore... folder with exclamation point
A few weeks back my mini suddenly stopped working and showed a folder with an exclamation point. I have tried everything suggested on this site, 5 R's, re-formatting through Windows etc and the closest I can get to restoring is going into disk mode a
-
Hi, I'm got an strong assumption and just want to validate with experts before putting this as an option to the client. We want to access BPC input schedules and reports (developed using EVDRE function) through web interface. Users should be able to