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: 

Convert Script to PDF using RVADOPFO, w/o using spool and send via email

Former Member
0 Kudos

I want to convert output type script to pdf using the standard include RVADOPFO in the program. The output type is defined as medium '5' and comm starategy is also defined as INT(email) as want to send the output via email.

Now the Include RVADOPFO contains ADDR_KEY-ADDRNUMBER & ADDR_KEY-PERSNUMBER. Where to maintain this info and how to pass in the include..below code is in the include..

IF NOT NAST-TCODE IS INITIAL AND NAST-NACHA EQ '5'.

  • ... use stratagy to get communication type

CALL FUNCTION 'ADDR_GET_NEXT_COMM_TYPE'

EXPORTING

STRATEGY = NAST-TCODE

  • ADDRESS_TYPE =

  • ADDRESS_NUMBER = VBDKA-ADRNR

  • PERSON_NUMBER = VBDKA-ADRNP

ADDRESS_NUMBER = ADDR_KEY-ADDRNUMBER

PERSON_NUMBER = ADDR_KEY-PERSNUMBER

IMPORTING

COMM_TYPE = LVS_COMM_TYPE

COMM_VALUES = LVS_COMM_VALUES

  • TABLES

  • STRATEGY_TABLE =

EXCEPTIONS

ADDRESS_NOT_EXIST = 1

PERSON_NOT_EXIST = 2

NO_COMM_TYPE_FOUND = 3

INTERNAL_ERROR = 4

PARAMETER_ERROR = 5

OTHERS = 6.

Please provide solution asap. Thanks in advance

2 REPLIES 2

Former Member
0 Kudos

Hi,

Check this links:

https://wiki.sdn.sap.com/wiki/display/sandbox/SendMailwithPDFAttachment?showChildren=false#children

Thanks.

0 Kudos

Thanks Balu..

I have already gone thru the links using spool to pdf but I want using the standard include which will process the pdf or print as required. All I have to do is to define 2 outputs, 1 with print and the other with pdf and the include will do it for me..

Please let me know if its not clear..