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: 

Change default storage location during creation of PO

Former Member
0 Kudos

Hello all,

I have the following question.

When creating a purchase order using ME21N and filling in the items, the storage location is retreived from the material masterdata and displayed as default.

I need to change this default, because the storage location must be determined in another way.

So when entering the values for the item in the screen, another Stloc needs to be determined and displayed, overwriting the Stloc from the material master data.

For this I probably need a BAPI.

Can anyone tell me which BAPI to use and how I can implement this?

Because I also no experience with BAPI's.

Thanks in advance.

Kind regards,

Marco

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello ,

I think you required some theoretical Concept about BADI ME_PROCESS_PO_CUST before you start working on it,,,

Go to SE18 AND BADI Name ME_PROCESS_PO_CUST

Read the documentation and check the sample code by going the MENU GOTO -->Sample code ->Display

Then you will get idea to tackle your issue.

9 REPLIES 9

Former Member
0 Kudos

look at Tcode SE18

look for BADIs that are in package ME

a list of possibles will be returned

ME_PROCESS_PO looks a possible for you

Typical applications for this BAdI include:

o   Processing of your own objects

o   Processing of additional data for standard objects

o   Implementation of additional checks and derivations

o   Changing data in standard fields
    Note
    Ensure that data integrity is guaranteed.

o   Change in field selection

0 Kudos

Hi Steve,

Thanks a lot for your reply.

I'll have a look at this.

As I said I have no experience with BADI's

Do you know if there is a practical guide about this?

On how to implement BADI's as userexit.

Regards,

Marco

0 Kudos

Hi Marco,

Please use the BADI ME_PROCESS_PO_CUST

The Business Add-In (BAdI) ME_PROCESS_PO_CUST enables you to extend the business logic of the Enjoy purchase order on an individual basis.

Thanks and Regards

Srimanta

0 Kudos

Hi Srimanta,

Thanks for this info.

Do you also know which method I should use?

I need to change the displayed value for the storage location, on item level.

So when I create a PO (ME21N) and enter a PO item, the storage location must not be retreived from the material master data but using a different logic. That is, the storage location must depend on the PO type.

Can I use the method PROCESS_ITEM for this purpose?

Regards,

Marco

0 Kudos

Hi Van,

You need to goto SE18 -> give 'ME_PROCESS_PO_CUST'  in BADI Name - > Click on Enhancement Implementation at the header -> Create -> Give some implementation name starts with 'Z ->provide some short description -> Here you need to click on 'Interface' tab -> and double click on the method which serves your purpose.

I think you need to do the enhancement for storage location so you need to use the method 'PROCESS_ITEM'.

<text removes>

Thanks,

Siva

Message was edited by: Matthew Billingham - don't ask for points

0 Kudos

Hi Marco

Yes you should use PROCESS_ITEM.

Thanks and Regards

Srimanta

0 Kudos

Hi Siva,

This worked, thanks a lot!

The method PROCESS_ITEM was indeed the right one.

Regards,

Marco

Former Member
0 Kudos

Hello ,

I think you required some theoretical Concept about BADI ME_PROCESS_PO_CUST before you start working on it,,,

Go to SE18 AND BADI Name ME_PROCESS_PO_CUST

Read the documentation and check the sample code by going the MENU GOTO -->Sample code ->Display

Then you will get idea to tackle your issue.

Former Member
0 Kudos

Thak you all for the replies and help!

It works now!

Marco