‎2007 Oct 25 9:18 PM
Need to add field default settings for SAP transaction code ME21 (create PO). The fields we want to add defaults to are: valuation type (EKPO-BWTAR) to default a text "ATT" and storage location (EKPO-LGORT) to default a value "03" when the user is creating a purchase order with transaction code ME21. I cannot find any exits or BAPI that will allow this and users do not want to use Enjoy screens. All help appreciated michaeljames8 at hotmail.com
‎2007 Oct 25 9:25 PM
Hello ...
You can achieve it by maintaing the default parameters in the User master records for every users in t-code SU01.
go to su01 > enter user > enter > parameters.. enter following details.
................. Parameter id --- value
For valuation type : BWT --- ATT
Storage locaiotn: LAG --- your storage location.
Regards,
Naimesh Patel
‎2007 Oct 25 9:49 PM
appreciate the quick reply but the value for "plant" varies depending on the material and you cannot populate storage location without plant from a PID or default from "users profile". I was hoping for a BAPI or exit or some other fix.
‎2007 Oct 26 9:46 AM
Hi,
Since it's not a complicated logic, you may go in for Field Exits.
Regards
Raju Chitale
‎2007 Oct 26 5:24 PM
The challenge is finding a usable field exit for tcode ME21. I have yet to find one that will facilitate the changes.
‎2007 Oct 26 10:53 PM
Hi,
You can create the field exits using the program RSMODPRF.
Execute the program RSMODPRF and then give the data element of the field (BWTAR or LGORT).
and Execute again.
Then it takes you to function module screen with the name of the function FIELD_EXIT_BWTAR for BWTAR field and FIELD_EXIT_LGORT for LGORT.
Then inside the function module just give this code.
output = '123'.
Then by default you can see that value while you run the transaction.
Hope it helps.
Reward if it is useful.
Thanks,
Srinivas