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: 

PO Email Subject retrieves wrong Vendor Name

Former Member
0 Kudos

I am having an error on the subject of the PO sent by email and I was wondering if somebody could please guide me on how to solve it. I'll show it with an example:

First Case: PO 123 has Vendor ABC with Description CompanyABC. SAP then sends an email with subject "PO: 123 Vendor CompanyABC.

Second Case: PO 456 has Vendor DEF with Description CompanyDEF. SAP then sends an email with subject "PO: 456 Vendor CompanyDEF.

First and second case are ok but suddenly suddenly,

Third Case: PO 789 has Vendor GHI with Description CompanyGHI. SAP then sends an email with subject "PO: 789 Vendor CompanyZZZ.

It works fine for several cases and for other cases, it gets another Vendor.

I have searched the internet and the SDN forum to try and understand why I am having this error. I couldn't find any clue to help me solve this issue. I am working under ECC 6.0 and this is the configuration that is actually working for PO Titles:

- Output Type NEU and on processing routines have a new entry - medium 5

- Using standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and custom form YYMEDRUCK_NEU

- Then in PARTNER FUNCTION I have an entry: medium - 5 and function - VN

- For subject of the mail in Mail Title and Texts I have --> PO number &EKKO-EBELN& Vendor &LFA1-NAME1&

- Under General data -> Replacement of text symbols, program is SAPMM06E and Form Routine is

TEXT_SYMBOL_REPLACE

- Vendor's Email are maintained as well.

- Communication Methodt is CS01 with the Cover Page Text value --> PO number &EKKO-EBELN& Vendor &LFA1-NAME1&

Have any of you got a clue where may I look to try and see what is going on?

Thanks a million.

Regards

Ernesto

5 REPLIES 5

Former Member
0 Kudos

Look at the YYMEDRUCK SAPScript to see if someone wrote something there...get the address number from LFA1 and check table ADRC to see if the name(s) are different there... The name should be coming from SAP's central address management (table ADRC).

0 Kudos

Hello BreakPoint,

Thanks for your answer. I checked Sapscript YYMEDRUCK_NEU and found nothing there that could be changing the names. I also checked the Addresses number from LFA1 and ADRC and everything is consistent. What I saw is that this happens with two consecutive POs and the second one is getting the Vendor name from the first one.

PO 45000001 Name ABC

PO 45000002 Name ABC when it should be DEF.

Thanks & Regards,

Ernesto.

0 Kudos

The title for the email shouldn't have anything to do with the layout set. The title is generated when the output record is created for NAST (field TDCOVTITLE), not during actual output processing. If you are creating multiple PO's at the same time (such as with ME59N), I would trace the call with SE30 or set a breakpoint in TEXT_SYMBOL_REPLACE and try to figure out what's going on. This far down the road, there should be an OSS note that covers the issue or you've got a user exit/BADI that's interfering.

0 Kudos

Hello Brad,

Thanks for your answer. I followed your proposed steps and found nothing unusual on the processing of the documents. I couldn't find any note regarding this problem. Instead I found a note saying PO &EKKO-EBELN& is not showing, but this is not my case.

Thanks

Ernesto

Former Member
0 Kudos

No solution for this.