Query needed for the below requirement

Hi,
I have three tables structures like below.
tableA - LINE_ID, VENDOR_ID,DEAL_SITE_ID
tableB - LINE_ID, DEAL_SITE_ID
tableC - DEAL_ID,VERSION, DEAL_SITE_ID
Now the requirement is I have to fetch all distinct VENDOR_ID from tableA with some given DEAL_ID (100001) and VERSION (1), only Problem is in tableA the rows which have LINE_ID will not have DEAL_SITE_ID and vice versa. I've used the below query for this purpose but wanted to know if there is any better solution.
select distinct VENDOR_ID from tableA where deal_site_id in
(select deal_site_id from tableC where deal_id = 100001 and snapshot_ver = 1)
UNION
select distinct VENDOR_ID from tableA where line_id in
(select line_id from tableB where deal_site_id in
(select deal_site_id from tableC where deal_id = 100001 and snapshot_ver = 1))
Regards,
Subhadeep
Edited by: sumajumd on Jul 17, 2012 2:33 AM

Try regular joins (assuming column version should be snapshot_ver).
Like this (untested):
select tablea.vendor_id
from   tablea
  inner join tablec on (tablea.deal_site_id = tablec.deal_site_id)
where  tablec.deal_id      = 100001
and    tablec.snapshot_ver = 1
union
select tablea.vendor_id
from   tablea
  inner join tableb on (tableb.line_id      = tablea.line_id)
  inner join tablec on (tableb.deal_site_id = tablec.deal_site_id)
where  tablec.deal_id      = 100001
and    tablec.snapshot_ver = 1

