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: 

Archiving after email is send from output type

Former Member
0 Kudos

Hello Experts,

I am using FM SO_DOCUMENT_SEND_AP1 function module to send email from output type after Invoice is saved. (Output type is script based). As this is custom functionality to send email, standard SAP does not archive the output. Is there any way to Archive this output?

Thanks,

Shravan

1 ACCEPTED SOLUTION

Former Member

Resolved.

Convert the OTF to PDF. Use FM ARCHIV_CREATE_OUTGOINGDOCUMENT and pass PDF data and archive parameters to this FM.

4 REPLIES 4

Former Member
0 Kudos

Shravan, see if the below doc in SCN is helpful.

V.

former_member220028
Active Contributor
0 Kudos

Hi,

ive done the same. unfortunately i forgot the fm/prog name.

you can debug Prog RSNAST00 and call the relevant sub-Programmroutine

LG

Stefan Seeburger

Former Member
0 Kudos

Hi Shravan,

Archiving is nothing, but SELECT, DELETE, UPDATE operations on DB, each operation mapping to a REPORT. You need define your own archive object in AOBJ.

And you could refer reprots from other standard archive objects to write you code. 

regards,

Archer

Former Member

Resolved.

Convert the OTF to PDF. Use FM ARCHIV_CREATE_OUTGOINGDOCUMENT and pass PDF data and archive parameters to this FM.