Trigger Mail in BPM
hi,
Scenario. IDOC ->XI->HTTP. I am using BPM.
There are 10 receivers.
I have the following Steps:
Start, Receive, Block, Switch (10 branches), each branch has the corresponding configuration for its receiver with Transformation and Send step.
I have an exception defined in the block. In the exception i have a transform and send (sends the email wih the error message)
When an exception error occurs i am receiving the email.
<b>What i want to have:</b>
I would like to keep posting to the same receiver until a period of 5 hours. If it fails after even after 5 hours then i would like to trigger another email.
so instead of sending email every time it fails i would like to send only the second email when its unsuccessful after the period of 5 hours.
also what i would like to mention here is the IDOCs(with same message type) keep coming into XI. So if i have to retain the message for it to keep posting to the HTTP receiver for a period of 5 hours will the message not be overwritten by the current IDOC?
Thanks,
Tiru
michal -
thanks for the reply.
>>> on your first response:
i will not send email everytime it fails (only the first time which i am doing right now) but i keep posting to the http service for the period of 5 hours and see if i get a success. if success i don't do anything but if it fails when it reaches the period of 5 hours then i need to send another email.
So i have infinite loop which has a send step which polls the http service.
do not know the exact steps(wait, container etc) required to add the above logic?
performance wise, is there any other alternative to the above process?
>>> on your second response
you understood the scenario right.
Thanks,
Tirumal
Similar Messages
-
Added custom date fields at contract;need to trigger mail using those dates
Hi,
II have added 14 custom fields in the service order quotation for handling waranty start date and end dates capturing for the maximum of 7 years contract.
Then its usual yearly action of the waranty team to put the dates in those fields.
The first set of 2 input fields will be filled at the quotation creation itself; rest the set of 12 fields will be updated in this 7 years time.
My requirement is such that to the capture all the waranty end dates filled in the input fields and trigger a mail 30 days prior to that days.
Example : I have contract from 01/08/2004 to 31/07/2010.
Then my waranty startdate / end date can be filled by waranty team as 01/08/2004 to 31/07/2005 in the waranty first year.the i need to trigger a mail to waranty team on 01/07/2005.
For the second year if we have dates filled as 01/08/2005 to 31/07/2006; then to trigger mail on 01/07/2006.
I have tried using ACTIONS but couldn't get much help.
As a work around thinking for a report to fetch the contract for that Trans.type and check the dates with the present date + 30 and collect those to perfrom the respective actions.This is workaround.
Tried using the DATE TYPES creating 7 different DATE TYPES and assigning the ( end dates - 30 ) to that manually upon save.
and using this DATE TYPE along with the action definition can we acheive ? but it too will be work around.
How to acheive this one. It became critical now in the project.
Thanks and Regards,
Satish AkkinaHi,
In your scenario, you don't need synchronous email facility.
Probably you can create a z table and maintain all required dates in this table (before saving your transaction somewhere you would have to read your custom fields and save them in this table along with object ID/GUID). Then create a report that would read dates from z table and then send emails to your warranty team. Schedule this report in background with frequency of once day.
Hope that helps.
Regards,
BJ -
How to use RCIEV feature to trigger mail to a particular mail id in M0001
Hi,
I'm trying to trigger mail for any marital status change in personal data infotype for employee through dynamic action. Kindly help me in using RCIEV feature in M001 feature in detail for triggering mail to a manager other than administrator.
Thanks,
Kalai.Check this documentation.
RCIEV Defining a Distribution List or Mail Address
you can define a feature that sets the parameters for a
mail to be sent when changes are made to an infotype record. In the
standard system, this involves feature M0001. You can also specify a
feature within this feature to determine possible recipients of the mail
according to the control values in the organizational assignment.
Use
Mail connection for master data infotype changes for employees and
applicants.
Procedure
The return matrix of the feature has the following structure: X-VVVVVVVV
with the following meanings:
o X - Indicator 'M' for mail or 'V' for distribution lists
o VVVVVVVV - Valid mailing name or distribution list, which is stored
in a shared folder in SAPoffice (transaction so04).
See also
Feature TEXT1 -
Hello experts,
i want to trigger mail with the output of the report, means as the report gets executed i want to trigger mail with the displayed output....
sample code highly appreciated...............Hello,
Check this sample report.This report will be very useful for your requirement
REPORT ZV_JOB_READ NO STANDARD PAGE HEADING LINE-SIZE 255..
TABLES: TSP01.
DATA: SV_ADR TYPE SOMLRECI1-RECEIVER.
SELECT-OPTIONS : P_EMAIL1 FOR SV_ADR NO INTERVALS.
*DEFAULT '[email protected]',
PARAMETERS: P_SENDER LIKE SOMLRECI1-RECEIVER,
*DEFAULT '[email protected]',
P_REPID LIKE SY-REPID, " Report to execute
P_LINSZ LIKE SY-LINSZ DEFAULT 132, " Line size
P_PAART LIKE SY-PAART DEFAULT 'X_65_132', " Paper Format
P_SLSET LIKE SY-SLSET, "Variant name
P_ODESCR LIKE SODOCCHGI1-OBJ_DESCR,
P_ADESCR TYPE SO_OBJ_NAM,
P_DELSPL AS CHECKBOX.
*DATA DECLARATION
DATA: GD_RECSIZE TYPE I.
* Spool IDs
TYPES: BEGIN OF T_TBTCP.
INCLUDE STRUCTURE TBTCP.
TYPES: END OF T_TBTCP.
DATA: IT_TBTCP TYPE STANDARD TABLE OF T_TBTCP INITIAL SIZE 0,
WA_TBTCP TYPE T_TBTCP.
* Job Runtime Parameters
DATA: GD_EVENTID LIKE TBTCM-EVENTID,
GD_EVENTPARM LIKE TBTCM-EVENTPARM,
GD_EXTERNAL_PROGRAM_ACTIVE LIKE TBTCM-XPGACTIVE,
GD_JOBCOUNT LIKE TBTCM-JOBCOUNT,
GD_JOBNAME LIKE TBTCM-JOBNAME,
GD_STEPCOUNT LIKE TBTCM-STEPCOUNT,
GD_ERROR TYPE SY-SUBRC,
GD_RECIEVER TYPE SY-SUBRC.
DATA: W_RECSIZE TYPE I,
MC_VALID(1) TYPE C.
DATA: GD_SUBJECT LIKE SODOCCHGI1-OBJ_DESCR,
IT_MESS_BOD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
IT_MESS_ATT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
GD_SENDER_TYPE LIKE SOEXTRECI1-ADR_TYP,
GD_ATTACHMENT_DESC TYPE SO_OBJ_NAM,
GD_ATTACHMENT_NAME TYPE SO_OBJ_DES,
MI_RQIDENT LIKE TSP01-RQIDENT.
* Spool to PDF conversions
DATA: GD_SPOOL_NR LIKE TSP01-RQIDENT,
W_SPOOL_NR LIKE TSP01-RQIDENT,
GD_DESTINATION LIKE RLGRAP-FILENAME,
GD_BYTECOUNT LIKE TST01-DSIZE,
GD_BUFFER TYPE STRING.
DATA: MSTR_PRINT_PARMS LIKE PRI_PARAMS.
* Binary store for PDF
DATA: BEGIN OF IT_PDF_OUTPUT OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA: END OF IT_PDF_OUTPUT.
CONSTANTS: C_DEV LIKE SY-SYSID VALUE 'DEV',
C_NO(1) TYPE C VALUE ' ',
C_DEVICE(4) TYPE C VALUE 'LOCL'.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
*** Alternative way could be to submit another program and store spool
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
AUTHORITY = SPACE
COPIES = '1'
COVER_PAGE = SPACE
DATA_SET = SPACE
DEPARTMENT = SPACE
DESTINATION = SPACE
EXPIRATION = '1'
IMMEDIATELY = SPACE
* in_archive_parameters = space
* in_parameters = space
LAYOUT = SPACE
MODE = SPACE
NEW_LIST_ID = 'X'
NO_DIALOG = 'X'
USER = SY-UNAME
IMPORTING
OUT_PARAMETERS = MSTR_PRINT_PARMS
VALID = MC_VALID
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
IF MSTR_PRINT_PARMS-PDEST = SPACE.
MSTR_PRINT_PARMS-PDEST = 'LOCL'.
ENDIF.
MSTR_PRINT_PARMS-LINSZ = P_LINSZ.
MSTR_PRINT_PARMS-PAART = P_PAART.
SUBMIT (P_REPID) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS MSTR_PRINT_PARMS
USING SELECTION-SET P_SLSET
AND RETURN.
* Get spool id from program called above
PERFORM GET_SPOOL_NUMBER USING SY-REPID SY-UNAME CHANGING MI_RQIDENT.
* IMPORT w_spool_nr FROM MEMORY ID SY-REPID.
PERFORM CONVERT_SPOOL_TO_PDF.
PERFORM PROCESS_EMAIL.
IF P_DELSPL EQ 'X'.
PERFORM DELETE_SPOOL.
ENDIF.
IF SY-SYSID = C_DEV.
WAIT UP TO 5 SECONDS.
SUBMIT RSCONN01 WITH MODE = 'INT'
WITH OUTPUT = 'X'
AND RETURN.
ENDIF.
* FORM obtain_spool_id *
FORM OBTAIN_SPOOL_ID.
CHECK NOT ( GD_JOBNAME IS INITIAL ).
CHECK NOT ( GD_JOBCOUNT IS INITIAL ).
SELECT * FROM TBTCP INTO TABLE IT_TBTCP
WHERE JOBNAME = GD_JOBNAME
AND JOBCOUNT = GD_JOBCOUNT
AND STEPCOUNT = GD_STEPCOUNT
AND LISTIDENT <> '0000000000'
ORDER BY JOBNAME
JOBCOUNT
STEPCOUNT.
READ TABLE IT_TBTCP INTO WA_TBTCP INDEX 1.
IF SY-SUBRC = 0.
MESSAGE S004(ZDD) WITH GD_SPOOL_NR.
GD_SPOOL_NR = WA_TBTCP-LISTIDENT.
MESSAGE S004(ZDD) WITH GD_SPOOL_NR.
ELSE.
MESSAGE S005(ZDD).
ENDIF.
ENDFORM. "OBTAIN_SPOOL_ID
* FORM get_job_details *
FORM GET_JOB_DETAILS.
* Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
EVENTID = GD_EVENTID
EVENTPARM = GD_EVENTPARM
EXTERNAL_PROGRAM_ACTIVE = GD_EXTERNAL_PROGRAM_ACTIVE
JOBCOUNT = GD_JOBCOUNT
JOBNAME = GD_JOBNAME
STEPCOUNT = GD_STEPCOUNT
EXCEPTIONS
NO_RUNTIME_INFO = 1
OTHERS = 2.
ENDFORM. "GET_JOB_DETAILS
* FORM convert_spool_to_pdf *
FORM CONVERT_SPOOL_TO_PDF.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = MI_RQIDENT
NO_DIALOG = C_NO
DST_DEVICE = C_DEVICE
IMPORTING
PDF_BYTECOUNT = GD_BYTECOUNT
TABLES
PDF = IT_PDF_OUTPUT
EXCEPTIONS
ERR_NO_ABAP_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DESTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11
OTHERS = 12.
CHECK SY-SUBRC = 0.
* Transfer the 132-long strings to 255-long strings
LOOP AT IT_PDF_OUTPUT.
TRANSLATE IT_PDF_OUTPUT USING ' ~'.
CONCATENATE GD_BUFFER IT_PDF_OUTPUT INTO GD_BUFFER.
ENDLOOP.
TRANSLATE GD_BUFFER USING '~ '.
DO.
IT_MESS_ATT = GD_BUFFER.
APPEND IT_MESS_ATT.
SHIFT GD_BUFFER LEFT BY 255 PLACES.
IF GD_BUFFER IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM. "CONVERT_SPOOL_TO_PDF
* FORM process_email *
FORM PROCESS_EMAIL.
DESCRIBE TABLE IT_MESS_ATT LINES GD_RECSIZE.
CHECK GD_RECSIZE > 0.
LOOP AT P_EMAIL1.
PERFORM SEND_EMAIL USING P_EMAIL1-LOW.
ENDLOOP.
* perform send_email using p_email2.
ENDFORM. "PROCESS_EMAIL
* FORM send_email *
* --> p_email *
FORM SEND_EMAIL USING P_EMAIL.
CHECK NOT ( P_EMAIL IS INITIAL ).
REFRESH IT_MESS_BOD.
* Default subject matter
GD_SUBJECT = P_ODESCR.
GD_ATTACHMENT_DESC = P_ADESCR.
* CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
IT_MESS_BOD = TEXT-001." 'This is an automated report from SAP.'.
APPEND IT_MESS_BOD.
IT_MESS_BOD = TEXT-002. " 'Please do not reply to this mail id.'.
APPEND IT_MESS_BOD.
IF P_SENDER EQ SPACE.
GD_SENDER_TYPE = SPACE.
ELSE.
GD_SENDER_TYPE = 'INT'.
ENDIF.
* Send file by email as .xls speadsheet
PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
TABLES IT_MESS_BOD
IT_MESS_ATT
USING P_EMAIL
P_ODESCR
'PDF'
GD_ATTACHMENT_NAME
GD_ATTACHMENT_DESC
P_SENDER
GD_SENDER_TYPE
CHANGING GD_ERROR
GD_RECIEVER.
ENDFORM. "SEND_EMAIL
* FORM delete_spool *
FORM DELETE_SPOOL.
DATA: LD_SPOOL_NR TYPE TSP01_SP0R-RQID_CHAR.
LD_SPOOL_NR = GD_SPOOL_NR.
CHECK P_DELSPL <> C_NO.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
SPOOLID = LD_SPOOL_NR.
ENDFORM. "DELETE_SPOOL
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
* Send email
FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES IT_MESSAGE
IT_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.
DATA: T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
W_CNT TYPE I,
W_SENT_ALL(1) TYPE C,
W_DOC_DATA LIKE SODOCCHGI1.
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[] = IT_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.
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-OBJ_DESCR = LD_ATTDESCRIPTION.
T_PACKING_LIST-OBJ_NAME = LD_ATTFILENAME.
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.
T_RECEIVERS-RECEIVER = LD_EMAIL.
T_RECEIVERS-REC_TYPE = 'U'.
T_RECEIVERS-COM_TYPE = 'INT'.
T_RECEIVERS-NOTIF_DEL = 'X'.
T_RECEIVERS-NOTIF_NDEL = 'X'.
APPEND T_RECEIVERS.
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 GET_SPOOL_NUMBER
* text
* -->P_SY_REPID text
* -->P_SY_UNAME text
* <--P_MI_RQIDENT text
FORM GET_SPOOL_NUMBER USING F_REPID
F_UNAME
CHANGING F_RQIDENT.
DATA:
LC_RQ2NAME LIKE TSP01-RQ2NAME.
CONCATENATE F_REPID+0(9)
F_UNAME+0(3)
INTO LC_RQ2NAME.
SELECT * FROM TSP01 WHERE RQ2NAME = LC_RQ2NAME
ORDER BY RQCRETIME DESCENDING.
F_RQIDENT = TSP01-RQIDENT.
EXIT.
ENDSELECT.
IF SY-SUBRC NE 0.
CLEAR F_RQIDENT.
ENDIF.
ENDFORM. " GET_SPOOL_NUMBER
Regards,
Vasanth -
Trigger mail to dynamic Agents
Hi Experts,
My requirement is to trigger a email to user based on document type.
Lets say my doc. type is DOC1 then Approver will be USER1
DOC2 then Approver will be USER2.
and mail should be triggered to this agents dynamically based on document type.
I have created one z table and maintained this entries.
created one Rule .
If I pass my document type to rule, it fetches USER correctly.
Now how to use this Rule in work flow to trigger mail to fetched User ??
Please give me a step by step guide to do it.Hi Sunil,
Probably you need to go through some basic material related to Business object and workflow.
Go through the below link.
http://help.sap.com/erp2005_ehp_04/helpdata/EN/c5/e4ac12453d11d189430000e829fbbd/frameset.htm
http://wiki.sdn.sap.com/wiki/display/ABAP/SAPBusinessWorkflow
Regards
Kedar -
Hi Experts,
Can anyone please tell me how to configure for trigger mail in workplace once UD takes place.
System should send mail once I save the UD & its should show pop up message of mail.
Regards,There is concept of followup action in Usage decision code.Explre QS51 where against UD code there is followup action.
Where you can get facility to trigger the mail.
What you can do is ->In QCC3->Inspect lot completion>define followup action>here create a Z-function module & assign against the followup action......
Take help of Abaper
Also refer recent thread Follow-up Action at UD-QM -
Trigger mail(sending mail to respective person)when budget is release in PS
Dear Sir,
I want to trigger mail ( sending mail to respective person ) when budget is release in PS.
Please help for following :
Option 1 : User exit
Option 2: Workflow.
Regards
VinuHi Vinod,
You can acheive this using a Workflow. What you need to do is set an user status as Rbud-release budget, and when ever you project is set to this status a workflow will trigger to the concerned aggest assigned to workflow task. Here you can provide a user decision as 1. Approve 2. Reject. When ever workflow triggers, approver can see in his inbox the project budget in Cj30 by clicking object link to cj30 and if he feels it is ok then he can click Approve button this will take him to CJ32 screen where he can release the budget. IF the user feels Budget need to be revised then he will click reject this will send an email to the person responsible to revise the budget and at the same time user status will be reset back to previous user status.
The above method we have adapted for one of our client. This is done by a workflow consultant.
Thanks
regards
kishore -
File sender adapter: trigger mail if file is not there
Hi,
I have an scenario where I have a file sender adapter, and I need to look for a file in a specific folder from a specific FTP site.
If the file is not present there, I need to trigger an alert to let some people know that the file was not found.
Is this possible? If so, how should I do it?
Thanks!You could also write an abap in your PI system to call the function 'EPS_GET_DIRECTORY_LISTING' against the FTP site/folder/filename(s) at a required interval if you don't want to use a BPM. This abap could also send an email if you so desired.
The general theory should be that if you can do something a simpler way then don't use BPM's if you can avoid them. -
Multi Mapping - Receiver IDOC & Mail with BPM
Hi,
Is it possible to use BPM with Multi Mapping for IDOC & Mail receivers sent parallely..
Appreciate your help ..
Thanks,
vasanth.Hi Michal,
Thanks Michal,
We are using PI 7.1, Our Scope to do File to IDOC & Mail scenario in between we have to do RFC Lookups..
Could you pls guide me thru the steps fo BPM,
1 SA -> OB to AA
2 ID -> OB to AA & AA to Recv
3.RD -> OB to AA & AA to Recv
4.RA -> AA to IB & AA to IB
Correct me if i'm wrong..
Clarification : Is there is any way out to implement this scenario with out BPM.
We already implemented this scenario with 2 MM & 2 OM, Scenario works fine...but we have to use 1 Mapping..
Appreciate your help in advance..
Thanks,
vasanth. -
** File to Mail through BPM - Holding Messages
Hi Friends,
We are running File to Mail scenario in our PRD server. We use BPM design to collect messages and grouping it send to mail id with XL attachments.
Some of the messages are in Holding state i.e from the BPM to Mail adapter. I have compared the successful messages payload similar to the holding messages payload. There is no difference. Both payload are correct.
When I resend the holding message, it tries to resend and again going into holding state. I am not able to trace out the reason. Because, the 'To' address is same, body of the content is same (except value).
Do I need to check anything in BPM side ?
Can you help me to identify this problem.
Kind regards,
Jegathees P.Hi,
Does the messages are gng to hold state in the Mail Adapter Receiver??
If so nthng needs to be done in BPM..
But instead u need to check the Mail adapter Receiver.....
In message monitoring fr this interface and namespace please check if any previos messages are struk in queue..
Check by changing the dates of previos also and delete them....
Once u delete all the messages previos error status... now run end to end.. u will get all the mails...
If still any prblm.. do post
If any question you are closing, please do also post the resolution you found..... So that others can benifit from that
and we can avoid repeated question
Babu
Edited by: hlbabu123 on Sep 28, 2010 4:54 PM
Edited by: hlbabu123 on Sep 28, 2010 4:57 PM -
Hi All,
is it possible to send a mail with content of the body(based on mapping b/w error record and Mail package)
and payload attachment(error record Source payload) from bpm using mail adapter?
My Scenario is JDBC to SOAP scenario. The flow of BPM is used as below:
1) Receive step to receive the records
2) Transformation(Source structure to SOAP request) step to transform the records into multiple orders
3) Block step is to send the orders one after the other(parforeach)
In Block step 1) Sync send(Req,Res,Fault) step is to send the order synchrously.
if the order is failed at webservice side, as per to my knowledge bpm can not handle the fault message and it throws the system error, then i need to send a mail using mail adapter to the sender with the source payload.
In the control step i used the transformation to map between the SOAP request and mail package and then i used the send step to send mail.
Here my question is that whether it is possible to send the source payload(the message in the first receive step) as an attachment and the mail content based on the transforamtion between SOAP request and Mail package?
If this case is possible! Can you please explain the steps to be follwed to achive this requirement.
Thanks In Advance!
Edited by: SAPPI116 on Oct 17, 2011 11:48 AMHi,
I don't know each steps to acheive your goal, but here some ideas:
see this Michal's blog [The specified item was not found.] for the attachment of your payload, else if it's not enough, then do some search with word "PayloadSwapBean".
After that, in BPM, you can merge two messages in only one, so yes I think it's possible by using a multi-mapping:
- Source 1 = Payload of the 1st receive step
- Source 2 = Payload dedicated to your SOAP.
- Target = a Mail-package based on your Source 2 with the Source 1 in attachment.
Regards.
Mickael -
Hi.
I´m using BPM 11g and i want to send mail to different roles.
Someone knows how to implement a service to send mail..?Human tasks in 11g have some out of the box capabilities for notifications (email being one of the transport mechanisms). For details refer to the documentation:
http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10224/bp_hwfmodel.htm#BABICIAH
http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10224/bp_designtf.htm#CHDJBIDE
http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10226/ns_config.htm#BABJFFAF
If the out of the box capabilities don't do what you need, then you can use the User Messaging Service API or javax.mail API to implement your custom functionality.
http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10224/partpage_vii.htm#BCIHAJJI -
Hi! All
How to Trigger a Mail to a Vendor when the Stock level reached the Minimum Stock Level.
I have assigned the mail Id for a particular vendor in Vendor master. and assigned the Stock level in Material Master. what are the details need to be done to trigger a mail.
Thanks and Regards,
KvWhat the Vendor will do when the Stock level reached the Minimum Stock Level..?
You need to go for MRP, So that system will generate the Purchase Requistion Automatically when Stock level reaches the Minimum Stock Level..
and you can Convert the Purchase Requistion into Purchase Order ..and procure Material from that Vendor.. -
Trigger mail when backgroung job is cancel
Hi,
I want to trigger a mail to outlook when background job in sap gets cancel
Regards
GopalHi Gopal
Have u read through [This|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/97d2e8b3-0b01-0010-b787-b8ce558a51c2] document? -
Workflow doesnot automatically trigger mail ..
Hi MDM Gurus,
I am trying to design a simple workflow
Start>Process>Approve-->Stop.
This flow Or workflow works and does trigger a mail to approver and processer when i execute the workflow Manually .i.e In Datamgr i select the record... go to records in header --workflow and execute the corresponding workflow..evrything works fine..
But when i put the XML file in ready folder(to automatically suck into datamanager with help of MDIS server) of respective repository..Workflow doesnot trigger a mail...What can be the reason ..I have checked the mds.ini file and it has server path in it.
Please can anyone let me know what can be the problem...
Regards,
Vikrant...Hi Vikrant,
I have worked on a similar scenario as yours,where my workflows steps were
START->MATCH->APPROVE->STOP->
I automated this workflow,whereby the import file was automatically pulled into MDM and workflow automatically launched then the matching strategy automatically executed on them.
For this I had to:
- Create a workflow chk if all the stencil are properly connected and then SAVE the workflow.
-Fill in the properties of all properly,by mentioning the strategy name in the match stencil.
-Making the trigger action as Record Import
-In Configuration options giving the name of the workflow
-Setting up the ini file and giving the delay time.
If all these steps are carried out properly your workflow should work automatically fine,it worked for me
Check to see your import server is up and running fine in the services and that your workflow is saved properly.
Below link might help you build your workflow correctly
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=workflow&cat=sdn_all
(Dynamism in Static Master Data Management Area - The Workflow)
Thanks & Regards
Simona
Maybe you are looking for
-
How can I change the report file name depending on which seq file is run in the main seq?
I'm using TestStand 3.0. I have a main sequence file with a menu option to select one of several sequence files to run. How can I get TestStand to change report file name to the selected sequence file rather than the main sequence file name? Thanks H
-
Oracle Client 10g Express Edition (ADO, C++, Visual Studio 2008)
OS: Windows XP SP2 I made a test programm allowing to work with Oracle 10g Express Edition. Connection with server works, commands are followed, but at the exit from function wmain Visual Studio it buzzez (слышал такое, если нет, то посмотри по друго
-
IMac or Mac Pro for iPhoto albums and home movie editing?
I have a Mac Pro OS X 10.6.8 with iPhoto 7.1.5. This system is now obsolete for ordering iPhoto albums. I need to upgrade to iPhoto 9.5.1 to buy a Mac produced photo album. To upgrade iPhoto I need to buy a new Mac as my 2004 Mac Pro with 2008 Snow L
-
Bluetooth drivers for Windows 7 on a Satellite P200-1K8
Looking to upgrade my Vista Home Premium to Windows 7 Ultimate but I can see I'd need a newer driver for this to run the bluetooth... Anyone tried this and know if anything works? Cheers!
-
Search change depending on responsibility
Hi, There is a search page which will be attached to two responsibilties, X User and X Superuser. The page has 5 search items of which one is Employee Name and has an LOV attached to it. When the search page is invoked from X User reponsibilty, the L