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: 

MV45ATZZ is commanded out.Is it still can be used?

0 Kudos

Hi

I want to use include MV45ATZZ of PG SAPMV45A to define a global variable field.But MV45ATZZ is commented out.Is the include still can be used.

Or should I use MV45ATOP?

Can anybody please help.

Thanks.

1 ACCEPTED SOLUTION

DominikTylczyn
Active Contributor
0 Kudos

Hello yolosap

MV45ATZZ is included in MV45ATOP. If you need to define custom global data in SAPMV45A, you should definitely declare it in MV45ATZZ, not in MV45ATOP directly. That's what suggested in comments in MV45ATZZ:

***INCLUDE MV45ATZZ .

************************************************************************
*                                                                      *
* This include is reserved for user modifications                      *
*                                                                      *
* Additional data definitions                                          *
*                                                                      *
* The name of additional data definitions should begin with 'ZZ'.      *
*                                                                      *
************************************************************************<br>

Best regards

Dominik Tylczynski

7 REPLIES 7

FredericGirod
Active Contributor

Global variable ? in a Standard program ? why ? do you expect to retrieve information from point 1 in point 2 ?

0 Kudos

Yes,i want to transfer information between two userexit. ABAP memory is useful. However,The customer doesn't want me to use ABAP memory.So, i need to find another way.

FredericGirod
Active Contributor

You have two ways :

- Design pattern singleton (so scary name for a simple trick)

- ABAP Shared memory object (trans. shma I think), little bit complex, but more powerfull when you have sevaral LUW/transaction ..

DominikTylczyn
Active Contributor
0 Kudos

Hello yolosap

MV45ATZZ is included in MV45ATOP. If you need to define custom global data in SAPMV45A, you should definitely declare it in MV45ATZZ, not in MV45ATOP directly. That's what suggested in comments in MV45ATZZ:

***INCLUDE MV45ATZZ .

************************************************************************
*                                                                      *
* This include is reserved for user modifications                      *
*                                                                      *
* Additional data definitions                                          *
*                                                                      *
* The name of additional data definitions should begin with 'ZZ'.      *
*                                                                      *
************************************************************************<br>

Best regards

Dominik Tylczynski

Thank you! I finded it.

0 Kudos

Got it!Thank you so much!