Application Development 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: 

EXIT on Storage Location.

Former Member
0 Kudos

Hi all,

i've to do an exit on fiel EKPO-LGORT bacause i've to not activate a Storage Location in TCode:

ME51N --> Create Purchase Requisition

(field MEREQ3211GRID-LGOBE)

ME52N --> Change Purchase requisition

(field MEREQ3211GRID-LGOBE)

ME21N --> Create Purchase Order

(field MEPO1211-LGOBE)

ME22N --> Change Purchase Order

(field MEPO1211-LGOBE)

I hope someone help me bacause i don't hane experience in EXIT!

Thanks,

Alex.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

Steps for Creating Field exit is

They are 2 ways to create Field Exits.

1. The following are the steps for First procedure.(field exit)

 Go to CMOD Tcode

 On the same Screen, Go to Command Prompt and Type PRFB.

 Go to Path Field exit -> Create

 Type the Data Element for which you want to create Field Exit

 Weu2019ll got o Function Module Screen (i.e., SE37)

 Click on create button. Before this , Create a Function Group.

 Enter the details.

 Click on source code and write the logic u2026

 At last write output = input.

 Activate the Function module.

 Go back(F3) 2 times.

 Check the Data element and Click on Button Assign program/screen

 Give the Programme name and Screen name.

 Save itu2026.Field Exit is createdu2026u2026u2026

2. The following are the steps for the Second procedure(field_exit1)

 Go to SE38 Tcode.

 Type the Program name RSMODEPRF.

 Click on F8. Type the Data Element.Clcik on F8.

 Weu2019ll got o Function Module Screen (i.e., SE37)

 Click on create button. Before this, Create a Function Group.

 Enter the details.

 Click on source code and write the logic u2026

 At last write output = input.

 Activate the Function module.

 Go back (F3) 2 times.

 Check the Data element and Click on Button Assign program/screen

 Give the Programme name and Screen name.

 Save itu2026. Field Exit is createdu2026u2026u2026

Regards,

deepthi.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Is it a field exit that you are trying to implement?

If so run RSMODPRF via SE38.

Press execute at the data element selection screen.

Select - Field Exit --> Create from the menu.

Implement the logic you require in the function module it gives you.

Then assign the field exit to the programs and screens that you have mention via the same program RSMODPRF.

Regards,

Darren

0 Kudos

Hi,

thanks for informations but i've to not activate only one Storage Location:

for example:

my Storage Location are

01 - London

02 - Rome

03 - New York

I've to not activate 02 - Rome

Thanks,

Alex

Former Member
0 Kudos

hi,

Steps for Creating Field exit is

They are 2 ways to create Field Exits.

1. The following are the steps for First procedure.(field exit)

 Go to CMOD Tcode

 On the same Screen, Go to Command Prompt and Type PRFB.

 Go to Path Field exit -> Create

 Type the Data Element for which you want to create Field Exit

 Weu2019ll got o Function Module Screen (i.e., SE37)

 Click on create button. Before this , Create a Function Group.

 Enter the details.

 Click on source code and write the logic u2026

 At last write output = input.

 Activate the Function module.

 Go back(F3) 2 times.

 Check the Data element and Click on Button Assign program/screen

 Give the Programme name and Screen name.

 Save itu2026.Field Exit is createdu2026u2026u2026

2. The following are the steps for the Second procedure(field_exit1)

 Go to SE38 Tcode.

 Type the Program name RSMODEPRF.

 Click on F8. Type the Data Element.Clcik on F8.

 Weu2019ll got o Function Module Screen (i.e., SE37)

 Click on create button. Before this, Create a Function Group.

 Enter the details.

 Click on source code and write the logic u2026

 At last write output = input.

 Activate the Function module.

 Go back (F3) 2 times.

 Check the Data element and Click on Button Assign program/screen

 Give the Programme name and Screen name.

 Save itu2026. Field Exit is createdu2026u2026u2026

Regards,

deepthi.

GauthamV
Active Contributor
0 Kudos

hi,

use this badi.

ME_PROCESS_PO_CUST

PROCESS_ITEM

IF_PURCHASE_ORDER_ITEM_MM

GET_DATA.