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

GENERATE Program in SE38

former_member212005
Active Contributor
0 Likes
5,090

Does anyone have information on the program 'GENERATE' ? Why is it used?

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
2,953

Generation always takes place automatically whenever you activate your program.

The sequence is Save -> Generate -> Activate .

I think this is a phase where the executable code is generated and stored in DB.

Regards

Marcin

11 REPLIES 11
Read only

Former Member
0 Likes
2,953

hi ,

in some times if you want to do any changes to report or any program ,

and you want to keep the program as a copy you can generate a version so that version holds the initial code.

later if you do not want the changes you made..you can retrive the old version.

And Generate is used in some time if you do some changes and changes are not reflected while executing, so at that time

you will generate the program to make it up to date.

Prabhu

Read only

0 Likes
2,953

Prabhu,

there is a program in SE38 called 'GENERATE'....are u talking about the same...

it says in selection screen for 'all tables'....

Read only

0 Likes
2,953

Enter the program name and go to documentation. It is referred as Generation Program for CASE Loop (Engineering Change Management).

Try executing/debugging the code to know more about its use.

Read only

MarcinPciak
Active Contributor
0 Likes
2,954

Generation always takes place automatically whenever you activate your program.

The sequence is Save -> Generate -> Activate .

I think this is a phase where the executable code is generated and stored in DB.

Regards

Marcin

Read only

0 Likes
2,953

Marcin, agreed on this....but then why do we use this program...any idea on this? what is the functionality of this.

Read only

0 Likes
2,953

Hi,

As you can tell from its title and the package it's assigned to, this is a functional program from the MM module. It is not called from a transaction code, but it's subroutines are called from function modules READ_COMPLETE_DOCUMENT and MATERIAL_CHANGE_DOCUMENTATION (again part of MM).

Are you going through every program in the system to work out when you might use it? Or is there a particular reason why you're so interested in this one?

Regards,

Nick

Read only

0 Likes
2,953

Hi Nick....yes there was a reason for this.

When we were accessing MM19 transaction..it was giving a short dump for which SAP suggested us to execute the 'GENERATE' program.

The GENERATE program involves tables:

MARA, MARC, MARD, MBEW, MVKE, MLGN, MLGT, MPOP, MFHM, MYMS, MARM, MKAL,

QMAT, MAEX, MEAN. It will not affect any other processes.

The program is required to regenerate the related includes. It will

create some source code for function group MALH.

Read only

0 Likes
2,953
Vineesh Varghese is right this prgm is used to regenerate source code wherefollowing tables are involved :

MARA, MARC, MARD, MBEW, MVKE, MLGN, MLGT, MPOP, MFHM, MYMS, MARM, MKAL,QMAT, MAEX, MEAN.

For example if you add or delete field in append of these tables and avoid any dump.

Read only

Former Member
0 Likes
2,953

I'm not completely sure, but seeing those phases, seems like generate compiles the code.

Read only

Former Member
0 Likes
2,953

https://help.sap.com/saphelp_erp2004/helpdata/en/d1/801a6e454211d189710000e8322d00/frameset.htm

It only creates a runtime entity but is not executed, and I guess the object is still inactive.

Read only

Former Member
0 Likes
2,953

This message was moderated.