cancel
Showing results for 
Search instead for 
Did you mean: 

Send MEDRUK for e-mail

Former Member
0 Kudos

Hello ALL!

Somebody know how can I send MEDRUK for e-mail?

Best regards.

Luciano

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Andrew Marshall,

Your suggestion was very usefull, but I'm still getting some problems when I try to read the OTF using READ_OTF_FROM_MEMORY function, its return with the sy-subrc = 1 (memory_empty), since I've already tried to use this function with memory_key parameter filled out and in blank, however in both cases it's didn't work. Does anybody has some suggestion to fix this problem?

Best regards.

Former Member
0 Kudos

The OTF data is placed in memory in form ENDE in include LECP_POF1K with the following function:

CALL FUNCTION 'SAVE_OTF_TO_MEMORY'

EXPORTING

memory_key = nast-objky

TABLES

otf = otf_data.

I would suggest you put a breakpoint here and check in debug if what is being exported to memory is non blank, and what the memory key value is - It may be you need leading zeros on the PO number for example to match the key.

Andrew

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi..

In one of the include programs of the main program of this print program,

you'll hav one include which will discuss about sending PO by mail.

Also, there is one function module for the same:

ME_PRINT_PO or

go to se80..provide function group as medruck

under subroutine...you'll get one subroutine Prepare_.... will discuss about sending po by mails.

Thanks,

Shamim

Former Member
0 Kudos

Hi,

In order to send PO, your Basis team must configure the system first so that external email can be send out from SAP. If it is not configured, no settings you do on MM will work.

1. You must maintain email address in vendor master data.

2. The same applies to your user master data. For the output type for default values, a communication strategy needs

to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the

Customizing via the following path:

(SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy).

As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).

3. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.

4. In the condition records for the output type (for example, Transaction MN04), use medium '5' (External send).

5. You can use Transaction SCOT to trigger the output manually. The prerequisite for a correct sending is that the node is set correctly. This is not described here, but it must have already been carried out.

6. To be able to display, for example, the e-mail in Outlook, enter PDF as the format in the node.

Regards

Sudheer

Former Member
0 Kudos

Check the posting "Email PO Sapscript" by Monica Araoz in this Form Printing forum.

This has a lot of comments about this process.

Andrew

Former Member
0 Kudos

Hi,

Check the following

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/smartformtoMailasPDF+attachment&

Hope this will solve your problem.

Reward if helpful.