11-13-2006 10:16 AM
after user exit EXIT_SAPLEBND_002 is created
and activated,
a purchase order is created using me21n.
when the purchase order is opened in me22n
release strategy tab is not appearing.
how to make the release strategy tab to appear.
in the user exit, parameter I_CEKKO,
has four fields related to release strategy.
usrc1 User field format character for release strategy
usrc2
usrn1
usrn2 User field numeric for release strategy
can the above four fields be used to make the release strategy
tab to appear again. if so, what values have to be filled.
Enhancement M06E0004
Changes to communication structure for release purch. doc
FUNCTION EXIT_SAPLEBND_002.
*"----
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_CEKKO) LIKE CEKKO STRUCTURE CEKKO
*" VALUE(IT_BEKPO) TYPE MMPUR_BEKPO OPTIONAL
*" VALUE(IT_BEKET) TYPE MMPUR_BEKET OPTIONAL
*" VALUE(IT_EKKNU) TYPE MMPUR_EKKNU OPTIONAL
*" EXPORTING
*" VALUE(E_CEKKO) LIKE CEKKO STRUCTURE CEKKO
*"----
INCLUDE ZXM06U22.
ENDFUNCTION.
11-13-2006 12:05 PM
Hi,
Release strategy is based on SAP fields .Besides that if you want to have some custom defined fields in addition to the standard SAP fields to determine your release strategy then you need to use the userexit mentioned by you.There you can use these 4 fields.In the userexit you can determine the value for these user defined fields and then pass these values to the export structure e_ceban.It is safer to pass the import structure i_ceban to e_ceban.Then determine the values to be passed for your user defined fields and also pass this to the export structure e_ceban.
Hope this will help you.
Pravat.
11-13-2006 12:05 PM
Hi,
Release strategy is based on SAP fields .Besides that if you want to have some custom defined fields in addition to the standard SAP fields to determine your release strategy then you need to use the userexit mentioned by you.There you can use these 4 fields.In the userexit you can determine the value for these user defined fields and then pass these values to the export structure e_ceban.It is safer to pass the import structure i_ceban to e_ceban.Then determine the values to be passed for your user defined fields and also pass this to the export structure e_ceban.
Hope this will help you.
Pravat.
11-13-2006 12:51 PM
Release strategy tab is not appearing for transaction me22n for the purchase order, after activating the user exit M06E0004 .
The code inside the user exit checks the qunatity of material posted. If the quantity is above certain limit (eg; 4000 bags) then user exit will restrict the creation of purchase order.
Though the user exit is for changes to communication structure for release
purchase order, Code currently inside it is to restrict the quantity being posted.
When the user exit is activated, how to make the release strategy tab to appear
in me22n for the purchase order created.
11-13-2006 4:20 PM
Hi,
Are there any custom defined characteristics for your release strategy ? SAP gives you certain characteristics like Purchase Order value, material group etc on which Release strategy can be determined but other than SAP defined fields if you want some other fields then you need to pass the value for this particular field in your exit.
Also if you are using this exit , are you passing the values to the export structure e_cekko ? You can use :
move-corresponding i_cekko to e_cekko.
One more point is if you have custom defined fields for your exit then that has to be also passed to c_ekko.
The important point here is that if you are using this exit then all the characteristics that you have defined in config for release strategy determination has to be passed to the export structure.If any of them is blank then release strategy will not be determined.
Pravat.
11-13-2006 7:07 PM
Make sure that the first statement in your user exit coding should be E_CEKKO = I_CEKKO failing which E_CEKKO will always be passed blank and hence no release strategy and no tab for it.
Let me know if you still have an issue...
Regards
12-18-2006 2:50 PM
Hi Krishna,
I have a requirement where I have to trigger a message when a PO is created of type 'REWORK' (BSART field). I am using transaction ME22N. I have found a list of user exits. I have even tried to add my code as:
if sy-tcode = 'ME21N'.
if I_CEBAN-BSART = 'ZRW'.
MESSAGE w000(ZPO_MSG).
endif.
endif.
But this is not getting triggered. What could be the problem?
Do you have any idea which user exit I can use for my requirement? Is my code correct to trigger a message?
Kindly help!
Thanks
Gopal
12-19-2006 9:36 AM
use the user exit M06E0004.
here use the function module
FUNCTION EXIT_SAPLEBND_002.
*"----
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_CEKKO) LIKE CEKKO STRUCTURE CEKKO
*" VALUE(IT_BEKPO) TYPE MMPUR_BEKPO OPTIONAL
*" VALUE(IT_BEKET) TYPE MMPUR_BEKET OPTIONAL
*" VALUE(IT_EKKNU) TYPE MMPUR_EKKNU OPTIONAL
*" EXPORTING
*" VALUE(E_CEKKO) LIKE CEKKO STRUCTURE CEKKO
*"----
INCLUDE ZXM06U22.
ENDFUNCTION.
in function module use i_cekko to check the bsart field and give message.
you have to pass i_cekko to e_cekko structure as exporting parameter. else
it will block the release of purchase order.
12-19-2006 10:28 AM
Hello,
First Deactivate Enhancement <b>M06E0004</b> and try to see values of I_CEKKO structure by debugging the Purchase Order and then activate M06E0004 exit now and give same values what you have seen in debugging .
**********Poorna**********