Change request and bapi

3) It seems there are two serial numbers come when we change an object what and why are these serial objects ??
4) difference between RFC and BAPI

Hi
You will get a TASK and a Request when you create/change a object
Task is under the Request
objects are stored in Tasks
A request can have any number of tasks
Have to release the tasks first and then release the request to transport the object
RFC (Remote Function Call) RFC is basically used to communicate witha dofferent system, Could be from R3 to R3 or may be from NON R3 to R3.
and is similar to the general SAP fun module: except that in the attributes you click the radio button: RFC enabled;
and you will be passing an Import parameter DESTINATION to it.
Other code and usage will be similar to any fun module;
Go through RFC_READ_TABLE and you will get good idea about RFC.
Have a look at any fun module in SE37 to understand better about the different components of Fun modules;
Refer this link:
http://help.sap.com/saphelp_nw04/helpdata/en/22/042518488911d189490000e829fbbd/frameset.htm
BAPI
what is BAPI?
BAPI stands for Business API(Application Program Interface).
A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
You can make your function module remotely enabled in attributes of Function module but
A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
The following standardized BAPIs are provided:
Reading instances of SAP business objects
GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
The BAPI GetList() is a class method.
GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
Create( ) and CreateFromData! ( )
The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
Change( )
The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
BAPI-step by step
http://www.sapgenie.com/abap/bapi/example.htm
list of all bapis
http://www.planetsap.com/LIST_ALL_BAPIs.htm
for BAPI's
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
http://www.planetsap.com/Bapi_main_page.htm
http://www.topxml.com/sap/sap_idoc_xml.asp
http://www.sapdevelopment.co.uk/
http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
Also refer to the following links..
www.sappoint.com/abap/bapiintro.pdf
www.sap-img.com/bapi.htm
www.sap-img.com/abap/bapi-conventions.htm
www.planetsap.com/Bapi_main_page.htm
www.sapgenie.com/abap/bapi/index.htm
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
u can check the below the material also
Example Code
U need to give the step_nr, item_nr, cond_count and cond_type so the correct conditon will be updated. If no condition exists for the given parameters, a new condition will be created.
U can find these parameters for a particular condition type in table KONV.
*& Form saveTransactionJOCR
text
--> p1 text
<-- p2 text
FORM saveTransactionJOCR .
data: salesdocument like BAPIVBELN-VBELN,
order_header_inx like bapisdh1x,
order_header_in like bapisdh1,
return type standard table of bapiret2 with header line,
conditions_in type standard table of bapicond with header line,
conditions_inx type standard table of bapicondx with header line,
logic_switch like BAPISDLS,
step_nr like conditions_in-cond_st_no,
item_nr like conditions_in-itm_number,
cond_count like conditions_in-cond_count,
cond_type like conditions_in-cond_type.
salesdocument = wa_order_information-VBELN.
LOGIC_SWITCH-COND_HANDL = 'X'.
order_header_inx-updateflag = 'U'.
conditions
clear conditions_in[].
clear conditions_inx[].
clear: step_nr,
item_nr,
cond_count,
cond_type.
step_nr = '710'.
item_nr = '000000'.
cond_count = '01'.
cond_type = 'ZCP2'.
CONDITIONS_IN-ITM_NUMBER = item_nr.
conditions_in-cond_st_no = step_nr.
CONDITIONS_IN-COND_COUNT = cond_count.
CONDITIONS_IN-COND_TYPE = cond_type.
CONDITIONS_IN-COND_VALUE = 666.
CONDITIONS_IN-CURRENCY = 'EUR'.
append conditions_in.
CONDITIONS_INX-ITM_NUMBER = item_nr.
conditions_inx-cond_st_no = step_nr.
CONDITIONS_INX-COND_COUNT = cond_count.
CONDITIONS_INX-COND_TYPE = cond_type.
CONDITIONS_INX-UPDATEFLAG = 'U'.
CONDITIONS_INX-COND_VALUE = 'X'.
CONDITIONS_INX-CURRENCY = 'X'.
append conditions_inx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = salesdocument
ORDER_HEADER_IN = order_header_in
ORDER_HEADER_INX = order_header_inx
LOGIC_SWITCH = logic_switch
TABLES
RETURN = return
CONDITIONS_IN = conditions_in
CONDITIONS_INX = conditions_inx
if return-type ne 'E'.
commit work and wait.
endif.
ENDFORM. " saveTransactionJOCR
Bdc to Bapi
The steps to be followed are :
1. Find out the relevant BAPI (BAPI_SALESORDER_CHANGE for VA02).
[for VA01 use BAPI_SALESORDER_CREATEFROMDAT2]
2. Create a Z program and call the BAPi (same as a Funtion module call).
2. Now, if you see this BAPi, it has
-> Importing structures.
eg: SALESDOCUMENT: this will take the Sales order header data as input.
-> Tables parameters:
eg: ORDER_ITEM_IN: this will take the line item data as input.
Note :
Only specify fields that should be changed
Select these fields by entering an X in the checkboxes
Enter a U in the UPDATEFLAG field
Always specify key fields when changing the data, including in the checkboxes
The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
Maintain quantities and dates in the schedule line data
Possible UPDATEFLAGS:
U = change
D = delete
I = add
Example
1. Delete the whole order
2. Delete order items
3. Change the order
4. Change the configuration
Notes
1. Minimum entry:
You must enter the order number in the SALESDOCUMENT structure.
You must always enter key fields for changes.
You must always specify the update indicator in the ORDER_HEADER_INX.
2. Commit control:
The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.
For further details... refer to the Function Module documentation for the BAPi.
Bapi to VB(Visual Basic)
Long back I had used the following flow structure to acheive the same.
Report -> SM59 RFC destination -> COM4ABAP -> VB.exe
my report uses the rfc destination to create a COM session with com4abap. com4abap calls the vb.exe and manages the flow of data between sap and vb exe.
You need to have com4abap.exe
If com4abap is installed you will find it in sapgui installatin directory , C:\Program Files\SAPpc\sapgui\RFCSDK\com4abap.
else refer OSS note 419822 for installation of com4abap
after making the settings in com4abap to point to the vb program and setting up rfc destination in sm59 to point to com4abap session , you can use the following function modules to call the vb code.
for setting up com4abap and rfc destination please refer to the documentation for com4abap.
Invoke NEW DCOM session
call function 'BEGIN_COM_SESSION'
exporting
service_dest = service_dest "(this will be a RFC destination created in SM59)
importing
worker_dest = worker_dest
exceptions
connect_to_dcom_service_failed = 1
connect_to_dcom_worker_failed = 2
others = 3.
call function 'create_com_instance' destination worker_dest
exporting
clsid = g_c_clsid
typelib = g_c_typelib
importing
instid = g_f_oid
exceptions
communication_failure = 1 message g_f_msg
system_failure = 2 message g_f_msg
invalid_instance_id = 3
others = 4.
call function 'com_invoke' destination worker_dest
exporting
%instid = g_f_oid
%method = 'UpdatePDF'
sntemp = g_v_const_filent
snsysid = sy-sysid
snflag = 'N'
tables
rssaptable = g_t_pdfdetail1
%return = g_t_pdfdetail1 "t_test
exceptions
communication_failure = 1 message g_f_msg
system_failure = 2 message g_f_msg
invalid_instance_id = 3
others = 4.
then close the com session , using
FM delete_com_instance
FM END_COM_SESSION
Reward points for useful Answers
Regards
Anji

