OIM 11g - Mail Notification for multiple resources

User will be provisioned to 5 target system through access policies.So instead of sending 5 different mail notifications to the manager on the Create User task about the account creation, is it possible to send one consolidated mail about the provisioned resources in OIM 11g.

Hi,
How abt for the following requirement for sending single mail for multiple resources provisioned.
We have 3 Access Policies which is defined as follows.
1) Policy 1 -> R1,R2,R3 Resources
2) Policy 2 -> R3,R5 Resources
3) Policy 3 -> R1,R4 Resources
In such a case we will not be able to put dependencies on Resources and adding a task for sending email.

Similar Messages

  • OIM 11g - Restricting the number of resources to one on Request Creation

    Hi All,
    We have a requirement wherein when a requester tries to create a Provision Resource request type(be it for himself or for others), he shouldn't be allowed to request for more than one resource in a single request. If a user chooses more than one resource, he should be prevented from proceeding further and also a message should be shown to the user indicating that only resource should be chosen for this request.
    Can this functionality be achieved in OIM 11g?
    Any kind of help or suggestion is greatly appreciated.
    Thanks
    Deepa

    I already have an enhancement request for this as the only plugin which Oracle provides for request creation is ValidationHandler. The validation handler is called 'number of resources' X 'number of users' and there is no static construct in the plugin either.
    Thus workarounds:
    1. Check for multiple resource selection in your SOA Approval process (this should not be at the orchestration level) and reject the request if there are more then one selection.
    2. As Kevin pointed out, in 9x xlWebAdmin.properties file can be used to set the following properties for single resource selection during requests. You can try to look for this information oim 11g properties files and test it out. -1 here means no limit.
    request.resource.users.size=-1
    request.resource.organizations.size=-1
    request.resource.resources.size=-1-Bikash

  • E-Mail Notification for KM Feedback

    Dear All,
    My requirement is to get the E-mail notification for some one posting feedback (repo service) for particular KM resouurces. I have made all the settings
    Configured the Notificator Service
    Enabled the Mailing Service
    Configured the Email channel and Originator.
    I have enabled Subscription for this KM folder like (/documents/Public Documents/Test Folder). If admin upload any document or files in the above folder.
    I received E-Mail notification alert.
    But for the same resources if any one posting feedback or review i didnt get any E-mail notification
    How to achieve this?

    Hi, THILLAI NATARAJAN.
    The Feedback notification comes to the UWL of the person who has created the document (folder).
    No E-Mails are sent, and subscription service does not work in that case.
    If you want to fulfill your requirements you need to create a custom portal component which adds the Feedback to the resource and sends the E-Mails too.
    Regards, Mikhail.

  • OIM 11g - Email Notification with direct link to Approval Task Details

    Hi,
    We wanted to send email notifications to approver with direct link to the approval task details screen from which the user can either approve or reject the request. In OIM 11g OOTB Notification templates such as Request Creation contains the direct link to Request Detail screen which is something like
    http://localhost:14000/oim/faces/pages/Self.jspx?OP_TYPE=LOOKUP;E_TYPE=MY_REQUEST&T_ID=65
    Wondering if there is something similar for Approval Task Details screen as well.
    Any kind of help or suggestion is greatly appreciated.
    Thanks,
    Deepa

    If at all you cannot get the direct link for approve/reject then try the actionable email from SOA. Once you have that configured the emails gets approver/reject links so that approvers can directly approve/reject the task from email. If that works for you then you can look at the format of those links in the email and deduce what you need the url as.
    HTH,
    BB

  • How can you use the same e-mail address for multiple ipads?

    I have two iPads.. an iPad and an ipad 2.  I registared my new ipad 2 and now my old ipad is will not let me log on and is telling me that my e-mail address is already in use.  how can you use the same e-mail address for multiple ipads?

    And by using the same Apple ID you can also share purchases.  If you have a different Apple ID for each iPhone then you can't share purchases.

  • E-mail group for multiple contacts

    I want to creat an e-mail group for multiple contacts so I only need to select the group and then send an e-mail to all the contacts in that group. How do i creat a distribution group in icloud from my Outlook Address book?

    Hi,
    Yes, when logon to ePrint Center, at the top frame, left hand side, there is a place you can +Add Printer. Click to this and follow the instructions.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Query regarding auto e-mail notification for ccms

    Hi,
    I want to configure auto e-mail notifications for ccms alerts.
    I have configured ccms monitoring for our landscape on the solution manager.I went through the SAP documentation and it mentions that we have to do the SCOT settings and CCMS_OnAlert_Email_V2 method settings in client 000.But we already have  the SCOT config done in 100.
    My question is can i complete the rest of the config in 100 or i have to do everything in client 000 only.
    Thanks,
    Shashank

    No Shashank. I dont think this is required. You need not have to redo everything in 000 client.
    You only have to create the user in 000 client.
    Might be you have to create an RFC connection between your 000 client and the 100 client. I will confirm this to you tomorrow or so. Make sure the user has required authorizations in 000 client.
    best regds,
    Alagammai.

  • E-mail notification for order lines maintained with an invalid license

    Hello Experts,
      I have a requirement to develop an e-mail notification for order lines maintained with an invalid license.
    T-Code VA01, this mail will be triggered if order has been blocked due to invalid or no license at the time of saving.
    we can add email notification by using some user exit.  Can you please guide me on how to go about looking for the appropiate user exit. Or any other suggestions.
    Thanks,
    Abhishek

    Abhishek,
    check this
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    Re: va01 user-exit....
    http://www.allinterview.com/showanswers/69164.html
    Thanks
    Bala Duvvuri

  • OIM 11g - email notification

    Dear All,
    I need to create quick POC that will involve provisioning to multiple resources during OIM profile creation. One consolidated e-mail notification should be sent as a result.
    1. I never used simulated/fake/manual resource. If you used it in the past maybe you can guide me through as for how to create it?
    2. How to make sure that centralized e-mail is sent at the end (all resources are provisioned)?
    I was planning to create default role or use ALL USERS role that will be attached to access policies for different resources. When HR record comes, OIM user profile is created and default role (ALL USERS, for example) is assigned.
    This role will trigger execution of access policies that will create accounts on the target platforms.
    My challenges are:
    1) ONE consolidated email notification upon SUCCESSFUL completion (default event that somehow should be triggered maybe by job?, custom task that sets the flag in custom table upon successful completion? or maybe I overengineering .....)
    2) send user to manual queue if creation of the user account on any of the target resources fail.
    If you can provide any guidance as for how this could be done I would appreciate it very much
    Thank you for your time

    1. The process is outlined here: http://iamreflections.blogspot.com/2010/08/oim-howto-leverage-standard-connector.html
    2. There are two parts to this question.
    The first part is to figure out the triggering event. If you know what resource will be last provisioned you can simply put a task that is fired on completion of the final provisioning task that then checks the result of all other resources using the APIs. If you don't know which resource will be last you could let the final provisioning task in each resource have a follow up task that sets a variable on the user form, then have another folllow up task that checks if all values are set and if so do the appropriate thing (if not just exit)
    Traditionally you would assign a task to the sysadmin using the API if you wanted a manual intervention (http://otndnld.oracle.co.jp/document/products/id_mgmt/idm_904/doc_cd/javadocs/operations/Thor/API/Operations/tcProvisioningOperationsIntf.html#reassignTasksToUser(long[], long)) but there is the new concept of queues that I actually haven't worked with (http://otndnld.oracle.co.jp/document/products/id_mgmt/idm_904/doc_cd/javadocs/operations/Thor/API/Operations/tcQueueOperationsIntf.html) that may be what you are looking for.
    Email sending tends to be easier using Javamail than trying to leverage the email framework once you want something that isn't very basic.
    Hope this helps
    /Martin

  • Help required related with OIM 11g Email Notification

    Experts,
    I have a requirement where I have to pass the User's Password through autogenerated email.
    But I have a scenario where I dont have to provision any target resource for users..so i dont have access to Notification Tab for such kind of users.
    I thought of writing a custom Event Handler to send email using custom code.
    But IN OIM 11g , I found that Inside, Advanced->Notification Template-> Create User Self Service Notification … is getting triggered with UserID: $userLoginId<br> and its woking fine.
    But once I added Password: $password<br> In the same template, its not providing me the password.
    So I think the Parameters associated with this Event "Self register user" does not have $password.
    Is there any way to check which all parameters can be accessed in these Events?
    Also, what is the best way to send password to users who does not any target resources associated?
    Thanks,
    Regards,
    J

    Hi I am trying to get the Create User Self Service Notification template working but for some reason I get an error in the log saying unexpected error occured while sending notification. and I am not recieving any mails..I have done the following steps
    created an IT resource with the name same as the value of Email Server property
    have made the value of RequestNotification property 1
    is there anything else I need to do..
    Can you also give some details as to how you have created the IT Resource...is the authentication true/false if true does any username and password do..
    Thank you

  • OIM 11g ootb notification

    Hi All,
    I'm new to OIM 11g.I'm trying to create user using web interface and user is successfully created but no OOTB email notification are triggering..
    I have configured Mail Server It Resource.
    IT Resource Name           Email Server      
    IT Resource Type           Mail Server
    Authentication                No
    I'm using Toolheap software to test notifications.
    Regards.
    Krish.

    find the steps here
    Enabling The Logging in OIM 11g
    Any Custom Schedule Task and Event Handlers to debug in the OIM 11g Server to enable the logging. The following way to enable the logging in Oracle Identity Manager 11g.
    Pre-Requisite
    Java Code Configuration
    Add the following line into your java code.
    Import Statement
    import com.thortech.util.logging.Logger;
    private Logger logger=Logger.getLogger("Logger-Name");
    Configuration Of Logging
    Go to the $DOMAIN_HOME/config/fmwconfig/servers/oim_server1 directory and edit the logging.xml file.
    Configure The Log Handler
    <log_handler name='logger Handel Name' level='FINEST' class='oracle.core.ojdl.logging.ODLHandlerFactory'>
    <property name='logreader:' value='off'/>
    <property name='path' value='Log File Location'/>
    <property name='format' value='ODL-Text'/>
    <property name='useThreadName' value='true'/>
    <property name='locale' value='en'/>
    <property name='maxFileSize' value='5242880'/>
    <property name='maxLogSize' value='52428800'/>
    <property name='encoding' value='UTF-8'/>
    Include The Logger Handler Logger Configuration
    <logger name="Logger-Name" level="Log Level" useParentHandlers="false">
    <handler name="logger-Handel-Name"/>
    <handler name="console-handler"/>
    </logger>
    Oracle Identity Manager 11G Log Levels
    Log Level ODL Message Type:Level
    SEVERE.intValue()+100 INCIDENT_ERROR:1
    SEVERE ERROR:1
    WARNING WARNING:1
    INFO NOTIFICATION:1
    CONFIG NOTIFICATION:16
    FINE TRACE:1
    FINER TRACE:16
    FINEST TRACE:32
    The FINEST log level will give the more debug info. If you want to debug your schedule task or event handlers, please use FINEST Log level.
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • #ATTACHMENTS handler in workflow notification for multiple attachments

    I would like to attach multiple documents to a workflow notification. The number of attachments are not known at design time.
    I see that #ATTACHMENTS handler is used for purpose, but I am not clear how to use it with PLSQLBLOB usage.
    How to return multiple documents to the #ATTACHMENTS special handler using PLSQLBLOB?
    Created a message attribute of Type=Document and gave internal name as #ATTACHMENTS. Now time to set a PLSQLBLOB function, but to attach multiple documents. Not sure how ....
    Note, I do seem some examples with FND:entity usage which shows attachments fine in the worklist, but the attachments are not shown in the email when using workflow mailer due to limitations with FND usage. Using PLSQLBLOB Document, I'm able to show attachments in both worklist and email, but each document attribute can handle only one attachment file. The number of attachments are not known at design time. I would like to use #ATTACHMENTS handler but for PLSQLBLOB usage.
    Can some throw more light on #ATTACHMENTS tag with PLSQLBLOB usage for multiple attachments?
    Thanks!

    hi Sanni
    please view this page.It is not direct answer. But it might help
    https://sites.google.com/site/shareapps4u/learning-topic/workflow-tutorial/how-to-attach-document-with-notification
    I have a similar requirement like yours.I need to attach the document when user sends reply to a notification.
    Can you please guide me in that.
    I appreciate your help in this. I heard that Oracle Standard functionality does not support this.
    Appreciate your help
    kp

  • OIM 11g - Approval workflows for disabled user accounts

    Hi,
    We have a scenario wherein a user will be created in OIM with a future start date resulting in a Disabled Untill Start Date user status. Once the user is created, we should let anyone submit a New Hire form for the user and the submitted form needs to be approved by the Manager. Once the Manager approves the form, the target accounts should get created with disabled status. These accounts should get enabled on the start date.
    As submission of New Hire Form is not a straightforward process, we came up with the following design.
    A dummy resource object corresponding to the New Hire Form will be created and can be requested for a newly hired person by anyone who has OIM access. An approval workflow will be configured for the New Hire Form Resource object and provisioning of target accounts will be based on Manager's approval for this resource object.
    However the challenge that we see with this design is, it wasn't possible to place a request for New Hire Form dummy resource object for a disabled user. But the requirement is to complete the New Hire Form submission process befor the user becomes active.
    How can these workflows be invoked for a disbaled user? Is there any other way to implement this requirement?
    Any kind of help/guidance is greatly appreciated.
    Thanks and Regards
    Deepa

    911709 wrote:
    If I create a dummy resource, called "Group Membership" for example, and use this to show the groups that are available in AD, how can I have the request be routed to different approvers? For example, group cn=HR Users,cn=Users,dc=company,dc=com needs to be routed to HR for approval. Group cn=IT,cn=Users,dc=company,dc=com needs to be routed to IT for approval. How can I change the approvers dynamically?
    Re: Spawning multiple approval tasks in parallel in OIM11g SOA Composite
    You can have dynamic task assignment in BPEL; where you defne a variable in the task assignment and update the variable with the approver group name before triggering the task assignment task. Check BPEL docs for same.
    If every group needs a different approver, and there are 5000 groups, can I make 5000 resources and use the built-in routing of approvals? Or, use the dummy resource approach and handle the management of the approvals in some other way.Just make one resource with one field attached to it which takes in the group name and handle approval in SOA by reading a lookup which has AD group to Approval Group mapping.
    >
    Thank you.-Bikash
    Edited by: Bikash Bagaria on Feb 18, 2012 1:00 AM

  • OIM 11g email notification(request submitted, approved, reassigned, etc)

    Dear All,
    How to emplement e-mail notifications in 11g?
    It looks like there some notification templates available. But how those could be tied to different stages of the request? (request submitted, approved, reassigned, etc). Is there any authomation available or everything should be created now manually in the workflow? SOA suite has notification service. I suspect this is what should be used now.
    How notification templates are used in the workflow?
    If you can provide steps and/or example this would be very helpful.
    Maria

    I suspect article ID 457836.1 is valid for 11g as well. (FYI)

  • Email Notification for multiple business partners

    Hi,
    I can send email to a single partner based on my action. Is it possible to send the emails to multiple partners for a single action.
    Thanks in advance.
    Regards,
    M.R

    Hi;
    Email notification to multiple business partners is not provided in standart SAP functions via actions. It is not related with actions and conditions. Below is the code for the related method... I may send the screenshots if you can give me your mail address... Use this method with smartform: CRM_IST_ORDER_CONFIRMATION_01
    CLASS : CL_DOC_PROCESSING_CRM_ORDER
    METHOD NAME: ....
    METHOD DEFINITION:
    IS_ARCHIVE_INDEX     Importing     Type     TOA_DARA
    IS_ARCHIVE_PARAMETERS     Importing     Type     ARC_PARAMS
    IS_CONTROL_PARAMETERS     Importing     Type     SSFCTRLOP
    IS_OUTPUT_OPTIONS     Importing     Type     SSFCOMPOP
    IO_APPL_OBJECT     Importing     Type Ref To     OBJECT
    IP_SMART_FORM     Importing     Type     TDSFNAME
    IS_MAIL_APPL_OBJ     Importing     Type     SWOTOBJID
    IS_MAIL_RECIPIENT     Importing     Type     SWOTOBJID
    IS_MAIL_SENDER     Importing     Type     SWOTOBJID
    IO_PARTNER     Importing     Type Ref To     CL_PARTNER_PPF
    IP_USER_SETTINGS     Importing     Type     TDBOOL
    IP_APPLICATION_LOG     Importing     Type     BALLOGHNDL
    ES_DOCUMENT_OUTPUT_INFO     Exporting     Type     SSFCRESPD
    ES_JOB_OUTPUT_INFO     Exporting     Type     SSFCRESCL
    ES_JOB_OUTPUT_OPTIONS     Exporting     Type     SSFCRESOP
    ET_ERROR_TAB     Exporting     Type     TSFERROR
    CT_ARCHIVE_INDEX_TAB     Changing     Type     TSFDARA
    METHOD z_anahtar_kullanici_yeni.
    *This Method is used to print service order.
    generally used constants of generic order
      INCLUDE: crm_direct.
      DATA:
            control_parameters TYPE ssfctrlop.
    function name
      DATA: function_name TYPE rs38l_fnam,
            dummy(254)        TYPE c,
            ls_archive_index  TYPE  toa_dara,
            ls_orderadm_h     TYPE  crmt_output_orderadm_h_com,
            ls_activity_h     TYPE  crmt_output_activity_h_com,
            ls_opport_h       TYPE  crmt_output_opport_h_com,
            ls_orgman_h       TYPE  crmt_output_orgman_h_com,
            lt_partner_h      TYPE  crmt_output_partner_h_comt,
            ls_partner_h      TYPE  crmt_output_partner_h_comt,
            ls_pricingdata_h  TYPE  crmt_output_pricingdata_h_com,
            ls_sales_h        TYPE  crmt_output_sales_h_com,
            ls_shipping_h     TYPE  crmt_output_shipping_h_com,
            lt_payplan_d_h    TYPE  crmt_output_payplan_d_h_comt,
            ls_customer_h     TYPE  crmt_output_customer_h_com,
            ls_cumulat_h      TYPE  crmt_output_cumulat_h_com,
            lt_billing_h      TYPE  crmt_output_billing_h_comt,
            lt_cancel_h       TYPE  crmt_output_cancel_h_comt,
            lt_appointment_h TYPE   crmt_output_appointment_h_comt,
            lt_billplan_d_h  TYPE   crmt_output_billplan_d_h_comt,
            lt_billplan_h    TYPE   crmt_output_billplan_h_comt,
            lt_status_d_h    TYPE   crmt_output_status_d_h_comt,
            lt_status_h      TYPE   crmt_output_status_h_comt,
            lt_srv_subject_h TYPE   crmt_output_srv_subject_h_comt,
            lt_srv_reason_h  TYPE   crmt_output_srv_reason_h_comt,
            lt_srv_result_h  TYPE   crmt_output_srv_result_h_comt,
            ls_acs_h         TYPE   crmt_acs_h_com,
            lt_srv_subject_i TYPE   crmt_output_srv_subject_h_comt,
            lt_srv_refobj_h  TYPE   crmt_output_srv_refobj_h_comt,
            lt_srv_refobj_i  TYPE   crmt_output_srv_refobj_h_comt,
            lt_orderadm_i    TYPE   crmt_output_orderadm_i_comt,
            lt_orgman_i      TYPE   crmt_output_orgman_i_comt,
            lt_pricingdata_i TYPE   crmt_output_pricingdata_i_comt,
            lt_pricing_i     TYPE   crmt_output_pricing_i_comt,
            lt_product_i     TYPE   crmt_output_product_i_comt,
            lt_sales_i       TYPE   crmt_output_sales_i_comt,
            lt_service_i       TYPE   crmt_output_service_i_comt,
            lt_shipping_i    TYPE   crmt_output_shipping_i_comt,
            lt_schedlin_i    TYPE   crmt_output_schedlin_i_comt,
            lt_customer_i    TYPE   crmt_output_customer_i_comt,
            lt_partner_i     TYPE   crmt_output_partner_i_comt,
            lt_item_cstics_i TYPE   crmt_item_cstics_tab,
            lt_billing_i     TYPE   crmt_output_billing_i_comt,
            lt_cancel_i      TYPE   crmt_output_cancel_i_comt,
            lt_finprod_i     TYPE   crmt_output_finprod_i_comt,
            lt_ordprp_i      TYPE   crmt_output_ordprp_i_comt,
            lt_appointment_i TYPE   crmt_output_appointment_i_comt,
            lt_billplan_d_i  TYPE   crmt_output_billplan_d_i_comt,
            lt_billplan_i    TYPE   crmt_output_billplan_i_comt,
            lt_orderadm_i_qt TYPE   crmt_output_orderadm_i_qt_comt,
            lt_schedlin_i_cf TYPE   crmt_output_schedlin_i_cf_comt,
            lt_status_i      TYPE   crmt_output_status_i_comt,
            lt_working_set_e_s_bbp TYPE /1cn/working_set_e_s_bbp_t,
            lv_language LIKE  sy-langu,
            lo_order TYPE REF TO cl_doc_crm_order,
            lv_object_guid TYPE crmt_object_guid,
            lv_status TYPE jstat,
            lt_status TYPE TABLE OF jstat,
            lv_error_tab_wrk TYPE ssferror,
            ls_output_options TYPE ssfcompop,
    for assignments - begin
            lt_service_i_assi TYPE  crmt_output_service_i_***_comt
    for assignments - end
    fill internal structure for the output options
      ls_output_options = is_output_options.
    get the function name for this smart form
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
           EXPORTING
                formname           = ip_smart_form
            VARIANT            = ' '
            DIRECT_CALL        = ' '
           IMPORTING
                fm_name            = function_name
           EXCEPTIONS
                no_form            = 1
                no_function_module = 2
                OTHERS             = 3
      IF sy-subrc <> 0.
      add an error message to processing protocol
        MESSAGE i015(sppf_media) WITH ip_smart_form INTO dummy.
        CALL METHOD cl_log_ppf=>add_message
          EXPORTING
            ip_problemclass = '1'
            ip_handle       = ip_application_log.
        EXIT.
      ENDIF.
    determine the tables of the application
      CALL FUNCTION 'CRM_OUTPUT_SINGLE_READ'
           EXPORTING
                iv_object                 = io_appl_object
                iv_smart_form             = ip_smart_form
                ir_partner                = io_partner
           IMPORTING
                es_output_orderadm_h      = ls_orderadm_h
                es_output_activity_h      = ls_activity_h
                es_output_opport_h        = ls_opport_h
                es_output_orgman_h        = ls_orgman_h
                es_output_pricingdata_h   = ls_pricingdata_h
                es_output_sales_h         = ls_sales_h
                es_output_shipping_h      = ls_shipping_h
                et_output_partner_h       = lt_partner_h
                et_output_payplan_d_h     = lt_payplan_d_h
                es_output_customer_h      = ls_customer_h
                es_output_cumulat_h       = ls_cumulat_h
                et_output_billing_h       = lt_billing_h
                et_output_cancel_h        = lt_cancel_h
                et_output_appointment_h   = lt_appointment_h
                et_output_billplan_d_h    = lt_billplan_d_h
                et_output_billplan_h      = lt_billplan_h
                et_output_status_d_h      = lt_status_d_h
                et_output_status_h        = lt_status_h
                et_output_srv_subject_h   = lt_srv_subject_h
                et_output_srv_reason_h    = lt_srv_reason_h
                et_output_srv_result_h    = lt_srv_result_h
                et_output_srv_refobj_h    = lt_srv_refobj_h
                et_output_srv_refobj_i    = lt_srv_refobj_i
                et_output_srv_subject_i   = lt_srv_subject_i
                es_output_acs_h           = ls_acs_h
                et_output_orderadm_i      = lt_orderadm_i
                et_output_orgman_i        = lt_orgman_i
                et_output_pricingdata_i   = lt_pricingdata_i
                et_output_pricing_i       = lt_pricing_i
                et_output_product_i       = lt_product_i
                et_output_sales_i         = lt_sales_i
                et_output_service_i       = lt_service_i
                et_output_shipping_i      = lt_shipping_i
                et_output_schedlin_i      = lt_schedlin_i
                et_output_partner_i       = lt_partner_i
                et_item_cstics_i          = lt_item_cstics_i
                et_output_customer_i      = lt_customer_i
                et_output_billing_i       = lt_billing_i
                et_output_cancel_i        = lt_cancel_i
                et_output_finprod_i       = lt_finprod_i
                et_output_ordprp_i        = lt_ordprp_i
                et_output_appointment_i   = lt_appointment_i
                et_output_billplan_d_i    = lt_billplan_d_i
                et_output_billplan_i      = lt_billplan_i
                et_output_orderadm_i_qt   = lt_orderadm_i_qt
                et_output_schedlin_i_cf   = lt_schedlin_i_cf
                et_output_status_i        = lt_status_i
                et_output_wrk_set_e_s_bbp = lt_working_set_e_s_bbp
                ev_language               = lv_language
    for assignments - begin
                et_output_service_i_assi  = lt_service_i_assi
    for assignments - end
    set mail title
    SELECT SINGLE caption INTO ls_output_options-tdtitle
       FROM stxfadmt WHERE
       formname = ip_smart_form AND
       langu    = lv_language.
    IF ls_output_options-tdtitle  IS INITIAL.
       SELECT SINGLE caption INTO ls_output_options-tdtitle
        FROM stxfadmt WHERE
        formname = ip_smart_form.
    ENDIF.
      CONCATENATE 'Servis Masas&#305; - Yeni bir sorun aç&#305;ld&#305;:'
      ls_orderadm_h-object_id INTO ls_output_options-tdtitle
      SEPARATED BY space.
    is_mail_appl_obj -
    fill this parameter if your application object is a BOR object
    the output will be connected with the BOR object via SAP Office
    this is done for mail and fax but not for print outputs
      ------>
    is_mail_appl_obj-LOGSYS    =
    is_mail_appl_obj-OBJTYPE   =
    is_mail_appl_obj-OBJKEY    =
    is_mail_appl_obj-DESCRIBE  =
      ------>
    language of smart form----
    determin here the language of the smart form
      control_parameters = is_control_parameters.
      control_parameters-langu = lv_language.
    fill archive parameters for archive link -
      IF is_output_options-tdarmod = '2' OR
         is_output_options-tdarmod = '3'.
      archive_index_tab
        READ TABLE ct_archive_index_tab INTO ls_archive_index INDEX 1.
        ls_archive_index-object_id = ls_orderadm_h-guid.
        IF ls_archive_index-object_id IS INITIAL.
          DELETE ct_archive_index_tab INDEX 1.
        ELSE.
          MODIFY ct_archive_index_tab FROM ls_archive_index INDEX 1.
        ENDIF.
      ENDIF.
      DATA : zzpartner TYPE crmt_output_partner_h_com .
      DATA : zzadres TYPE so_name .
      DATA : zobjkey TYPE swotobjid-objkey .
      DATA: lv_user           TYPE syuname,
            lv_mailaddr       TYPE so_name,
            lv_type_id        TYPE so_escape,
            lv_partnno        TYPE ppfdpartno,
            lv_partner_no     TYPE bu_partner,
            lv_partner        TYPE crmt_object_guid,
            ls_mail_recipient TYPE swotobjid.
      LOOP AT lt_partner_h INTO zzpartner .
        CLEAR zzadres.
        CHECK zzpartner-ref_partner_fct EQ 'ZSLFN001'.
        SELECT SINGLE smtp_addr FROM adr6 INTO zzadres
                               WHERE addrnumber = zzpartner-addr_nr.
        CHECK sy-subrc EQ 0.
        lv_mailaddr = zzadres.
        lv_type_id = 'U'.
        CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
          EXPORTING
            ip_mailaddr       = lv_mailaddr
            ip_type_id        = lv_type_id
          IMPORTING
            ep_recipient_id   = ls_mail_recipient
          EXCEPTIONS
            invalid_recipient = 1
            OTHERS            = 2.
    delete the old recipient object
        CALL FUNCTION 'DELETE_RECIPIENT_OBJECT_PPF'
          EXPORTING
            is_recipient_id = is_mail_recipient.
    call function to process smart form
        CALL FUNCTION function_name
             EXPORTING
                  archive_index        = is_archive_index
                  archive_index_tab    = ct_archive_index_tab
                  archive_parameters   = is_archive_parameters
                  control_parameters   = control_parameters
                  mail_appl_obj        = is_mail_appl_obj
               mail_recipient       = is_mail_recipient
                  mail_recipient       = ls_mail_recipient
                  mail_sender          = is_mail_sender
                  output_options       = ls_output_options
                  user_settings        = ip_user_settings
                  orderadm_h           = ls_orderadm_h
                  activity_h           = ls_activity_h
                  opport_h             = ls_opport_h
                  orgman_h             = ls_orgman_h
                  partner_h            = lt_partner_h
                  pricingdata_h        = ls_pricingdata_h
                  sales_h              = ls_sales_h
                  shipping_h           = ls_shipping_h
                  payplan_d_h          = lt_payplan_d_h
                  cumulat_h            = ls_cumulat_h
                  customer_h           = ls_customer_h
                  acs_h                = ls_acs_h
                  billing_h            = lt_billing_h
                  cancel_h             = lt_cancel_h
                  appointment_h        = lt_appointment_h
                  billplan_d_h         = lt_billplan_d_h
                  billplan_h           = lt_billplan_h
                  status_d_h           = lt_status_d_h
                  status_h             = lt_status_h
                  srv_subject_h        = lt_srv_subject_h
                  srv_reason_h         = lt_srv_reason_h
                  srv_result_h         = lt_srv_result_h
                  srv_subject_i        = lt_srv_subject_i
                  srv_refobj_h         = lt_srv_refobj_h
                  srv_refobj_i         = lt_srv_refobj_i
                  orderadm_i           = lt_orderadm_i
                  orderadm_i_qt        = lt_orderadm_i_qt
                  orgman_i             = lt_orgman_i
                  pricingdata_i        = lt_pricingdata_i
                  pricing_i            = lt_pricing_i
                  product_i            = lt_product_i
                  sales_i              = lt_sales_i
                  service_i            = lt_service_i
                  schedlin_i           = lt_schedlin_i
                  schedlin_i_cf        = lt_schedlin_i_cf
                  shipping_i           = lt_shipping_i
                  partner_i            = lt_partner_i
                  item_cstics_i        = lt_item_cstics_i
                  customer_i           = lt_customer_i
                  billing_i            = lt_billing_i
                  cancel_i             = lt_cancel_i
                  finprod_i            = lt_finprod_i
                  ordprp_i             = lt_ordprp_i
                  appointment_i        = lt_appointment_i
                  billplan_d_i         = lt_billplan_d_i
                  billplan_i           = lt_billplan_i
                  status_i             = lt_status_i
                  working_set_e_s_bbp  = lt_working_set_e_s_bbp
                  language             = lv_language
    for assignments - begin
                  service_i_assi      =  lt_service_i_assi
    for assignments - end
             IMPORTING
                  document_output_info = es_document_output_info
                  job_output_info      = es_job_output_info
                  job_output_options   = es_job_output_options
             EXCEPTIONS
                  output_canceled      = 1
                  parameter_error      = 2
                  OTHERS               = 3.
        IF sy-subrc = 0.
    determine header guid to set status printed
          lo_order ?= io_appl_object.
          lv_object_guid = lo_order->get_crm_obj_guid( ).
    set status printed into the crm order
          CALL FUNCTION 'CRM_STATUS_SET_INTERN'
            EXPORTING
              iv_objnr            = lv_object_guid
              iv_status           = gc_status-printed
              xnoauto             = true
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ELSE.
          CASE sy-subrc.
            WHEN 1.
              MESSAGE e016(sppf_media) INTO dummy.
            WHEN 2.
              MESSAGE e017(sppf_media) WITH function_name INTO dummy.
            WHEN 3.
              MESSAGE e018(sppf_media) WITH function_name INTO dummy.
          ENDCASE.
          CALL METHOD cl_log_ppf=>add_message
            EXPORTING
              ip_problemclass = '1'
              ip_handle       = ip_application_log.
        ENDIF.
    get error table
        CALL FUNCTION 'SSF_READ_ERRORS'
          IMPORTING
            errortab = et_error_tab.
    fill error into crm_order status
        LOOP AT et_error_tab INTO lv_error_tab_wrk
                 WHERE msgty = gc_msgtype-error.
          CALL FUNCTION 'CRM_MESSAGE_COLLECT'
               EXPORTING
                    iv_caller_name     = gc_object_name-order
                    iv_msgno           = lv_error_tab_wrk-msgno
                    iv_msgid           = lv_error_tab_wrk-msgid
                    iv_msgty           = lv_error_tab_wrk-msgty
                    iv_msgv1           = lv_error_tab_wrk-msgv1
                    iv_msgv2           = lv_error_tab_wrk-msgv2
                    iv_msgv3           = lv_error_tab_wrk-msgv3
                    iv_msgv4           = lv_error_tab_wrk-msgv4
                IV_ERROR_RELEVANCE = FALSE
                    iv_msglevel        = gc_msglevel-administrator
               EXCEPTIONS
                    not_found          = 1
                    appl_log_error     = 2
                    OTHERS             = 3.
        ENDLOOP.
      ENDLOOP .
    ENDMETHOD.

Maybe you are looking for

  • Upgraded MacBook or off-the-shelf MacBook Retina?

    Hi everyone, I'm about to replace my 6-years-old MacBook White (Early 2008) with a laptop. I'm hesitating between two options: 1. 13'' MacBook Retina, i5 2,4 GHz, upgraded to 256 SSD and 16GB RAM, 1590€* 2. 13'' MacBook non-Retina, i7 2,9GHz, which I

  • Webmaster Newbie with flash

    I am tasked with maintaining a website that has a few instances of flash animation.  Users browsing one of the pages with flash on it are getting an error, and I think it's probably a trivial thing to fix.  Perhaps some kind collaborator here will he

  • What will happen if I buy an app but I dont have enough credit?

    What will happen if I want to buy an app for $10 but I have $9.50 in credit. Will it use up all of the credit then go to my card for the 50 cents or will it go straight to my card?

  • Upgrading to Yosemite wiped out my Lightroom 5.6 catalog and presets.

    My stand alone Lightroom 5.6 is gone. Even the LR presets that came with Lightroom 5 are missing. I have tried for hours to reload all the presets, plugins and link the images (stored always on external HD) Things look right after backing up however,

  • Javascript onClick EJB method call problem

    Hi, I am using JDeveloper to develop a supermarket comparison tool. I have a JSP page called index.jsp which consists of a shopping list (shopping cart type thing) and an iframe which displays my search.jsp page. The search.jsp page is a list of all