Assign one approver from table...

Hi All,
I used a table container in workflow in which i am having multiple approvers. Based on some condition i need to assign a single approver out of them.
How can this be done?
Basically how can i specify that which index number of internal table will be picked as agent.
Regards,
Guddan

Hi,
If you have two level of approvals, then create loop step type and set the loop as 2.(loop should end when the expression has the value 2].
Then create a container 'index' with the data type of Integer and set the initial value as '1'.
When the first loop is called, pass the index to your method and read the internal table based on index to get the approver.
Once the first approver approves the request, using container opertaion step type increase the index value to 2.
Now pass the index again to your method and get the second approver.
Thanks,
Viji.

Similar Messages

  • Newbie question: Select one row from table in PL/SQL

    Hi,
    I want to select one row from the table Employee where Emplyoyee Number is say 200. This is a simple SQL query, but I don't know the equivalent PL/SQL format. I will have 3 out params here - Id itself, Name, Salary. I will then have to populate a java resultset object from these out params.
    Later, I'll have to use cursors to retrieve more than one row.
    Thanks for any help.

    Perhaps something like
    CREATE OR REPLACE PROCEDURE get_employee( l_id IN OUT employee.id%TYPE,
                                              l_name OUT employee.name%TYPE,
                                              l_salary OUT employee.salary%TYPE )
    AS
    BEGIN
      SELECT name, salary
        INTO l_name, l_salary
        FROM employee
       WHERE id = l_id;
    END;Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • I am getting only one record from table data

    Hi Experts,
    I am using interacive forms to bring the table data i used  GET_STATIC_ATTRIBUTES_TABLE
    method. initially the table is empty when i fill some records more than one it is giving me only one record.
    where as i fill the table in wddoinit more than one record and try to retreived it, showing all the records more than one. waht is the reason.. if i fill manually why it is not bringing all the reocrds.
    i have used the cardinatly as follows
    1. parent node(no tables/structure used)
    Dictionary structure       empty not used
    Cardinality 1..1
    Selection 0..1
    Initialization Lead Selection  Checked
    Singleton    Not checked
    Supply Function  not used
    2. table node(i used table type)
    Dictionary structure    SFLIGHT_LIGHT
    Cardinality 1..n
    Selection 0..n
    Initialization Lead Selection  Checked
    Singleton    Not checked
    Supply Function  not used
    Pleae help me out...
    Thanks,
    Mahesh.Gattu

    hi,
    Use the following code for making the rows editable for a table UI element.
      DATA lo_nd_cn_try TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_try TYPE REF TO if_wd_context_element.
      DATA ls_cn_try TYPE wd_this->element_cn_try.
      DATA ls_cn_try1 TYPE wd_this->elements_cn_try.
    navigate from <CONTEXT> to <CN_TRY> via lead selection
      lo_nd_cn_try = wd_context->get_child_node( name = wd_this->wdctx_cn_try ).
    do 5 times.                       
    clear ls_cn_try.
    append ls_cn_try to ls_cn_try1.
    lo_nd_cn_try->bind_table( ls_cn_try1 ).
    enddo.
    ->  cn_try is the node which is binded with the Table UI element.
    What all this is called as initialization of table. This code will make 5 rows editable, If u want more rows editable then run the loop according to the requirement.
    U can write this code in the WDDOINIT.
    Thanks,
    Pankaj Aggarwal.

  • Approver & approval date from Requisition & PO Approval workflow tables

    Dear All,
    My req is to create a report that calculates the lead time taken by a Purchase Requisition to be converted into a PO and released. In the output they want the APPROVER NAME, DATE APPROVED against the REQUISITION NUMBER (EBAN-BANFN) and also they want APPROVER NAME, DATE APPROVED against the Purchase Order (so all in all 2 fields of approvers & 2 fields of approval dates). But the thing is they want these APPROVER NAME, DATE APPROVED from the Requisition Approval Workflow tables.
    Please update the table & fields that will have the Approver and date approved from workflow corresponding to the Purchase Requisition Number and Purchase Order. or What is the link between the "Approver, approval date & Purchase Requisition Number" and "Approver, approval date & Purchase Order".
    Thanks in advance. The solution will be rewarded the points.
    Warm Regards,
    Farooq.

    We have HR/Payroll and Purchasing working fine for 6 years with the following schedule settings. 0.1 seems too frequent:
    A. Schedule one concurrent request to process deferred activities:
    1. Item Type :
    2. Min Threshold :
    3. Max Threshold :
    4. Process Deferred : Yes
    5. Process Timeout : No
    6. Process Stuck : No
    (Once every five minutes)
    B. Schedule one concurrent request to process timeout activities:
    1. Item Type :
    2. Min Threshold :
    3. Max Threshold :
    4. Process Deferred : No
    5. Process Timeout : Yes
    6. Process Stuck : No
    (Once every six hours)
    C. Run for stuck activities periodically
    1. Item Type :
    2. Min Threshold :
    3. Max Threshold :
    4. Process Deferred : No
    5. Process Timeout : No
    6. Process Stuck : Yes
    (Once every day)
    D. Run forall three activities periodically
    1. Item Type :
    2. Min Threshold :
    3. Max Threshold :
    4. Process Deferred : Yes
    5. Process Timeout : Yes
    6. Process Stuck : Yes
    (Once every day)
    By the way, we also have Synchronize WF Local Tables run once every 24 hours
    Hope this helps.
    Edited by: DBA115102 on Feb 1, 2011 10:41 AM

  • Numbers for ipad - sent one sheet from a table

    hi, i like to sent one sheet from my table via email/webdav. is this possible ?

    suedkreislaeufer wrote:
    hi, i like to sent one sheet from my table via email/webdav. is this possible ?
    Hi, and welcome to Apple Discussions and the Numbers '09 forum.
    If you're asking about sending an image of a single sheet from Numbers '09 (a Mac application), yes, it's possible. Show the sheet, press command-P to open the Print dialogue, then click PDF and choose Email PDF. The Mac will open a new email message with the pdf image of your sheet attached in your default email client, ready to be addressed and sent.
    If you're asking about sending something from Numbers for the iPad (an iOS application), your question will be better served by someone familiar with that application. Numbers for the iPad has its own forum in the iPad section of Discussions. The link will take you directly to that forum.
    Regards,
    Barry

  • Can we run an assignment on a qualified table from a main table?

    Can I run an assignment on a qualified table from a main table.
    For example: My main table Vendor and Qualified  Table is Company Qualified .
    Company Qualified - VendorNr (Non- Qualifier),Company(Qualifier,lookupFlat - Company)
    Company  - Name,Description (It has valid values in it already).
    How to add a default value into the Company Qualified table.
    When i add a assignment like
    If(is_null(Company Qualified [Record],default lookup value from Company)  ...it says invalid.
    Any help greatly appreciated  thanks

    This is not possible currently in MDM.  I've tried many times to find a good way to do this and so far have been unsuccessful.  I also have tried to have a workflow on the main table call an assignment in a lookup / qualified table, and that doesn't work either.  The biggest reason is because you have to select a table field when you create an assignment, and it doesn't give you the option to choose fields within a table.
    Hopefully they will address this in a future release.
    Edited by: Harrison Holland on Jun 3, 2008 2:33 PM

  • Error:Assign handling Unit from one Process order to another process order

    Hi Experts,
    I am facing different issues in assigning handling unit from one process order to another.
    Business process:
    1. Two similar Process Orders are existing in the system
    2. Delivery is created for first process order using LP10 for one or more components
    3. TO is created in foreground using VL06P
    4. TO is confirmed by providing in stock available Handling Unit (HU) / storage Unit details Using LT12
    5. Customized transaction is used to reassign newly created HU (created in previous step) from first process order to second process order. As a result many steps are performed in background for delinking the HU from first process order to second process order (including creation of different TOs)
    I am facing different issues in the process:
    1. Sometimes while confirming the TO in step 4: error is received as "Reservation item 0065 with material 4013959300300 does not exist" OR "Reservation item with material does not exist"
    2. If the TO is confirmed in step 4. I am facing error in step 5 as "Warehouse number  does not exist (new selection required)"
    Both these errors are standard errors and I could not find much information on them in SCN also.
    If anyone can throw light on any of them then it would be great.
    Please let me know if any additional information is required.
    Thanks
    Harsh Aggarwal

    Hi Manish
    Thanks for your response. Actually, the customized program is used only in fifth step and not till TO confirmation so that error is not related to Customized program. However, in some cases I am able to do the confirmation but the error is received in 5th step i.e. Warehouse number  does not exist (new selection required)"
    Any further guidance you can provide. I will ask ABAP to check the customized program but the error seems to be a standard error.

  • Fetching more than one row from a table after selecting one value from the dropdown

    Hi Experts,
    How can we fetch more than one row from a table after selecting one value from the dropdown.
    The scenario is that I have some entries in the dropdown like below
      A               B               C        
    11256          VID          911256  
    11256          VID          811256
    11256          SONY      11256
    The 'B' values are there in the dropdown. I have removed the duplicate entries from the dropdown so now the dropdownlist has only two values.for eg- 'VID' and'SONY'. So now, after selecting 'VID' from the dropdown I should get all the 'C' values. After this the "C' values are to be passed to other methods to fetch some data from other tables.
    Request your help on this.
    Thanks,
    Preeetam Narkhede.

    Hi Preetam!
    I hope I understand your request proberly, since this is more about Java and less about WebDynpro, but if I'm wrong, just follow up on this.
    Supposed you have some collection of your original table data stored in variable "origin". Populate a Hashtable using the values from column "B" (let's assume it's Strings) as keys and an ArrayList of whatever "C" is (let's assume String instances, too) as value (there's a lot of ways to iterate over whatever your datasource is, and since we do not know what your datasource is, maybe you'll have to follow another approach to get b and c vaues,but the principle should remain the same):
    // Declare a private variable for your Data at the appropriate place in your code
    private Hashtable temp = new Hashtable<String, ArrayList<String>>();
    // Then, in the method you use to retrieve backend data and populate the dropdown,
    // populate the Hashtable, too
    Iterator<TableData> a = origin.iterator();
    while (a.hasNext()) {
         TableData current = a.next();
         String b = current.getB();
         String c = current.getC();
         ArrayList<String> values = this.temp.get(b);
         if (values == null) {
              values = new ArrayList<String>();
         values.add(c);
         this.temp.put(b, values);
    So after this, you'll have a Hashtable with the B values als keys and collections of C values of this particular B as value:
    VID --> (911256, 811256)
    SONY --> (11256)
    Use
    temp.keySet()
    to populate your dropdown.
    After the user selects an entry from the dropdown (let's say stored in variable selectedB), you will be able to retrieve the collection of c's from your Hashtable
    // In the metod you handle the selection event with, get the c value collection
    //and use it to select from your other table
    ArrayList<String> selectedCs = this.temp.get(selectedB);
    // now iterate over the selectedCs items and use each of these
    //to continue retrieving whatever data you need...
    for (String oneC : selectedCs) {
         // Select Data from backend using oneC in the where-Clause or whatever...
    Hope that helps
    Michael

  • SSIS-How to pass multiple value to stored procedure from table row one by one using ssis package??

    I want to execute a stored procedure using ssis.But the problem  I am having is that there is a table with 200 rows with only
    single column.Now i want to execute stored procedure using value one by one from table .once the stored procedure is executed with top value from table i also want to delete that topmost column value and execute with next table value.and store the result in
    text file.
    please help me..or provide a package.

    If you want to do it in SSIS, a way to do this is by using For Each Loop as mentioned above.
    Create 1 OBJECT type variable (list of values) and one STRING type variable (one value at a time)
    Use EXE SQL Task with ResultSet = FULL RESULT SET and query = SELECT COL FROM TABLE ORDER BY COL ASC...output this to the OBJECT type variable 
    Next, a For Each loop container with Foreach ADO Enumerator, ADO object source variable = Object type variable and map that to String type variable with index = 0.
    Within your for each loop container, select another EXEC SQL Task and pass in an input parameter (the String type variable) and query = EXEC PROC ? -- WHERE ? = String type variable.
    This will execute your store procedure just for that one value out of the whole list.
    Now within the same For Each loop, select another EXEC SQL Task and again pass in an input parameter (the same String type variable) and query = DELETE FROM TABLE WHERE COL = ? -- WHERE ? = the current value 
    The above process should A) get the list of values from the table B) pick one value at a time and execute the proc and delete and right after delete that value from the table.
    Hope this helps.
    -- some further investigation/tweaking may require but it should help you get started.

  • How to bring the more than one rows from the table into the script

    Hi
    I have to bring more than one rows from the table into the Main windows of the script. so plz help me out.
    Thanks in Advance
    Ananya

    Hi Ananya,
       Bring more than one row into main window of script.
       For this you need to do some changes for data which you pass to main window.At a time you need to pass more than one row,so for this you need to define one structure.See below code.
    Types:begin of ty_rows,
         include structure (your row_structure),
         include structure (your row_sturcture),
    Types:end of ty_rows.
    for example....
    If i need to pass 2 vendor details at a time to main window then the structure should be like this.
    Types:begin of ty_rows,
           vendor1 like lfa1-lifnr,
           vendor1_name like lfa1-name1,
           vendor2 like lfa1-lifnr,
           vendor2_name like lfa1-name1,
          end of ty_rows.
    Data:i_main type standard table of ty_rows,
         wa_main type ty_rows.
    Based on condition you can pass more than one rows of your actual internal table data to i_main internal table.
    Then you can pass i_main internal table to your main window.
        I think this will help you.
    Cheers,
    Bujji

  • Open HUB ( SAP BW ) to SAP HANA through DB Connection data loading , Delete data from table option is not working Please help any one from this forum

    Issue:
    I have SAP BW system and SAP HANA System
    SAP BW to SAP HANA connecting through a DB Connection (named HANA)
    Whenever I created any Open Hub as Destination like DB Table with the help of DB Connection, table will be created at HANA Schema level ( L_F50800_D )
    Executed the Open Hub service without checking DELETING Data from table option
    Data loaded with 16 Records from BW to HANA same
    Second time again executed from BW to HANA now 32 records came ( it is going to append )
    Executed the Open Hub service with checking DELETING Data from table option
    Now am getting short Dump DBIF_RSQL_TABLE_KNOWN getting
    If checking in SAP BW system tio SAP BW system it is working fine ..
    will this option supports through DB Connection or not ?
    Please follow the attachemnet along with this discussion and help me to resolve how ?
    From
    Santhosh Kumar

    Hi Ramanjaneyulu ,
    First of all thanks for the reply ,
    Here the issue is At OH level ( Definition Level - DESTINATION TAB and FIELD DEFINITION )
    in that there is check box i have selected already that is what my issue even though selected also
    not performing the deletion from target level .
    SAP BW - to SAP HANA via DBC connection
    1. first time from BW suppose 16 records - Dtp Executed -loaded up to HANA - 16 same
    2. second time again executed from BW - now hana side appaended means 16+16 = 32
    3. so that i used to select the check box at OH level like Deleting data from table
    4. Now excuted the DTP it throws an Short Dump - DBIF_RSQL_TABLE_KNOWN
    Now please tell me how to resolve this ? will this option is applicable for HANA mean to say like , deleting data from table option ...
    Thanks
    Santhosh Kumar

  • How  to retrieve one row from the number of records in a table

    i want to retrieve the rows from the number of records in a table without using the perticular column name.

    select count(*) from table
    /If you have your table currently analyzed, and no changes have been made, then you could
    select num_rows from user_tables where table_name = 'table'

  • How to assign Dynaminc Approver in GP

    Hi,
      Iam developing one application in GP .In first collable object form the user has to fill the department and other details..
      Depending up on the department chosen it should go to the concern department manager for approval..
    For e.g IT dept the approver should IT head
             Finance dept  the approver should Finance head..
    How to assign the approver dynamically...
    How to get the first form value and to approve
    Iam using webdynpro form in GP..
    Help me.
    Very Urgent..
    Thanks&Regards,
    Kiruthika.S

    Hi All,
    I have problems with designing the PDB, how it is teached in the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/de/43/7e5b306b3b2679e10000000a1553f7/content.htm">help-link</a>.
    My Block design:
    Block: Confirm Decision (sequential)
          Action: Add members (Output-Table with Column    
                               UserID)
          Block: PDB
                Block: Confirm (sequential)
                    Action
                         CO: Confirm (Execution)
                         CO: Confirm (Display)
    The mapping between Output-Table and Input-Table works, I get the Users in the Confirm-Action. But the Fill From Context doesnt work, what is the problem?
    David said that its necessary that the Technical Name of the Multiline-Input-Structure (Input for PDB) and the Action (Output) is the same. But for me its not possible to rename the Multiline-Input-Structure to the technical name of the Action, because: Parameter with technical name UserStructure already exists in local context (=error message).
    When I dont change the Technical Name, the mapping works, but the block doesnt work correct. The user who Add the Members (Action: Add Members) is responsible for all PDB-Actions, and the real Responsibles (like PDB-table) do not have a workitem in there worklist.
    Thanks for helping me
    Steve
    Message was edited by: Steve Mussdorf

  • Error while deriving currency from table T001P

    Hi All,
    Error while deriving currency from table T001P
    I am getting this error while payroll run by using country GRP=99 in SU2 for Non-SAP supported country.
    I assigned country grouping as 99 in V_T500P table while assigning comp code to personnel area.
    The company code is assigned with BD as country key in configuration and currency as BDT.
    Referring previous links for the same error I checked all concerned tables and maintained correctly.
    What will be the probable reason of this error?

    Hi,
    I had the exact same problem a while back. The problem was that in V_T001 I had a different comp code which was either assigned to the same country  that had a blank currency  or assigned to the same currency but was missing the country. It was a different comp code than the one I was running payroll for so it took a long time to find the cause - I'll bet this is what's causing your error. 
    Rgds,
    Kristopher

  • SQL2008R2 Reporting Services: Subscribing Report to multiple email list from table

    Hi,
    I need to subscribe one report from SSRS to different set of people. EMail list is dynamic and will come from a database table.
    Could somebody help us please.

    Hi AjayKumar_MIND,
    According to your description, you want to configure subscription for the report to send it to different sets of people. If that is the case, we can achieve your goal by using Data-driven Subscription.
    Reporting Services provides data-driven subscriptions so that you can customize the distribution of a report based on dynamic subscriber data. Data-driven subscriptions use query results to determine the recipients of the subscription, delivery settings,
    and report parameter values. At run time, the report server runs a query to get values used for subscription settings. We can use the Create Data-driven Subscription pages to define the query and assign query values to subscription settings. For detail information,
    please refer to the following steps:
      1. Open Report Manager, and locate the report for which you want to create a data-driven subscription.
      2. Hover over the report, and click the drop-down arrow.
      3. In the drop-down menu, click Manage. This opens the General properties page for the report.
      4. Select the Subscriptions tab, and then click New Data-driven Subscription.
      5. Select the delivery extension and data source for the subscription.
      6. Specify a query that retrieves subscriber data like below:
    CREATE TABLE Name (
    Group varchar(20),
    Country varchar(20),
    Type varchar(20),
    Email_to varchar(50)
    INSERT INTO Name values
    ('Group1', ’Country1’, ’Type1’, '[email protected]'),
    ('Group2', ’Country2’, ‘Type2’, '[email protected]'),
    ('Group3',’Country3’, ’Type3’, '[email protected]');
      7. Specify delivery extension options like below:
      8. Specify report parameters for the subscription like below:
      9. Specify when the subscription is processed, then click Finish to save the configuration.
    For more information about Data-driven Subscription, please refer to the following documents:
    http://msbimentalist.wordpress.com/2013/08/26/how-to-create-data-driven-subscription-in-ssrs/
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

Maybe you are looking for

  • They said I needed a new hard drive

    A few weeks ago I brought my laptop (less than a year old) in to be looked at because it wouldn't boot. I paid $75 for it to be looked at and I was told I needed a new hard drive.  Because this seemed really odd, I didn't allow them to do the work. 

  • Help! External hard drive (WD) doesn't show up anywhere (except for in System Information)...

    Hi, My WD hard drive (160 gb, 3-4 years old) all of a sudden won't show up in Disk Utility or Finder. Prior to this, I got an error message, saying something like "back up your data and reformat the disk", and I bought myself a new hard drive (a Verb

  • Error exception handling in adf

    hi how do i handle error exception in adf for exaple if i have validation/constraint in my database that no duplicate value must be entered in table. how can i display unique constraint error in more meangiful way so the user user can undestand it,am

  • Asynchronous Messages (using JMS) improves performance even when the desire

    I am being told that even when point A to point B communication, originating at point A, is synchronous, send a message to B wait for B to finish processing and send a tagged(to corelate the response to the request) message back asynchronously via an

  • If I'm selling an iPhone 3G, do I need to remove the SIM card?

    I'm putting my old iPhone 3G on ebay.  Other than resetting and wiping it clean, do I need to remove the SIM card as well?  I haven't used that phone in years and there is nothing on there I need.  I'm just concerned that the new owner would get my p