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: 

How to add subroutine in MV45AFZZ called in Z include

former_member329859
Participant
0 Kudos

Hi All,

My requirement is to add subroutine (PERFORM) in userexit MV45AFZZ and call its (FORM-ENDFORM) in my own Z include.
it gives dump if I calls created Z include type 'I'.

Please guide me how do i approch.

BR

Gaurav    

5 REPLIES 5

Former Member
0 Kudos

Hi,

Please change type of your Z include to "S" (Subroutine Pool).

BR,

Vijay

Former Member
0 Kudos

Hi Gaurav,

instead of subroutine, pls create like below code line in MV45AFZZ.

Ex..

INCLUDE YXXX_MV45AFZZ_XXXX IF FOUND.

and include program attribute should be....

Type: INCLUDE program

Status: SAP Standard Production Program

Application: Sales

Thanks and Regards

Srimanta

former_member192023
Active Participant
0 Kudos

Hi Gaurav,

May be you should include <your include report> in the top of enhancement form first

before you call your subroutine forms.

Regards

thanga_prakash
Active Contributor
0 Kudos

Hello Gaurav,

You can write like below.

PERFORM <routine name>(Include name).

Regards,

Thanga

kiran_k8
Active Contributor
0 Kudos

Gaurav,

Why you want to create an INCLUDE ? If you are in ECC create an IMPLICIT enhancement instead of INCLUDE so that it will go through even during Upgrade at a later date.

K.Kiran.