How dynamically get an agent f a level-by-level workflow after PO changed

Hi  all:
     I'm trying to create a level-by-level workflow after PO  changed, but how dynamically get an agent and how assign it to
task dynamically?
    Thank you very much!!!

Hi Sony,
There are diffrent ways to get agent level by level....it depends from where you are getting the agents.
1>Suppose you have 2 level PO worklfow and my agents are stored in some custom table:-
    level1 -- agent1
    level2 --agent2
2> You can create two attributes in your BO i;e zgent1& zagent2.
3> Inside the attributes zagent1 u will get the actual agents from custom table by putting code
   i.e select agent1 into zagent1 from zcus_tab where level = 1.
4> Inside the attributes zagent1 u will get the actual agents from custom table by putting code
   i.e select agent1 into zagent1 from zcus_tab where level = 2.        
5> Now generate the BO...and test it ..u will se the user id of agents in the attributes populated.
6> Now bind these both attributes to workflow container.
7> Use attribute ZAGENT1 for level 1 approval task in worlfow.
8> Use attribute ZAGENT2 for level 2 approval task in worlfow.        
The values will comes dynamically from custom table...which u will maintain.

Similar Messages

  • How to assign possible agents at security role / CAG level?

    Hi Experts, How to assign possible agents at security role / CAG level?

    Yes, that's exactly what I'm talking about. In your task maintenance, goto additional data -> agent assignment -> Maintain
    Click on th task, click on the assign button. Choose object type 'Role', enter role.
    Cheers,
    Mike

  • How to get a second page in a form letter report after create it by Wizard

    How to get a second page in a form letter report after create it by Wizard
    i've built a report by wizard with a sql-Query
    the sql give me back for example 3 dataset
    and the report prints 3 pages
    dataset 1 - page 1
    dataset 2 - page 1
    dataset 3 - page 1
    thats ok,
    but now I need a second page per dataset ( with only a text )
    so that the report should print 2 pages per dataset
    dataset 1 - page 1 ,page 2
    dataset 2 - page 1 ,page 2
    dataset 3 - page 1 ,page 2
    It's not really clear for me, what to do, to create the second page
    any help ?

    .... found answer in other forum

  • How to get the User ID's details in SRM Workflow EBP system

    Hi Team
    How to get the User ID's details in SRM Workflow EBP system. Example like i have User ID "BTEMPEST" but i want his full name . so please suggst me how to get the full name of user id where it is maintained.
    Thanks.
    Puneet.

    Thank you very much muthu.
    For your information FM "RSPLPPM_GET_USERDETAILS" is working fine.
    Thanks for quick response.
    Thanks
    Puneet.

  • How to get rid of a $0.64 store balance so I can change stores?

    I have to clear an iTunes store balance before I can switch stores and update my account information.  How to get rid of a $0.64 store balance so I can change stores?

    Click here and ask the iTunes Store staff to zero your account balance.
    (106816)

  • How to get profile options & values at user & responsibility level by SQL?

    Experts, How to get profile options and values at user and responsibility level using SQL?

    SELECT
    po.profile_option_name as name
    , po.user_profile_option_name
    , decode(to_char(pov.level_id),'10001','SITE','10002','APP','10003','RESP','10005','SERVER','10006','ORG','10004','USER', '???') as "LEVEL"
    , decode(to_char(pov.level_id),'10001','','10002', app.application_short_name,'10003', rsp.responsibility_key,'10005', svr.node_name,'10006', org.name,'10004', usr.user_name,'???') as context
    , pov.profile_option_value as value
    FROM
    fnd_profile_options_vl po
    , fnd_profile_option_values pov
    , fnd_user usr
    , fnd_application app
    , fnd_responsibility rsp
    , fnd_nodes svr
    , hr_operating_units org
    WHERE 1=1
    AND pov.application_id = po.application_id
    AND pov.profile_option_id = po.profile_option_id
    AND usr.user_id (+) = pov.level_value
    AND rsp.application_id (+) = pov.level_value_application_id
    AND rsp.responsibility_id (+) = pov.level_value
    AND app.application_id (+) = pov.level_value
    AND svr.node_id (+) = pov.level_value
    and org.organization_id (+) = pov.level_value
    ORDER BY 1, pov.level_id, 5
    You'll need to apps initialize your SQL session before running this ...
    Regards,
    Jon

  • Can anyone tell me how to get groove agent 2 installed in Logic Pro 7?

    I've only just started using Logic Pro but I can't seem to get Groove Agent working. It works in stand alone mode but I can't get it to work as an instrument. If anyone can help it would be muchh appreciated.
    Thanks
    Macbook   Mac OS X (10.4.7)  

    Well according to your signature you have the Macbook and as fas as I know none of the Steinberg stuff is yet Universal so it appears you can't have it working just yet. Otherwise I would check that you have installed also the AU version which is what Logic looks for but in your case it doesn't help.

  • How to get Sales Order Partner Details at Item Level

    Hi,
    Is there any FM/BAPI to get the Order Partner Details at Item Level, using the Sales Order Number ?
    Thanks

    VBPA is the best table.
    You can query that table
    But you should be carefull about item number:
    in POSNR, if you observe the entries, you will find one entry with '000000': This corresponds to header record and the rest is at item level.
    Thanks
    Kiran

  • How to get the list of IDM users in a workflow.

    Hi,
    I wanted to get the list of IDM users in a workflow into a list.Now I tried to use getObjects Method,I do not have the display session here,I passed the workflow context or WF_Context.But it is giving exception like context null .
    I used the same method in a form and it worked.How can I get the list of users in a workflow.It is for customizing reports.
    Thanks and Regards,
    Pandu
    Any Idea on how to customize reports including attributes from resources and auditing attributes etc.Any help would be really great.
    Thank you.

    Hi John,
    I get this exception WorkItemForm: no id.
    This comes when I click on the other column.I generate the data needed in a report and display it as a sorting table when I get the data.
    I want to give the user ability to sort data by different columns.But when I click any column I get the exception
    WorkItemForm: no id
    How can I save a workitem on a manual form before invoking it from a manual action.
    Here is the code snippet
    <Field name='tblUsers'>
            <Display class='SortingTable'>
              <Property name='selectEnable' value='false'/>
              <Property name='align' value='left'/>
              <Property name='linkEnable' value='false'/>
              <Property name='sortEnable' value='true'/>
              <Property name='width' value='400'/>
              <Property name='columns'>
                <List>
                  <String>Account id</String>
                  <String>First Name</String>                      
                </List>
              </Property>
            </Display>      
            <FieldLoop for='row' in='_searchList[*]'>
              <Field name='enduserId'>
                <Display class='Label'>
                  <Property name='value'>
                    <block trace='true'>
                      <invoke name='getAccountId'>
                        <ref>row</ref>
                      </invoke>
                    </block>
                  </Property>
                </Display>
              </Field>
              <Field name='lblfirstname'>
                <Display class='Label'>
                  <Property name='value'>
                    <invoke name='getAttribute'>
                      <ref>row</ref>
                      <s>firstname</s>
                    </invoke>
                  </Property>
                </Display>
              </Field>
         <FieldLoop>      I think I may need to save some workItem,That is why this may be giving the error.How can I correct this.
    Thanks,
    pandu

  • BAPI_SCEC_CREATE - how to get the shopping cart to go to our workflow

    Dear experts,
    When a shopping cart is created using BAPI_SCEC_CREATE, it will get approved automatically. We want the shopping cart to go through our approval workflow. Is there any way to achieve this? I saw threads on similar question but there's no solution. It seems to be related to Sourcing relevant indicator (SOURCE_REL_IND) in table BBP_PDIGP. I've tried executing BAPI_SCEC_CREATE followed by BAPI_TRANSACTION_COMMIT and then BBP_PDIGP_DB_DIRECT_UPDATE to reset the SOURCE_REL_IND. However, it didn't work.
    Does anyone know how to get the shopping cart created by BAPI_SCEC_CREATE to go to a workflow?
    Thanks,
    Lara

    Hello Lara,
    When a shopping cart is created using BAPI_SCEC_CREATE, it will get approved automatically. We want the shopping cart to go through our approval workflow. Is there any way to achieve this?
    Have a look at SRM article below:
    [Enable SRM Workflow for External Purchase Requisitions|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/5082a622-7310-2c10-1a9b-ef31dd69a770]
    It seems to be related to Sourcing relevant indicator (SOURCE_REL_IND) in table BBP_PDIGP.
    Check your customizing:
    (in SRM 7.0) SAP Supplier Relationship Management > SRM Server > Sourcing > Define Sourcing for Product Categories
    Depending on product category you used when creating your SC, its items are relevant or not for Sourcing.
    Regards.
    Laurent.

  • Can someone tell me how to get rid of this message "New thunderbolt bridge detected after going to the OS X Maverick?

    Can someone tell me how to get around this message New thunderbolt bridge detected ?

    Fortysomething Geek- OSX 10.9 Thunderbolt Bridging Follow-up. Three Way Bridge

  • How to get release date of PR  at different levels of releasing strategy

    Hi All,
    In the releasing strategy of PR we have three levels R1 R2 & R3.
    Suppose a PR is release at R1 level on 01.01.2009
                                         at R2 level on 03.01.2009
                                         at R3 level on 05.01.2009.
    How will I come to know the relese date at all the three levels of a PR.
    Please help.
    Thanks ,
    Salman Zahir

    Hi Salman,
    IT is not depend on the mateail number.
    Based on object class 'EINKBELEG' and object id 'u r PR number*  U can get the record from CDHDR.
    In CDPOS u will have file fieldname also for which field u have 'Chnage document' check  box is checked then those deails will be stored in.
    Look at the FM 'CHANGEDOCUMENT_READ_HEADERS' and 'CHANGEDOCUMENT_READ_POSITIONS'
    Get back to me if you need any help.
    Thanks,

  • How to get Inactive sites information at web application level

    How can i get the inactive sharepoint sites information through sql server

    Hi Ravikiran,
    SharePoint sites can be stated as 'unused' but cannot be stated as 'inactive'. On the other hand inactive is a term suitable for databases.
    SQL Server can give you information on inactive databases but to collect information of unused SharePoint sites you should navigate to Central Administration tool.
    Refer this TechNet article: https://technet.microsoft.com/en-us/library/ff631154(v=office.14).aspx

  • How to get commission agent for a customer

    Hi,
    I have a report to develop wherein im collecting customers from BSID table. Now for each of these customer I have to find commission agent (Partner function = Z0). Can anybody please give an idea to do so. I have gone through some of the tables like VBPA, KNVP but could not get a perfect answer.
    Rgds
    Sid

    Hi Sid,
    Since it sounds that you need to find the commission agent per customer and not per sales order, check table KNVP.  This table holds the partner data per customer master record.
    Kind regards,
    Robert

  • How to get two syslog resources with different filter levels into ASA

    Hi All,
    I have my ASA's set up to push logs to my syslog server:
    logging host inside 198.xxx.xxx.185
    logging trap notification
    However, I would like to also trap if a VPN on my ASA's go down, but I want to send that to my SNMP server, NOT my syslog server. I also want to only trap that VPN log message and nothing else, so I want to set the filter level to emergencies:
    logging host inside 198.xxx.xxx.16
    logging trap emergencies (+ system message 123456)
    How can I configure my ASA so that these two syslog destinations will have separate respective filter levels of notifications for .185 and emergencies for .16?
    Also, does anyone know the System Log Message ID for a VPN tunnel going down?

    Dear Ronny,
    i am gining the solution below.But would request you to change your ITAB STRUCTURE LIKE THIS BEFORE USING THE CODE
    VERME LGPLA
    252.000 EA 300 0149A  0149 410
    276.000 EA 300 0149A  0107 410
    516.000 EA 300 0149A  3013 400
    528.000 EA 300 0149A  3013 400
    528.000 EA 300 0149A  3013 400
    528.000 EA 300 0149A  3013 400
    528.000 EA 300 0149A  3013 400
    528.000 EA 300 0149A  3013 400
    528.000 EA 300 0149A  3013 400
    then do as follows.
    SORT ITAB BY LGPLA VERME.
    LOOP AT ITAB INTO WITAB.
    W_INDEX = SY-TABIX.
    here take all the abOve fields in temp fieds.
    LW_VERME = WITAB-VERME..AND SO ON.
      AT END OF LGPLA.
       MOVE: all LW fields to work area of ITAB1
       APPEND work area of ITAB1 TO ITAB1.
       DELETE ITAB INDEX W_INDEX
      ENDAT.
    ENDLOOP.
    Basically what u r doing here is thet u r using processing event.
    So whenerv VERME changes this event will be triggered.
    Just try this out...something like this only will be he logic.
    Please let me know further

Maybe you are looking for