04-12-2007 6:40 AM
Hi Folks
I have the below requirement:
I am having the script for sales order and concerned print program( RVADOR01 )as well.
With the current print program mail is sending to the concerned customer by configuring the output type as "External send" at nace transaction code.
Now the requirement is:
The result has to be converted to the PDF format and to be send not only to the customer but also to the 4 hard coded persons(Email of the persons are given).
So can you please kindly suggest me where exactly I have to change the code in standard program.
If you send me the code, it will be a great help for me.
Points are surely given for correct and accurate answers.
I need complete procedure so please don't suggest me the Function Modules to convert into PDF like that...This is my sincere request.
thanks in advance.
Regards,
Sreeram
04-12-2007 6:54 AM
Hi,
Don't have exact code, but I am sure you have to do the changes as below:
You have to change the code in the below fun modules in the include RVADOPFO
for Outgoing mails I hope SCOT setting have already been done, since you said that already mail is going fine to a customer.
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.
CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
EXPORTING
PI_COMM_TYPE = LVS_COMM_TYPE
PI_COMM_VALUES = LVS_COMM_VALUES
PI_SCREEN = US_SCREEN
PI_NEWID =
PI_COUNTRY = US_COUNTRY
PI_REPID = LVF_PROGRAM
PI_SNAST = LVS_SNAST
IMPORTING
PE_ITCPO = LVS_ITCPO
PE_DEVICE = LVF_DEVICE
PE_MAIL_RECIPIENT = LVS_RECIPIENT
PE_MAIL_SENDER = LVS_SENDER
EXCEPTIONS
COMM_TYPE_NOT_SUPPORTED = 1
RECIPIENT_CREATION_FAILED = 2
SENDER_CREATION_FAILED = 3
OTHERS = 4.
reward if useful
regards,
ANJI
04-12-2007 6:48 AM
04-12-2007 6:48 AM
04-12-2007 6:54 AM
Hi,
Don't have exact code, but I am sure you have to do the changes as below:
You have to change the code in the below fun modules in the include RVADOPFO
for Outgoing mails I hope SCOT setting have already been done, since you said that already mail is going fine to a customer.
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.
CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
EXPORTING
PI_COMM_TYPE = LVS_COMM_TYPE
PI_COMM_VALUES = LVS_COMM_VALUES
PI_SCREEN = US_SCREEN
PI_NEWID =
PI_COUNTRY = US_COUNTRY
PI_REPID = LVF_PROGRAM
PI_SNAST = LVS_SNAST
IMPORTING
PE_ITCPO = LVS_ITCPO
PE_DEVICE = LVF_DEVICE
PE_MAIL_RECIPIENT = LVS_RECIPIENT
PE_MAIL_SENDER = LVS_SENDER
EXCEPTIONS
COMM_TYPE_NOT_SUPPORTED = 1
RECIPIENT_CREATION_FAILED = 2
SENDER_CREATION_FAILED = 3
OTHERS = 4.
reward if useful
regards,
ANJI
04-12-2007 7:14 AM
Hi Anji
Yes you are obsolutely correct.
We have to change the code in include RVADOPFO.
Can you please let me know the changes also.
It can be great help for me.
Regards,
Sreeram
04-12-2007 7:14 AM
05-23-2007 8:45 AM