Skip to Content

SAPSCRIPT: How does MB1B call form WASCHEIN ??

Hi

I'm new in SAPSCRIPT, so i was reading some documentation about this.

Now i need to do some development, in MB1B (SAPMM07M) when we make a movement and press Save, the transaction generates a Document Number and generates a spool, with movement information. I need to make some modifications to that spool form, so the first things i investigated is this form is WASCHEIN and it is generated in SAPM07DR program, in ENTRY_WA03 routine. (Actually i didn't found that information myself, but the functional personnel told me that; I really dont' know how to find the code wich fill the Sapscript form).

I suppose i need to make a copy of WASCHEIN form and make in this new form the modifications.

But, how can i change that SAPM07DR uses the new form instead the standard WASCHEIN form ??

I was looking in SAPMM07M and i did not found where it calls to SAPM07DR, and i was looking in SAPM07DR and i did not found where it 'calls' the WASCHEIN form; i could not even make the debugg stop in SAPM07DR (not with normal debugg and nor with 'Update debugg'). I see in SAPM07DR the OPEN_FORM call, but even setting breakpoints in this lines, the debugg does not pass by it.

So, how can i make the changes to fill the new fields in the new form (based in WASCHEIN) ??? do i nedd to make a copy of SAPM07DR ?? but where does it calls to WASCHEIN form so i can change this call ??

Please help !!

Thanks

Frank

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 20, 2005 at 05:38 PM

    HI Frank,

    If I understand your problem correctly, The Transaction's underlying program picks the default output type. This output type has a Program attached to it. This program actually call the SAPSCRIPT Function modules.

    To have your own layout, you do not need to copy SAPMM07M, but create a Z program. Attach it to a new output type. The Z Program should have the custom logic.

    Thanks,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Srinivas

      Thanks, that transaction NACE is the key for make the sapscript form.

      But, how can i set the processing mode ?

      I was trying set breakpoints at MB1B and at SAPM07DR entry_wa03 rotuine, then i execute MB1B, it stops at breakpoint, i select 'Update Debugging', and i make the save action; but even so the debugger pass by SAPM07DR.

      That because i need to find the code wich fills the WASCHEIN form, for agregate there my new code.

      Thanks a lot !!

      Frank

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.