Mail not send to multiple users even Multiline container element has value
Hi,
I have collected the AGENTS to send mail notification in a multiline container element using a background step. The method collect the agent and return in to a container. I use this container in the following mail step using expression. The type id is 'G'. The mail step fails .The address string is filled also with agents.
Please guide me if u have come across this situation early.
Regards,
Richard A
I think if you are passing SAP User Id then the SAP User Id should be concatenated with US in the front.
If this is maintained in the container element and if still send mail is failing then it might be that one of the USER Id does not exist in the system.
Hope this helps.
Thanks
Arghadip
Similar Messages
-
Send Mail to External Mail ID's for Multiple Users
Hi All,
I want to send mail from SAP to External mail ID's for multiple Users.The program is ok.
But I want to send this to Multiple external Mail id's. Where should I assign this receivers list. Pls advise.
What is the transaction to assign multiple receivers.?
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = GD_DOC_DATA
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = ''
TABLES
PACKING_LIST = IT_PACKING_LIST
CONTENTS_TXT = IT_MESSAGE
RECEIVERS = IT_RECEIVERS
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.
Thank You.
Pranitha.IT_RECEIVERS parameters needs to be passed as shown below.
wa_receivers-receiver = "..........External mail id".
wa_receivers-rec_type = 'U'.
wa_receivers-express = 'X'.
APPEND wa_receivers TO lt_receivers.
CLEAR wa_receivers.
Once mail is triggered to the external mail id's, check the mail is transferred from SAP or not using the tcode SCOT.
In SCOT,follow the path UTILITIES-> Overview of send orders.
Regards,
Satish Kanteti -
Mail not send when subroutine is call in dynamic actions
Hi Friends,
I have facing a problem in sending a mail through dynamic actions . In this mail is not send to specific user mail-id.
Suggest me . What to be exactly done .
Regards,
AnishFirst you have to understand what should be done...
ask your functional consulatant where exactly the Mails need to be retrived For example...
in infotype 0105 subtype '010' generally we have email ids avaialable of the employeee....
may be this helps or not give full specification some one can revert back.
Regards
sas -
Reg: WorkItem & Mail Inbox Problem for Multiple users In workflow
Hi,
I have developed a wofkflow application to sent SAP mails and Workitems to multiple users. I Have a Container which has the property as multi line. and i mapped this container variable with expression of my mail step. This means i can send multiple mails at the sae time....Its working Fine. But the problem is,
Suppose I am sending mails to User1 & User2. Both are receiving the mail, But if user1 read the mail user2 mail is set as read document instead of unread doucument.....
How to Solve this? any solution ?Hi
See if this document is of any help to you.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c6456e89-0a01-0010-0189-a7961fe42034">An expert guide to new SAP workflow capabilities</a>
Regards,
Raj -
Mail not responding under one user. Need to Force Quit to get out of it. My mail works when I log on as a user. Downloaded the latest Mountain Lion updates and reinstalled Mountain Lion as per Apple Phone Support instructions
TIAThanks for reponding. Here is the Console display. I hope this can help.
2013-09-08 8:11:49.646 AM Mail[449]: Using V2 Layout
2013-09-08 8:11:50.104 AM Mail[449]: Cannot lock focus on image <NSImage 0x7ffefba4c1a0 Size={0, 0} Reps=(
)>, because it is size zero.
2013-09-08 8:11:50.107 AM Mail[449]: (
0 CoreFoundation 0x00007fff970d5b06 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff96aab3f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff970d58dc +[NSException raise:format:] + 204
3 AppKit 0x00007fff8e3ec21c -[NSImage _lockFocusOnRepresentation:rect:context:hints:flipped:] + 334
4 AppKit 0x00007fff8e3ec0b8 __51-[NSImage lockFocusWithRect:context:hints:flipped:]_block_invoke_0 + 82
5 AppKit 0x00007fff8e33b406 -[NSImage _usingBestRepresentationForRect:context:hints:body:] + 170
6 AppKit 0x00007fff8e3ec056 -[NSImage lockFocusWithRect:context:hints:flipped:] + 210
7 AppKit 0x00007fff8e3ebf76 -[NSImage lockFocusFlipped:] + 125
8 AppKit 0x00007fff8e1cf2b0 -[NSGradientColor _updatePatternImage] + 121
9 AppKit 0x00007fff8e1ceeff -[NSGradientColor _updatePattern] + 487
10 AppKit 0x00007fff8e1cec8f -[NSGradientColor set] + 26
11 AppKit 0x00007fff8e44460c -[NSTableView drawBackgroundInClipRect:] + 657
12 AppKit 0x00007fff8e443d0f -[NSTableView drawRect:] + 1086
13 AppKit 0x00007fff8e328064 -[NSView _drawRect:clip:] + 4217
14 AppKit 0x00007fff8e3266c1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1656
15 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
16 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
17 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
18 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
19 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
20 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
21 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
22 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
23 AppKit 0x00007fff8e3246f2 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 817
24 AppKit 0x00007fff8e324143 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 314
25 AppKit 0x00007fff8e31fd6d -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4675
26 AppKit 0x00007fff8e2e9c93 -[NSView displayIfNeeded] + 1830
27 Mail 0x0000000105859377 Mail + 189303
28 AppKit 0x00007fff8e2e91cc _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 738
29 AppKit 0x00007fff8e8b4901 __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_ invoke_01208 + 46
30 CoreFoundation 0x00007fff9709c417 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
31 CoreFoundation 0x00007fff9709c381 __CFRunLoopDoObservers + 369
32 CoreFoundation 0x00007fff970777b8 __CFRunLoopRun + 728
33 CoreFoundation 0x00007fff970770e2 CFRunLoopRunSpecific + 290
34 HIToolbox 0x00007fff96d70eb4 RunCurrentEventLoopInMode + 209
35 HIToolbox 0x00007fff96d70b94 ReceiveNextEventCommon + 166
36 HIToolbox 0x00007fff96d70ae3 BlockUntilNextEventMatchingListInMode + 62
37 AppKit 0x00007fff8e2e6533 _DPSNextEvent + 685
38 AppKit 0x00007fff8e2e5df2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
39 AppKit 0x00007fff8e2dd1a3 -[NSApplication run] + 517
40 AppKit 0x00007fff8e281bd6 NSApplicationMain + 869
41 libdyld.dylib 0x00007fff8d5427e1 start + 0
2013-09-08 8:11:50.140 AM Mail[449]: Cannot lock focus on image <NSImage 0x7ffefb814390 Size={0, 0} Reps=(
)>, because it is size zero.
2013-09-08 8:11:50.143 AM Mail[449]: (
0 CoreFoundation 0x00007fff970d5b06 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff96aab3f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff970d58dc +[NSException raise:format:] + 204
3 AppKit 0x00007fff8e3ec21c -[NSImage _lockFocusOnRepresentation:rect:context:hints:flipped:] + 334
4 AppKit 0x00007fff8e3ec0b8 __51-[NSImage lockFocusWithRect:context:hints:flipped:]_block_invoke_0 + 82
5 AppKit 0x00007fff8e33b406 -[NSImage _usingBestRepresentationForRect:context:hints:body:] + 170
6 AppKit 0x00007fff8e3ec056 -[NSImage lockFocusWithRect:context:hints:flipped:] + 210
7 AppKit 0x00007fff8e3ebf76 -[NSImage lockFocusFlipped:] + 125
8 AppKit 0x00007fff8e1cf2b0 -[NSGradientColor _updatePatternImage] + 121
9 AppKit 0x00007fff8e1ceeff -[NSGradientColor _updatePattern] + 487
10 AppKit 0x00007fff8e1cec8f -[NSGradientColor set] + 26
11 AppKit 0x00007fff8e44460c -[NSTableView drawBackgroundInClipRect:] + 657
12 AppKit 0x00007fff8e443d0f -[NSTableView drawRect:] + 1086
13 AppKit 0x00007fff8e328064 -[NSView _drawRect:clip:] + 4217
14 AppKit 0x00007fff8e3266c1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1656
15 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
16 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
17 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
18 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
19 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
20 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
21 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
22 AppKit 0x00007fff8e326ad9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2704
23 AppKit 0x00007fff8e3246f2 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 817
24 AppKit 0x00007fff8e324143 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 314
25 AppKit 0x00007fff8e31fd6d -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4675
26 AppKit 0x00007fff8e2e9c93 -[NSView displayIfNeeded] + 1830
27 Mail 0x0000000105859377 Mail + 189303
28 Foundation 0x00007fff92d248a1 __NSFirePerformWithOrder + 359
29 CoreFoundation 0x00007fff9709c417 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
30 CoreFoundation 0x00007fff9709c381 __CFRunLoopDoObservers + 369
31 CoreFoundation 0x00007fff970777b8 __CFRunLoopRun + 728
32 CoreFoundation 0x00007fff970770e2 CFRunLoopRunSpecific + 290
33 HIToolbox 0x00007fff96d70eb4 RunCurrentEventLoopInMode + 209
34 HIToolbox 0x00007fff96d70b94 ReceiveNextEventCommon + 166
35 HIToolbox 0x00007fff96d70ae3 BlockUntilNextEventMatchingListInMode + 62
36 AppKit 0x00007fff8e2e6533 _DPSNextEvent + 685
37 AppKit 0x00007fff8e2e5df2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
38 AppKit 0x00007fff8e2dd1a3 -[NSApplication run] + 517
39 AppKit 0x00007fff8e281bd6 NSApplicationMain + 869
40 libdyld.dylib 0x00007fff8d5427e1 start + 0 -
Using Multiline Container element in sending mail
Hi,
I am sending mail with Multiline Container element APTEXT.
I put &APTEXT##& Is this right ?
But when I have 2 lines of data, its sending mail with only one line.
ThanksIt is my personal observation that if the line size is more than 132 charecters then it will display like that.
So do like this
1. First make the row size as 125.
2. and when you are selecting the multiline container element in the mail content, then it will ask you 3 options selct the option Print line by line then check the mail.
It worked in my case. -
Sharepoint 2013 designer workflow mail not sending
Hi
I am doing sharepoint 2013 workflow for mail sending using designer.
I am sending mail when new item created in List.
Here status is completed, but mail not sending the following error comes
"The e-mail message cannot be sent. Make sure the e-mail has a valid recipient".
But i have valid email ID.
If i am sending mail through C# (Visual Webpart), mail sending properly.
Give me solution, Thanks in advanceCan you please check the below threads
http://social.technet.microsoft.com/Forums/sharepoint/en-US/3c76459c-01f5-4d75-be17-ee5b2ce1c1dd/sharepoint-designer-2013-workflow-not-sending-emails?forum=sharepointgeneral
http://social.technet.microsoft.com/Forums/sharepoint/en-US/caee58c6-3128-4241-92e2-62f1d0bff01f/sharepoint-workflow-not-sending-e-mail?forum=sharepointcustomizationlegacy
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answeron that post andVote as Helpful -
Since moving to iCloud my mail not sending attachments any answers?
Hi
Since moving to iCloud my mail not sending attachments any answers?After the migration I started having problems with all NON Apple things.
Now, as of July, 6th this is my situation:
Lion devices and iOS5 devices (MacBook, MacPro, iPhone 4s and iPad I) - fine
have a look here for info:
AUTOMATIC SETUP FOR APPLE MAIL ON LION MACS
http://www.apple.com/icloud/setup/mac.html
Snow Leopard - set up after some trouble using these instructions:
OLDER SERVER FOR APPLE MAIL ON PRE OS 10.7 MACS
http://support.apple.com/kb/HT5330
Non Apple clients should work with these instructions but I still cannot get MailForge to work:
SERVERS FOR GENERIC EMAIL CLIENTS
http://support.apple.com/kb/HT4864
MOBILE NON APPLE STUFF
With my HP (Palm) Pre 3 I am still figuring out why every single day they change the servers:
this however might help you as the Palm is more similar to the BB than the iPhone:
PALM PRE 3 SETTINGS: I also have updated the password on iCloud, deleted the old iCloud account on the Pre, created a new one. Please note that it now sends using the older server, I do not know for how long.
INCOMING
OUTGOING -
Apple mail not sending via my server hotmail.
apple mail not sending via my server hotmail. Please help
How would you like us to help when you don't provide any details. We don't have a crystal ball.
-
Out going mail not sending in mavericks
I've had this problem since upgrading to mavericks, mail not sending and the sntp server showing off line.
I"VE FIXED IT!!!!
Guys hope this helps, the ports show default - 25, 465, 585 in edit smtp settings. Check the next box down - use this port and type in 25, I know its in the default list but its sent my mail when using the custom port.
Hope this helps, I spent all day yesterday on to my server supplier and onto chat with Apple in US but couldnt solve it.
Best of luck!!For the past few weeks, I have been noticing a similar problem: access to 11 email accounts, and three domains, is blocked on occasion. According to my web hosting company, this is happening because some process was attempting to connect via port 585, an insecure IMAP port; and that an automatic firewall rule was invoked to block those attempts. The blocking would last for about one hour after the last attempt was made to connect.
I'm running Mavericks. If I quit Mail, then restarted one hour later, the problem was resolved. UNTIL Mail attempted to connect to my mail servers, upon which the blocks were triggered again.
I downloaded Little Snitch. It told me, unsurprisingly at this point, that three email accounts were attempting to use port 585 to connect to their mail server. But I DON'T USE IMAP with those accounts! Why Mail is attempting to connect to a port which I haven't configured it to use is the puzzle.
The solution for me: tell Little Snitch to deny any access via port 585. -
Output of multiline container element in email not working
I'm trying to display a multiline container element in an e-mail from workflow. The element container contains 2 lines. I can see these have been populated in the log in SWIA. However, when using &ITAB##& to output these lines nothing is diplayed. I've also tried &ITAB[]& and &ITAB& all of which return no lines in the e-mail.
Does anyone know if this is something I'm doing wrong or is there an error in R/3. I'm on release 4.6c.
Thanks
KarenThis is getting annoying. This was sednging e-mails and printing the table in the e-mail fine. Then I had to add more fields to the table ITAB. After this the table wasn't showing again in the e-mail. I recreated the workflow, tasks and even the BOM, but still nothing.
As before I can see the ITAB entries in the details of the e-mail task. But, they don't get written into the e-mail even though I'm selecting &ITAB##& from the Expressions section to put into the e-mail.
Is there anything I haven't tried. Is there something I'm doing wrong? Is this a SAP problem that can be fixed with a note. I've had a look, but can't find anything about it.
Thanks
Karen -
Exchange 2013 not receiving emails above 10MB even though MessageReceive Size has been configured
Exchange 2013 not receiving emails above 10MB even though MessageReceive Size has been configured.
[PS] C:\Windows\system32>Get-TransportConfig
AddressBookPolicyRoutingEnabled : False
AnonymousSenderToRecipientRatePerHour : 1800
ClearCategories
: True
ConvertDisclaimerWrapperToEml : False
DSNConversionMode
: UseExchangeDSNs
ExternalDelayDsnEnabled : True
ExternalDsnDefaultLanguage :
ExternalDsnLanguageDetectionEnabled : True
ExternalDsnMaxMessageAttachSize : 10 MB (10,485,760 bytes)
ExternalDsnReportingAuthority :
ExternalDsnSendHtml
: True
ExternalPostmasterAddress : [email protected]
GenerateCopyOfDSNFor :
HygieneSuite
: Standard
InternalDelayDsnEnabled : True
InternalDsnDefaultLanguage :
InternalDsnLanguageDetectionEnabled : True
InternalDsnMaxMessageAttachSize : 10 MB (10,485,760 bytes)
InternalDsnReportingAuthority :
InternalDsnSendHtml
: True
InternalSMTPServers
: {127.0.0.1}
JournalingReportNdrTo : <>
LegacyJournalingMigrationEnabled : False
LegacyArchiveJournalingEnabled : False
LegacyArchiveLiveJournalingEnabled : False
RedirectUnprovisionedUserMessagesForLegacyArchiveJournaling : False
RedirectDLMessagesForLegacyArchiveJournaling : False
MaxDumpsterSizePerDatabase : 18 MB (18,874,368 bytes)
MaxDumpsterTime
: 7.00:00:00
MaxReceiveSize
: 50 MB (52,428,800 bytes)
MaxRecipientEnvelopeLimit : 5000
MaxRetriesForLocalSiteShadow : 2
MaxRetriesForRemoteSiteShadow : 4
MaxSendSize
: 20 MB (20,971,520 bytes)
MigrationEnabled
: False
OpenDomainRoutingEnabled : False
RejectMessageOnShadowFailure : False
Rfc2231EncodingEnabled : False
SafetyNetHoldTime
: 2.00:00:00
ShadowHeartbeatFrequency : 00:02:00
ShadowMessageAutoDiscardInterval : 2.00:00:00
ShadowMessagePreferenceSetting : PreferRemote
ShadowRedundancyEnabled : True
ShadowResubmitTimeSpan : 03:00:00
SupervisionTags
: {Reject, Allow}
TLSReceiveDomainSecureList : {}
TLSSendDomainSecureList : {}
VerifySecureSubmitEnabled : False
VoicemailJournalingEnabled : True
HeaderPromotionModeSetting : NoCreate
Xexch50Enabled
: Truehi stephan... lets put in this way... are you sending attachment ...did you checked the max attachment size as mail send size and attachment size are two different things.. please check this for info on different size creteria
http://technet.microsoft.com/en-us/library/bb124345%28v=exchg.150%29.aspx
can you please share the output of below three commands... i doubt your receive connector is not configured properly.
Get-TransportConfig | Format-List -Property MaxReceiveSize, MaxSendSize
Get-SendConnector | Format-List -Property Identity, MaxMessageSize
Get-ReceiveConnector | Format-List -Property Identity, MaxMessageSize
you can also check this link which gives a perfect info on how exchange works for email size... http://rajisubramanian.wordpress.com/2014/01/26/exchange-server-2013-message-size-configuration-detail/
Mark as useful or answered if my replies helped you solving your query.
Thanks, Happiness Always
Jatin
Skype: jatider2jatin, Email: [email protected] -
Workflows : Multiline Container Element problem.
Hi,
I got a new problem. Well I got a requirement to collect <b>COMMENTS</b> from <i>MULTI-LEVEL Supervisors</i> and display them in the <i>work item preview</i>. So in these regards, I had declared a Multiline Container element in my Workflow and passed it to some method to get the comments. Well I had succeeded till this point. But there is a problem when I tried to display them in WORKITEM.
Well, all the lines are getting displayed continously in the Work Item preview.
Is there any solution for this ?
Like I want to display the Multiline Container element line wise. Not as a concatenated single line which is happening right now.
In the Work Item Text part I used it as ...
Comments from Supervisor : &COMMENTS&
This is FYI...
Please help me.
Regards,
Raja Sekhar.Hi Vinod,
Well, I tried including the MULTI LINE Element in a Mail step. It gave me all the three options of printing.
First one is...
Only first line of Container element can be printed using
&COMMENT&
Second one is...
All the lines of Container element can be printed in a single line as &COMMENT[]&
Third one is...
All the lines of Container element can be printed in seperate lines as &COMMENT##&
I used the third one. It worked even the same in Work Item also.
Regards,
Raja Sekhar -
Multiline container element in workflow
Dear all,
I am using a multiline container element in workflow container. Can anybody suggest how I can see the values of that element? After workflow execution is COMPLETED and I go to SWI1, it shows only simple elements. It doesn't show any of my multiline elements.
Please help.
Thanks in advance,
Regards,
Pranav.Hi Pranav,
It does work in 6.20. I am not sure about 4.6C.
Display Technical Details from the Workflow log for your WF instance. You can examine the Container values for each of the steps. See if the values show up (are you certain your multiline container has been populated?). If you are populating the multiline container from an object method, verify by testing your object method that the parameter are correctly defined and it is getting populated. -
How to pass value to Multiline container element in workflow ?
Dear Experts,
I am using the BAPI "SAP_WAPI_WRITE_CONTAINER" to write into the workitem container elements. now i want to write the data into a multiline container element. i am unable to do the same. please guide me how to write the data into multiline container.
I am getting the data from portal so i am using the BAPI to populate the container.
Please help me out...
Thanks & Regards
NigeshHi,
Use the following code:
DATA: lv_text TYPE string,
lt_cont_vals TYPE swconttab,
lt_cont_defs TYPE swbconttab,
lo_oref TYPE REF TO cx_root,
lo_workitm_cntxt TYPE REF TO cl_swf_run_workitem_context,
lo_wi_conv TYPE REF TO if_swf_cnt_conversion,
lo_wi_cnt TYPE REF TO cl_swf_cnt_container,
lif_wi_cnt TYPE REF TO if_swf_ifs_parameter_container,
lo_exception_return TYPE REF TO cx_swf_cnt_container.
***--- Get work Item Context
TRY.
CALL METHOD cl_swf_run_workitem_context=>get_instance
EXPORTING
im_wiid = im_wi_id
RECEIVING
re_instance = lo_workitm_cntxt.
CATCH cx_swf_run_wim INTO lo_oref.
lv_text = lo_oref->get_text( ).
ENDTRY.
***--- Get Instance of the work Item Container
CALL METHOD lo_workitm_cntxt->if_wapi_workitem_context~get_wi_container
RECEIVING
re_container = lif_wi_cnt.
***--- Type casting work item container into class CL_SWF_CNT_CONTAINRER
lo_wi_cnt ?= lif_wi_cnt.
***-- Set the value
TRY.
lo_wi_cnt->if_swf_cnt_element_access_1~element_set_value(
EXPORTING
name = 'ITEM'
value = t_item[]
CATCH cx_swf_cnt_cont_access_denied. " Change Access to Container Not Allowed
CATCH cx_swf_cnt_elem_not_found. " Element Not Found
CATCH cx_swf_cnt_elem_access_denied. " Element Must Not Be Changed
CATCH cx_swf_cnt_elem_type_conflict. " Type Conflict Between Value and Current Parameter
CATCH cx_swf_cnt_unit_type_conflict. " Type Conflict Between Unit and Current Parameter
CATCH cx_swf_cnt_elem_def_invalid. " Element Definition (For Example, Type Name) Is Invalid
CATCH cx_swf_cnt_invalid_qname. " Qualified Name Invalid/Already Being Used
CATCH cx_swf_cnt_container. " Exception in the Container Service
ENDTRY.
* VERY IMPORTANT -- Save changes to DB
TRY.
lo_wi_cnt->save_to_database( ).
CATCH cx_swf_cnt_invalid_por. " Invalid Persistent Object Reference
ENDTRY.
lo_workitm_cntxt->publish( ).
COMMIT WORK AND WAIT.
Maybe you are looking for
-
Smartforms output as HTML in email
Hi, I want to send the output of a smartform as html in email body. I found and used this bolg: :<a href="/people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp HTML Email from SAP CRM/ERP</a> I did everything as per the blog. Howev
-
Basic type show in WE05 not same as per defined
Hi All, I have created a customised message type ZMATMAS1, using customised basic type ZMATMAS1 too. already assigned in WE81 WE82 BD69 & activated in BD50 When idoc generated from BD21, I found that the idoc in WE05 shows the basic type is MATMAS05
-
Data Conversion in Multiple languages environment
Hi, I appreciate your help in throwing some light for the following question. I need to do conversion of data from legacy system to Oracle Applications R12 environment.My problem is i need to load data in different languages.For example i need to loa
-
Why do I show both the iCloud and .mac mail accounts on my phone
I have an icloud account and both the .mac and icloud mail account show up on my iphone. Is this necessary? If I disable mail on the icloud page of my phone, will the mail be accessable in icloud but not show as a seperate account on my phone?
-
Offsetting account field in FS10N
Hi all, How do I populate the Offsetting account field in FS10N?? Thanx Shivaji Moderator: Please, search SDN