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

Changing the currency of condition value according to amnt curr in VA01

Hi all,

In VA01 when we select the condition type as EDI2 and change the currency to USDN the currency type in condition value should also be changed to USDN.

Thanks & Regards

Jerry

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 08:33 AM

    Hi all,

    I am using the user exit form userexit_change_pricing_rule but only able to get the USDN value in amount field of EDI2 condition but the condition value currency remains as USD.

    LOOP AT XKOMV WHERE KSCHL = 'EDI2'.

    XKOMV-WAERS = 'USDN'.

    MODIFY XKOMV TRANSPORTING WAERS .

    SELECT WAERS FROM tcurc INTO xkomk-waerk where waers = xkomv-waers.

    endselect.

    komk-waerk = xkomk-waerk.

    ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi all,

      I found the solution with the user exit userexit_field_modific_kzwi but the problem is when I enter the condition type as EDI2 as enter any amount in the amt field with the USDN as currency then condition value currency of all the condition types is changed to USDN automatically.

      Your answers will be rewarded.

      LOOP AT XKOMV .

      CASE XKOMV-KSCHL.

      WHEN 'EDI2'.

      XKOMV-WAERS = 'USDN'.

      MODIFY XKOMV INDEX SY-TABIX TRANSPORTING WAERS .

      KOMK-WAERK = XKOMV-WAERS.

      CLEAR XKOMK-WAERK.

      WHEN OTHERS.

      *komk-waerk = 'USD'.

      ENDCASE.

      ENDLOOP.

      Thanks & Regards

      Jerry

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.