Application Development and Automation 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: 
Read only

Routine (VOFM) problem

vallamuthu_madheswaran2
Active Contributor
0 Likes
500

Hi friends,

In TCode VOFM, I have created two output types zet1 for shipment(V7) and another one is zet2(V3). but the print program is same which is assigned to nace for V7 and V3

in billing v3: if the routine(TCode VOFM) gives sy-subr = 4 then nace is not triggered it's working fine.

BUt(MY Problem), in shippment(V7): if the routine(TCode VOFM) gives sy-subrc =4 then the nace(print program) is triggered. How we can restrict.

Thanks & Regards,

Vallamuthu.M

1 ACCEPTED SOLUTION
Read only

eduardo_hinojosa
Active Contributor
0 Likes
379

Hi,

Two possibilities:

1. In tcode VOFM, when you do the entry for this subroutine, you have a field for this appl.

2. In the ABAP coding, set a check for the values of komkbv7 (for V7) and for komkbv3 (for V3). Or check the value of NAST-KAPPL or XNAST-KAPPL. Set a breakpoint and check what it's your best option to filter it.

I hope this helps you

Regards

Eduardo

1 REPLY 1
Read only

eduardo_hinojosa
Active Contributor
0 Likes
380

Hi,

Two possibilities:

1. In tcode VOFM, when you do the entry for this subroutine, you have a field for this appl.

2. In the ABAP coding, set a check for the values of komkbv7 (for V7) and for komkbv3 (for V3). Or check the value of NAST-KAPPL or XNAST-KAPPL. Set a breakpoint and check what it's your best option to filter it.

I hope this helps you

Regards

Eduardo