Email through a dialog popup box in ABAP
Hi all
We have a requirement where in a user click on a button on the screen , the system should respond with a popup box where in he can enter some text and send it as an email.
I looked at the function SOTR_DIALOG_SEND_EMAIL . It is able to bring in the popupbox , enter text and also has a button to send email But when I execute this function I am getting a ABAP dump.
Request your help on this. This seems to be the function I need to use but it fails.
Looking forward for some help,
Regards
Kumar
HI guys
Thanks for your reply.
Currently I got around my requirement using a SEND function in an ALV grid to enable the email service. But still I feel that is too complex for the user community and the need we are addressing.
I tried the other techniques too with popup edit and then a email FM module. All of them works but I still feel it is simpler for our application to bring in a popup with edit capability , a place to put in an internet address , and a send mail button which would be similar SOTR_DIALOG_SEND_EMAIL function. Unfortunately this function fails when I click send. May be I am making some mistake or not using it the way it should be.
The advises and the links send via your replies provided me with a wealth of information related to this topic , which I am sure will be very useful in other applications which would come in our way. I appareciate and thanks for your time taken in response to my query.
I request that If you or any one find some way or know of some way of combining popup / edit and send capability , let me know.
Regards
Kumar
Similar Messages
-
How do i position a dialog popup box when it opens???
i'm using the adf faces to follow a navigation link (dialog:addUser) to a new dialog popup page. all is working great; i am able to return the values in the popup as expected.
what i can't find is how do i position this popup when it opens? i don't want it in the upper left over the calling page...i want to move it over and down so it appears to be more centered. can this be done? there's an attribute for height and one for width but not one for upper left X and Y positions that i can find.
thanks for any support on this.apparently, i'm using the defaults as I don't have any idea as to that attribute. i searched for the showPopupBehavior and it's nowhere in my application. btw: i'm using jDeveloper 10.1.3.4
-
How to set attched file name while sending email through ABAP
Hi All- tell me how to set attched file name while sending email through ABAP.
regards...
AbhaySure, when you are adding your entry to the packing list, give the name in the obj_name field.
*File 2
mailbin = 'This is file 2'.
append mailbin.
data: start type i.
data: end type i.
start = tab_lines + 1.
describe table mailbin lines end.
mailpack-transf_bin = 'X'.
mailpack-head_start = 1.
mailpack-head_num = 1.
mailpack-body_start = start.
mailpack-body_num = end.
mailpack-doc_type = 'TXT'.
mailpack-obj_name = 'TEST2'. "<- RIGHT HERE
mailpack-obj_descr = 'Subject'.
mailpack-doc_size = tab_lines * 255.
append mailpack.
Regards,
RIch Heilman -
WebDynpro ABAP Popup Box where data can be entered
Hello
I was wondering if anyone was able to describe how to create a popup in WDA, the requirement being that the popup needs to display a table of 3 lines with 3 columns. Some of the fields need to be able to accept input. The business scenario is that I have a ALV table with pricing in it and the user needs to be able to drill down (click on a Link to Action in the WDA scenario) on a price to see the validity dates (DATAB / DATBI) of the price they are interested in and then be given the opportunity to change the price (and specify new validity dates).
I would prefer to offer this to the user as a popup box displayed on top of the ALV table.
All the reading and examples I have found to date are about using popup boxes for messages, warnings, etc.
Thanks very much in advance.Hi Tony,
Yes you can very well display the POP UP with ALV , with editable fields. You can use the existing window and view with all elements to be displayed as a POP UP.
Just use the Code wizard and select the check box for generating pop up.In the code that generates just pass the name of the window you have created.
This is the code that gets generated.
method WDDOINIT .
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'ZTEST'
* title =
* close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
* close_button = abap_true
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok
lo_window->open( ).
Regards,
Runal -
I'm working on a Dell D600 laptop, using Windows XP and Firefox 3.6.13, tho this problem has been going on for some time now. At first I thought the messages were being erased, but when I go to my email through my son's Mac Safari program, I can view all 3000+ emails. Also, the tab for my email in Firefox currently says there are 15 unread emails, though none of them are in the 34 emails that my in-box is currently displaying.
Dear Brian:
Create a Play List in iTunes.
Control-Click and open "Export" in the highlighted Playlist in iTunes.
With "Export" opened:
1. Click on "Format" and choose "M3U";
2. In "Save As" name your "WhatEverNamePlaylist.m3u"; and
3. In "Where" tell the program where to send your "WhatEverNamePlaylist.m3u".
You are done creating the Playlist.m3u in iTunes.
Open "Subsonic Web Page".
Left hand column open "Import playlist".
In "Import playlist" click "Choose File" and open the "WhatEverNamePlaylist.m3u"; you created in iTunes.
The "WhatEverNamePlaylist.m3u" should now occupy the space between "Choose File" and "OK".
Click "OK".
The file should now be in the "Playlist" on the left. -
Triggering a workflow through a dialog program
I tried to trigger a workflow through a dialog program using FM. I also created BOR and workflow(SWDD). The dialog program basically deletes a sales order and then a workflow should trigger. I am not able to see the email. Am I missing anything here?
Pls find below the coding..'ZCSS_SO1' is the BO.
Data : g_objtype LIKE SWR_STRUCT-OBJECT_TYP,
G_OBJKEY LIKE SWR_STRUCT-OBJECT_KEY,
G_EVENT LIKE SWR_STRUCT-EVENT.
data begin of l_input_container occurs 0.
include structure swcont.
data end of l_input_container.
data: v_vbeln like vbak-vbeln.
g_objtype = 'ZCSS_SO1'.
g_event = 'DELETE'.
G_OBJKEY = 'SALESDOCUMENT'.
CALL FUNCTION 'SWC_ELEMENT_SET'
EXPORTING
element = 'ELEMENT'
field = 'VALUE'
tables
container = l_input_container.
CALL FUNCTION 'SWE_EVENT_CREATE_IN_UPD_TASK'
EXPORTING
objtype = g_objtype
objkey = G_OBJKEY
event = g_event
tables
event_container = l_input_container.
commit work.Hi Chandri,
You can firstly check whether the code you have written below is triggering the BO event or not by switching on the trace using transaction SWELS , then running the transaction (dialog program mentioned below). After, switch off the trace and then view the trace from transaction SWEL.
Your BO and event should show up in the trace.
Regards,
Aditya
p.s. also for the mail, check what method u are using? -
Is it possible to trigger a transaction from an email sent to SAP mail box?
Hi All,
I have found a strange requirement where a transaction has to be triggered by double clicking on a line in the email sent to SAP Mail box...!!!
The requirement is, a batch input program has to be executed and an email with error details has to be sent to the address specified in the parameter of the selection screen. If user double clicks on the error details, transaction SM35 should be called to rerun the batch...
Hope I am clear.
Thanks in Advance,
Phani.Hi Phani,
Not sure if this can be achieved using ABAP. But may be possible using workflow. Don't have much idea on workflow :(. Wait for others suggestion.
Regards,
Atish -
Hi,
I need a popup box appearing in the start routine into an ODS.
Data has to be entered in that box and being processed into the ODS.
Is their any SAP Function module I could use? Or any abap example based on your experience?
Regards,
HansMy idea is the following:
create a little pgm (to run on line) in which you call a selection screen and your users can insert what you need...then, your pgm will insert these parameters in a dedicated table (and before you can delete its previous content...); finally your program can raise an event that you can link to start a process chain that execute the dataload...
in the start routine, write the code that select the parameters from the table above-mentioned and... voilà !
No table maintenance is required and you can obtain what you want !
Hope it helps!
Bye,
Roberto
please don't forget to reward the answers...it's THE way to say thanks here... -
TS3276 Trouble Sending Email Through Mail
I'm havng trouble sending email through Mail on MacBook Pro. I'm using Lion and everything is up to date. I receive email just fine, but when I go to reply the little wheel thingy just spins and spins, and eventually my emails get sent to the Out box and are never sent. It's an AT&T email account that I'm using. If I go through Yahoo, I can send the emails just fine, but I'd much rather use Mail. Any ideas on what to do? This just started.
Debby JYou have a setting wrong OR. I also use ATT/Yahoo mail for some of my email accounts and earlier this morning the ATT/Yahoo email system was down.
If that is not the problem, ATT/Yahoo system down, then it is simply you do not have the SMTP settings correct.
The server address is smtp.att.yahoo.com and you must have your complete email address, [email protected]/net where attdomian is bellsouth/att/southwest(not sure if that is one of them)/whatever DOT com or net for your domain. It has to included what comes after the @ sign. Some email programs strip what comes after the @ sign out of your logon info. And of course you must have the correct password entered. -
Send Email through abapprograming
hi
actualy i have a document and i want to send it to sombody inbox through email in sap-abap.
i need step by step creation of email through abaphi,
check this program, this program upload the file in 'BIN' binary form from presentation server into internal table and convert data in word formate and send as a mail to our inbox
Code
REPORT ztest_upload_worddata.
PROGRAM : ztest_upload_worddata *
PROGRAM TITLE : SALES ORDER REPORT *
AREA : SD *
AUTHOR : *
CREATED ON : 08/04/2008 *
OBJECT TYPE : abap object Report
DESCRIPTION : This report describes how to send a mail in "WORD
DOCUMENT" by uploading file from PRESENTATION
SERVER using GUI-UPLOAD.
*Tables *
TABLES: vbak.
Internal-tables *
DATA: BEGIN OF it_vbak OCCURS 0,
vbeln TYPE vbeln,
erdat TYPE erdat,
ernam TYPE ernam,
END OF it_vbak.
*DATA: it_vbak TYPE TABLE OF st_vbak WITH HEADER LINE.
Variables *
DATA: p_filename_str TYPE string.
PARAMETERS: p_mail TYPE ad_smtpadr OBLIGATORY DEFAULT
'enter concernd email here in single cotts'
*CLASS-DEFINITIONS *
DATA: send_request TYPE REF TO cl_bcs.
DATA: document TYPE REF TO cl_document_bcs.
DATA: sender TYPE REF TO cl_sapuser_bcs.
DATA: recipient TYPE REF TO if_recipient_bcs.
DATA: exception_info TYPE REF TO if_os_exception_info,
l_uname TYPE salrtdrcpt,
l_bcs_exception TYPE REF TO cx_document_bcs,
l_send_exception TYPE REF TO cx_send_req_bcs,
l_addr_exception TYPE REF TO cx_address_bcs,
bcs_exception TYPE REF TO cx_bcs.
INTERNAL TABLES *
DATA: l_mailtext TYPE soli_tab.
DATA: l_mailhex TYPE solix_tab.
DATA: iaddsmtp TYPE bapiadsmtp OCCURS 0 WITH HEADER LINE.
DATA: ireturn TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
VARIABLES *
DATA: mail_line LIKE LINE OF l_mailtext.
DATA: mailx_line LIKE LINE OF l_mailhex.
DATA: bapiadsmtp TYPE bapiadsmtp.
DATA: l_lines TYPE i.
CONSTANTS *
*CONSTANTS:
intelli_domain(20) TYPE c VALUE '@intelligroup.com'.
*CLASS cl_cam_address_bcs DEFINITION LOAD.
*CLASS cl_abap_char_utilities DEFINITION LOAD.
Constants----
CONSTANTS: c_tab(1) TYPE c VALUE
cl_abap_char_utilities=>horizontal_tab,
" Tab Character
c_cr(1) TYPE c VALUE cl_abap_char_utilities=>cr_lf,
" Line Feed for End-Of_line
c_ext TYPE soodk-objtp VALUE 'BMP'. " doc Extension.
CLASS cl_cam_address_bcs DEFINITION LOAD.
CLASS cl_abap_char_utilities DEFINITION LOAD.
*DATA: CONTROL_PARAMETERS TYPE SSFCTRLOP,
OUTPUT_OPTIONS TYPE SSFCOMPOP,
JOB_OUTPUT_INFO TYPE SSFCRESCL,
JOB_OUTPUT_OPTIONS TYPE SSFCRESOP,
DATA: string_data TYPE xstring,
file_size TYPE i,
lines TYPE TABLE OF tline .
selection-screen *
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_filnam TYPE ibipparms-path.
SELECTION-SCREEN : END OF BLOCK b1.
at selection-screen on value-request *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filnam.
PERFORM fareeda.
*LOOP AT it_xstring into ls_xstring.
*concatenate imp_xstring ls_xstring into imp_xstring.
*ENDLOOP.
*& Form f4_help_p_filnam
text
--> p1 text
<-- p2 text
FORM fareeda .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
FIELD_NAME = ' '
IMPORTING
file_name = p_filnam
ENDFORM.
START-OF-SELECTION
START-OF-SELECTION.
Start-of-selection *
p_filename_str = p_filnam.
data: begin of it_bin occurs 0,
data(1028) type x,
end of it_bin.
*data : it_xstring type table of xstring,
ls_xstring like xstring,
data: imp_xstring type xstring.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_filename_str
filetype = 'BIN'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
IMPORTING
filelength = l_lines
header = string_data
TABLES
data_tab = it_bin
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = l_lines
FIRST_LINE = 0
LAST_LINE = 0
IMPORTING
BUFFER = imp_xstring
TABLES
binary_tab = it_bin
EXCEPTIONS
FAILED = 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.
*--Using SOLIX Converting string data
DATA: lt_solix TYPE solix_tab.
DATA: LT_SOLI TYPE SOLI_TAB.
DATA: docdata TYPE sood-objdes.
DATA: l_size TYPE sood-objlen.
CALL METHOD cl_document_bcs=>xstring_to_solix
EXPORTING
ip_xstring = imp_xstring
RECEIVING
rt_solix = lt_solix
TRY.
*-- Create persistent send request
send_request = cl_bcs=>create_persistent( ).
DATA: first(1) TYPE c.
CLEAR first.
DATA: lt_text TYPE soli_tab.
DATA: ls_text TYPE soli.
ls_text-line = 'THIS IS TEST DATA'.
APPEND ls_text TO lt_text.
CLEAR ls_text.
ls_text-line = 'THIS IS TEST DATA'.
APPEND ls_text TO lt_text.
CLEAR ls_text.
document = cl_document_bcs=>create_document(
i_type = 'txt'
i_text = lt_text
i_subject = 'subject' ).
Preparing contents of attachment with Change Log
PERFORM prepare_attachment.
DESCRIBE TABLE it_vbak LINES l_lines.
Size to multiplied by 2 for UNICODE enabled systems
l_size = l_lines * 2 * 255.
REFRESH l_mailhex.
move l_lines to l_size .
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = c_ext
i_attachment_subject = docdata
i_attachment_size = l_size
i_att_content_text = l_mailtext
i_att_content_hex = lt_solix.
i_attachment_header = LT_SOLI.
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = c_ext
i_attachment_subject = docdata
i_attachment_size = l_size
i_att_content_text = l_mailtext
i_att_content_hex = lt_solix
i_attachment_header = l_mailtext.
*--Add document to send request
CALL METHOD send_request->set_document( document ).
*-- Get sender object
sender = cl_sapuser_bcs=>create( sy-uname ).
*--Add sender
l_uname = sy-uname.
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
recipient = cl_cam_address_bcs=>create_internet_address( p_mail
*--Add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = 'U'
i_copy = 'X'
i_blind_copy = ' '
i_no_forward = 'X'.
*--set send immediately flag
send_request->set_send_immediately( 'X' ).
*--Send document
CALL METHOD send_request->send( ).
COMMIT WORK.
CATCH cx_document_bcs INTO l_bcs_exception.
CATCH cx_send_req_bcs INTO l_send_exception.
CATCH cx_address_bcs INTO l_addr_exception.
ENDTRY.
*& Form PREPARE_ATTACHMENT
FORM prepare_attachment.
FIELD-SYMBOLS: <lfs_table>, " Internal table structure
<lfs_con>. " Field Content
DATA: l_text TYPE char1024. " Text content for mail attachment
DATA: l_con(50) TYPE c. " Field Content in character format
Columns to be tab delimeted
LOOP AT it_vbak ASSIGNING <lfs_table>.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <lfs_table>
TO <lfs_con>.
IF sy-subrc NE 0.
CONCATENATE c_cr l_text INTO l_text.
APPEND l_text TO l_mailtext.
EXIT.
ELSE.
CLEAR: l_con.
MOVE <lfs_con> TO l_con.
CONDENSE l_con.
IF sy-index = 1.
CLEAR: l_text.
MOVE l_con TO l_text.
ELSE.
CONCATENATE l_text l_con INTO l_text
SEPARATED BY c_tab.
ENDIF.
ENDIF.
ENDDO.
ENDLOOP.
ENDFORM. " PREPARE_ATTACHMENT
Reward Ponts To All Helpfull Answers
Regards
Fareeeda -
Can I devise a popup box as a simple "Decline/Accept" button functionality?
I am playing around with Actions trying to create a popup box that will appear in front of a desired page with a 'Condition of entry' paragraph and buttons allowing a "Decline / Accept" option. If decline it takes a visitor back to a former page, while clicking 'Accept' allows a visitor to proceed to the page in question.
I do not need strict high security and fancy ASP or PHP or whatever, just regular html with javascript. Would this need to be set up with customized scripting, or can it be done using a combination of Actions - and which Actions? I am not over familiar with the use of Variables or Functions, or if this will require Cookies. Can I also incorporate a means of preventing the desired page (contents) from loading until the Acceptance button has been clicked?
Any assistance would be appreciated.
Martyn
Previous posting http://www.adobeforums.com/webx?224@@[email protected]Hello fountainbiz
The properties of the print purely depends upon the printer and the printer drivers.
Kindly check through the same, will surely resolve the problem
Happy browsing -
6.1 Print Templates - auto select items in the print dialog popup
In the slide deck I have about 6.1 it says the following:
•Print Templates
–Print templates can now be used to auto select items in the
print dialog popup. By default, the out of the box template
selects the current specification
Unfortunately I haven't been able to find how to do this in the EP documentation. Could someone point me in the right direction on how to do this?Download Extensibility Pack 2.6. It was just released. Take a look at page 11 in the Print Extensibility Guide. It should have the info you need. If not let me know.
Here is the link for the downloads:
https://support.oracle.com/CSP/ui/flash.html#tab=PatchHomePage(page=PatchHomePage&id=h1j503ev()) -
hi friends, can we send emails through BAPIs.my issue right now is---
1)Notifications (by E-mail and as a returned parameter to the BAPI) of
customers which were created using BAPI's .
i dont have much knowledge in BAPIs.
Can v solve the issue?
Thanks.Hi Shiva,
Check this blog.
/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
Regards
Aneesh. -
Can only access emails through OWA after migration from exchange 2007 to 2013
can only access emails through OWA after migration from exchange 2007 to 2013, in other words unable to access mails through outlook or from other Applications services.
needed RCA ... plz help..Hi,
From your description, you can send and receive messages only when you use OWA after migration from Exchange 2007 to Exchange 2013. If I have misunderstood your concern, please let me know.
In your case, I recommend you create a new test mailbox in your Exchange 2013 and check if you can send and receive messages on Outlook. If yes, it is recommended to create a new profile to solve this issue.
Hope this can be helpful to you.
Best regards,
Amy Wang
TechNet Community Support -
After moving to iCloud I can only get my email through the cloud, no new emails are making it to my home computer and .mac account. Does anyone have any advice on how to fix this issue?
Welcome to the Apple Community.
Which OS are you using.
Maybe you are looking for
-
What is the operating system on my MacBook Pro
I am trying to find out whether I have Lion, Tiger. Leopard etc on my MacBook. My Mail is configured to appear on my Blackberry phone, which is fine but if I compose an e-mail in Mail on my Macbook it appears several time (up to 50) on my Blackberry
-
Cant burn a song playlist off itunes because of error 4450 please help!!!
Im trying to burn the new halifax cd onto a cd and it stops at no particular song and in different places and I have tried burning it anbout 4 times and it keeps getting cancedelled because error 4450 occurs What do i do!!!???
-
System Copy:Failure when starting export with SAPINST
We are busy with a Unicode conversion and needs to start the export with sapinst. All pre unicode conversion steps are done, we upgraded from 4.6C to ECC6.0. It is a distrubuted system running on MSSQL. Started the export on the DB server and got the
-
Hi, after removing the report location tag i am getting the following error. for your information i am using the desktop applicaton. - Requested node not found in configuration file - received request: verifyLogon - received request: createServerAgen
-
I've got a RH X5 project here, and I'm publishing FlashHelp files. Over the course of development, I've added, deleted, and moved topics and folders within the HTML Files folder on the Project tab. A lot of times, when I'd add a new topic, it would b