04-02-2014 3:35 PM
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
04-03-2014 10:47 AM
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.
04-02-2014 3:50 PM
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
04-03-2014 10:00 AM
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
04-03-2014 10:28 AM
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
04-03-2014 10:47 AM
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
04-03-2014 10:51 AM
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
04-03-2014 11:23 AM
Hi Marco
Yes you should use PROCESS_ITEM.
Thanks and Regards
Srimanta
04-03-2014 1:23 PM
Hi Siva,
This worked, thanks a lot!
The method PROCESS_ITEM was indeed the right one.
Regards,
Marco
04-03-2014 10:47 AM
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.
04-03-2014 1:23 PM