NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

SELECT SINGLE zcat,
zecode,
ztemp_id,
zto1,
zcc1,
zoid
FROM zsgtsftr_emlbd
INTO @DATA(ls_emlbd)
WHERE zcat EQ @c_01 "'01'
AND zecode EQ @lv_emlcd.


* Preparing TO-CC List
CLEAR lt_to .
SPLIT ls_emlbd-zto1 AT c_col INTO TABLE lt_to .
CLEAR lt_cc .
SPLIT ls_emlbd-zcc1 AT c_col INTO TABLE lt_cc .


*--------------------------------------------------------------------*
* End of selection
*--------------------------------------------------------------------*

IF is_emlpr-zecm_nr IS INITIAL.
TRY.

* -------- create persistent send request ------------------------
send_request = cl_bcs=>create_persistent( ).
* -------- create and set document -------------------------------

*--------------------------------------------------------------------*
* Start the Mail Body
*--------------------------------------------------------------------*

CLEAR: body_text, wa_message.
CONCATENATE body_text
'<html><head><style> .button{color: white;padding: 8px 32px;text-align: center;text-decoration: none;display: inline-block;font-size: 16px;margin: 4px 2px;transition-duration: 0.4s;cursor: pointer;}'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

CLEAR: body_text, wa_message.
CONCATENATE body_text
'.button1 {background-color: white; color: black; border: 2px solid #008CBA;} .button1:hover {background-color: #008CBA;color: white;}'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

CLEAR: body_text, wa_message.
CONCATENATE body_text
'.button2 {background-color: white; color: black; border: 2px solid #f44336;} .button2:hover { background-color: #f44336;color: white;}</style></head>'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

CLEAR: body_text, wa_message.
CONCATENATE body_text
'<body>Dear Sir/Madam, <br><br>'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

CLEAR: wa_message, body_text.
CONCATENATE body_text
'Kindly approve the payment by' ls_vtb-zcom_id 'to the' ls_vtb-name_org1 'for USD' lv_amt 'as on ' lv_sydate '.<br><br>'
INTO body_text SEPARATED BY space.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.
CLEAR: wa_message.

"Preparing body part for response.
CONCATENATE 'Payment by' ls_vtb-zcom_id 'to the' ls_vtb-name_org1 'for USD' lv_amt 'as on ' lv_sydate '.' INTO lv_body SEPARATED BY space.

* Genrate the Dynamic MAILTO Links
CLEAR: body_text.
CONCATENATE body_text
'To process directly from e-mail, make your selection here &nbsp;&nbsp;&nbsp;<br><br>'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

* Approved
CLEAR: wa_message.CLEAR: body_text.
CONCATENATE body_text
'<a href="mailto:' ls_emlbd-zoid '?subject=A' lv_id ' - Approve Document'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

CLEAR: wa_message.CLEAR: body_text.
CONCATENATE body_text '&body=Approved -' lv_body INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

CLEAR: wa_message.CLEAR: body_text.
CONCATENATE body_text
'"><button class="button button1">Approve</button></a>&nbsp;&nbsp;' INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

* Reject
CLEAR: wa_message. CLEAR: body_text.
CONCATENATE body_text
'<a href="mailto:' ls_emlbd-zoid '?subject=R' lv_id ' - Reject Document'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

CLEAR: wa_message. CLEAR: body_text.
CONCATENATE body_text '&body=Rejected - ' lv_body INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

CLEAR: wa_message. CLEAR: body_text.
CONCATENATE body_text '"><button class="button button2">Reject</button></a>' INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.


* Start DISCLAIMERS and WARNING Notifications
CLEAR: wa_message.
CLEAR: body_text.
CONCATENATE body_text
'<br><br><br><br><br><br><p>Please Note: The links will send an e-mail via MICROSOFT OUTLOOK.'
'Please do not change the subject, body or any information in that e-mail.</p>'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.
CLEAR: wa_message.
CLEAR: body_text.
CONCATENATE body_text
'<h4>MICROSOFT Outlook must be installed in your system.</h4>'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.
CLEAR: wa_message.
CLEAR: body_text.
CONCATENATE body_text
'<span style="color:#FF0000">' "This is color for RED. Browser Safe colors mandatory to prevent broswer crash.
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.
CLEAR: wa_message.
CLEAR: body_text.
CONCATENATE body_text
'<p> <style="color: red"> CAUTION! Please do not reply to this e-mail.'
'For approval via e-mail, please click the links provided only. </p></br>'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

CLEAR: wa_message.
CLEAR: body_text.
CONCATENATE body_text
'</span>'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.

CLEAR: wa_message.
CLEAR: body_text.
CONCATENATE body_text
'</body></html>'
INTO body_text.
APPEND body_text TO text.
wa_message-line = body_text.
APPEND wa_message TO it_message.
CLEAR: wa_message.
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.