‎2006 Jul 20 3:51 AM
Hello experts,
I am currently using the said function module and declared the doc type as HTM but unfortunately I cannot see a thing. I put HTML tags in my text but it is still the same. Anyway, I need to have an explanation to my boss because he says that when sending to MS Outlook the message becomes misaligned. But to all others(Yahoo, Hotmail, etc) it is ok. Help would be greatly appreciated.
Again, thank you guys and have a nice day!
‎2006 Jul 20 5:36 AM
hi viray ,
what Address types u are using to send data from SAP.
check Tcode SCOT.
Regards
prabhu
‎2006 Jul 20 5:36 AM
hi viray ,
what Address types u are using to send data from SAP.
check Tcode SCOT.
Regards
prabhu
‎2006 Jul 20 5:56 AM
Hi,
I checked in SCOT and it is allowing all formats.
Thanks again!
‎2006 Jul 20 5:58 AM
Hi Viray,
Could you test this program and see? And also check whether the settings are fine in SCOT transaction.
REPORT ZSEND .
TABLES: KNA1.
data for send function
DATA DOC_DATA LIKE SODOCCHGI1.
DATA OBJECT_ID LIKE SOODK.
DATA OBJCONT LIKE SOLI OCCURS 10 WITH HEADER LINE.
DATA RECEIVER LIKE SOMLRECI1 OCCURS 1 WITH HEADER LINE.
SELECT * FROM KNA1 WHERE ANRED LIKE 'C%'.
WRITE:/ KNA1-KUNNR, KNA1-ANRED.
send data internal table
CONCATENATE KNA1-KUNNR KNA1-ANRED
INTO OBJCONT-LINE SEPARATED BY SPACE.
APPEND OBJCONT.
ENDSELECT.
insert receiver (sap name)
REFRESH RECEIVER.
CLEAR RECEIVER.
MOVE: SY-UNAME TO RECEIVER-RECEIVER,
'X' TO RECEIVER-EXPRESS,
'B' TO RECEIVER-REC_TYPE.
APPEND RECEIVER.
insert mail description
WRITE 'Sending a mail through abap'
TO DOC_DATA-OBJ_DESCR.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_DATA
IMPORTING
NEW_OBJECT_ID = OBJECT_ID
TABLES
OBJECT_CONTENT = OBJCONT
RECEIVERS = RECEIVER
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
Thanks & Regards,
YJR.
‎2006 Jul 20 5:59 AM
Hi viray,
i tried it , it was giving me the same problem.But you try to change the FM(look for attachment) and send it as Html Attachment that is working fine.in my outbox i can see the mail body, but the reciever not able to see any thing.not sure why..?try to do with some other FM and check.
Regards
vijay
‎2006 Jul 20 6:12 AM
Hi Vijay and YJR,
Thanks for the helpful replies. I originally made my e-mail as using document type as 'RAW' and it is working fine. But when I changed it to 'HTM' and placed tags in my message body I cannot see a thing. It just opens Internet explorer and thats it. If I send it as RAW format in Outlook the message body becomes misaligned. Anyway, below is what the users got:
FYI: The ff records were changed in tables ZTS0001 and ZTS_STPGEOLOC by user ZRBR0490
Dealer : DL0172 - WELLCOM TELECOM SUPERMARKET,
Ship-To: 00001
Address from: JMBG Building Zansibar cor. Rockefeller Sts., San Isidro, Makati City Address to : JMBG Building Zansibar cor. Rockefeller Sts., San Isidro, Makati
It should look like this:
FYI: The ff records were changed in tables ZTS0001 and ZTS_STPGEOLOC by user ZRBR0490
Dealer : DL0172 - WELLCOM TELECOM SUPERMARKET,
Ship-To: 00001
Address from: JMBG Building Zansibar cor. Rockefeller Sts., San Isidro, Makati City
Address to : JMBG Building Zansibar cor. Rockefeller Sts., San Isidro, Makati
When I send it to my Yahoo and Hotmail it looks ok except for Outlook.
Thanks again!
‎2006 Jul 20 6:02 AM