‎2010 May 06 12:51 PM
Does anyone have information on the program 'GENERATE' ? Why is it used?
‎2010 May 06 1:10 PM
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
‎2010 May 06 12:54 PM
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
‎2010 May 06 1:02 PM
Prabhu,
there is a program in SE38 called 'GENERATE'....are u talking about the same...
it says in selection screen for 'all tables'....
‎2010 May 06 1:06 PM
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.
‎2010 May 06 1:10 PM
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
‎2010 May 06 4:16 PM
Marcin, agreed on this....but then why do we use this program...any idea on this? what is the functionality of this.
‎2010 May 06 4:26 PM
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
‎2010 May 10 4:09 PM
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.
‎2013 Dec 06 9:10 AM
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.
‎2010 May 06 4:19 PM
I'm not completely sure, but seeing those phases, seems like generate compiles the code.
‎2013 Jan 01 3:25 PM
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.
‎2016 Mar 21 12:30 PM