Changing Exchange rate as per Billing  date

I have got 1 requirement while creating Billing document through VL01 transaction the user change the header data Billing date as per billing date the exchange rate also will be change automatically.
Enhancement : SDVFX008
Exit Name : SAPLV60B_008.
Include : ZXVVF008.
in that the client have 2 marketing place one is india and another is US the if user change the invoice Billing date VBRK-FKDAT as per billing date US$ exchange rate will be change automatically in the field VBRP-KURST. i written code but i did not fetching data in to table in this exchange rate maintained in table TCURR and my code is.
"" Data : ukurs1 type tcurr-ukurs,
          date(10 )type c.
if cvbrk-fkdat is not initial .
select singe ukurs into ukirs1 from tcurr
              where gdatu = date and
                          tcurr = 'USD'.
  loop at vbrk where vbeln = doc_number.
    clear cvbrp-kursk.
    cvbrp-kurst = ukurs1.
  endloop
endif.""

Hai,
"" Data : ukurs1 type tcurr-ukurs,
date(10 )type c.
if cvbrk-fkdat is not initial .
select singe ukurs into ukirs1 from tcurr
where gdatu = date and
tcurr = 'USD'.
loop at vbrk where vbeln = doc_number.
clear cvbrp-kursk.
cvbrp-kurst = ukurs1.
*MODIFY cvbrp.*
endloop
endif.""
Modify the internal table & check it.
Regards,
Sudhakar Rayala
Edited by: SudhakarRayala on Feb 14, 2010 1:28 PM