Similar Messages

  • Need to find a BAPI for the below requirement

    Hi All,
    Need to find a BAPI for the below requirement.
    We are assigning roles to users using SU01 T-Code and we are in the process of automating this and since we need a BAPI which can do this. Apart from assigning roles to users, SU01 T-code is doing many functionalities, but if we can get a BAPI which can perform assigning roles to users will suffice the requirement.
    Thanks in advance,
    Srilakshmi.

    Hi SreeLakshmi
    see the list of BAPIs given below.
    1065 Business Object Employee
    BAPI_JOBROLE_CLONE Create a User Role in Another System By Copying
    BAPI_BUPA_ROLES_GET SAP BP, BAPI: Determine All Roles
    BAPI_BUPA_ROLE_ADD SAP BP, BAPI: Add Role
    BAPI_BUPA_ROLE_EXISTENCE_CHECK SAP BP, BAPI: Check Existence of Role
    BAPI_BUPA_SET_ROLE SAP BP: Set Object Part / Roles
    BAPI_GET_EVENTTYPE_FOR_ROLE Determine Business Event Types Using Standard Role
    BAPI_EMPLOYEET_CHANGEPASSWORD Change employee password
    BAPI_EMPLOYEET_CHECKPASSWORD Check employee password
    BAPI_EMPLOYEET_CREATE_PW_REG Create entry for employee password
    BAPI_EMPLOYEET_DELETE_PW_REG Delete entry for employee password
    BAPI_EMPLOYEET_DEQUEUE Unlock employee
    BAPI_EMPLOYEET_ENQUEUE Lock employee
    BAPI_EMPLOYEET_GET_PW_REG Read entry for employee password
    BAPI_EMPLOYEET_INITPASSWORD Initialize employee password
    Reward if helpful
    Regards
    Lakshman

  • Which Image should we need for the below model router 2951 to support 4 Byte ASN number ?

    Hi All,
    Which Image should we need for the below model router 2951 to support 4 Byte ASN number ?
    CISCO2951/K9
    Cisco 2951 w/3 GE 4 EHWIC 3 DSP 2 SM 256MB CF 512MB DRAM IPB
    PWR-2921-51-AC
    Cisco 2921/2951 AC Power Supply
    CAB-ACSA
    AC Power Cord (South Africa) C13 BS 546 1.8m
    HWIC-BLANK
    Blank faceplate for HWIC slot on Cisco ISR
    ISR-CCP-EXP
    Cisco Config Pro Express on Router Flash
    MEM-2951-512MB-DEF
    512MB DRAM (1 512MB DIMM) for Cisco 2951 ISR (Default)
    MEM-CF-256MB
    256MB Compact Flash for Cisco 1900 2900 3900 ISR
    SM-S-BLANK
    Removable faceplate for SM slot on Cisco 290039004400 ISR
    SL-29-IPB-K9
    IP Base License  for Cisco 2901-2951
    S2951UK9-15501T
    Cisco 2951 IOS UNIVERSAL
    EHWIC-1GE-SFP-CU
    EHWIC 1 port dual mode SFP(100M/1G) or GE(10M/100M/1G)

    > Can someone suggest ?
    a forum is no realtime-communication ... ;-)
    For the ISR G1, it was supported from 12.4(24)T, so I would assume that your ISR G2 has this feature if you are running 15.x.
    EDIT: The Feature-navigator says that it's supported starting with 15.1(2)T.

  • Need Assistance to write a procedure for the below requirements!!!

    Hi Forum,
    Could some body give me a hand in writing an oracle procedure to pull the results as per the below requirement
    A JOBNUM is transfered from the first JSP page to second JSP page and based on that JOBNUM I have to write a procedure to populate the second page
    I need to pull these feilds from the respective tables
    QM_JOB_NUM, QM_JOB_STATUS from QMI which matches the value of the JOBNUM from the first JSPpage
    QN_JOB_GPH_FILE, QN_COMMENTS from QNI where QM_JOB_NUM = QN_JOB_NUM
    VM_NAME concertnate with VM_SURNAME from VMI where QM_PROFILE = VM_PROFILE
    QF_NARRATIVE_1,QF_NARRATIVE_2,QF_NARRATIVE_3( if these feilds has any values in DB then only pull them, if not dont pull them.so, we need to put a IF condition) where QF_JOB_NUM = QM_JOb_NUM
    JI_DESC from JII where QM_USER_STATUS = JII_STATUS _CODE
    RR_NAME from RRI where QM_REP = RR_REP
    and
    a case condition to match the QM_JOB_STATUS to the string value ( LIVE, PENDING , CLOSED ) as the QM_JOB_STATUS stores in the database as the numerical values 1,2,3 and while displaying on to the web page I need to match to the correspond string value and display it
    if ( QM_JOB_STATUS ) = 1 then print to the webform LIVE
    if ( QM_JOB_STATUS ) = 2 then print to the webform PENDING
    if ( QM_JOB_STATUS ) = 3 then print to the webform CLOSED
    Thanks for your assistance.
    Cheers,
    Krishna.

    First off, you need to turn the requirement into a sql statement. If I followed things correctly, that would be something like:
    SELECT qmi.qm_job_num,
           DECODE(qmi.qm_job_status, 1, 'LIVE',
                                     2, 'PENDING',
                                     3, 'CLOSED') qm_job_status,
           qni.qn_job_gph_file,
           qni.qn_comments, vmi.vm_name||' '||vmi.vm_surname name,
           qfi.qf_narrative_1, qfi.qf_narrative_2, qfi.qf_narrative_3,
           jii.ji_desc, rri.rr_name
    FROM qmi
       JOIN qni ON qmi.qm_job_num = qni.qn_job_num
       JOIN vmi ON qmi.qm_profile = vmi.vm_profile
       LEFT JOIN qfi ON qmi.qm_job_num = qfi.qf_job_num
       JOIN jii ON qmi.qm_user_status = jii.jii_status_code
       JOIN rri ON qmi.qm_rep = rri.rr_rep
    WHERE  qmi.qm_job_num = p_jobnumP_jobnum in the query is the parameter you will pass to your stored proc.
    Next, you need to decide how many rows will be returned for a particular job number. If there will be more than one row, then you will probably need to return a ref cursor. If there will be only one row, then you could return either a set of variables, one for each column in the resultset, or a record type with a field for each column.
    If you are returning a ref cursor or a record type, then you probably want to build the stored proc as a function, if you are returning multiple variables, then you will need to build it as a procedure.
    So, to return a ref cursor, the signature of the function would look something like:
    CREATE FUNCTION get_page2 (p_jobnum IN qmi.qm_job_num%TYPE)
       RETURN sys_refcursor ASReturning a record type would be similar except that you would RETURN the record type you defined in the database.
    To return several variables in a procedure, the signature would look something like:
    CREATE PROCEDURE get_page2 (p_jobnum     IN  qmi.qm_job_num%TYPE,
                                p_status     OUT VARCHAR2,
                                p_gph_file   OUT VARCHAR2,
                                p_comment    OUT VARCHAR2,
                                p_name       OUT VARCHAR2,
                                p_narrative1 OUT VARCHAR2,
                                p_narrative2 OUT VARCHAR2,
                                p_narrative3 OUT VARCHAR2,
                                p_desc       OUT VARCHAR2,
                                p_rrname     OUT VARCHAR2) ASHTH
    John

  • Shall u please build a query for the below requirement

    Existing:
    policy  endmt     type         CR      CCR
    101      0         CEED          10      4       
    101      1         CEED           2       6        
    101      2         NONCEED     1      14        
    101      3         CEED          11      3        
    101      4         CEED           6       1
    101      5         NONCEED     7       2
    101      6         NONCEED    10      3
    101      7         CEED           9       4Required Output:
    policy  endmt     type         CR      CCR  OUTPUT
    101      0         CEED          10      4         10
    101      1         CEED           2       6          6
    101      2         NONCEED     1      14         -2
    101      3         CEED          11      3          11
    101      4         CEED           6       1           1
    101      5         NONCEED     7       2          -6
    101      7         CEED           9       4           9Explanation:
    CASE1:For a policy if starting endorsement is 'CEED' then 'CR' Value should consider.
    CASE2:IF for the policy previous endorsement is 'CEED' and curent endorsement is 'CEED' then 'CCR' value
    CASE3: :IF for the policy previous endordement is 'CEED' and curent endorment is 'NONCEED' then
    Previous endorsement 'CR' *-1  value.
    CASE4::IF for the policy previous endordement is 'NONCEED' and curent endorment is 'NONCEED' then
    eliminate the current endorsement row
    CASE5:IF for the policy previous endorsement is 'NONCEED' and curent endorsement is 'CEED' then 'CR'
    Shall u please help in resolving it?
    Thanks
    Edited by: BluShadow on 15-Oct-2012 14:21
    added {noformat}{noformat} tags to help readability (though there's no helping poorly pasted data).  Please read {message:id=9360002} and learn to paste your code/data correctly.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    886380 wrote:
    Thanks ,but
    endorsement number may not be in sequence ,same endorsement number can repeat for a policy.
    Then that scenario it wont work.On what basis you will ORDE, if you have same endorsement number ?
    Something like this can be done (If you can find out some unique combination to ORDER. Here I am using "order by policy,endmt,type"
    SQL> WITH t AS
      2  (SELECT 101 policy, 0 endmt, 'CEED' type, 10 cr, 4 ccr FROM dual UNION
      3   SELECT 101 policy, 1 endmt, 'CEED' type, 2 cr, 6 ccr FROM dual UNION
      4   SELECT 101 policy, 2 endmt, 'NONCEED' type, 1 cr, 14 ccr FROM dual UNION
      5   SELECT 101 policy, 3 endmt, 'CEED' type, 11 cr, 3 ccr FROM dual UNION
      6   SELECT 101 policy, 4 endmt, 'CEED' type, 6 cr, 1 ccr FROM dual UNION
      7   SELECT 101 policy, 4 endmt, 'NONCEED' type, 7 cr, 2 ccr FROM dual UNION
      8   SELECT 101 policy, 6 endmt, 'NONCEED' type, 10 cr, 3 ccr FROM dual UNION
      9   SELECT 101 policy, 7 endmt, 'CEED' type, 9 cr, 4 ccr FROM dual)
    10  SELECT   t1.policy,
    11           t1.endmt,
    12           t1.cr,
    13           t1.ccr,
    14           CASE
    15           WHEN t1.type = 'CEED' THEN
    16             CASE
    17             WHEN t2.type = 'CEED' THEN t1.ccr
    18             ELSE t1.cr
    19             END
    20           WHEN t1.type = 'NONCEED' THEN
    21             CASE
    22             WHEN t2.type = 'CEED' THEN -t2.cr
    23             ELSE NULL
    24             END
    25           END output
    26  FROM     (select t.*,rownum rn
    27       from (select * from t order by   policy,endmt,type) t
    28           )
    29           t1 LEFT OUTER JOIN
    30     (select t.*,rownum rn
    31       from (select * from t order by   policy,endmt,type) t
    32           ) t2
    33           ON (t1.policy = t2.policy
    34               AND t1.rn -1 = t2.rn)
    35  WHERE   (t1.type = 'CEED'
    36  OR      (t1.type = 'NONCEED'
    37  AND      t2.type = 'CEED'))
    38  ORDER BY t1.policy,
    39           t1.endmt,t1.type;
        POLICY      ENDMT         CR        CCR     OUTPUT
           101          0         10          4         10
           101          1          2          6          6
           101          2          1         14         -2
           101          3         11          3         11
           101          4          6          1          1
           101          4          7          2         -6
           101          7          9          4          9
    7 rows selected.Edited by: jeneesh on Oct 17, 2012 12:10 PM

  • Solution needed for the following Requirement..

    Hi Friends,
    Need an answer for the following . Its for Voluntary Time Recording...
    1) Maintain IT0007 with the percentage of employment for both part time and full time employees.
    2) The Max Flexi-time for part-time and full-time employees is 37.5/40 hours per week.
    3) Maintain attendance infotype.
    4) Notification to be sent to the manager once the flexi-time reaches a limit of +15/-15 hours per week. This has to be done through workflow.
    5) For the fulltime employees, the flexitime applicable is only +15 as they will maintain absence quota.
    6) Once the request is  approved ,  the flexi-time data has to get save in the database.
    7) In the quota overview, the daily view is to be removed. The time accounts detail should not be there. The only relevant columns to be displayed are Key Date(Default is current date), Type(Flexitime) and Current Balance(in hours)
    If you can please let me know of the configuration changes and workflow changes too...
    Thanks,
    Kumar

    Moderator message - Please do not post your requirements and ask the forum to do your work for you.
    post locked

  • Can any one suggest me a function module or BAPI for the below requirement.

    Hi all,
    I have a requirement in which i need to send an IDoc for each item of  the delivery document linked to the shipment document.
    previously i have called the function module in a BADI, but now the requirement has changed.No BADI or USEREXIT has to be used.Instead i need to create a custom program and call the function module in a form in the program.My doubt is how can i get the tables needed in the function module from the program? previously i got the tables as online parameters in the BADI.
    the function module will be trigerred at the time of saving of the document.
    I understand that i need to pass the tables in the program, but is there any way (function module or a BAPI) that can be used to directly get the data of the BADI?
    please help me as soon as possible.

    hi,
    my transaction is VL02N change outbound delivery.

  • Variable Exit Code for the below requirement, Pls Urgent

    I have a WorkDate and Finish Date coming in the cube. I have created 2 fields InfoObject High and InfoObject Low.
    1. The InfoObject High should output "Gigh" if the current date (or date entered into the selection criteria) is after the workdate and the finish date is blank. 
    2. The InfoObject Low should output "Low" if the Finish Date has a value and it's greater than the WorkDate.

    Hi Raj,
    In ver 3.5 this can be done using virtual logic in transaction CMOD.  Please note you will need to key your infoobject names below.
    You will need to implement the following code within ZXRSRZZZ.
    FORM USER_<i>cubetobesepecified</i>
    FORM USER_<i>cubetobespecified</i> USING I_S_RKB1D TYPE RSR_S_RKB1D
                        CHANGING C_S_DATA TYPE ANY.
      ASSIGN COMPONENT G_POS_<i>cube_dateobjectusedforuserinput</i>
        OF STRUCTURE C_S_DATA TO <l_datekeyed>.
      ASSIGN COMPONENT G_POS_<i>cube_intoobjecthigh</i>
        OF STRUCTURE C_S_DATA TO <l_highlow>.
      ASSIGN COMPONENT G_POS_<i>cube_workdateojbect</i>
      OF STRUCTURE C_S_DATA TO <l_workdat>.
      ASSIGN COMPONENT G_POS_<i>cube_finishdateobject</i>
      OF STRUCTURE C_S_DATA TO <l_finishdat>.
      IF <l_finishdate> IS INITIAL
        AND <l_datekeyed> > <l_workdat>.
        <l_highlow> = 'High'.
      ELSEIF NOT <l_finishdate> IS INITIAL
        AND <l_datekeyed> < <l_workdat>.
        <l_highlow> = 'Low'.
      ENDIF.
    ENDFORM.
    After this is complete you will need to implement the following code in ZXRSRU02.
        l_s_chanm-chanm = '<i>dateobjectusedforuserinput<i>'.
        l_s_chanm-mode = rrke_c_mode-read.
        append l_s_chanm to e_t_chanm.
      l_s_chanm-chanm = '<i> intoobjecthigh</i> '.
      l_s_chanm-mode = rrke_c_mode-no_selection.
      append l_s_chanm to e_t_chanm.
        l_s_chanm-chanm = '<i>workdateobject<i>'.
        l_s_chanm-mode = rrke_c_mode-read.
        append l_s_chanm to e_t_chanm.
        l_s_chanm-chanm = '<i>finishdateobject<i>'.
        l_s_chanm-mode = rrke_c_mode-read.
        append l_s_chanm to e_t_chanm.
    Lastly under your Global data declarations, you will need to implement this code.
    G_POS_<i>cube_dateobjectusedforuserinput</i>,
    G_POS_<i>cube_intoobjecthigh</i>,
    G_POS_<i>cube_workdateojbect</i>,
    G_POS_<i>cube_finishdateobject</i>.
    I hope this helps.
    Kind Regards,
    Larry

  • Required clarification for the below code:

    Hi All,
    For one of my requiremnet, i found one solution which worked as expected.. But i was not able to understand the logic.. Can any one explain me the below
    syntax what exactly the meaning for the below code:
    Code:
    SELECT NULL
    FROM apex_application_page_ir_cond cond
    WHERE cond.application_id = v('APP_ID')
    AND cond.page_id = v('APP_PAGE_ID')
    AND cond.condition_type = 'Filter'
    AND cond.condition_enabled = 'Yes'
    AND cond.report_id = (SELECT report_id
    FROM apex_application_page_ir_rpt
    WHERE application_id = v('APP_ID')
    AND page_id = v('APP_PAGE_ID')
    AND application_user = v('APP_USER')
    AND report_type = 'SESSION'
    AND TO_CHAR (session_id) = v('SESSION')
    AND report_name IS NULL))
    For your refernec i have enclosed the link also
    URL : Re: Interactive_Report with Search Bar only
    Thanks,
    Anoo..

    Anoo,
    Two things. First, it makes things a lot easier if you put "&#123;code}" (no quotes) around your SQL when you post it:
    SELECT rowid "EDIT", attr_code,ATTR_ATCL_CODE "Atcl Code", attr_description, attr_atcl_code,
                    attr_abbreviation,
                    attr_include_short_desc "Include short desc",
                    attr_include_long_desc "Include long desc",
                    attr_attr_type "AttrType", rowid "DELETE"
               FROM t_new WHERE EXISTS (SELECT 1 FROM APEX_APPLICATION_PAGE_IR_COND WHERE APPLICATION_ID = :APP_ID AND PAGE_ID = :APP_PAGE_ID AND CONDITION_ENABLED = 'Yes'
    AND APPLICATION_USER = :APP_USER) ORDER BY attr_description;Though the spacing still needs work, it's a little easier to read.
    Second, your query's exist clause just checks for an enabled condition, without checking the condition type. Without checking, I'd guess that either APEX creates at least one internal condition, or that your IR has a default condition on it (other than a filter). Try adding the condition_type constraint to your where clause to see if that fixes it.
    Also, I noted that you don't have the extra code for getting the report_id. It shouldn't be necessary, since there's currently only support for one IR per page, but you asked what the differences are.
    -David

  • How to search in BI 7.1 query designer for the required key figures & chars

    Hi All,
         Can anyone plz tell me how to search in BI 7.1 query designer for the required key figures & characteristics. I have the query being built on a multiprovider which has many cubes.
    So, i have a huge list of key figures and characteristics. I am not able to search for the required one by the name or the technical name.
    How can we search and pick the required object from the enormous list of the Mutliprovider in the Bex Query Designer??
    Thanks
    Phani

    There is not a search feature available. You have to do an educated guess under what dimension your infoobject could be and select.

  • I'm trying to download what's app chatting application and the massage given (need your secret answers for the below questions to proceed your purchase request ) but the problem is I forgot my answers :((( how can I reset the questions and the answer ????

    I'm trying to download what's app chatting application and the massage given (need your secret answers for the below questions to proceed your purchase request ) but the problem is I forgot my answers :((( how can I reset the questions and the answer ????

    Visit this site: http://support.apple.com/kb/HT5312

  • Need Help in finding the Menu Path's for the below topics

    Hi,
    Where can i get the menu paths for the below topics in SAP syste. I have searched in the system,But couldnot find the Menu Path's for the below topics.Kindly help me in finding the configuration Path for the below...
    1)Public tendering process
    2)Grants Management
    3)Tax & Revenue management
    4)Public sector accounting --> Budget formulation, preparation, execution & Monitoring.
    Thanks
    Rajitha M

    Hi,
    Check for the relevant path in IMG in Public Sector Management.  The prerequisites being configuration of Financial accounting
    sub modules.
    Best Regards,
    Sadashivan

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • ABAP Routine code for the below logic

    Hello BW Experts ,
    I need to write a complex ABAP routine in BW .
    Following is the detail explaination .
    Can anyone tell me the ABAP code for the below logic?
    It would be a greate help as I am unable to do this
    since last two days.
    WBS Elements are maintained at  IOS and  Warranty levels in R/3 side.
    The IOS WBS is a top level of WBS element and below that the Warranty WBS level.
    The IOS and Warranty WBS elements can be differentiated by means of priority field.
    When priority = i   , WBS Element is known as  IOS Level WBS Element and
    When  priority = Y the WBS element is known as Warranty WBS element.
    The Equipment Number is maintained compulsorily at IOS Level WBS elements only.
    It is not maintained at  Warranty WBS Element.
    But the Cost is maintained at Warranty WBS Elements.
    In BW I need all Warranty WBS ( priority = Y) along with their cost figures and Equipment Numbers.
    But as the Equipment Number is not maintained compulsorily at Warranty WBS level we have asked to
    Copy it from  IOS WBS ( priority = i ) and assign it to Warranty WBS level ( priority = Y ).
    So I have included the Equipment Number in the ODS and in update rules I need to write the routine for it as
    per the above logic.
    The Equipment Number is coming from Master data of  WBS Element.
    The WBS element master data we are loading in BW .
    Also the same WBS Element transaction data is coming from the transaction data data source in BW.
    Following fields / infoobjects and the table names in BW :
    1. Equipment Number : /BIC/ZEQUIPMNT  and table name /BIC/MZWBS_ELEM.
    2. WBS Element       : ZWBS_ELEM  is coming from transaction data data source as well as master data.
                                     In ODS update rules it is coming from  transaction data data source Comm_structure-ZWBS_ELEM.
                                     Also we are loading separetly the master data for ZWBS_ELEM.
                                     The  ZEQUIPMNT is an attribute of ZWBS_ELEM.
    3. Priority                :  PRIORITY     and table name /BIC/MZWBS_ELEM.
                                      The info object name for Priority is 0Priority but in master data table /BIC/MZWBS_ELEM
                                      the field name is    PRIORITY.
                                     When PRIORITY = ' i ' then    ZWBS_ELEM is at IOS Level
                                     When PRIORITY = ' y ' then  ZWBS_ELEM is at Warranty Level.
    4. ODS name :  /BIC/AZCOST00 and same is table name active data table .
    So please tell me the routine Code .
    Best Regards ,
    Amol.

    Hi Dinaker,
    Did you find any solution for this issue. I too have a similar requirement of pulling all the service orders for a specific Purchase Order in the BW report.
    Thanks,
    SAPBWI

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

Maybe you are looking for