Skip to Content

issue with function module exits

Hi,

execute the T.Code MK01, enter the language 'English' and country 'de'. it's allowing to save the data. I want to raise one pop-up message as 'country and language are not the valid combination please choose right one'. I enhanced in the function module exit. it's raising the message , but it's executing the next screen. how to stop it's first screen and I have to choose the right combination even though I raised message as Error, it's repeating same thing. Please give me any suggestion on this issue.

Thanks & Regards,

Seshu.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Feb 06, 2012 at 01:43 AM

    I have executed CMOD T.Code, we can find the 'include zxf05u01' program . I wrote the code in this include program. select statement is like this. check the code here.

    " select single land1

    spras

    into wa_t005

    from t005

    where land1 = i_lfa1-land1

    and spras = I_lfa1-spras.

    if sy-subrc <>0.

    • country &1 and language &2 are not the valid combination.

    message e015(zall) with I_lfa1-land1 I_lfa1-spras.

    endif."

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 05, 2012 at 05:19 PM

    Hi,

    Could you please post the code you enhanced?

    Your enhanced code should get called in the PAI of the initial screen.

    Debug the code and see.

    I hope the place where you have written your logic is not the right one.

    Check it out.

    Cheers,

    Raja.D

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 05, 2012 at 05:27 PM

    Can you please explain in detail where did you put this validation?

    Nabheet

    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.