cancel
Showing results for 
Search instead for 
Did you mean: 

Email notifications

Former Member
0 Kudos

Hi,

I have a requirement that system should send an email notification to the delegate at the end of thier delegation period.can anyone give me some inputs on how to go abt it.

points will be rewarded!!

Rgds

Harshika

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Inorder to send the document by E-mail, please refer to the following function modules.

<b>SO_NEW_DOCUMENT_ATT_SEND_API1 SAPoffice: Send new document with attachments using RFC

SO_NEW_DOCUMENT_SEND_API1 SAPoffice: Send new document</b>

<u>Here is custom sample code for E-mail purpose</u>

----


*&---------------------------------------------------------------------*
*& Report ZSEND
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

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.


*---------------------------------------------------------*

Hope this will help.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

Thanks for your answer.

My other requirement is lets say we build a customer field on the shopping cart screen and when this is populated with an indentifier the system should accumulate the expenses based on the indentifier. This total would be compared to sc dollar amount and if it is exceeded it should give out a error

can you give me some inputs on how to go abt it

ponits will be rewarded!!

Rgds

Harshika

Ramki
Active Contributor
0 Kudos

Hi Harshika

1) Build a customer field (check note 672960..easy to do)

2) While creating the SC, user will enter an identifier.

Use BBP_DOC_CHECK_BADI to call other SCs with the same identifier in a given period and total all values (BBP_PD_SC_GET_DETAIL can be used). If the total is greater than SC amount, then give an error message.

To improve performance, you may think about maintaining z-table where identifier wise SC values are stored (use BBP_DOC_SAVE_BADI to trigger this saving).

Best regards

Ramki

Former Member
0 Kudos

Hi Ramki,

My customer requirement is that system admins shall exist in multiple time zones to support all areas with minimal lag time.

Just wanted to know whether this is a standard functionality or is there any customization involved to accomplish this.

can you throw some light on this issue

points will be rewarded!!

Rgds

Harshika

Ramki
Active Contributor
0 Kudos

I did not understand this.

Having System Admin in all time zones is a company decision.

I do not think you need to have special config for this.

Best regards

Ramki

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Please ensure SCOT transaction is correctly configured in the system . Ask your BASIS Team to configure the same for this purpose.

<b>For email sending...

Use the standard function module

SOAPI in SE37 transaction.

SO_NEW_DOCUMENT_API</b>

Hope this will help.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

can you give more inputs on how to abt this function module.

My idea was to customize the n-step workflow approval BADI along with creating a variant for the email notification program to trigger an email when the delegate is assigned.do let me know which one do you think would work in my case

Rgds

Harshika

Former Member
0 Kudos

Hi

I am not sure, what is the exact requirement and when this n-level Approver BADI - BBP_WFL_APPROV_BADI in SE18 Transaction, will help you in this case.

Give me some time, I wl update you soon.

Hope this will help.

Please reward suitable points.

Regards

- Atul