Email generated by ABAP program reside in SOST got automatically send out
Hi,
In our test environment, we tested on the developed program with generating email. We have disable SMTP in our non-Proudction environment therefore there are a lot of unsend email.
In october, we have enable the SMPT for testing some of new email program. On Nov 29, 2010, those unsend email got trigger and send to all of our user.
We try to trace any user to logon to SOST (ST03) to send those emails and we can't find any. In SOST sendering, we can't find all those unsend email too.
On Nov 24 to Nov 29, 2010, we have client refresh for other clients.Will it impact trigger the unsent email?
Any suggestion to trace who trigger it?
Isn't there any SAP program can trigger send thoese unsend email?
Can those unsent email(pending status) stuck some where in SAP and automatically trigger itselt.?
On Nov 29, 2010, those unsend email got trigger and send to all of our user.
STAD and ST03N keep info by default for two days... you can trace who used SOST... if the SAPCONNECT job wasn't scheduled the send could have only been triggered manually so check for people who used SOST and SCOT... additional to that check SM20.
Also, usually I remove the SAPCONNECT job before a refresh so anything waiting to be sent stays in the queue after the refresh
Regards
Juan
Similar Messages
-
Sending HR-File as email by the ABAP program as password protected ZIP file
Hi All,
My requiremet is to directly email the SAP-HR files to the users as the password protected ZIP file on UNIX.
Can anyone help me out how to implement this in my ABAP program.
Regards,
Saumikhi,
To populate data in different column you may use the below code.
DATA : filename TYPE string VALUE "Path
DATA :BEGIN OF wa_string,
data TYPE string,
END OF wa_string.
DATA : it_data LIKE STANDARD TABLE OF wa_string,
data TYPE string.
DATA: v_tab TYPE char1.
v_tab = cl_abap_char_utilities=>horizontal_tab.
CONCATENATE 'happy' 'new year' INTO wa_string-data SEPARATED BY v_tab.
APPEND wa_string TO it_data .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = filename
TABLES
data_tab = it_data.
IF sy-subrc <> 0.
ENDIF. -
Using a group list in email and automatically sending out an email
I have set up a group list in address book. Each contact has 2-3 emails. I am using Mail. Currently when I have to send an email out to the group I have to select the group in address book, then choose "select all". Select all only chooses 1 email per contact. I then have to manually choose the 2nd and 3rd emails for each contact. Is there any way I can use the group that I have created without having to go through all of that in order to send an email to my distirbution list?
I blind cc'd my self on the original email I sent to the group and was using that one to "forward" but the problem I encountered was some people added, changed or fixed a correction in their email the forward did not reflect the change in the email. I fixed the email in address book but it was not reflected in the original email--which I knew would happen. Hopefully there is a better way to accomplish this!
I also have to send out the same weekly reminder to this group--is there any way I cen set email to do this automatically?
Thanks!Wow! This is what I've been looking for. I can't believe more people on this forum aren't complaining about not being able to use a Song List.
Have you used this app?
Is it stable?
Can it be used with Logic LE, Garage Band etc.
Thank you so much for this info. -
I have created a group in my address book, but when I try to use it to send mail, only a comma shows up. How can I send mail using my new group? I have an IMac with OSLion.
I will agree with you on this one. Version 31 and all the fixes so far are a mess. Since I have been here answering questions for a little more than a year now I have learned to wait to upgrade until all the dust settles. I see no end to the dust storm version 31 has caused. I am still on version 24.6 and plan on staying there for the duration. At least until the developers comes to their senses and put out a working product.
-
unloading Final cut pro X and I install it, soon unloading motion 5 and I install it, when starting final cut pro X everything goes well but motion 5 is disappointed and it is closed unexpectedly
Run Disk Repair to "repair" all hard drives on the system.
Be sure you have at least 8GB RAM realistically.
Be sure your grahics card is compatable.
Digital Rebellion makes a free application called Preference Manager that allows you to trash the application preference files safely and properly, try running that. -
Call ABAP program on R3 system from BW system
Hi
How can I call abap program residing on the R3 system from the BW system ?
It is simple program (select single from table) returning or not one record.
Regards
AdamCeate a remote enabled function module and call it from anywhere you like.
Make sure the systems talk to one another with defined RFC Destinations
To create RFC destinations use T-code SM59.
Have a look at this link how to create function Modules.
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
Amandeep
Message was edited by:
Amandeep Bal -
Create a DDic sturcture via ABAP program
Hello,
is it possible to create a DDic structure via a ABAP program? I've got the components and component type of the new structure in a table.
I want to create a DDic structure with this information. Is there function module or a method, with this functionality?
Thanks for help!
MatthiasI need a DDic structure to use this in the exporting parameters of an remote-enabled function module. Thier isn't it posible to use an none typed parameter, because of the remote.
I want to create an admin-screen for an tool calls DocFinder. For this tool you need for every DocuSpace an extra structure to return the values.
We use this tool in an shared systemlandscape so its nessessary to use an remode-enabled function module.
In the admin-screen it should be able to create an new DocuSpace with its structures and other generatet coding.
But I've got no idea how to create an structure via programm. -
Trigerring workflows in an ABAP program
Can somebody please tell me the best way to trigger a workflow in an ABAP program. And if possible please send me some sample code how it can be done. I need it urgently so if possible please reply to this ASAP.
Thanks in advance,
MohsinCheck the following Code to trigger the Workflow form custom program.
Data for workflow trigger
DATA: objtype LIKE swetypecou-objtype,
objkey LIKE sweinstcou-objkey,
event LIKE swetypecou-event,
event_container LIKE swcont OCCURS 0 WITH HEADER LINE.
objtype = 'ZBUS1001'. "Material [sub object of BUS1001]
MOVE v_wfmatnr TO objkey. "V_WFMATNR is material number
event = 'CreatePLMMaterial'."Custom Event defined in
ZBUS1001 [Tcode SWO1]
REFRESH event_container.
*Following are the Event parameters required in the *Workflow
swc_set_element event_container 'Attachment' v_wfattachment.
swc_set_element event_container 'Material' v_wfmatnr.
swc_set_element event_container 'TisGroup' v_wftisgroup.
swc_set_element event_container 'SchDate' v_schdate.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = objtype
objkey = objkey
event = event
TABLES
event_container = event_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
COMMIT WORK.
In TCode SWETYPV Create entry for Object type Event and Workflow ID.
In my case Object type is ZBUS1001
Event CreatePLMMaterial
Rec type = <Workflow ID> -
Creating IDOC from ABAP Program
Hi folks,
Could any one tell me the procedure how to process IDOC form ABAP program. for example i want to send MATMAS idoc to other system. now we are able to send through Tcode BD10 to XI. we jsut want to send through ABAP program. is it possible to do so..if so could u pls let me know the procedure..thanks in advance.
santosh.Just check abap program RBDSEMAT.
In short:
- select the materials you want to send.
- call following function module:
CALL FUNCTION 'MG_IDOC_CREATE_FULL_MAT'
EXPORTING
rcvpfc = ' '
rcvprn = receiver_prn
rcvprt = receiver_prt
sndpfc = ' '
sndprn = ' '
sndprt = ' '
message_type = mestyp
TABLES
marakey = t_matkeypack
EXCEPTIONS
OTHERS = 0. -
How to Move file / call UNIX command using ABAP Program
Hi, ABAP Guru.
I need to Cut & Paste file (Move file from one location to another location) on Network Shared Drive using ABAP program.
But I can't figured out how to do this and what ABAP Command / FM / Method (and maybe UNIX command) that being used.
Please give me the advice.
Best regard and Thank you all.
Nattapash C.all methods for your requirements should be in class CL_GUI_FRONTEND_SERVICES
-
Outlook automatically sending blank emails
My Outlook is automatically replying to my emails with a blank message. My autoreply is turned off. I have changed my password and done a virus scan with no luck in reversing this problem.
Hi,
Which version of Outlook are you using?
Does this issue happen to all emails you received?
Does this issue continue if we receive emails from webmail site?
Please make sure you don't have any rule set to automatically send out emails. To check this, click Home tab > Rules > Manage Rules & Alerts, and then check if there is any related rule in the rules list.
If you installed any third-party add-in, please also try to temporarily disable the add-in and then test the issue again. If you have a virus scanner installed, please note that it may integrate itself with Outlook, which may also cause this issue. Please
contact the virus scanner support and disable the integration into Outlook to see the result.
Please let me know the result.
Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Someone is sending out viruses in my name. I keep getting a message that "theklamccartney38625" is sending me a message. I think this is the person that has accessed my system. What can I do?
Thanks,
DuwayneWhen this happens, it may not be your system that is sending out the bad emails. They may have picked up your email address from someone else's Address Book and are sending out emails and spam using forged email headers.
If you or someone you know can get hold of one of the bad emails, view the full headers, and you can sometimes see where it came from. You can try complaining to the ISP that runs that block of addresses.
You may need to "cut-and-paste" the full headers into a new email and send it to the webmaster of the ISP hosting that block of addresses. -
I write a new email message from my personal gmail account and it automatically sends from my family gmail account. I make sure that it lists my personal email on the from line. It still shows up that its from my family email. Help!
Hello, gypsyro.
Thank you for visiting Apple Support Communities.
I would check to make sure the default account in Settings > Mail, Contacts, Calendars is set to your personal Gmail account. Test send another message after making the change.
Mail Settings
Cheers,
Jason H. -
Sending emails from ABAP program
Hi,
I need to send error emails from ABAP program.
I have to pass error internal table as text (not as attachment) in the email.
Can anybody supply any sample code?
Thanks in advance.
Regards,
Arun MohanHI,
See if this code helps:
***Sending mail to the receipients
if not it_final[] is initial.
Populate table with detaisl to be entered into .xls file
PERFORM BUILD_XLS_DATA_TABLE.
PERFORM POPULATE_EMAIL_MESSAGE_BODY.
Send file by email as .xls speadsheet
PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
TABLES IT_MESSAGE
IT_ATTACH
USING P_EMAIL
'Sales Register Report - Set Top Box / Accessories'
'XLS'
'SSTB'
CHANGING GD_ERROR
GD_RECIEVER.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM INITIATE_MAIL_EXECUTE_PROGRAM.
endif.
*& Form BUILD_XLS_DATA_TABLE
text
--> p1 text
<-- p2 text
FORM BUILD_XLS_DATA_TABLE .
data: wa_itab like it_final.
CONSTANTS:
CON_TAB TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
CON_CRET TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF.
CONCATENATE 'Business Place' 'Region Code' 'Region' 'Branch Code'
'Branch' 'Material Desc' 'Area off Code'
'Area Name' 'Zone code' 'Zone Name' 'Cust No' 'Cust Name'
'Bill Doc No' 'Bill Date' 'Base Val' 'Total Val' 'Quantity'
INTO IT_ATTACH SEPARATED BY CON_TAB.
CONCATENATE CON_CRET IT_ATTACH INTO IT_ATTACH.
APPEND IT_ATTACH.
LOOP AT IT_FINAL INTO WA_ITAB.
CONCATENATE WA_ITAB-BUSINESS_PLACE
WA_ITAB-KVGR1
WA_ITAB-REGION
WA_ITAB-VKBUR
WA_ITAB-SALES_OFF
WA_ITAB-ARKTX
WA_ITAB-vkgrp
WA_ITAB-sales_grp
WA_ITAB-bzirk
WA_ITAB-zone
WA_ITAB-kunnr
WA_ITAB-name
WA_ITAB-vbeln
WA_ITAB-fkdat
WA_ITAB-base_value
WA_ITAB-total_value
WA_ITAB-fkimg
INTO IT_ATTACH SEPARATED BY CON_TAB.
CONCATENATE CON_CRET IT_ATTACH INTO IT_ATTACH.
APPEND IT_ATTACH.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form POPULATE_EMAIL_MESSAGE_BODY
text
--> p1 text
<-- p2 text
FORM POPULATE_EMAIL_MESSAGE_BODY .
REFRESH IT_MESSAGE.
CONCATENATE SY-DATUM6(2) '/' SY-DATUM4(2) '/' SY-DATUM+0(4) INTO G_DATE.
IT_MESSAGE = 'Please find attached excel sheet.'.
APPEND IT_MESSAGE.
IT_MESSAGE = 'Sales Register Report - Set Top Box / Accessories'.
APPEND IT_MESSAGE.
Concatenate 'Report generated date' ':' G_Date '.' into IT_MESSAGE.
APPEND IT_MESSAGE.
clear it_message.
append it_message.
IT_MESSAGE = 'This is an autogenerated mail, please do not reply'.
APPEND IT_MESSAGE.
ENDFORM. " POPULATE_EMAIL_MESSAGE_BODY
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES PIT_MESSAGE
PIT_ATTACH
USING P_EMAIL
P_MTITLE
P_FORMAT
P_FILENAME
P_ATTDESCRIPTION
P_SENDER_ADDRESS
P_SENDER_ADDRES_TYPE
CHANGING P_ERROR
P_RECIEVER.
DATA: LD_ERROR TYPE SY-SUBRC,
LD_RECIEVER TYPE SY-SUBRC,
LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
LD_EMAIL LIKE SOMLRECI1-RECEIVER,
LD_FORMAT TYPE SO_OBJ_TP ,
LD_ATTDESCRIPTION TYPE SO_OBJ_NAM ,
LD_ATTFILENAME TYPE SO_OBJ_DES ,
LD_SENDER_ADDRESS LIKE SOEXTRECI1-RECEIVER,
LD_SENDER_ADDRESS_TYPE LIKE SOEXTRECI1-ADR_TYP,
LD_RECEIVER LIKE SY-SUBRC.
LD_EMAIL = P_EMAIL.
LD_MTITLE = P_MTITLE.
LD_FORMAT = P_FORMAT.
LD_ATTDESCRIPTION = P_ATTDESCRIPTION.
LD_ATTFILENAME = P_FILENAME.
LD_SENDER_ADDRESS = P_SENDER_ADDRESS.
LD_SENDER_ADDRESS_TYPE = P_SENDER_ADDRES_TYPE.
Fill the document data.
W_DOC_DATA-DOC_SIZE = 1.
Populate the subject/generic message attributes
W_DOC_DATA-OBJ_LANGU = SY-LANGU.
W_DOC_DATA-OBJ_NAME = 'SAPRPT'.
W_DOC_DATA-OBJ_DESCR = LD_MTITLE .
W_DOC_DATA-SENSITIVTY = 'F'.
Fill the document data and get size of attachment
CLEAR W_DOC_DATA.
READ TABLE IT_ATTACH INDEX W_CNT.
W_DOC_DATA-DOC_SIZE =
( W_CNT - 1 ) * 255 + STRLEN( IT_ATTACH ).
W_DOC_DATA-OBJ_LANGU = SY-LANGU.
W_DOC_DATA-OBJ_NAME = 'SAPRPT'.
W_DOC_DATA-OBJ_DESCR = LD_MTITLE.
W_DOC_DATA-SENSITIVTY = 'F'.
CLEAR T_ATTACHMENT.
REFRESH T_ATTACHMENT.
T_ATTACHMENT[] = PIT_ATTACH[].
Describe the body of the message
CLEAR T_PACKING_LIST.
REFRESH T_PACKING_LIST.
T_PACKING_LIST-TRANSF_BIN = SPACE.
T_PACKING_LIST-HEAD_START = 1.
T_PACKING_LIST-HEAD_NUM = 0.
T_PACKING_LIST-BODY_START = 1.
T_PACKING_LIST-OBJ_NAME = 'stb'.
DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
T_PACKING_LIST-DOC_TYPE = 'RAW'.
APPEND T_PACKING_LIST.
Create attachment notification
T_PACKING_LIST-TRANSF_BIN = 'X'.
T_PACKING_LIST-HEAD_START = 1.
T_PACKING_LIST-HEAD_NUM = 1.
T_PACKING_LIST-BODY_START = 1.
DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
T_PACKING_LIST-DOC_TYPE = LD_FORMAT.
T_PACKING_LIST-DOC_TYPE = 'XLS'.
T_PACKING_LIST-OBJ_DESCR = LD_ATTDESCRIPTION.
T_PACKING_LIST-OBJ_DESCR = 'Sales_STB'.
T_PACKING_LIST-OBJ_NAME = LD_ATTFILENAME.
T_PACKING_LIST-OBJ_NAME = 'stb'.
T_PACKING_LIST-DOC_SIZE = T_PACKING_LIST-BODY_NUM * 255.
APPEND T_PACKING_LIST.
Add the recipients email address
CLEAR T_RECEIVERS.
REFRESH T_RECEIVERS.
LOOP AT IT_RECV.
T_RECEIVERS-RECEIVER = IT_RECV-EMAIL.
T_RECEIVERS-REC_TYPE = 'U'.
T_RECEIVERS-COM_TYPE = 'INT'.
T_RECEIVERS-COPY = 'X'.
T_RECEIVERS-NOTIF_DEL = 'X'.
T_RECEIVERS-NOTIF_NDEL = 'X'.
APPEND T_RECEIVERS.
ENDLOOP.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = W_DOC_DATA
PUT_IN_OUTBOX = 'X'
SENDER_ADDRESS = LD_SENDER_ADDRESS
SENDER_ADDRESS_TYPE = LD_SENDER_ADDRESS_TYPE
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL = W_SENT_ALL
TABLES
PACKING_LIST = T_PACKING_LIST
CONTENTS_BIN = T_ATTACHMENT
CONTENTS_TXT = IT_MESSAGE
RECEIVERS = T_RECEIVERS
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.
Populate zerror return code
LD_ERROR = SY-SUBRC.
Populate zreceiver return code
LOOP AT T_RECEIVERS.
LD_RECEIVER = T_RECEIVERS-RETRN_CODE.
ENDLOOP.
ENDFORM. "SEND_FILE_AS_EMAIL_ATTACHMENT
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
text
--> p1 text
<-- p2 text
FORM INITIATE_MAIL_EXECUTE_PROGRAM .
WAIT UP TO 2 SECONDS.
SUBMIT RSCONN01 WITH MODE = 'INT'
WITH OUTPUT = ''
AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
Regards
Subramanian -
Regarding text attachment in Email in ABAP program
Hello...
Need your expertise in one of the issues. Requirement is seems to be simple
but i am stuck up at this moment. i have refereed SDN with Several code but
some point its not giving the proper solution. So its a request to you please
do not provide any SDN link for reference as i am very much tried all of them.
please share piece of code.
Requirement : Need to develope one ABAP program, Email text attachment with Header line.thought its
very simple but still facing difficulties.
i have tried many code either its showing Data in single line without new line , in one of the Codes
data is coming in successive line but there is lot of spacing within Words means all alphabates are tab
separated. coud you please provide ,me the proper solution for this.
in one of the codes is working fine for excel but when Txt extension done data is not coming in successive line all
data is coming in single line.
Ex. Text file should contain 1 head and 4 colunns and Data size 50..
Thanks
NishiHi,
Another option....
Some sample code using cl_bcs .
Note the use of cl_abap_char_utilities=>cr_lf .
FORM mail_1_prep_10
USING
it_data TYPE table
CHANGING
ob_document_bcs TYPE REF TO cl_document_bcs .
DATA: txt_line TYPE string .
DATA: txt_data TYPE string .
* Create some text data .
DO 20 TIMES .
txt_line = '' .
DO 10 TIMES .
CONCATENATE txt_line '|' 'some data 01' '|' INTO txt_line .
ENDDO .
CONCATENATE txt_line cl_abap_char_utilities=>cr_lf INTO txt_line .
CONCATENATE txt_data txt_line INTO txt_data .
ENDDO .
* Mail stuf....
DATA: it_solix TYPE solix_tab .
CALL METHOD cl_bcs_convert=>string_to_solix
EXPORTING
iv_string = txt_data
IMPORTING
et_solix = it_solix.
DATA: attachment_subject TYPE so_obj_des .
DATA: attachment_type TYPE so_obj_tp .
attachment_subject = 'Some text data' .
attachment_type = 'txt' .
TRY.
CALL METHOD ob_document_bcs->add_attachment
EXPORTING
i_attachment_type = attachment_type
i_attachment_subject = attachment_subject
i_att_content_hex = it_solix.
CATCH cx_document_bcs .
ENDTRY.
ENDFORM . "mail_1_prep_10
regards.
This is how I see it in my mail :
Maybe you are looking for
-
Decision step with method before workitem execution
I have a decision step, which uses method before workitem execute uses BO Bus2094 - 'Display' method. When an agent receives a workitem, try to execute the workitem 'Getting an information message 'Error when starting submethod'. When i see the infor
-
DS and Messaging server relation
Hi, I have a question here, I found out that my customer's DS has an extended schema, subBlacklist=yes or subBlacklist=no, where messaging server will determined whether to block this particular user from sending email if he has the attribute subBlac
-
Percentage function in Calculator
Why is there still not a % button in the Calculator? Blimus! Even winbloze can manage percentages Ian Message was edited by: ianmoff Message was edited by: ianmoff
-
The volume only works when I have earphones plugged into the jack, otherwise when I try to adjust the volume it has a circle with a cross. Ive tried restarting it with and without the headphones plugged in. However it does make that mac sound when tu
-
How to update server files from a client?
I'm writing an application that has a "load" button to read images, and a "save" button that writes images (using ImageIO.write(currentImage,"png",outputfile). It works fine offline, but when I run it as an applet on a webpage, it doesn't write the f