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

WFMC_PREPARE_SMART_FORM - device type problem

vallamuthu_madheswaran2
Active Contributor
0 Likes
2,575

Hi,

I have created the logical destination "ZMAIL" to send a mail for vendor address.

It's working fine in ME21N/ME22N. if we go to ME9F then it's goes to print it's not sending a mail.

I'm using the FM "WFMC_PREPARE_SMART_FORM".

In ME21N/ME22N, pe_device value is 'MAIL'

In ME9F, pe_device valie is 'PRINTER.' (It's wrong)

On what basis, This function module select the device type. how to change it.

Thanks with Regards,

Vallamuthu M

2 REPLIES 2
Read only

Former Member
0 Likes
1,262

Hi,

Try to check the FM logic for ME9F execution, i can see that there is a call to one FM ADDR_GET_NEXT_COMM_TYPE to get the communication type based on the TCODE (different Communication Strategy's can be defined in SAP). And then based on the communication type your Communiation device can be determined in another FM - CONVERT_COMM_TYPE_DATA.

Hope it can help you to understand the problem.

Br..

Dwaraka


Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,262

A simple debug in this FM will tell you the reason. Please switch on the debugger and check and learn for yourself:)