Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

default values in purchase order when using ME21

Former Member
0 Likes
1,944

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

5 REPLIES 5
Read only

naimesh_patel
Active Contributor
0 Likes
1,279

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

Read only

Former Member
0 Likes
1,279

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.

Read only

Former Member
0 Likes
1,279

Hi,

Since it's not a complicated logic, you may go in for Field Exits.

Regards

Raju Chitale

Read only

Former Member
0 Likes
1,279

The challenge is finding a usable field exit for tcode ME21. I have yet to find one that will facilitate the changes.

Read only

0 Likes
1,279

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