SODIS, email disclosure documents not appearing in emails... SOLVED

Hi all,
recently uncovered a useful item to make note of, while trying to modify email headers, previously posted in Re: Email - adding custom SMTP header to outgoing email.
In this instance, I was sending email with ABAP code using classes cl_bcs, cl_document_bcs, etc. and setting up email disclosure documents through tx SODIS. I set up disclosure documents for individual users (notably, our workflow user WF-BATCH and my User ID), but when sending email in code using those users (sender and recipient), noticed that only the Standard/Default email disclosure statement was being appended to emails as they were released from SOST.
The problem appeared to be the manner in which I was creating the sender and recipient objects in my code. I was using cl_cam_address_bcs to create a sender and receiver (note, I have used USERNAME_FROM and USERNAME_TO to demonstrate the different users and their role in sending/receiving emails...):
data:
    lo_bcs type ref to cl_bcs,
    lo_sender type ref to cl_cam_address_bcs,
    lo_recipient type ref to cl_cam_address_bcs,
    lv_ret type os_boolean.
lo_bcs = cl_bcs=>create_persistent( ).
lo_sender = cl_cam_address_bcs=>create_user_home_address( i_user = 'USERNAME_FROM' ).
lo_bcs->set_sender( i_sender = lo_sender ).
lo_recipient = cl_cam_address_bcs=>create_user_home_address( i_user = 'USERNAME_TO' ).
lo_bcs->add_recipient(
    i_recipient = lo_recipient
    i_copy = '' " CC indicator
* create document and add to lo_bcs with lo_bcs->set_document( lo_doc )
lv_ret = lo_bcs->send( ).
This is fine and will work to send to external addresses (i.e. to send an email to Outlook) but if the sender is WF-BATCH, it will not find the correct disclosure document I created for WF-BATCH.
After much debugging, I noticed that the address type of the sender had to be 'B' (SAP User) when the disclosure document was selected, but the cl_cam_address_bcs doesn't allow creation of SAP User addresses. It only allows the six (6) external comm. types INT, X400, RML, PRT, PAG and FAX. No 'B'. Problem.
I found it here:
FG SOE2
FM SO_OBJECT_MIME_GET
FORM GET_MIME
Class method cl_bcs_send_request->as_mime_message( )
Class method cl_bcs_send_request->add_disclosure_to_mime( )  [added as part of OSS Note 1086090]
Class method cl_disclosure_bcs->get_disclosure( )
Class method cl_disclosure_bcs->resolve( )
(Here you can see the try statement and a case statement - this is where the action happens)
However, this class cl_cam_address_bcs does implement interface if_sender_bcs, so it was relatively easy to find out what other classes implement if_sender_bcs. Turns out, cl_sapuser_bcs does this and it defaults to the address type 'B' - SAP User. So I replaced the above code in my program, with the following:
data:
    lo_bcs type ref to cl_bcs,
    lo_sender type ref to cl_sapuser_bcs,
    lo_recipient type ref to cl_sapuser_bcs,
    lv_ret type os_boolean.
lo_bcs = cl_bcs=>create_persistent( ).
lo_sender = cl_sapuser_bcs=>create( 'USERNAME_FROM' ).
lo_bcs->set_sender( i_sender = lo_sender ).
lo_recipient = cl_sapuser_bcs=>create( 'USERNAME_TO' ).
lo_bcs->add_recipient(
    i_recipient = lo_recipient
    i_copy = '' " CC indicator
* create document and add to lo_bcs with lo_bcs->set_document( lo_doc )
lv_ret = lo_bcs->send( ).
Et voila! The disclosure statement for USERNAME_FROM was applied perfectly.
Now there are other ways to achieve this, such as using the email address filter when creating the disclosure document, but I like to keep it to the system-used username rather than an ambiguous email address that could potentially change.
So if you find that your disclosure documents aren't being applied correctly in code-generated emails, there's your answer. Hope that little break-down helps someone.
Hagen

Hi
What are the values we need to pass for lo_doc
Regards
Madhan D

Similar Messages

  • Form link does not appear in email notification.

    Form link does not appear in email notification
    We have added a custom notification to the OM workflow process. The notification itself has a form attribute which provides a link to the sales order form. This works fine when notification is viewed via worklist - notifications within apps. The link does not appear in the email notification.
    Is there any alternate way to provide a form link to Oracle Applications form that can be accessed via email (after logging into application, if the user is not logged in).
    Thanks

    Similar functionality is available in PO and Req Approval process. Can you take a look at the PO Approval Process workflow? I remember the email notification does show the link, which is a URL link and has parameters in it. This functonality provides where the approvers need to modify the document which is requested to be approved. So they can click on the link, modify and close and approve if necessary.
    Are you expecting them to modify the same or you just want to show query only screen?
    There is a webpage available to see order information called Order Information (user Order Information User resp). You can send parameters to that webpage and that should show login page opening up a seperate session with all the parameters in the URL. Once logged in that should show order information.
    Thanks
    Nagamohan

  • How do I save emails into specific folders in my Documents, NOT in the email account folders?

    How do I save emails in a specific folder in my Documents, NOT in the email account folders.
    Thx,
    Beginner

    Open the email, do a save as have it save to the location you want from the drop down menu (You could select desktop and then drag it into a folder in documents) and click save as a .rtf.
    Or you can copy and paste into a document (Word, Pages, Text Edit...) Make a folder and put it in docs.

  • Unread email notifications do not appear in my Gmail account on Mac Mail?

    I am driving an iMac (intel), OS 10.9.3.  My unread email notifications do not appear in my gmail account.  I have tried everything that I can think of...

    Try rebuilding the mailbox. This can take awhile if you have a lot of mail.
    Rebuild mailbox
    Try re-indexing the mailbox. This can take awhile if you have a lot of mail.
    Reindex messages

  • HT5312 i am having problems editing the security questions i do not remember i specifically followed the steps and the "send to rescue email" option does not appear even though my rescue email is verified please help me

    i am having problems editing the security questions i do not remember i specifically followed the steps and the "send to rescue email" option does not appear even though my rescue email is verified please help me
    <Email Edited by Host>

    As these are public forums, you're not talking to iTunes Support,  I've asked the hosts to remove your email address from your post - it's not a good idea to post it unless you like spam email.
    The reset link will only show if you have a rescue email address on your account - a rescue email address is not the same as an alternate/secondary email address, they are different addresses/settings on an account.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use

  • Vendor open items appearing in FBl1 but same documents not appearing F-44.

    Hi,
    Vendor open items appearing in FBl1 but same documents not appearing F-44.
    Please help me in this.
    Thanks
    GP

    Hi,
    F-44 is used for clearing vendor - header data. Check if there are both debit and credit entries for the vendor and if it exists then clear using F-44. Check the entries correctly in FBL1.
    regards,
    radhika

  • How do I set the "reply to" field in the iPad 2 Mail app?  I use an email forwarding service (not an actual email account) that I would like people to reply to.

    How do I set the "reply to" field in the iPad 2 Mail app?  I use an email forwarding service (not an actual email account) that I would like people to reply to, so setting up an account with the correct reply-to address doesn't work because there's no associated outgoing mail server.  I had this working under iOS4 but it seems to have disappeared when I upgraded to iOS5.

    Welcome to the forum, NicoleYM. I don't think the Touch Mail has as many options as the Mac Mail app. However, you could set a standard signature. Go to Settings > Mail, Contacts, Calendars > Signature. There you can type a reply address and hope people see it.
    Alternatively, you can go to your GMail account in your web browser and click on Settings > Forwarding and POP/IMAP. There you will have an option to forward all emails (or only some, if you set up a filter) to your other address.
    Good luck!

  • F-44: The Re-document not appear available to do the clearing.

    Hi
    Experts
    Hi,
    We need help to understand what hapen with the consult of vendor XXXXX
    When we consult this vendor on transaction FK10N we see the information detailed on the attached file.
    But when I try to do the clearing and try the transaction F-44, the re-document not appear available to do the clearing.
    But when I try to do the clear vendor on F-44 the documents ( 4000000419   1700000135 and 1500000456 ) not appear and I not understand why?
    But this Document No's are seen in FBL1N as a Open Items and also as a Cleared Items, But not able to see in F-44
    4000000419    06/27/2011
    1700000135    07/14/2011
    1500000456    03/30/2011
    Could you please help me with this issue?
    Anil

    hI
    Friend,
    I Checked SE11 REGUP table, if the documents You don't see by F-44 are already contained into a payment proposal.
    If Yes, You should delete the F110 payment proposal to see them by F-44.
    I deleted the payment proposal, even though Iam not able to see the docuements in F-44. what to do?
    I Checked the table BSIK and Also BSAK it is showing this docu nos.
    Anil

  • Documents appearing in FBL1 but same documents not appearing in F-44

    Hi,
    Vendor open items appearing (Documents) in FBL1 but same documents not appearing in F-44.
    I executed FBL1 with input values:
    Vendor
    Company code
    Open items
    Normal items
    I executed F-44 with input values:
    Vendor, company code
    OI check box
    None under additional selection
    Kindly help me in above case.
    Thanks
    GP

    Hi gangappa,
    For that first u check in F110 there u delete unwanted proposals through keep the cursor on run date field and select F4 there not yet complete proposals are available first delete that .
    Second option 
    check it is it any advance payment. if any acvance payment plz select special gl indicator in F-44
    May be this information is useful to you
    Regards
    Surya

  • HT5622 If I have two emails for my iMessage how can I see or receive my msj or the email that is not the primary email

    If I have two emails for my iMessage how can I see or receive my msj or the email that is not the primary email

    It's basically ment for iMessage and FaceTime. I might be wrong but this can only be done between two Apple products that allow this function. You won't receive an email if I sent you an iMessage to a secondary email you use for iMessages. You would only receive a text message. Now if someone using a PC sent an email to the secondary email you use you will receive an email not a text message. The secondary email is used basically if you do not have a data plan and you're connected to wifi you can still send iMessages using those emails you provided.

  • My mobile-me email accout does not receieve any emails and does not show the file system

    hi - my mobile me email account does not recieve any emails - plus, the file structur is not available on my mac. I am using iphone and ipad, there at least the file structure is visible. I received the notification, that my icloud storage is not sufficiant, I extend this to 80 GB, should not be an issue anymore. However, does not work - I can however sent emails...many thanks for any help

    Just to confirm ... by Verizon Web Portal, you mean the Verizon branded Yahoo! web portal page?  Correct?    Just want to be sure you're looking in the right place.
    If you go into your account settings on Verizon, does it say there that you are the "Yahoo!" experience (probably also has an option listed to allow you to change to AOL as well).
    If it says Yahoo! and you are looking on the Yahoo! web portal inbox, then it sounds like your mapping over to the Yahoo! side is not setup properly within the Verizon cloud.   That would take a call to tech support to fix.
    Just for giggles, have you tried changing your mailbox password (and not recofniguring any mail clients, etc.).   Just to make sure something isn't quickly grabbing the mail and downloading it before you can see it via the web portal.   Might want to do that just as an experiment.
    Another think to try is creating a sub-account for email and see if mail gets delivered to the address.

  • HT201320 I am having trouble with my wife's new iPhone 5s. She can receive her telus email but can not send any email what did I do wrong in setting up her account?

    I am having trouble with my wife's new iPhone 5s. She can receive her telus email but can not send any email what did I do wrong in setting up her account on her iPhone? I tried to just copy the info from her old iPhone.

    The sending of email is accomplished via the SMTP server. Take a moment to get back into Settings>Mail, contacts, calendars and select the account. Go to the SMTP server and check to make sure that username and password are entered in all of the appropriate places. If you cannot get it to work after trying to just change those settings, remove the account from the phone and recreate it. When recreating, make sure you enter the username and password in every location, even if the phone says optional. Make sure you have the settings from either the email provider or from the other device. Make sure that SSL is on or off as necessary.

  • Edited text not appearing in emailed .pdf documents

    I use the typewriter tool to add text to an already existing .pdf document. When I save the document to a folder and reopen it, the text is visible. When I attach this document to email using Entourage, the text I edited is not visible. What am I doing wrong?

    If you go into the pdf with acrobat professional (not available w/ reader) and open the forms editing menu and double click on the field that is not appearing you can check the settings (I think it is in general settings tab). One of the setting is to make the info typed into the field visible or not visible. It could be set to not visible.

  • I created a document and want to share it in word form via email and email window does not appear

    I created a document and want to share it via email in word, however, when the email window does not how up with the attachent in it ready for email addresses.  I have done this procedue before without any problem. TY

    Look at the suggested discussions on the right and see if you have the answer there.

  • Mi emails notifications are not appearing as other applications, only can see them when open my mails

    Hi I have an Iphone 5c and set my email account (local provider company).
    I can receive mails perfectly and also send mails but the notification of a new mail comming is not appearing with the red globe on top of the Mail as suppose to.
    Once I entered the mail application the mails start to download and the red globe appears but not before just after I entered tha application.
    the other applications I have like whatsapp and bbm are working perfectly. I check the notification center many times and looks ok for me but don't know what could be the problem. If someone can help me I really appreciate...

    Push mail is automatically sent to your device when it arrives at the email server.  Your email account has to support this. 
    Settings > Mail, Contacts, Calendars > Fetch New Data > Push > ON,  your account > select Push (if available), Fetch, or Manual
    Below list of accounts:
    Fetch > select interval

Maybe you are looking for

  • IPhone 3G warranty replacement service NZ

    I have just experienced abysmal repair service for the iphone. It seems it is a New Zealand issue and I am interested to hear if anyone else has had similar experiences or whether this is just a one-off, bad-luck case? I bought my first iphone 3G out

  • PI 7.1 LDAP connectivity

    Hi , We configured our PI 7.1 system to connect to Active Directory(LDAP), we completed all the configuration in T Code-LDAP.But when i see Java stack user administration --> Configuration Data Source is still ABAP System. I am not able to change Jav

  • Is B.Tech in distance learning has value in SAP?

    Please provide me suggestion asap. Please help me can I go head and do B.Tech in distance learning? Thanks Hello Sir, I am Venkatesh, completed my B.Sc CS in Bangalore university in 2005 but i have 2 back logs in final year but after my completion th

  • Java7 applet fails to load on Mountain lion & Lion

    I have developed sample cocoa (64 bit) webview application with all plug In settings enabled (setJavaEnabled:YES setPlugInsEnable:YES). But the Java applet plugin has been failed to load. I am using latest Java 7 from Oracle (update 25). I dont know

  • School iPad Syncing Taking Up Large Amounts of Space

    We have a computer syncing 50 iPads. After realizing that backups of each iPad were taking up around 80GBs of space on the hard drive, we deleted the "Device Backups" in the preferences of iTunes and gained all the space back. This is quite a tempora