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

How to capture the ok-code from xd01 to my program

Hi All,

I have a big problem. I have created a t-code zxd01 and my program zsapmf02d. In my t-code, in my first screen it looks like xd01 first screen and extra some custom fields.

In my first screen it has buttons, if they click on "create" button on 1st screen i am calling "Call transaction xd01 and skip first screen". Its calling xd01 2nd screen and remaining things xd01 functionality. but when user presses any ok-code, its coming back to my program. I don't want do this thing for some ok-codes like "enter". How to do this? I am thinking if i capture the ok-code from xd01 and when its coming back to my progarm, i can tell it behave differently.

How to capture it? Is there any userexits to capture the ok-code, from there using export and import?

Its a high priority issue. Please help me.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2006 at 08:30 PM

    Sankar,

    Have tried calling form a Z transaction rather copying XD01's intitial screen. I think you might have missed something while copying.

    Usually there should not be a problem after you moved to second screen, it should behave normally. Suggest you to test with calling from Z program's button and tryout.

    Regds

    Manohar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2006 at 08:32 PM

    Hi,

    For the second screen, in the screen attributes try giving the same screen number in the next screen option.

    check it once.

    regards,

    keerthi.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2006 at 08:33 PM

    Hi Sankar,

    There is one user exit for XD01, FM: EXIT_SAPMF02D_001, under the enhancement SAPMF02D.

    Hope this helps.

    Regards,

    Sumant.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 13, 2006 at 08:46 PM

    Please check the answers in your How to capture the ok-code from xd01 to my program. Please close one of them for better focus.

    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.