Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Specific subroutine in VL01N (SAPMV50A) that saving the transaction

Former Member
0 Kudos

Hi All,

I'm looking specific subroutine which is saving the DN in VL01N and subroutine that processing Output Type.

Let says, we have setup Output type "Send Immediately (when saving the application)".

I also want to know, after we click "save" button which one (subroutine/source code) will be execute first between saving and process output type?

One more thing, if saving process is done in UPDATE TASK, any possibility that delay will happen?

<Reward offer removed by moderator>

Thanks,

Regards,

Sham Zairusdee

Edited by: Vinod Kumar on Oct 19, 2011 1:47 PM

1 ACCEPTED SOLUTION

eduardo_hinojosa
Active Contributor
0 Kudos

Hi Sham,

Check the settings for your output type in tcode V/34. Check if the access sequence is proper. It will be used in tcodes VV21 and VV22.

After, in IMG, ie: tcode SPRO / F5 / Logistic execution / shipping / basic functions / output control / output determination / mantain output for outbound deliveries / output det.procedure for any procedure, check for this output type what VOFM requirement you have. Usually it manages values in status to avoid process the message (sy-subrc = 4). But if it's blank, it must be created inmediatly if you have entries in VV22 for this output setting in date/time the value 4 (send inmediatly).

To check that you don't have userexits working, check th1,e includes MV50AFZ+ (where + is a single character: 1, L, P, Z...)

I hope this helps you

Regards

Eduardo

5 REPLIES 5

Former Member
0 Kudos

why not use trace, debug and/or or hobble mode (/H) and watch what happens?

0 Kudos

Yes I did, and complicated and required a lot of time. I'm asking this question if someone already done and it could help me find the answer faster because I still have more issue need to be solved.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi Sham,

Check the settings for your output type in tcode V/34. Check if the access sequence is proper. It will be used in tcodes VV21 and VV22.

After, in IMG, ie: tcode SPRO / F5 / Logistic execution / shipping / basic functions / output control / output determination / mantain output for outbound deliveries / output det.procedure for any procedure, check for this output type what VOFM requirement you have. Usually it manages values in status to avoid process the message (sy-subrc = 4). But if it's blank, it must be created inmediatly if you have entries in VV22 for this output setting in date/time the value 4 (send inmediatly).

To check that you don't have userexits working, check th1,e includes MV50AFZ+ (where + is a single character: 1, L, P, Z...)

I hope this helps you

Regards

Eduardo

0 Kudos

Hi Eduardo

This is what I'm looking for. It seems, I have no problem. I have gone through the checking. Thanks for helping me analyze the situation faster.

maciej_domagaa
Contributor
0 Kudos

I don't know what your goal is - but I think you should not be afraid that your output, set as "send immediately", would not find its document because the document has not been written to database yet during processing the output.

I think you can assume that if the NAST record exists in the database then an appropriate LIKP record also exists.

If you want to find out which update modules are called when saving the delivery you may try like this (on your test system):

1. Turn off updates - transaction SM13, press F6.

2. Create a delivery with transaction VL01N and save.

3. In transaction SM13 you can display update records containing specific update function modules calls awaiting for its execution.

4. Don't forget to turn on updates back again - transaction SM13, press F5.

regards