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

User Exits - - - >

Hi

we have a typical scenario where the <b>my sales order(va01)</b> is acepting two currency.

i want my sales order have only one currency.

for eg.

v r goin 2 maintain IDR.

if i try 2 enter INr, it should not save,

but Now its saving...

i need the user exit . & guide hw to solve this probs.

can you help me out....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 04, 2007 at 05:36 AM

    Try to check the user exit program MV45AFZZ.

    You can use the form USEREXIT_MOVE_FIELD_TO_VBAP.

    Here you can check the internal table XVBAP. Check for currenies in this form.

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Do you know how to show cashed a range of checks ( instead of clearing them one by one) thru the Accts Payable so I can get them off my outstanding list-we do not receive an electronic file from our bank but I may have over 100 checks in a row that need to be cleared when the bank statement comes.

      Thanks.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 07:26 AM

    Hi Irfan,

    Use exit <b>EXIT_SAPMV45A_003</b>. Now inside the exit you can write the following code.

    data : t_vbap type standard table of xvbap.

    data : v_lines type i.

    t_vbap[] = xvbap[].

    delete adjacent duplicates from t_vbap comparing waerk.

    describe table t_vbap lines v_lines.

    if v_lines > 1.

    message 'Cannot enter 2 currencies'.

    endif.

    Try this and get back to me incase of any queries.

    Kindly reward points if found useful.

    Thanks and Regards,

    Satyesh T

    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.