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

Purchase Order - Partner functions and Address

justin_santhanam
Active Contributor
0 Kudos
2,756

Dear all,

I need your inputs on the below requirement.

When creating PO (ME21n), we have requirement that OA Vendor's address has to be displayed on the Address tab instead of default VN Vendor's address. I have achieved this requirement using the BADI. But when the users to the Partners tab and change the OA Partner and come back to the Address tab, it's still referring to the old OA vendors address (still we are in the PO create). However if the save the PO, I have handled the logic to update the address to the new OA vendors address. But the requirement is after they change the OA vendor if the come to the Address tab, the address should be reflected right away. I'm not exactly sure where to handle this code. Any help is much appreciated.

Thanks,

Justin.

1 ACCEPTED SOLUTION
Read only

JL23
Active Contributor
0 Kudos
1,298

Instead of overwriting the vendor address you should better create a custom tab to display the Order Address. Use ME_GUI_PO_CUST and ME_PROCESS_PO_CUST

5 REPLIES 5
Read only

JL23
Active Contributor
0 Kudos
1,299

Instead of overwriting the vendor address you should better create a custom tab to display the Order Address. Use ME_GUI_PO_CUST and ME_PROCESS_PO_CUST

Read only

0 Kudos
1,298

Dear Jürgen,


Thank you so much for the response. There are different document types need to be handled differently.. If I ask the buyer to go for custom tab (OA Address) for just one Doc type, then they won't agree to it.. Just to be consistent across the board, the address should be going to only Address tab.. As you know ,I'm not overwriting, just referring to the ADRNR for OA Address.. There is no other exits that can be called if the user clicks the Address tab? On the fly I'll determine the ADRNR and display it to them.. Just need to find the correct exit..

Justin.     

Read only

JL23
Active Contributor
0 Kudos
1,298

in my view is SAP already consistent as it always shows the vendor address, the order address is a partner only,  the address itself is not shown in ME23N. Otherwise SAP would need to show the invoice presenter address too, and whatever other partner functions you are using.

So you are actually overwriting what SAP is showing in standard, and if you do this only for one document type then you are certainly no longer consistent in the way how the data from this screen shall be interpreted by the user. You are just giving him another address in the same screen, which is from my experience more confusing than putting it into an extra screen, which is anyway the desired way to deal with customer code and extra fields.

Read only

0 Kudos
1,298

Jürgen,

Let me talk to the business tomorrow and see what's their expectations are.. I got what you are saying, but let me talk to the business and get their inputs.

Thank you again!!

Justin.

Read only

0 Kudos
1,298

Hi Justin,

Were you able to handle this and if you remember, can you please let us know, how did you handle this?