on 2022 Jul 18 5:51 PM
Hi Experts,
I have used a report program to open Outlook from NWBC. The Outlook isn't opening from NWBC but its working when i execute the report program and when i try to debug i was neither getting an error or a dump. kindly let me know if there's a way i can open the Outlook from the NWBC. kindly go through the link which has the similar code i have used.
Any help would be appreciated.
FYI i have also attached the code below
INCLUDE : OLE2INCL.<br><br>DATA: OUT TYPE OLE2_OBJECT,<br> OUTMAIL TYPE OLE2_OBJECT,<br> DESTI TYPE OLE2_OBJECT,<br> ATT TYPE OLE2_OBJECT,<br> lv_body TYPE string,<br> ATTS TYPE OLE2_OBJECT.<br><br>CREATE OBJECT OUT 'Outlook.Application'.<br>CALL METHOD OF OUT 'CREATEITEM' = OUTMAIL EXPORTING #1 = 0.<br>SET PROPERTY OF OUTMAIL 'SUBJECT' = 'Subject of email'.<br>CONCATENATE 'Hi All,' 'This is body' INTO lv_body SEPARATED BY cl_abap_char_utilities=>cr_lf.<br>SET PROPERTY OF OUTMAIL 'BODY' = lv_body.<br>CALL METHOD OF OUTMAIL 'RECIPIENTS' = DESTI.<br>CALL METHOD OF DESTI 'ADD' EXPORTING #1 = 'test@mail.com' .<br>CALL METHOD OF OUTMAIL 'DISPLAY'.<br>
Edit:
if the above report program is executed from sap logon, it is opening Outlook with the content. If iam calling the same report program in some other class in nwbc it is neither giving me an error or a dump.
Thanks and regards
Saifuddin
Request clarification before answering.
To open outlook from NWBC, with FPM: we can use the Navigation to external URL, To open a mail we can use 'mailto:<recipients address>?subject=<Subject for the email>&body=<Body of the email>'.
DATA: navigate_to TYPE REF TO if_fpm_navigate_to,
fpm TYPE REF TO if_fpm,
it_parameters TYPE apb_lpd_t_params,
wa_parameters TYPE apb_lpd_s_params,
wa_url_fields TYPE fpm_s_launch_url,
to_email TYPE string,
subject TYPE string,
mail_body TYPE string.
"Create FPM Object
IF fpm IS NOT BOUND.
fpm = cl_fpm=>get_instance( ).
ENDIF.
"Get navigation object from FPM
navigate_to = fpm->get_navigate_to( ).
"Fill TO email
to_email = 'testmail@email.com'.
"Fill Subjectof email
subject = 'Subject of email'.
"Fill body of email
CONCATENATE 'Hello,' 'This is mail body' INTO mail_body SEPARATED BY cl_abap_char_utilities=>cr_lf.
"Fill the parameters in the work area
*-->Subject
wa_parameters-key = 'subject'.
wa_parameters-value = subject.
APPEND wa_parameters TO it_parameters.
*-->Mail Body
wa_parameters-key = 'body'.
wa_parameters-value = mail_body.
APPEND wa_parameters TO it_parameters.
"create External URL
CONCATENATE 'mailto:' to_email INTO wa_url_fields-url.
wa_url_fields-parameter = it_parameters.
"Launch the External URL
CALL METHOD navigate_to->launch_url
EXPORTING
is_url_fields = wa_url_fields
* IMPORTING
* et_messages =
* ev_error =
.
CLEAR: subject ,mail_body , to_email,
wa_url_fields, wa_parameters,
it_parameters,
fpm, navigate_to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To open Outlook from NWBC (NetWeaver Business Client), you can follow these steps:
Launch NWBC on your computer. NWBC is a unified user interface that allows you to access various SAP applications and services.
Log in to NWBC using your credentials. Once logged in, you will see the NWBC home screen.
Navigate to the "Favorites" or "Applications" tab in NWBC. The exact location may vary depending on the configuration of your NWBC interface.
Look for the Outlook application in the list of available applications. It may be listed as "Outlook," "Mail," or a similar name.
Click on the Outlook application to open it. NWBC will launch the Outlook client, providing you with access to your email, calendar, contacts, and other Outlook features.
Greetings,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear shaiksaifuddin7776,
could you please create a customer suppert ticket on the following component: BC-FES-OFFI
Regards,
Sandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear shaiksaifuddin7776,
could you please create a customer suppert ticket on the following component: BC-FES-OFFI
Regards,
Sandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
9 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.