Similar Messages

  • Report for Support Message,  Change Request and Change in one overview?

    Is there a report that shows the relation between the support message, change request and the change in one overview? I am already aware of the Change Management Reporting via SOLAR_EVAL, but this does not show the whole document flow in one overview.
    The incident message processors want to have a quick overview of the status of the changes that are created on the basis of the support message.
    If there is no report, could you point me in the right direction... Do I have to create a query or are you using BW for service desk/charm reporting?

    Hi
    chk te sap note
    [Note 1466131 - ChaRM Reporting: Performance of data update|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1466131]
    jansi

  • Changing of iBase in Change Requests and Corrections being processed

    Good day!
    After going SP18 with Solution Manager our iBase component system has gone "mad": number for productive ERP-system has changed several times.
    Because of this change, a number of already approved change requests and corrections in processing can't be modified correctly. I can't change their status by regular operations from system document. Multiple correction/ change request change also won't work. And I can't change the iBase component in this documents, because the field is read only.
    How can I close all Change Requests and corrections with old iBase component number?
    Is there a way to change the iBase number in already approved Change Requests and Corrections, so i can perform operations with this system documents.

    Hello Raguraman!
    Thank you for your answer.
    Anyway I implemented the note to which you refer, and still can't change iBase component in corrections and change requests which are in process. The "iBase/Component" field is still read only and contains components which do not exist anymore.
    Do you know how can I change this values?

  • Restrictions belonging relation between Change Request and Corrections?

    Hi all,
    In standard change process I only can create one change document (correction) to one change request.
    Releation 1:1.
    Is there a technical restriction belonging the relation between the change request and the corrections?
    Does anyone has experience with a 1:n relation in the change process?
    Thanks for your help in advance.
    Regards,
    Alex
    Edited by: Alexander Barth on Mar 16, 2009 11:24 AM

    Hi Prakhar,
    what you described is a process-restriction. It is not a technical restriction.
    E.g.: I have a change belonging BI. Therefore I have to change things in BI and ERP 6.0. Why not using one change request with two corrections? One for BI and one for ERP 6.0.
    So you are right if you want to create for that situation two change requests. There is no relation between them. How do you control them?
    Administration and documentation is important. But it should be useful.
    And I am able to set up more than one corrections to one change request technicaly in SolMan.
    But is there a deeper technical restriction inside which raise problems later?
    For me it seems that SAP wants that a 1:1 relation is used. But why?
    Does anyone have an idea?
    Thanks.
    Regards,
    Alex

  • Configuring BW to Report Change Requests and Change Documents

    We upgraded to Solution Manager 4.0 on DB2 and need to extract the Change Request and Change Document tables to BW for reporting. We know that there is an internal Transaction Monitor, but we need to also report using BEx Analyzer for users who will not log into Solution Manager.
    We found one table CRMD_ORDERADM_H for some Change Request fields, but cannot find the tables for the rest. Does someone know the tables where these fields reside?  Thank you.
    <u><b>CHANGE REQUEST</b></u>
    <b><u>Screen Name     Table</u></b>
    Priority     
    Category     
    Description     CRMD_ORDERADM_H
    Sold-to Party     
    Requester                      COMT_PARTNER_TO_DISPLAY
    Change Manager     
    Change Advisory Board     
    Ibase     
    Product     
    Subject     
    External Reference     CRMD_SALES
    Date     
    Change Request ID     CRMD_ORDERADM_H
    Decision Date     
    Implementation Date     
    Time of Entry     
    Change Request Log     
    Description of Change     
    Change Request Status     
    <u><b>CHANGE DOCUMENT</b></u>
    <u><b>Screen Name     Table</b></u>
    Change Document ID     
    Status     
    Description     
    IT Operator     
    Implementation Date     
    Time of Entry     
    Overview

    We upgraded to Solution Manager 4.0 on DB2 and need to extract the Change Request and Change Document tables to BW for reporting. We know that there is an internal Transaction Monitor, but we need to also report using BEx Analyzer for users who will not log into Solution Manager.
    We found one table CRMD_ORDERADM_H for some Change Request fields, but cannot find the tables for the rest. Does someone know the tables where these fields reside?  Thank you.
    <u><b>CHANGE REQUEST</b></u>
    <b><u>Screen Name     Table</u></b>
    Priority     
    Category     
    Description     CRMD_ORDERADM_H
    Sold-to Party     
    Requester                      COMT_PARTNER_TO_DISPLAY
    Change Manager     
    Change Advisory Board     
    Ibase     
    Product     
    Subject     
    External Reference     CRMD_SALES
    Date     
    Change Request ID     CRMD_ORDERADM_H
    Decision Date     
    Implementation Date     
    Time of Entry     
    Change Request Log     
    Description of Change     
    Change Request Status     
    <u><b>CHANGE DOCUMENT</b></u>
    <u><b>Screen Name     Table</b></u>
    Change Document ID     
    Status     
    Description     
    IT Operator     
    Implementation Date     
    Time of Entry     
    Overview

  • Personnel Change Request And HCMPF.

    Hi All,
    Please kindly provide me the difference between Personnel Change Request and HCMPF,
    Technically, i heard PCR works on java script window and HCMPF on Adobe forms with Webdynpro Environment. (correct me if i'm wrong).
    Please update me with other differences, advantages and Disadvantages of the both.
    Currently our system is in ECC 5.0, analyzing on implementing PCR or HCMPF.
    So, kindly advise me on the difference between these two with its pros and cons.
    Thanks a lot for your help..
    Regards,
    Nathan.

    Hi,
    PCR (Pers Chnage Request) is also available in interactive Adobe UI from ECC 5.0, however from ECC 6.0 SAP introduced HCMPF that has more flexibility and can handle more complex sceanrios. SAP recommends (documention exist both in IMG and online help) customers to use HCMPF going forward.
    There is some good documentation available on SAP service market place if you have access.
    Few of the advantages HCMPF are :
    Capability to handle attachments
    Allows "Save as draft"
    Updates EE's master data in the background mode
    Employee also can be included in the process
    Search iView provides ability for HR to track the status on form
    BI content is available to support reporting
    Now in EhP4 HCMPF supports processes in PD (Positions, Org units, Jobs etc)
    Hope this helps
    regards
    Sridhar Kandisetty

  • Ifference between change request and release request and transport request

    what is the difference between change request and release request and transport request and customization  request?

    Please refer to this link :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/57/38e1824eb711d182bf0000e829fbfe/frameset.htm
    Regards,
    Praveen
    Pl reward if helpful

  • Difference between Change request and Service request

    HI All,
    Can any body tell me the actual difference between Change request and Service Request. Does it have any difference ? Or they are same.

    Are you referring to the project Specific Terms ??? If yes, then following are the differences.
    Change Request - Suppose user is using a Sales Report which displays Revenue by Customer. Now the user wants to see the same by Product as well which is not available in the current report. So the user raises a Change request and the development team works on it to include the same and make it avaialable for the user.
    Service Request - These kind of requests are more likely raised when the user needs access to some system (raise service request to Security team), wants to move a transport to the Production box (raise Service request to Basis Team)..etc.

  • ChaRM Change Request and Change Documents if withdraw

    Hi groupies,
    my problem is this:
    we did copy the standard transaction sdcr etc. to zdcr etc.
    If I release a zdcr a new transaction zdmi (normal correction) will be created. I switch into the new transaction type zdmi and  withdraw the transaction zdmi. Now I go back into the transaction zdcr. In the Standard SDCR you must release the SDCR again. But in my case the status is still "released". What is the problem? Know anyone the problem?
    nico

    Hi.
    Search for customizing section "Make settings for Change Transaction Types"
    Select ZDMI and assign the following:
    Assign Action: SET_PREDOC for user status "withdrawn" (check table TJ30 or the corresponding status profile via customizing). It's something like "E0xx"
    Specify Status Attributes: Fill in the appropriate information, especially user status ("E0xx" - same as above), transaction type (ZDCR), Statusprofile (status profile used for ZDCR, i.e. ZDCRHEAD) and user status which ZDCR should be reset to (i.e. "E0001 to be approved" or "E0003 rejected")
    If you just want to be able to create another ZDMI you could also add an action condition to your ZDCR.
    (Tx: SPPFCADM -> CRMD_ORDER -> Condition Configuration)
    Hope this helps.
    /cheers

  • Create Change Request and Assigned Transaction Button in Solution Directory

    These buttons are available in our sand environment, but not in production.  Does anyone know where these buttons came from (support pack, note, enhancement, etc.)?

    Thanks Kiran,
    In fact, I'm using TCode solution_manager but I don't see "maintenance optimizer".
    I think it's because I have ST400 SP7 and I have to update to SP9 according to this blog [/people/issacnolis.ohasi/blog/2008/01/04/upgrade-sessions-whats-sap-solution-manager-maitenance-optimizer|/people/issacnolis.ohasi/blog/2008/01/04/upgrade-sessions-whats-sap-solution-manager-maitenance-optimizer]
    Mik

  • Difference between task request and change request

    What is the difference between task request and change request during sap implementation. In general how many tasks will generate during a normal company inmplementation by any functional consultant?

    Hi,
    Change request and task request are same.But generally change request is generated during newly created objects or reports that are transported and task request is used when u regenerate the change request by modifying that object again and transporting it in new change request.
    A particular change request may contain multiple number of task request but that number depends upon number of objects u transfer during generation and transportation.
    Pls do reward points if ans is useful.
    Regards,
    Suhas.

  • Confirmation of Support notification and Change request.

    Hi Guru's,
    In my clinets landscape we are using ChaRM for Change requests and Urgent correction. We have two situation here to handle.
    1. I (Change Manager) should only be able to confirm a support notification if all the dependent/subsequent change requests have been confirmed
    2. I (Change Manger) should only be able to confirm a change request if all the dependent/subsequent urgent corrections have been confirmed.
    Request your help.
    Vinod

    Hi,
    you can customize that your change request will automatically get a new status if the linked urgent correction reached a specific satus.
    You can then do the same with support message and change request. This will lead to a chain where your support message is confirmed automatically if your urgent correction is confirmed.
    Check SPRO - Make Setting for Change Transaction Types - Assign Actions "SET_PREDOC"
    Best Regards
    Daniel

  • Re:Error while importing the TP from dev to quality through change request

    Hi Guys,
    We have implemented change request and upgraded for SP 15 support pack
    when the user tries to import through urgent correction by selecting pass correction to test the TP is not getting imported, when i checked the log it is saying
    System cancel RFC destination SM_BQ2CLNT100_TRUSTED, Call TMW_SET_PROJECT_SWITCHES: No authorization to logon as trusted system (Trust ed RC=2).
    You cannot import any requests for project BD2_P00001 at the moment
    Then i went to show project status switches and changed as "Request can be imported" from " request cannot be imported", then the user is able to import the UC from the task list,
    But ideally the status switches should be " request cannot be imported" so that the TP can be imported only through change request.
    kindly give ur inputs as it is very urgent.
    Regards
    Raju

    Hi Jith,
    First of all try to consolidate all your objects in a single TR and then move to Q from D.
    In this case check for the list of objects that you have in your TRs. If TR 3 have all the Objects that were in TR1, TR2, then transporting TR3 alone will work.
    Also, you can find the information related to the elements that were missed in your TR1,TR2 by following process.
    1. Go to your transport Logs and then to the entries marked as Error.
    2. There you will find the Query Element Ids, copy them
    3. Now, go to Table(Se16) RSZELTDIR, there enter those query elements.
    Now, you can able to find the elements that you have missed in your TRs. Hope this helps you.

  • Change Management and Test Workbench for documentation

    Hi,
    I would like some clarification on the association between change requests and test workbench.
    I'm going through scenarios such as creating a maintenance project, creating a task list and service message and then creating a transport request.
    During these steps, I want to document the test results prior to migrating these transports into the production system.
    My questions are - how do you link the maintenance project and also urgent corrections to a test procedure and documentation. It appears that by using solar01/solar02 and stwb_2/stwb_work, these tests are linked to a project and not necessarily a "change request"
    I greatly appreciate if you can elaborate the association between the various areas a bit clearer for me.
    Thanks!!!

    You need to look for information on usage type "DI", "Development Infrastructure" or "NWDI" (all common abbreviations for the same thing).  There were some very good presentations on NWDI at TechEd this year.
    Here are some links to help documentation:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/63/7a4d40eae76f13e10000000a1550b0/frameset.htm">Administration of the Development Infrastructure</a>
    <a href="http://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/developersguide">SDN NetWeaver Developers Guide</a>
    Rich

  • Notifying a user that an Urgent Change Request has been Approved, or Denied

    Trying to figure out the best way to have an email go back to a user after a Change Request has been updated with either an Approved or Deny
    What we do now is after a user creates an Urgent Change Request, and email goes out to all of our Managers. One of them will reply all to the email with either an [approval] or [deny] in the message body so Service Manager gets the email and acts on
    it and the other Managers know it was acted on.
    Problem is, if the Manager forgets to add in the Change Requester in the email, they don't know it was acted on. I tried using WorkFlows for Change Request to update the Change Requester of an update but there is nothing in there for  Approval or Deny.
    I then resorted to subscriptions but can't figure out how to configure the subscription so that only the Change Requester gets the email. We can configure different email templates based on the whether the change was approved or denied. Just need to figure
    out how to configure the Recipient.

    I suggest you read this
    which is very close to what you want to do.
    I've checked the link and found it working. Of course, it works only if the RA is a direct child of work item itself (so for RAs encapsulated in SA or PA it doesn't work).
    Below the XML code of the management pack I used. You can engage that, just copy to Notepad and save as ManagementPack.ef9b0adf354c4afe92ede323c9427879.xml
    It might require to customize a mail template cause I made a very simple one.
    <ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Manifest>
    <Identity>
    <ID>ManagementPack.ef9b0adf354c4afe92ede323c9427879</ID>
    <Version>7.5.2905.0</Version>
    </Identity>
    <Name>RA notify affected user MP</Name>
    <References>
    <Reference Alias="EnterpriseManagement">
    <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Console</ID>
    <Version>7.5.2905.179</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="CustomSystem_Notifications_Library">
    <ID>System.Notifications.Library</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="CustomSystem_WorkItem_Library">
    <ID>System.WorkItem.Library</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="CustomSystem_WorkItem_Activity_Library">
    <ID>System.WorkItem.Activity.Library</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="CustomSystem_Library">
    <ID>System.Library</ID>
    <Version>7.5.8501.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="SystemCenter">
    <ID>Microsoft.SystemCenter.Library</ID>
    <Version>7.0.8432.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="SystemCenter1">
    <ID>Microsoft.SystemCenter.Subscriptions</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="EnterpriseManagement1">
    <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Administration</ID>
    <Version>7.5.2905.179</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    </References>
    </Manifest>
    <Categories>
    <Category ID="Category.6f4a3832d9c3488fa2c31d1d662dceef" Value="EnterpriseManagement!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
    <ManagementPackName>ManagementPack.ef9b0adf354c4afe92ede323c9427879</ManagementPackName>
    <ManagementPackVersion>7.5.2905.0</ManagementPackVersion>
    </Category>
    <Category ID="ServiceManager.Console.NotificationManagement.NotificationTemplates.Enumeration6fce0865_32d8_435d_ad64_7c48439649ab.Category" Target="Template_50a8eac21da94bb2a340858b71c931d3" Value="EnterpriseManagement1!ServiceManager.Console.NotificationManagement.NotificationTemplates.Enumeration" />
    <Category ID="Category.804f621f7a2b4e0490c82413cd6479d9" Target="NotificationSubscription_da1aa98f_40c3_4dd5_a227_de3e7f20601e" Value="EnterpriseManagement1!Microsoft.EnterpriseManagement.ServiceManager.Rules.WorkflowSubscriptions" />
    </Categories>
    <Monitoring>
    <Rules>
    <Rule ID="NotificationSubscription_da1aa98f_40c3_4dd5_a227_de3e7f20601e" Enabled="true" Target="SystemCenter!Microsoft.SystemCenter.SubscriptionWorkflowTarget" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
    <Category>System</Category>
    <DataSources>
    <DataSource ID="DS" TypeID="SystemCenter1!Microsoft.SystemCenter.CmdbInstanceSubscription.DataSourceModule">
    <Subscription>
    <InstanceSubscription Type="bfd90aaa-80dd-0fbb-6eaf-65d92c1d8e36">
    <UpdateInstance>
    <Criteria>
    <Expression>
    <And>
    <Expression>
    <Or>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <Property State="Pre">$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Status$</Property>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value>{9de908a1-d8f1-477e-c6a2-62697042b8d9}</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <Property State="Pre">$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Status$</Property>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value>{144bcd52-a710-2778-2a6e-c62e0c8aae74}</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </Or>
    </Expression>
    <Expression>
    <Or>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <Property State="Post">$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Status$</Property>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value>{9de908a1-d8f1-477e-c6a2-62697042b8d9}</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <Property State="Post">$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Status$</Property>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value>{144bcd52-a710-2778-2a6e-c62e0c8aae74}</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </Or>
    </Expression>
    </And>
    </Expression>
    </Criteria>
    </UpdateInstance>
    </InstanceSubscription>
    <PollingIntervalInSeconds>60</PollingIntervalInSeconds>
    <BatchSize>100</BatchSize>
    </Subscription>
    </DataSource>
    </DataSources>
    <WriteActions>
    <WriteAction ID="WA" TypeID="SystemCenter1!Microsoft.EnterpriseManagement.SystemCenter.Subscription.WindowsWorkflowTaskWriteAction">
    <Subscription>
    <VisibleWorkflowStatusUi>true</VisibleWorkflowStatusUi>
    <EnableBatchProcessing>true</EnableBatchProcessing>
    <WindowsWorkflowConfiguration>
    <AssemblyName>Microsoft.EnterpriseManagement.Notifications.Workflows</AssemblyName>
    <WorkflowTypeName>Microsoft.EnterpriseManagement.Notifications.Workflows.SendNotificationsActivity</WorkflowTypeName>
    <WorkflowParameters>
    <WorkflowParameter Name="SubscriptionId" Type="guid">$MPElement$</WorkflowParameter>
    <WorkflowArrayParameter Name="DataItems" Type="string">
    <Item>$Data/.$</Item>
    </WorkflowArrayParameter>
    <WorkflowArrayParameter Name="InstanceIds" Type="string">
    <Item>$Data/BaseManagedEntityId$</Item>
    </WorkflowArrayParameter>
    <WorkflowArrayParameter Name="TemplateIds" Type="string">
    <Item>f7785299-c026-a870-e350-d02b65a1f3b3</Item>
    </WorkflowArrayParameter>
    <WorkflowArrayParameter Name="PrimaryUserRelationships" Type="string">
    <Item>$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='CustomSystem_WorkItem_Library!System.WorkItem']/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemAffectedUser' TypeConstraint='CustomSystem_Library!System.User']$</Item>
    </WorkflowArrayParameter>
    </WorkflowParameters>
    <RetryExceptions />
    <RetryDelaySeconds>60</RetryDelaySeconds>
    <MaximumRunningTimeSeconds>7200</MaximumRunningTimeSeconds>
    </WindowsWorkflowConfiguration>
    </Subscription>
    </WriteAction>
    </WriteActions>
    </Rule>
    </Rules>
    </Monitoring>
    <Templates>
    <ObjectTemplate ID="Template_50a8eac21da94bb2a340858b71c931d3" TypeID="CustomSystem_Notifications_Library!System.Notification.Template.SMTP">
    <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template.SMTP']/Subject$">&lt;1033&gt;$Context/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$ is completed&lt;/1033&gt;</Property>
    <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template.SMTP']/Priority$">2</Property>
    <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template.SMTP']/IsBodyHtml$">False</Property>
    <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/Content$">&lt;1033&gt;$Context/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$ is completed&lt;/1033&gt;</Property>
    <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/Encoding$">utf-8</Property>
    <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/SeedClass$">System.WorkItem.Activity.ReviewActivity$bfd90aaa-80dd-0fbb-6eaf-65d92c1d8e36</Property>
    <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/Protocol$">SMTP</Property>
    </ObjectTemplate>
    </Templates>
    <LanguagePacks>
    <LanguagePack ID="ENU" IsDefault="true">
    <DisplayStrings>
    <DisplayString ElementID="ManagementPack.ef9b0adf354c4afe92ede323c9427879">
    <Name>RA notify affected user MP</Name>
    </DisplayString>
    <DisplayString ElementID="Template_50a8eac21da94bb2a340858b71c931d3">
    <Name>RA notify affected user mail template</Name>
    </DisplayString>
    <DisplayString ElementID="NotificationSubscription_da1aa98f_40c3_4dd5_a227_de3e7f20601e">
    <Name>RA notify affected user</Name>
    </DisplayString>
    </DisplayStrings>
    </LanguagePack>
    </LanguagePacks>
    </ManagementPack>
    Cheers,
    Marat
    Site: www.scutils.com 
    Twitter: LinkedIn:
    Graveyard:
    It does work even if it is within a PA or SA or even deeper, you "just" have to follow the path to the CR from there. But then you would need a subscription for each RA depending on where it is in the flow. Try to make your users understand that :D
    http://codebeaver.blogspot.dk/

Maybe you are looking for

  • What are the areas impact query to run for ever/long?

    Hi All, When I have to talk about long running scripts or procedures I focus on DTA which suggests on Indexing and infact I think this is the main cause. What are the other areas which we need to consider for Long running queries and troubleshooting

  • Will a Mac Mini connect to my old Dell monitor?

    As my old Powermac G5 is seriously out of date, I think I'm going to buy a mac mini as I have limited space for a huge imac. However, I want to use my old Dell monitor but I'm not sure if they two will connect. The monitor is 8 years old and has one

  • Transfering ALL music from ipod to itunes.

    My laptop has just recently crashed and it is unsure if my computer man will be able to retrieve my itunes music. The only place where ALL of my music is stored is on my ipod touch. The problem is that i have not bought all my music from itunes, alot

  • Error occurred while getting a schedule list.The system cannot find the fil

    Hi all, If i open the "packages shedule status".I am getting error like  "Error occurred while getting a schedule list.The system cannot find the file specified".How to fix this issue?.Anyone have idea please share. Thanks in advance AD

  • PDF Interactivo que mande llamar otros archivos PDF

    Necesito que al hacer un PDF Interactivo, mande llamar otros archivos PDF pero que los archivos no estén forzoso en la WEB ni en una misma computadora. No hay problema de enviar de una computadora a otra el PDF Interactivo con su carpeta de PDFs que