Skip to Content
author's profile photo Former Member
Former Member

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.""

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2010 at 12:26 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.