2008 Aug 22 7:36 AM
hi experts,
i have a following requirement as follows,
This exit will be valid for T Code: CO01, CO40, CO41 and Order Type PP02
Enhancement: PPCO0006
Exit Name: EXIT_SAPLCOZF_003
This check will be applicable for Base Stock and Ready Stock in WPJ1 and for Ready Stock in WPK1 Plant.
Order Number AUFNR should be populated as per Below Logic.
First Character Will be u2018Ju2019 for WPJ1(plant) and u2018Ku2019 for WPK1(plant) as per value in CAUFVD u2013 WERKS
Second and Third Character will be BS if Material CAUFVD-PLNBEZ contains BASE* ( ie IF material starts with base) and RS If Contains READY* ( ie IF material starts with ready ) for CAUFVD u2013 WERKS = WPJ1.
In WPK1 Plant , this is applicable only for RS.
Fourth and Fifth Character will be Year Code 08, 09 based on System Date
Last Four characters will be serial no. 0001, 0002.
SO FOR WPJ1 PLANT ORDER NO WILL BE JBS08 ( MATERIAL START WITH BASE),
JRS08 ( MATERIAL START WITH READY), AND FOR WPK1 PLANT
KRS08 ( MATERIAL START WITH READY ONLY)
Before assigning serial number First check Order Number AFKO- AUFNR in AFKO TABLE for availability of the next serial number by entering first five character on the logic described above i.e. JBS08* for WPJ1, Base Stock Material, 08 Year. Sort the output in Descending Order for AUFNR and take the Last Four Digit from the first Entry and add 1. If no entry is found then assign 0001,
SIMILARLY FOR JRS08 AND KRS08
i have created a project via cmod , assign the enhancement to it and have written the code into it ..
but its not working
regards
pankaj
hi experts,
i have a following requirement as follows,
This exit will be valid for T Code: CO01, CO40, CO41 and Order Type PP02
Enhancement: PPCO0006
Exit Name: EXIT_SAPLCOZF_003
This check will be applicable for Base Stock and Ready Stock in WPJ1 and for Ready Stock in WPK1 Plant.
Order Number AUFNR should be populated as per Below Logic.
First Character Will be u2018Ju2019 for WPJ1(plant) and u2018Ku2019 for WPK1(plant) as per value in CAUFVD u2013 WERKS
Second and Third Character will be BS if Material CAUFVD-PLNBEZ contains BASE* ( ie IF material starts with base) and RS If Contains READY* ( ie IF material starts with ready ) for CAUFVD u2013 WERKS = WPJ1.
In WPK1 Plant , this is applicable only for RS.
Fourth and Fifth Character will be Year Code 08, 09 based on System Date
Last Four characters will be serial no. 0001, 0002.
SO FOR WPJ1 PLANT ORDER NO WILL BE JBS08 ( MATERIAL START WITH BASE),
JRS08 ( MATERIAL START WITH READY), AND FOR WPK1 PLANT
KRS08 ( MATERIAL START WITH READY ONLY)
Before assigning serial number First check Order Number AFKO- AUFNR in AFKO TABLE for availability of the next serial number by entering first five character on the logic described above i.e. JBS08* for WPJ1, Base Stock Material, 08 Year. Sort the output in Descending Order for AUFNR and take the Last Four Digit from the first Entry and add 1. If no entry is found then assign 0001,
SIMILARLY FOR JRS08 AND KRS08
i have created a project via cmod , assign the enhancement to it and have written the code into it ..
but its not working
regards
pankaj
2008 Aug 22 7:44 AM
hi, use
EXIT_SAPLCOZV_001
user exit there you will find in export parameters HEADER_EXP
in this you can change the AUFNR field ............
2008 Aug 22 8:04 AM
hi shailaja ,
acording to speck i must use the exit
: EXIT_SAPLCOZF_003
regards
pankaj
2008 Aug 22 9:15 AM
hi,
but there is no provision to change aufnr in your exit...........
2010 Dec 23 6:49 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |