‎2008 May 09 1:20 AM
Hi all ,
When i am going thru the exits , i found includes starting with "ZX" . But when i click on that its giving a message that these are reserved for includes of exit function groups ???
What's that . How can we use exits . I know the process of finding exits . I just want to implement it ..
Please Help .
Points will be Rewarded.
Thanks
Raj
‎2008 May 09 7:36 AM
Hi Raj,
Thatz only a warning message. Press Enter.
Then you can code inside the ZX... include. After putting your code activate the include and the function module. Then go to Transaction CMOD and create a project and click on the 'Enhancement Assignments' button and include the enhancement of your include (which u can get from SMOD). Then activate the project u have created through CMOD. Your customer exit is activated now and will be called in the standard program.
Regards,
Soumya.
‎2008 May 09 1:23 AM
Hi,
It is only warning. You can go to transaction to SE38 and implement include there. Just put name of your include and ignore warning message.
Cheers
‎2008 May 09 1:26 AM
Hi Raj ,
In EXITs always a include program starting with z is given, so that customer can write their own code in this include according to their requirement.
when you implement it, Its stored in the same function group in which the exit exists. thats why you are getting that message.
Thanks
Yogesh Gupta
‎2008 May 09 2:10 AM
Hi Raj,
The message is a warning message,when it shows, you just press ENTER,then the system will ask if you want to implement the exit, you just choose Yes, then you can see the function editor.
Regards,
Pole
‎2008 May 09 6:49 AM
hi,
whn u click on zexit u get warning message press enter u can
go inside and write code.
iam sending u 1 sample code implement this u can come to know there use.
this exit prevents u from creating duplicate material text for same plant in mm01 tcode.
exit: MGA00001
func mod: EXIT_SAPLMGMU_001
reward points if hlpful.
&----
*& Include ZXMG0U02 *
&----
******************************************
author :
******************************************
tables : mara,makt.
data : it_mara type mara occurs 0 with header line,
it_makt type makt occurs 0 with header line,
it_marc type marc occurs 0 with header line,
it_mbew type mbew occurs 0 with header line.
select * from mara into table it_mara .
if it_mara[] is not initial.
select * from makt into table it_makt for all entries
in it_mara where matnr = it_mara-matnr.
endif.
break tabap3.
loop at it_makt.
if stext-maktx = it_makt-maktx.
if it_makt[] is not initial.
select * from marc into table it_marc for all entries
in it_makt where matnr = it_makt-matnr.
select * from mbew into table it_mbew for all entries
in it_makt where matnr = it_makt-matnr.
endif.
read table it_marc with key matnr = it_makt-matnr.
if wmarc-werks = it_marc-werks.
read table it_mbew with key matnr = it_makt-matnr.
message e001(zgm_msg).
endif.
endif.
clear it_makt.
clear it_marc.
clear it_mbew.
endloop.
reward points if hlpful.
‎2008 May 09 7:36 AM
Hi Raj,
Thatz only a warning message. Press Enter.
Then you can code inside the ZX... include. After putting your code activate the include and the function module. Then go to Transaction CMOD and create a project and click on the 'Enhancement Assignments' button and include the enhancement of your include (which u can get from SMOD). Then activate the project u have created through CMOD. Your customer exit is activated now and will be called in the standard program.
Regards,
Soumya.