‎2008 Jan 19 11:25 AM
Hi,
I need to implement a function exit for T.code MB31 to change the storage location of goods(MBCF0009).
In this regard can anyone please guide me with step by step procedure.
Thanks N Regards .
Priya.
‎2008 Jan 21 6:46 AM
Hi priya,
>Go to transaction SMOD and give ur exit name .MBCF0009
>Select the components radio button and select display.
> double click on the function module name EXIT_SAPMM07M_009.
>double click on the include that gets displayed.
>you will get a warning message.
>now just press the enter key.
>you will get a message Include ZXMBCU09 does not exist,Create object.
>give yes.
>Now u canwrite ur code in the include
reward points if useful
Regards
Priya
‎2008 Jan 19 11:31 AM
Hi Priya,
To check for the suitable badi and exits, Go to transaction SE24 and give the Object type as CL_EXITHANDLER and click on Display button.
Double click on method GET_INSTANCE, put a break point on case statement.
Execute your transaction and look for variable EXIT_NAME at your scenario then it will show the available badi's.
Reward points if helpful
Regards,
kamalapriya.
‎2008 Jan 21 6:46 AM
Hi priya,
>Go to transaction SMOD and give ur exit name .MBCF0009
>Select the components radio button and select display.
> double click on the function module name EXIT_SAPMM07M_009.
>double click on the include that gets displayed.
>you will get a warning message.
>now just press the enter key.
>you will get a message Include ZXMBCU09 does not exist,Create object.
>give yes.
>Now u canwrite ur code in the include
reward points if useful
Regards
Priya
‎2008 Jan 22 1:14 PM
hi
Thanks priya ...from your response i got some idea,
could u guide me that how should i proceed with coding ,,,
Thanks n Regards
Priya
‎2008 Jan 22 8:20 PM
Hi Priya,
Once you create the include by double clicking , it is like coding for a Function module..
The values from the screen will be passed thru I_MSEG, I_DM07M,I_MKPF etc.
In Mseg u will have LGORT(storage location)..
based on the requiremnets , u can modify the LGORT and export it thru E_LGORT.
ALL THE BEST.
regards,
Leo.
‎2008 Jan 29 4:43 PM
Hi
Leo,
Thanks for the reply,
could u give me some sample code for the same .
Thanks N Regards.
Priya
‎2008 Jan 21 10:13 AM
Hi priya,
Just go the transcation MB31, just process the firsty screen
with some values ok then go thtough the system>status>program and the find the user exit MBCF0009. copy this user exit and find the availablity in SMOD. if the availability is there then go through CMOD and give a project name to your enhancement and put this user exit in your user exit in enhancement in CMOD the you will finding the Zinclude. in this u need to write the code what ever u wanted and after that activate the cmod project and the cahnges will reflect.
pls reward points if it is useful to you.
‎2008 Jan 22 6:51 AM
HI Priya,
First u create a project in CMOD and inside the project assign components as that exit MBCF0009.
Double click on the enhancement assignments i.e exit_XXXXX_xxx in this exit there is one include ZX_____
double clik on that include and press enter then it will created. after that write ur code and activate it.
activate the enhancement and activate the project, then only it will work.
Put a hard code break-point in the include where u r writing the code, then only u can find that it is triggering or not.
regards,
sirisha reddy
‎2008 Jan 23 6:03 AM
Hi Priya.
jus go to t-code called " SMOD:
jus hav ur exit " MBCF0009" in the enhancement name.
den test it.
window vil open.
EXIT_SAPMM07M_009 double click it.
den u get a window FM exit(se37)
below that dere vil b a include.
jus double click the include.
u get a include screen,
dere u want 2 write ur code.
make sure that that exit is nt already used,
y because if that exit is already used , jus want 2 de-activate the exit. i dnt think u no need to de-activate..
this is exit, nt badi, so -u cant re-use, but u can re-load it.
jus check for str locn
if mard-lgort = ' ur str locn name'
stts.
else
stts
endif.
hope u clear nw.
reward if its useful