SAP inbox-SBWP
Hi all,
I have activated WS 20000317- BUS2038 CREATED, BUS2038 INPROCESSAGAIN & WS 65400037 QMSM RESPONSIBLEISCHANGED in configuration for notification workflow .My requirement is to send the notification automatically to the concerned person i.e person responsible field in notification screen .Now when I am checking in SAP inbox there are so many notifications of different types like breakdown , general & also preventive request which I have scheduled through background job i.e IP30 in workflow , overdue entries & incorrect entries group .
Can anybody pl tell me why all these notifications are coming as these are not sent by anyone? Also what does these workflow, overdue entries & incorrect entries mean in SAP inbox?
rgds
rajib
BUS2038-Created (WS 20000317) Work flow would be triggered at the creation of any notification in the SAP System. That is why whenever a notification is created either through IP30 or manually, the work flow would be triggered. The point to ponder here is that the notifications listed in the particular User inbox should have the same Person Responsible as the User. If not then there must be a problem as you have customized it to be emailed to the appropriate Person Responsible.
The Over Due Entries are those entries for which deadline has been missed. Suppose the notification was to be performed on High Priority basis with start and end date specified. Now the person responsible does not complete the notification in the time specified in the notification then the notification would be moved from inbox to Overdue Entries.
Incorrect Entries are those entries for which a correction is needed. There is either no Person Responsible given or the Person Responsible does not correspond to a user, any correction regarding the receiver of the email message.
Regards...
Similar Messages
-
Not able to send mail to SAP Inbox(SBWP)
When i create a new message in SBWP and send it to SAP Inbox, It is moving to outbox. When I resubmit this mail , then it move to SAP Inbox. Please Help me to solve this problem.
Hi,
When i create a new message in SBWP and send it to SAP Inbox, It is moving to outbox.
When ever you send a new message (mail) from the SAP Inbox, Outbox will have a copy, Like sent items in the Outlook.
When I resubmit this mail , then it move to SAP Inbox. Please Help me to solve this problem. code}
When creating a new message, If you give the correct User Id in the recipient it will go correctly. Click Refresh in the SAP Inbox and check it.
Regards,
Surjith -
Receive email from outlook to SAP inbox SBWP
hi,
I want to send email from my outlook and want to receive it in the SAP system inbox (SBWP). Can anyone please help me.
Thanks,
Hiral SoniHiral,
there's a step-by-step guide in the SAP help:
http://help.sap.com/saphelp_nw70/helpdata/EN/55/a8b538891b11d2a25a00a0c943858e/frameset.htm
kr, achim -
Workitem not received in SAP inbox(SBWP)- In SOST status is waiting
Hi Experts,
After executing workflow , I am not getting the workitem in SAP inbox.
I am sending mail using BOR Object type SELFITEM and method SENDTASKDESCRIPTION.
In SOST , status is in waiting ( Send method - Remote ).
For Send method - via Internet its working fine . Mail is sent to external mail address. But for Send method Remote send requests are in waiting status.
SAPCONNECT job also getting executed every 5 mins in back ground.
SCOT-RML routing exists with Address area * , Node in use check box i, Node supports : connection test, status, trace , Supported address types - R/3 is checked.
Please let me know any other settings has to be done to send workitem to SAP inbox.
Thanks & Regards,
Priya.Hello,
"After executing workflow , I am not getting the workitem in SAP inbox."
You are confusing workitems with emails. SENDTASKDESCRIPTION = email.
regards
Rick Bakker
hanabi technology -
SAP inbox(SBWP) workitem should remains in INBOX
Dear Experts,
I have created a workflow. I want to forward its workitem to someone else. But when I open the task, workitem comes to the outbox; and outbox don't have the forward option.
My requirement is that; workflow should remains in the inbox when it is being opened and then user forward this workitem after displaying it and send to anyone as per his requirements using forward button.
Regards,
SohailWhen you click/open the work item, it gets completed. That's why it is in the outbox. Completed work items cannot be forwarded (basically nothing can be done for them anymore). Most likely your step/task has been built in a wrong way. I have no idea what your step is supposed to do, but in 99% cases, when you have a dialog step in a workflow, there is e.g. some button that need to be pressed in order to complete the work item - for example "Approve" or something like that (depending on what kind of workflow process you are dealing with). And if you don't press that button, the work item will stay in your inbox. Steps shouldn't be completed just by clicking/opening the work item.
You need to tell more details about your step. What is it doing (what happens when you click the work item)? Or perhaps you can share the code of the method that gets executed in the task?
Regards,
Karri -
What are the SAP inbox tables.
Hi Team
i want to know what are the SAP inbox tables.
if i have click on SAP inbox for perticular user, retrived 37000 entries and give short dump "Time Out" . i want to know from which table retrived the records and display into the SAP inbox(SBWP).
Thanks in advance.
Puneet.Look at SAPoffice tables and Business Workplace tables : SOOD, SOOS, SOC3, SOFFCONT1, BCST_SR, BCST_CAM
Regards,
Raymond -
SAP inbox forward to user STATUS 'READY'
Hi Experts
I have chanllenge with workflow item from SAP Inbox in Production. I am trying to forward the workflow item to any of the users from SAP Inbox(SBWP) and when i see the forward workitems its in status "READY".
i have checked the workflow ID in TCODE : SWI1...and shows the status as READY.
i did refresh the buffer SWU_OBUF but the results are same as expliained above.
can pls know...What would be the problem...
Thank you,
pasala.>But when the user checks his inbox he does not find the workflow item.
Which user? A) The one who sent the item, or B) the one who should have received the item?
If it is the case A, then this is normal. If you forward the work item to someone, it will disappear from sender's inbox. B) If the received doesn't receive the work item (and you are not getting any error message when forwardig), then something is seriously wrong...
Regards,
Karri -
Hi
We are using SAP ESS and MSS. When we create a leave request or raise a travel request , the notifications comes in UWL and SAP inbox. Is there a particular way of disabling sending of mails/notifications to SAP inbox ( SBWP).
Regards
PNThank you all for your great help.
Siddharth I checked System connection test it is failed, and I correctec that and configured UWL in poratl.
Its Working fine.
Regards,
K Sanj. -
Error when reading a pdf attachment file in sap inbox
Hi all,
I have created a RFC which sends mail from an external user to my sap inbox with attachment.
the problem is with the PDF attachment where when i received the mail in my sap inbox in sbwp, it says that there is an error that it wasnt correctly decode.
I used the class cl_document_bcs...
and used the method add_attachment...
would plz help me outthis is my code
FUNCTION ZMAIL_READ.
*"*"Local Interface:
*" IMPORTING
*" VALUE(SUBJECT) TYPE SO_OBJ_DES
*" VALUE(TEXT) TYPE STRING
*" VALUE(SENDER) TYPE ADR6-SMTP_ADDR
*" VALUE(RECEIVER) TYPE ADR6-SMTP_ADDR
*" VALUE(ATTACHMENTS) TYPE Z_T_XATTACH OPTIONAL
*" EXPORTING
*" VALUE(MESSAGE) TYPE STRING
DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
lo_bcs_send_request TYPE REF TO cl_bcs,
l_send type ADR6-SMTP_ADDR ,
l_rec type ADR6-SMTP_ADDR .
data: it_text type table of soli,
wa_text type soli.
DATA: lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
DATA: lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
DATA: lv_recipient_uid TYPE uname,
lv_recipient_mail TYPE adr6-smtp_addr.
data: lo_message type ref to cx_send_req_bcs value is initial,
text_val type string.
data: it_userlist type table of BAPIUSNAME,
wa_userlist type BAPIUSNAME.
data: it_selection_range type table of BAPIUSSRGE,
wa_selection_range type BAPIUSSRGE.
data: wa_attachment TYPE ZXATTACH,
attachment_sub type SO_OBJ_DES.
DATA: xstr type xstring,
str TYPE string,
str1 type string,
it_str2 type table of soli,
wa_STR2 TYPE SOLI.
DATA: LOC_CONV TYPE REF TO CL_ABAP_CONV_IN_CE,
wa_solix type solix,
it_solix type table of solix,
wa_soli type soli,
it_soli type table of soli.
data result TYPE boolean.
data: i_ext(10) type c,
i_type type soodk-objtp.
wa_text-line = text.
append wa_text to it_text.
CLASS cl_bcs DEFINITION LOAD.
try.
lo_send_request = cl_bcs=>create_persistent( ).
catch cx_send_req_bcs.
endtry.
* Message body and subject
data: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
try.
lo_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = it_text
i_subject = subject ).
catch cx_send_req_bcs.
catch cx_document_bcs.
catch cx_address_bcs.
endtry.
loop at attachments into wa_attachment.
attachment_sub = wa_attachment-file_name.
it_str2 = wa_attachment-attach.
loop at it_str2 into wa_str2.
str1 = wa_str2-line.
try.
CALL FUNCTION 'SSFC_BASE64_DECODE'
EXPORTING
B64DATA = str1
* B64LENG =
* B_CHECK =
IMPORTING
BINDATA = xstr
* EXCEPTIONS
* SSF_KRN_ERROR = 1
* SSF_KRN_NOOP = 2
* SSF_KRN_NOMEMORY = 3
* SSF_KRN_OPINV = 4
* SSF_KRN_INPUT_DATA_ERROR = 5
* SSF_KRN_INVALID_PAR = 6
* SSF_KRN_INVALID_PARLEN = 7
* OTHERS = 8
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
catch cx_sy_dyn_call_illegal_type.
endtry.
CALL METHOD CL_ABAP_CONV_IN_CE=>CREATE
EXPORTING
INPUT = xstr
ENCODING = 'UTF-8'
* REPLACEMENT = '?'
* IGNORE_CERR = ABAP_TRUE
RECEIVING
CONV = loc_CONV.
TRY.
CALL METHOD LOC_CONV->READ
IMPORTING
DATA = STR.
CATCH CX_SY_CONVERSION_CODEPAGE.
CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
CATCH CX_PARAMETER_INVALID_TYPE.
CATCH CX_PARAMETER_INVALID_RANGE.
ENDTRY.
wa_solix-line = xstr.
append wa_solix to it_solix.
wa_soli-line = str.
append wa_soli to it_soli.
endloop.
try.
CALL FUNCTION 'SA_KW_RFC_FILENAME_EXT_GET'
EXPORTING
AREA = 'IWBSOLAR'
MIMETYPE = wa_attachment-type
IMPORTING
EXTENSION = i_ext
catch cx_sy_dyn_call_illegal_type.
endtry.
i_type = i_ext.
if i_ext <> 'pdf'.
try.
lo_document->add_attachment(
EXPORTING
i_attachment_type = i_type
i_attachment_subject = attachment_sub
i_att_content_hex = it_solix ).
CATCH cx_document_bcs.
endtry.
clear wa_solix.
refresh it_solix.
else.
TRY.
CALL METHOD LO_DOCUMENT->ADD_ATTACHMENT
EXPORTING
I_ATTACHMENT_TYPE = i_type
I_ATTACHMENT_SUBJECT = attachment_sub
* I_ATTACHMENT_SIZE =
* I_ATTACHMENT_LANGUAGE = SPACE
I_ATT_CONTENT_TEXT = it_soli
* I_ATT_CONTENT_HEX =
* I_ATTACHMENT_HEADER =
CATCH CX_DOCUMENT_BCS .
ENDTRY.
ENDIF.
endloop.
try.
lo_send_request->set_document( lo_document ).
CATCH cx_send_req_bcs.
endtry.
wa_selection_range-PARAMETER = 'address'.
wa_selection_range-field = 'e_mail'.
wa_selection_range-sign = 'I'.
wa_selection_range-option = 'EQ'.
wa_selection_range-low = receiver.
append wa_selection_range to it_selection_range.
try.
CALL FUNCTION 'BAPI_USER_GETLIST'
* EXPORTING
* MAX_ROWS = 0
* WITH_USERNAME = ' '
* IMPORTING
* ROWS =
TABLES
SELECTION_RANGE = it_selection_range
* SELECTION_EXP =
USERLIST = it_userlist
* RETURN =
catch cx_sy_dyn_call_illegal_type.
endtry.
read table it_userlist into wa_userlist index 1.
try.
lo_sender = cl_cam_address_bcs=>create_internet_address( sender ).
lo_send_request->set_sender(
EXPORTING
i_sender = lo_sender ).
catch cx_send_req_bcs.
catch cx_document_bcs.
catch cx_address_bcs.
return.
endtry.
try.
lo_recipient = cl_sapuser_bcs=>create( wa_userlist-USERNAME ).
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient ).
* i_express = 'X' ).
catch cx_send_req_bcs.
catch cx_document_bcs.
catch cx_address_bcs.
endtry.
try.
** Send email
LO_SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
lo_send_request->send( EXPORTING
i_with_error_screen = ' '
RECEIVING
result = result ).
COMMIT WORK.
CATCH CX_DOCUMENT_BCS.
CATCH CX_SEND_REQ_BCS INTO lo_message.
CATCH CX_ADDRESS_BCS.
text_val = lo_message->IF_MESSAGE~GET_TEXT( ).
endtry.
if result = 'X'.
message = 'E-Mail sent'.
else.
message = 'E-Mail not sent'.
endif.
ENDFUNCTION. -
The work item not coming in SAP inbox ....
Hi experts,
I am doing PR realese workflow.It is moved to quality server from development. In quality it is activated and showing no error.When a PR is created mail is send to approver and the workflow is waiting for his approval. But the work item is not available in his SAP inbox. Even he is getting the remainder mails.But the work item is not available in his business workplace(SBWP).I cross checked user ids of approvers. But still its not working ....the mails are sent to approvers external mail ID.....
Is there any configurations to make for making the SBWP active ?????
Pls anyone give me a solution for this problem...
Thanks & regards,
JayarajHello,
The best solution would be to take your mouse, move your cusror to the top part of your screen, and click on the "Before you ask (here are many workflow answers)" thread. If you've tried everything that is proposed there then please reply to this thread explaing what you have tried.
Cheers,
P. -
Hi all,
I am using the following code to send the mail to SAP inbox,
DATA : it_reclist TYPE TABLE OF somlreci1,
wa_reclist TYPE somlreci1.
DATA : wa_docdata TYPE sodocchgi1.
DATA : it_message TYPE TABLE OF solisti1,
wa_message TYPE solisti1,
it_attach TYPE TABLE OF sopcklsti1.
LOOP AT it_super_uid INTO wa_super_uid.
wa_reclist-receiver = wa_super_uid-usid.
wa_reclist-rec_type = 'B'.
APPEND wa_reclist TO it_reclist.
ENDLOOP.
wa_docdata-obj_langu = sy-langu.
wa_docdata-obj_name = text-005.
wa_docdata-obj_descr = text-006.
wa_docdata-sensitivty = 'F'.
wa_message-line = text-007.
APPEND wa_message TO it_message.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_docdata
put_in_outbox = 'X'
COMMIT_WORK = ' '
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
packing_list = it_attach
OBJECT_HEADER =
CONTENTS_BIN =
CONTENTS_TXT =
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = it_reclist
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.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF sy-subrc = 0.
MESSAGE text-008 TYPE 'S'.
ENDIF.
Still i am not able to send the mail , its giving me exception 5. Please let me know how could i modify the code.
Thanx,
Girish.HI,
The code below demonstrates how to send an SAP mail to a users inbox (SBWP)
: Report ZSAPTALK :
: Author SAPdev.co.uk :
: Description : :
: Send mail message to SAP mail inbox. :
: Please visit www.sapdev.co.uk for further info :
REPORT ZSAPMAIL NO STANDARD PAGE HEADING.
TABLES: DRAD,
QINF,
DRAW,
SOUC,
SOFD,
DRAP.
DATA: P_RETURN_CODE LIKE SY-SUBRC.
data: d_username LIKE DRAP-PRNAM.
mail declarations
DATA : BEGIN OF NEW_OBJECT_ID. " the newly created email object
INCLUDE STRUCTURE SOODK.
DATA : END OF NEW_OBJECT_ID.
DATA : BEGIN OF FOLDER_ID. " the folder id of the outbox
INCLUDE STRUCTURE SOODK.
DATA : END OF FOLDER_ID.
DATA : BEGIN OF REC_TAB OCCURS 5. " the table which will contain the
INCLUDE STRUCTURE SOOS1. " information on the destination
DATA : END OF REC_TAB.
DATA : BEGIN OF OBJECT_HD_CHANGE. " the table which contains the
INCLUDE STRUCTURE SOOD1. " info for the object we will be
DATA : END OF OBJECT_HD_CHANGE. " creating
DATA : OBJECT_TYPE LIKE SOOD-OBJTP. " the type of object
DATA : BEGIN OF OBJHEAD OCCURS 5. " the header of the object
INCLUDE STRUCTURE SOLI.
DATA : END OF OBJHEAD.
DATA : BEGIN OF OBJCONT OCCURS 0. " the contents of the object
INCLUDE STRUCTURE SOLI. " i.e. the text etc
DATA : END OF OBJCONT.
DATA : BEGIN OF OBJPARA OCCURS 5. " formatting options
INCLUDE STRUCTURE SELC.
DATA : END OF OBJPARA.
DATA : BEGIN OF OBJPARB OCCURS 5. " formatting options
INCLUDE STRUCTURE SOOP1.
DATA : END OF OBJPARB.
DATA : BEGIN OF T_MAIL_TEXT OCCURS 0, "Message table for messages to
STRING(255), "user via mailbox
END OF T_MAIL_TEXT.
Parameter: p_uname like sy-uname.
**START-OF-SELECTION
START-OF-SELECTION.
d_username = p_uname.
PERFORM POPULATE_EMAIL_TEXT.
PERFORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
PERFORM CREATE_AND_SEND_MAIL_OBJECT.
FORM POPULATE_EMAIL_TEXT *
Inserts text for email message *
FORM POPULATE_EMAIL_TEXT.
CLEAR T_MAIL_TEXT-STRING. "puts a blank line in
APPEND T_MAIL_TEXT.
APPEND T_MAIL_TEXT.
adds failed list on to end of success list.
T_MAIL_TEXT-STRING = 'Test email message line 1'.
APPEND T_MAIL_TEXT.
T_MAIL_TEXT-STRING = 'Test email message line 1'.
APPEND T_MAIL_TEXT.
CLEAR T_MAIL_TEXT-STRING. "puts a blank line in
APPEND T_MAIL_TEXT.
T_MAIL_TEXT-STRING = 'Header1 Header2 Header3'.
APPEND T_MAIL_TEXT.
T_MAIL_TEXT-STRING = '----
APPEND T_MAIL_TEXT.
ENDFORM.
*& Form SETUP_TRX_&_RTX_MAILBOXES
Ensure that the mailboxes of the sender (INTMGR) are set up OK
FORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
get the user no of the sender in order to add the mail to the
user name's outbox for future reference
SELECT SINGLE * FROM SOUC
WHERE SAPNAM = SY-UNAME. "SAP name of a SAPoffice user
IF SY-SUBRC NE 0.
"Error finding the SAPoffice user info for the user
MESSAGE E064(ZR53) WITH SY-UNAME.
P_RETURN_CODE = 1.
EXIT.
ENDIF.
*Get the outbox No for the sender from the user No where the folder
" type is an outbox
SELECT * FROM SOFD WHERE OWNTP = SOUC-USRTP "Owner type from ID
AND OWNYR = SOUC-USRYR "Owner year from the ID
AND OWNNO = SOUC-USRNO "Owner number from the I
AND FOLRG = 'O'."Output box
ENDSELECT.
IF SY-SUBRC NE 0.
" Error getting folder information for the user
MESSAGE E065(ZR53) WITH SY-UNAME.
P_RETURN_CODE = 1.
EXIT.
ENDIF.
ENDFORM. " SETUP_TRX_&_RTX_MAILBOXES
*& Form CREATE_AND_SEND_MAIL_OBJECT
FORM CREATE_AND_SEND_MAIL_OBJECT.
FOLDER_ID-OBJTP = SOFD-FOLTP. " the folder type ( usually FOL )
FOLDER_ID-OBJYR = SOFD-FOLYR. " the folder year ( usually 22 )
FOLDER_ID-OBJNO = SOFD-FOLNO. " the folder no.
OBJECT_TYPE = 'RAW'. " the type of object being added
build up the object information for creating the object
OBJECT_HD_CHANGE-OBJLA = SY-LANGU. " the language of the email
OBJECT_HD_CHANGE-OBJNAM = 'PS to DM Interface'. " the object name
mail subject 'Mass Linking of QA, pass/fail'
MOVE TEXT-002 TO OBJECT_HD_CHANGE-OBJDES.
OBJECT_HD_CHANGE-DLDAT = SY-DATUM. " the date of the email
OBJECT_HD_CHANGE-DLTIM = SY-UZEIT. " the time of the email
OBJECT_HD_CHANGE-OBJPRI = '1'. " the priority ( highest )
OBJECT_HD_CHANGE-OBJSNS = 'F'. " the object sensitivity
F is functional, C - company sensitive
object_hd_change-skips = ' '. " Skip first screen
object_hd_change-acnam = 'SM35'. " Batch imput transaction
object_hd_change-vmtyp = 'T'. " Transaction type
add the text lines into the contents of the email
CLEAR OBJCONT.
REFRESH OBJCONT.
free objcont. " added this to delete the mail contents records
LOOP AT T_MAIL_TEXT.
OBJCONT-LINE = T_MAIL_TEXT-STRING.
APPEND OBJCONT.
ENDLOOP.
CLEAR OBJCONT.
build up the table of receivers for the email
REC_TAB-RCDAT = SY-DATUM. " the date to send the email
REC_TAB-RCTIM = SY-UZEIT. " the time to send the email
the SAP username of the person who will receive the email
REC_TAB-RECNAM = D_USERNAME.
the user type of the person who will send the email ( USR )
REC_TAB-SNDTP = SOUC-USRTP.
the user year of the person who will send the email ( 22 )
REC_TAB-SNDYR = SOUC-USRYR.
the user number of the person who will send the email
REC_TAB-SNDNO = SOUC-USRNO.
the sap username of the person who will send the email
REC_TAB-SNDNAM = SY-UNAME.
get the user info for the receiver of the document
SELECT SINGLE * FROM SOUC WHERE SAPNAM = D_USERNAME.
IF SY-SUBRC NE 0.
WRITE : / TEXT-001, D_USERNAME. "usnam.
EXIT.
ENDIF.
the user number of the person who will receive the email ( USR )
REC_TAB-RECNO = SOUC-USRNO.
the user type of the person who will receive the email ( USR )
REC_TAB-RECTP = SOUC-USRTP.
the user year of the person who will receive the email ( USR )
REC_TAB-RECYR = SOUC-USRYR.
the priority of the email ( highest )
REC_TAB-SNDPRI = '1'.
check for delivery on the email
REC_TAB-DELIVER = 'X'.
send express so recipient knows there is a problem
REC_TAB-SNDEX = 'X'.
check for a return receipt
REC_TAB-READ = 'X'.
the sap username of the person receiving the email
REC_TAB-ADR_NAME = D_USERNAME. "usnam.
add this receiver to the internal table
APPEND REC_TAB.
CLEAR REC_TAB.
call the function to create the object in the outbox of the sender
CALL FUNCTION 'SO_OBJECT_INSERT'
EXPORTING
FOLDER_ID = FOLDER_ID
OBJECT_HD_CHANGE = OBJECT_HD_CHANGE
OBJECT_TYPE = OBJECT_TYPE
OWNER = SY-UNAME
IMPORTING
OBJECT_ID = NEW_OBJECT_ID
TABLES
OBJCONT = OBJCONT
OBJHEAD = OBJHEAD
OBJPARA = OBJPARA
OBJPARB = OBJPARB
EXCEPTIONS
ACTIVE_USER_NOT_EXIST = 1
COMMUNICATION_FAILURE = 2
COMPONENT_NOT_AVAILABLE = 3
DL_NAME_EXIST = 4
FOLDER_NOT_EXIST = 5
FOLDER_NO_AUTHORIZATION = 6
OBJECT_TYPE_NOT_EXIST = 7
OPERATION_NO_AUTHORIZATION = 8
OWNER_NOT_EXIST = 9
PARAMETER_ERROR = 10
SUBSTITUTE_NOT_ACTIVE = 11
SUBSTITUTE_NOT_DEFINED = 12
SYSTEM_FAILURE = 13
X_ERROR = 14
OTHERS = 15.
IF SY-SUBRC NE 0.
MESSAGE A063(ZR53) WITH SY-SUBRC.
EXIT.
ENDIF.
call the function to send the already created email to the receivers
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
FOLDER_ID = FOLDER_ID
OBJECT_ID = NEW_OBJECT_ID
OUTBOX_FLAG = 'X'
OWNER = SY-UNAME
TABLES
RECEIVERS = REC_TAB
EXCEPTIONS
ACTIVE_USER_NOT_EXIST = 1
COMMUNICATION_FAILURE = 2
COMPONENT_NOT_AVAILABLE = 3
FOLDER_NOT_EXIST = 4
FOLDER_NO_AUTHORIZATION = 5
FORWARDER_NOT_EXIST = 6
NOTE_NOT_EXIST = 7
OBJECT_NOT_EXIST = 8
OBJECT_NOT_SENT = 9
OBJECT_NO_AUTHORIZATION = 10
OBJECT_TYPE_NOT_EXIST = 11
OPERATION_NO_AUTHORIZATION = 12
OWNER_NOT_EXIST = 13
PARAMETER_ERROR = 14
SUBSTITUTE_NOT_ACTIVE = 15
SUBSTITUTE_NOT_DEFINED = 16
SYSTEM_FAILURE = 17
TOO_MUCH_RECEIVERS = 18
USER_NOT_EXIST = 19
X_ERROR = 20
OTHERS = 21.
IF SY-SUBRC EQ 0.
MESSAGE I035(ZR53) WITH NEW_OBJECT_ID D_USERNAME. "usnam.
ELSE.
MESSAGE I036(ZR53) WITH D_USERNAME." sy-subrc.
ENDIF.
ENDFORM. " CREATE_AND_SEND_MAIL_OBJECT
Hope this helps.
Reward if helpful.
Regards,
Sipra -
Can we keep Decision workitem in two users SAP inbox after canel action ?
I have a requirement like " Decision workitem is going to two SAP Users Inbox , when one user opens the work item and choose the cancel and keep workitem in inbox in that case also its disappering in other user's SAP Inbox"
is there any way to keep the work item in both users inbox when one person selects CANCEL AND KEEP WORKITEM IN INBOX ?
Please give me your input.
Thanks and Regards,
veerabrahmamRick Bakker wrote:
Hello,
>
> Is this in SBWP or UWL?
>
> This seems to be the SAP standard in some scenarios. You could have the workflow test for Reserved and unreserve it but then what happens if it was reserved on purpose.
>
> regards
> Rick Bakker
> hanabi technology
Hi Rickk ,
it is SBWP
it is intresting to see that case if one of approver reserves it for the purpose of evaluating later.
the thing is our onsite consultant asked like is it possible to keep the decision in the two approvers SAP Inbox after selecting cancel and keep workitem in the inbox.
is that possible ? -
More than 50 char email subject to SAP inbox
Hi Guys,
I have the ff email reqt in my workflow:
1. Subject with more than 50 char
2. Message URL with more than 80 char
3. Message text in bold
I cannot address all 3 when using send mail step so I created an activity step instead and call my method that made use of CL_BCS class.
But it seems like I cannot make use of it because I'm sending my email to SAP Inbox.
Subject with more than 50 chars works only when sending outside SAP, as per note 698087.
Is there a solution for this?
Can I send an email to SBWP with more than 50 char?
Please help me out, as I already exhausted all possible solutions I found on the net.
I also implemented snote 0001523530 but it doesn't work.
Thanks.Hi,
If you need the users to approve something, this is a task not a mail (mail been only informative)
Tasks subjects are not limited to 50 chars, you can add links to decision tasks by attaching objects and as you said yourself in HTML tags not recognized bold chars will work in the SAP business workplace.
The second option I mentioned was to use a task which method calls a screen (to be more exact - calls a function module or a program which calls a dialog screen), and then you have all the options since this is a regular ABAP screen.
P.S
The extended notifications which inform users of waiting tasks is using a BSP application, in it html tags work very well.
Ronen -
Transaction code to go to sap Inbox
Hi
Do anyone have an idea what is the transaction code to sap inbox. I know through SBWP we can go, there is another transaction it seems. What is that. I have searched in table TSTC but i could not find that. Could anyones know this please help me out.
Regards
Haritha.hi
so01
thanks,
viji -
Authorization to disable SAP Inbox Forward function for specific Work Items
Hi.
I recently solved a case for a customer of mine regarding authorizations for work items. They have several workflows running, but for this specific custom developed workflow, users should not be allowed to use the SAP Inbox Forward button.
I started by creating a new task classification (Z_FW) which I implemented on the workflow tasks where the forward functionality should be disabled. Now for test purposes I created a dummy user which I initially gave only authorization to the tcode SBWP, then I manually added the authorization object S_WF_WI.
For this entry I allowed all activities for work item type W and F for classification 1, 2, 3 and NO_CLASS (SAP Standard classification).
Now to my understanding this would give the test user authorization to perform all activities on Work Items and Workflows which are classified with one of the above, but also prevent me from doing anything with Workflows and Work Items with classification Z_FW.
However, to my surprise everything seems to work perfectly with just this entry. I am able to execute and forward work items with the standard classification, while I am able to execute, but not forward, work items with classification Z_FW.
My intention was to add another entry for authorization object S_WF_WI, for classification Z_FW with all activities except forwarding. But when I tried that, the only change was that forwarding was enabled for the work items with classification Z_FW, which I didnu2019t want.
Now can anyone explain to me why this is working? I am not too familiar with SAP Authorization as my area is mainly ABAP and WF, but his just does not seem logical.
Hoping someone can give me an explanation....
ThanksDoes the standard function not do what you want?
Task -> Additional data -> Agent Assignemt -> Maintain -> Attributes -> Forwarding not allowed.
Maybe you are looking for
-
I'm pretty new to OS X Server administration and was wondering if someone could point me towards some information about getting both NIC's to answer. I've got both configured and only the first one in the network "Service Order" is the only one respo
-
Making selected rows to display mode in ALV grid
I Have program with ALV grid display, which has check box as the first field. The requirement is like. When i select some rows in the grid display with the check box and click on a button , then the selected rows shud change to display mode and other
-
Why does the iPod nano Replacement Program doesn't ship to Puerto Rico?
Just like it says on the title. I've been trying constantly to get the replacemente but everything I submit the order I keep getting an error. I know that apple doesn't ship new merchandise to PR, but they did ship the bumpers through the bumper prog
-
Lost Project in Final Cut Pro X
I lost my entire project in FCP X. I edited for a couple of days and was very irritated by not being able to save it (though I checked on the internet and as everybody is talking about it I trusted that FCP X would save automatically). When I restart
-
In my custom tag library, I have an HTML tag that will write out HTML along with any attributes it is passed: <tl:HTML name="img"> <tl:HTMLattribute name="src" value="myImg.gif"/> </tl:HTML>I do that by extending BodyTagSupport and not writing the