Similar Messages

  • Required to shoe exchange rate as per billing date in VF01

    Hi Experts,
    We have created 2 invoices (export and intercompany billing). My client has identified a peculiar query and I am unable to get a solution for it.
    The Export invoice shows 2 exchange rates, viz: Condition exchange rate for conversion to local currency = picks the exchange rate as per the pricing date.
    And Exchange Rate for Price Determination = picks the exchange rate as per the Billing date/ service rendered date.
    But, in the Intercompany invoice the Condition exchange rate for conversion to local currency = picks the exchange rate as per the pricing date and Exchange Rate for Price Determination = 1.
    The client wants the exchange rates should reflect as per the Billing date/ service rendered date. And should reflect same exchange rates in both of these documents.
    I have changed the Pricing exchange rate type to C and D in VTFL but it is not giving any fruitful result for IV.
    Please let me know, how this requirement can be achieved.
    Thanks in advance.
    Regards,
    Shibaji.

    Hi Laksmipati,
    Thanks for your suggestions.I have few doubts to be clarified.
    In case of intercompany invoice the value in KONV-KKURS is showing as per pricing date.
    Can we make it as per billing date?
    What is the significance of this field?
    Which exchange rate is actually considered for finnacial posting?
    Thanks in advance.
    Regards,
    Shibaji.

  • Exchange rate determination on Billing Date

    Hello,
    We have a problem with respect to exchange rate re-
    determination - on billing date at the invoice level.
    Currently in our system the Exchange rate is being determined on the
    pricing date at the sales order level. When we create the invoice the
    exchange rate at the header level (VBRK-KURRF) is getting re-determined
    on the billing date.
    However the problem is the exchange rate at the item level (VBRP-KURSK)
    & exchange rate with respect to amount currency level (KOMV-KKURS).
    In order to re-determine exchange rates at item level (KOMV-KKURS) - we have done the
    configuration for exchange rate type field in Copy control settings at
    VTFL/VTFA should be u201CCu201D.
    But however, the system is determining the pricing exchange rate (KOMV-KKURS) on the pricing date, and not on the billing date.
    We have also applied the note 92613. In spite of making the changes the pricing date is not being re-
    determined to u201Cbilling dateu201D for exchange rate calculation at conditioncurrency level.
    Can you please let us know, how can we have the pricing exchange rate (KOMV-KKURS), be determined on the billing date and not on the pricing date. Do we have a configuration for this? Or is some change in any user exit is required. Please suggest.
    Best Regards,
    Priya Gor.

    Hi All,
    I am having the same kind of issue.
    My requirement is if the condition currency is different than Document currency (which is also local currency) the system should re-determine the exchange rate in billing as per current date.
    Could you please suggest me how KOMV-KKURS will be redetermined in billing as per current date?
    As you know copy control TVCPFLP-PFKUR filed will be applicable for VBRP-KURSK but for my requirement it is not needed.
    Is there any copying requirement required or any user exit in Billing document ?
    Please share if anyone having any info for this.
    Thanks
    Amar

  • Exchange rate according to document date

    Hello all,
    We are creating PO and then Goods receipt. I need to change exchange rate according to document date while creating Goods Reiceipt. We have done few customizing changes for this. Translation date has been updated with the document date but exchange rate is still derived from posting date. My new translation date is ignored for exchange rate derivation. If Where should be a problem?
    I looked into note 619330 for this issue. If someone has implemented this note already for this issue, could you please let me know whether this note will solve this issue?
    Thanks,
    Priya

    hi priya,
    Do u got the solution for this problem, couz I have the same issue.
    Please reply if u got solution.
    Regards
    Deepak

  • How to find credit data exchange rate at the billing document

    Hi Gurus,
    I have a question about Creidt data exchange rate, I created sales order and when I tried to generate the invoice, it was split into 2 billing document and the reason in split analysis is "Credit data exchange rate at billing document", I want to ask where can I find the credit data exchange rate at the billing document?
    And where can I find that this is one of the criteria to trigger the billing split?
    Thanks for your great help in advance.
    Edited by: Lakshmipathi on May 25, 2011 8:57 PM
    Please dont post the same question in multiple forums which is not allowed

    Hello, this field is for the exchange rate between local currency & local currency 2, there must be someplace to set up it, do you know where is that place?
    As now the invoice split show the data with the exchange rate which is weird. And i don't know how to fix it so that the invoice will not be split anymore..
    Thanks for your great help!

  • Redetermine the exchange rates during the billing.

    Hi
    I would like to redetermine the exchange rates during the billing.
    When we are creating a sales order we are maintaining exchange rate in sales order header, but in case of any change in rates
    I have to change it in sales orders first and then i have to create an invoice. Instead of doing this i would like the exchange rates
    to be redetermined during billing automatically.
    Please help
    Suresh

    Hi,
          Firstly let us know If you want to redetermine the pricing exchange rate or the exchange rate to accounting? I imagine that the pricing exchange rate you are talking about ,the pricing exchange rate type should definetely work no matter  what the  pricing source is . Normal sales cycle always has the price source as order, which controls from where and in what sequence the conditions from the reference documents are copied to the billing document. It does not control the exchange rate. Check the billing date in your sales order(its always advisable to take the service rendered date as the base to calculate the exhcange rate which is PGI date when a delivery is involved) , not the actual billed date. If you want the system to determine the exhcange rate on the date when the Invoice has been raised(Different from the billing date in the sales order) then go for the option of "E" which will take the service rendered date.
    But If you want the exchange rate for accounting then you have to append a routine at the item level in "VTFL" .The Logic would be to read the exchange rate from TCURR table using the function module "READ_EXCHANGE_RATE. If you have specified the exchage rate in the header(Accouting tab) of the sales order this gets copied to the billing document This is SAP standard behaviour. To over write this you have to go for the routine ammendment as suggested above.(In case of billing dates and the exchange rates differ). Kindly please let me know If you need any more help on this.
    Regards
    Ram Pedarla

  • How to change exchange rate type for specific pricing condition type

    Hello every one,
    I have a requirement for billing ie VF01.
    currently  all the exchange rate are being calculated with exchange rate type 'M' by default.
    but now client want it should calculate exchange rate with type 'E' for two pricing condition type for all others it should calculate with type 'M'
    Please any body can help me with the exit and code which i can use.
    I have checked exits SDVFX008.
    but how to change exchange rate with type 'E' only for two conditions.
    as changing exchange rate at document header will change exchange rate for all condition type.

    You need to assign KOMK-KURST = 'E', for those two condition types. If it had been item number specific, you could have used USEREXIT_PRICING_PREPARE_TKOMK(RV60AFZZ).
    Do one thing, put a breakpoint on FM 'PRICING' and then do selective runtime analysis.
    Check whether any user exit/BADI/ explicit enhancement are available when condition types are processed in a loop. If nothing is available, try implicit enhancement.
    Link to refer for selective runtime analysis - Runtime Analysis for VOFM
    Also try with VOFM requirements ( not sure whether changing KOMK-KURST is permissable in requirement as normally  we only set sy-subrc values to suppress/allow condition types ). Don't forget to assign requirements against condition types in pricing procedure.

  • BADI exchange rate according to document date instead of posting date

    Hello,
    I am looking for a BADI that will enable us to change the exchange rate according to document date instead of posting date.
    This change is needed for documents of travel expenses.
    I tried to use substitution but it didn't work for documents created in Tcode PRRW.
    Thank you,
    Dan

    Friend,
    Try to use Field exit functionality.
    You can create field exit for Translation date(WWERT). While currency converstion this date only taken as base.
    Technically you can pass Doc.Date(BLDAT) value to Translation date.
    Or in Substituton(GGB1) also for the header "Transaltion date = Docu.Date".
    I hope it serves your purpose.
    Chandu

  • Change exchange rate type

    Hi,
    How can I change exchange rate type for posting principle flow in case of fixed term deposit. System by default takes M type. I want to change it to S type.Define  I have already changed exchange rate type in calculation indicator and Company Code Additional Data but it doesn't work.
    Thanks

    Hi,
    By default the exchange rate type M will only be picked.  The setting you make under calculation indicator is only for securities and loans area.
    For you requirement, pls check the note 450171 and see the appropriate place where you have to do the modification.
    Regards,
    Ravi

  • How to Change Exchange Rate while Preparing Goods Receipt

    Hai all,
    Help in find any user exits or BADI for changing Exchange rate while preparing Goods Receipt for Import Schedule Agreement. Or help me for re-directing system to take exchange rate from different effective date. we will be provided by us.
    Thanks & Regards
    Nagarajan M

    You need to assign KOMK-KURST = 'E', for those two condition types. If it had been item number specific, you could have used USEREXIT_PRICING_PREPARE_TKOMK(RV60AFZZ).
    Do one thing, put a breakpoint on FM 'PRICING' and then do selective runtime analysis.
    Check whether any user exit/BADI/ explicit enhancement are available when condition types are processed in a loop. If nothing is available, try implicit enhancement.
    Link to refer for selective runtime analysis - Runtime Analysis for VOFM
    Also try with VOFM requirements ( not sure whether changing KOMK-KURST is permissable in requirement as normally  we only set sy-subrc values to suppress/allow condition types ). Don't forget to assign requirements against condition types in pricing procedure.

  • How to change exchange rate in VA02

    Dear Experts
    We have sales order which is having around 5 line item and in that 1st line item alone has been invoiced in January and later items still not invoiced
    In the month of February, the invoice for 1st line item has been cancelled , so to avoid exchange rate difference when we create invoice for cancelled invoice, we have maintained exchange rate in Sales order Header details-Accounting tab manually and created invoice successfully with old exchange rate.
    Now i want remove the exchange rate in Sales order because it will affect the other line items which has not yet invoiced but when in go to va02-Sales order header details-Accounting -Exchng rate-acct field was grayed out.
    Kindly help me out how to remove the exchange rate from sales order header details-Accounting tab or is there any way that it should not effect the line items for which still invoiced has not created
    Thanks and regards
    Ramarao.pokuri
    9010272000

    In copy control, tc VTFA, at item level, you can influence the exchange rate type at billing time. I guess this will sort out the problem. However, if you want to change it at the order for reporting reasons you'd better copy the order as vishwajit suggested.

  • Change exchange rate according BLDAT via BADI - FI_TRANS_DATE_DERIVE

    Hello all,
    i need to change exchange rate according document date in FB60. I implemented BADI for that purpose according oss note 575249. Translation date has been updated according document date but exchange rate is still derived from posting date. My new translation date is ignored for exchange rate derivation. Where should be a problem?
    Thanks, zd.

    Hi,
    Can you please tell us which BADI did u implemented. Did you used FI_TRANS_DATE_DERIVE ?
    Did u finally got the solution for it??
    Thanks for help.

  • Change exchange rate after MIRO

    Hi Expert,
    Please help me ..................
    I created PO used currency USD. I didn't check "Fixed Exchange rate" in PO.,
    When I'm doing Invoice received, I forgot exchange rate in Details tab in MIRO (system display exchange rate difference from PO) and I have invoice docuemnt.
    I want to change exchange rate in Details tab in MIRO.
    How can I do?

    Hi Anjali
    I can't change the exchange rate in MIRO detail tab.
    Please help me.
    Thanks.

  • Change Exchange Rates

    Hi Frnds,
      Our FI Users are asking for Change exchange Rates authorization and the T code for that is OB08 -- as it is an IMG Settings transaction can we give to them , bcoz of this will it effect any where .
    Or is there any other T code by which they can change that currency exchange rate ?
    Regards
    Rakesh

    Hi
    Try F-62 and S_BCE_68000174
    Regards
    Sanil Bhandari

  • How to change exchange rate during billing (VF02)

    Respected Members,
    i already created the Billing documents from sales order and it took the exchange rate wat i mentioned in the sales document.
    but still it is not release to accounting .
    So i want to change the exchange rate in change of billing document.
    The pop up box for that field is coming in the display mode and it is not coming in the change mode.
    How to do it.
    Please tell me .
    Thanks a lot.

    Thanks for your replies.
    But i have one querry that is when you go to billing document header there you will see exchange-rate accntg flied and above that there will be one checkbox set exchng rt and by going F1 on it is mentioned that you can give the exchange rate during billing and it can redertmine the value at billing level and also the exchange rate acctng field gives one pop up box same as it gives in sales order ,but here that box is in grey mode and in sales order it is in grey mode and how to bring this box in change mode during billing.
    Please clarify my doubt.
    THanks

Maybe you are looking for

  • How I put a tracking number from sales until delivery

    Hi all: Need your help about tracking and MRP, so, I thinks this is not in exclusive problem, its possible that other need make it. I need obtain a tracking number from sales order unti delivery, need be assigned in the BOM header

  • VmFusion Question/Help

    Hello all, I am running VMFusion on my Mac Pro. I have downloaded the application for Star Trek Online. I am unable to install it as I have run out of space on my Virtual Hard Disk with VmFusion. I have managed to enlarge the hard disk for more space

  • BPEL and WS-Transaction (not possible atm)

    Hi, I'm new to BPEL and intrested in the transaction model. I'm familiar to the compensation construct. I recently read some papers which explains bpel to be completed with ws-transaction. Now my question: how? I think at the moment this isn't possib

  • LR5 Export Plug-Ins

    Can I set PS Elements 11 as an export plug-in in LR5?  Have tried using the LR5 Plug-In Manager which shows an error each time I try

  • After installing updates to Pages, Numbers, still old versions listed

    I have recently successfully installed Mavericks 10.9.1.  At Apple's suggestion, i went to App Store and downloaded (and subsequently installed) updated version of Pages, Numbers, Keynote, etc.  However, when I open my Pages and my Numbers apps, the