At SAP PI End Value for element getting duplicated !!!!

Hello Experts,
We are currently undergoing Integration Testing for SAP-INFOR WMS , in a particular scenario for Outbound IDOC there are two line item with different Valuation types .PFA screen shot of Outbound IDOC generated at SAP R/3 . Also at SAP PI end XML file of IDOC too show two line items with  different Valuation types. But while looking at Request Message Mapping Node Payload in T-code IDX5 the outbound generated XML to external application is showing two line items with same Valuation type, in this case the the Valuation type of 1st line item is copied to second line item.
I had looked into mapping for this interface the mapping look okay, in this case a for each loop is introduced in XSLT Mapping. in my opinion the vlaues for valuation types are not getting cleared for the second iteration.
Kindly let me know if there is something in Mapping where we can clear value after every iteration.
Best Regards
Priyesh Shah

Hi Udo Martens,
Thanks for your valuable inputs, i rectified the error on my own after i can across a bug in XSL input file,
While assigning source path to a target XSLT element inside a for-each loop the exact path was given for each element inside the for-each ; where else we have to provide only the name of the field.
for ex before mapping correction.
<Lottable02>
  <xsl:value-of select="/ZSTORE1/IDOC/Z1STOHD/Z1STOLN/BWTAR" />
  </Lottable02>
After Mapping Correction
<Lottable02>
  <xsl:value-of select="BWTAR" />
  </Lottable02>
Best Regards
Priyesh Shah

Similar Messages

  • CR2008 and SAP BW - Technical Values for variable values not displayable ?

    Hello Experts,
    we have the following constellation / problem:
    - SAP Query BW 7.0 with variables
    - a report built upon this query with Crystal Reports 2008
    - now if we execute the report and try to fill in the parameters (= SAP BW variables), only the (SAP) description of each value is displayed
    Since it is common for the business users to communicate with the key instead of the description (e.g. Project 50010001 instead of Project 'something etc something'), it is necessary for us to give them the opportunity from a list that contains the key (maybe as well as the description) instead of only the description. Is there a possibility in SAP BW or Crystal Reports 2008 to make that possible ?
    I tried to do it in the infoobject, in the query, in the 'options'-section of Crystal Reports and in the properties of the parameter field itself, but to no avail.
    Many thanks for your help in advance !
    Frank

    Hello Experts,
    I facing a problem.
    I have a crystal report based on a BW Query. It has one parameter called Country.
    Eg:
    Until now, in BW query country variable has the following values.
    USA
    JAPAN
    GERMANY
    Now, from this fiscal year we have the following values for country variable
    USA
    JAPAN
    INDIA
    GERMANY
    UK
    I am trying to edit the list of values for the country variable in crystal reports. It is not getting reflected in SAP BW. I also tried refreshing it several times.
    Can any one Please help.!!
    Regards
    NMU

  • SAP recommended ninode  value for HPUX/Oracle

    Hi everybody,
    as per the sap note 172747, SAP recommends the Kernel parameter "ninode" value to be 34816 for a SAP/Oracle/HPUX installation.
    The current usage of inodes in one of the SAP systems shows  over 53% and in future we would like to increase the ninode parameter value. So I would like to the on which other OS kernel parameter values is the value "34816" based. Is there a defined calculation?
    Ker.Parameter  current       used
    nfile     65536     19519
    nproc     2560     499
    npty     60     3
    nstrpty     60     
    nstrtel     60     
    maxusers     256     
    maxfiles     1024     
    ncsize (DNLC)39936     
    ninode     34816     18817
    any suggestions on this would be of great help.
    Thaks,
    Gangadhar

    Thank you  Venkatesh and Mauricio for the replies and sorry for the delayed reply.
    @Venkatesh
    The SAP  system here is an application server only. Aditionally a middleware software "IBM MQseries" is installed on it which is acts as an interface for global data transfer. So i wanted to know if there is any defined calculation behind the sap note recommened ninode value.
    @Mauricio
    To avoid recovery problems i think it is safe to have the ninode usage less than 50%. Especially when many disks are used and parallell restores are started.
    I found some formulae in google search for ninode.
    ((NPROC16MAXUSERS)32(2*NPTY))
    (8*NPROC+2048)
    Nproc80(13*maxusers)
    which means that ninode has dependecies on nproc, maxusers an npty
    Below are the currently configured parameters.
    #kmtune -q nproc
    Parameter             Current Dyn Planned                    Module     Version
    ===============================================================================
    nproc                    2560  -  (10*MAXUSERS)
    #kmtune -q ninode
    Parameter             Current Dyn Planned                    Module     Version
    ===============================================================================
    ninode                  34816  -  34816
    #kmtune -q maxusers
    Parameter             Current Dyn Planned                    Module     Version
    ===============================================================================
    maxusers                  256  -  256
    #kmtune -q npty
    Parameter             Current Dyn Planned                    Module     Version
    ===============================================================================
    npty                       60  -  60
    If the ninode value is increased which would result in ninode usage to be less than 50%, will there be any impact on system performance?
    Thanks in adavance
    Gangadhar

  • How is the value for ETL_PROC_WID getting populated in W_ETL_LOAD_DATES

    Hello,
    Can you please let me know how the ETL_PROC_WID variable works in ODI with regard to the W_ETL_LOAD_DATES. I see my W_ETL_LOAD_DATES_LOG is having 0/1 everytime. Can someone please help me to understand how this 0/1 is populated. Also, if I want the value in the variable to be always 1 what needs to done.
    Thanks and regards !!

    From the BIAPPS documentation: ETL_PROC_WID This column is the unique identifier for the specific ETL process used to create or update this data.
    Given this description the value should be unique for every execution of an ODI integration process. If you want to see the logic behind the variable, either navigate to the ODI Console or ODI Studio connect to the BIApps ODI repository and take a look at the variable setup. 

  • Customer Exit Variable in formula to get values for multiple keyfigures

    Hi to all,
    I have query as defined in following scenario:
    CHAR_X     C_KF1 (based on KF1)     C_KF2 (based on KF2)     u2026     C_KFn (based on KFn)
    Value1                    
    Value2                    
    u2026                    
    Valuem                    
    C_KF = calculated key figure
    I need to create a customer exit variable that will search through selection e.g. CHAR_X/KF1 and give some result. I need this variable for every keyfigure (KF1-KFn). Using customer exit variable is the only solution.
    My question is: do I have to create formula variable (customer exit) representing every keyfigure separately (VAR1 u2013 VARn, like in below example)?
    CHAR_X     C_KF1 (using VAR1)     C_KF2 (using VAR2)     u2026     C_KFn (using VARn)
    Value1                    
    Value2                    
    u2026                    
    Valuem                    
    Or is it possible to create one general formula variable since the way to retrieve the value in variable is always the same (like in below example)? In this case, how do I pass the value of the respective keyfigure to this variable?
    CHAR_X     C_KF1 (using VAR_X)     C_KF2 (using VAR_X)     u2026     C_KFn (using VAR_X)
    Value1                    
    Value2                    
    u2026                    
    Valuem                    
    Thanks for your replies, points will be awarded!
    Cheers

    That is my concern, the value of variable is not the same.
    What variable should do is:
    take KF1 id, go through values for CHAR_X, get back one value
    This value would always be different, and also "KF" part in code of variable should be different, based on the column where the variable is being used (so, in column C_KF1 ,variable should "pick up" id of KF1, etc.).
    I hope it makes it more clear. For now, I do not have the code for variable yet, I am just interested in concept whether it is possible to pass the ID of keyfigure dynamically so I can make decision how to model this request.
    Thanks

  • CR2008 and SAP BW - Only limited number of values for static parameter

    Hello Experts,
    we have the following constellation / problem:
    - SAP Query BW 7.0 with variables
    - a report built upon this query with Crystal Reports 2008
    - now if we execute the report and try to fill in the parameters (= SAP BW variables), not all values are displayed for selection and there seems to be no possibility to further scroll down; e.g. the months 01.1993-08.2006 are displayed, but not later than 08.2006
    This is really a problem for us since the users won´t be able to select e.g. the desired time range !
    I read already the SAP notes 1218588 and 1211902 and I 'implemented' 1211902, but still only a few values are displayed (the same as before I changed the values for BrowseTimeout and MaxNBrowseValues). Besides that, in the solutions in the SAP notes Crystal Reports 2008 is not explicitly mentioned (so I manually created the DWORD-keys).
    Many thanks for your help in advance !
    Frank

    See
    CR2008 and SAP BW - Technical Values for variable values not displayable ?
    for the answer.

  • Error 13641 - The Subnet prefix must be between the starting and ending values

    Hi All,
    I can honestly say hand on heart that this is the first time I have ever asked for help in a forum in over 15 years but this is doing my head in..
    I have a Sys Center 2012 R2 deployment..  VMM R2 up to RU3, Edge Cluster (2 hosts), Management Cluster (2 hosts), 2 x Production Compute Clusters (total of 20 hosts).  I have a HA Network Virt Gateway deployed on the edge cluster.
    All Hosts have the new DHCP install done and the RU3 SQL patch is completed as outlined in deployment manual.
    Everything had been running fine for some time after RU3 update...  I am experiencing an issue whereby I get the following error anytime I try and attach a NVGRE VM network to a VM, or when I try and migrate a VM with a NVGRE network attached to another
    host.
    Error (13641)
    The specified subnet prefix must be between the starting and ending values for the range.
    Starting value: 4
    Ending value: 30
    Recommended Action
    Specify a suitable subnet prefix.
    All subnets in the entire network are /24's so prefix isn't an issue.
    I can successfully attach a standard vm network but get the above error when working with NVRGE networks.. 
    Further to this, if I restart VMM the DHCP function to VM's with NVGRE networks doesn't get picked up until I trigger a change in config on the VM, then it will get IP and function as expected.
    I have checked all logs, there aren't any errors that I can see.
    get-netvirtualizationlookuprecord throws out VM's and PA's as expected, but again not until I manually interfere with the VM in question.
    Have any of you come across this before??  I want to check before I go rebuilding the PA network entirely and having to cleanup all existing VM networks to do it..
    Any help or guidance would be appreciated..
    Cheers
    Nathan

    I have seen this message before, "specify a suitable subnet prefix".
    In my case, the NVGRE policies were out of sync due to HW issues on several hosts.
    Here's some steps in order to troubleshoot/fix:
    run the following cmdlet: Get-SCVMHost | Read-SCVMhost -RunAsynchronously
    Check for any errors in the job log that refers to "Network Virtualization".
    If this doesn't help, a recycle of the VMM Management server should do a "hard refresh" of the NVGRE policies, and it might include a reboot of the nvgre hosts too.
    This solved the case in my situation.
    -kn 
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )

  • Custom text component with different start and end points for each line

    I'm trying to create a custom component extending textArea in which each individual line in the textArea would have different start and end points.  For example, the start/end points for line 1 might be 20 pixels in the front and 35 pixels at the end but start/end points for line 2 might be 25 pixels in front and 20 pixels at the end, etc.  These boundary values would be passed in.  The width of the entire textArea component would be a fixed size.  The result would be something like this:
         Jack and Jill
              ran up the hill
      to fetch a pail of water
    depending on the boundary values of each individual line of course.  The custom component would take a string and render it in the text component with the appropriate individual line start and end points.  I'm trying to do this by adding the text component to the display with the passed in string and then adding in spaces in the beginning of each line and adding a "/n" at the end of the line wherever appropriate based on the start and end values for that line.
    Just wondering if I'm on the right track and if anyone has any advice on this.

    > Applying the marker places the same icon on all lines of the graph and I need a different one for each
    What do you have selected when you assign the marker? It
    shouldn't apply to all the markers on the whole graph unless you have all the existing markers selected when you apply the new one.
    Assigning marker designs is exactly analogous to assigning bar graph designs.
    If you have a single marker selected when you assign the new design, it will apply to only that graph data point.
    If you use the group select tool (or option-click with the direct select tool) to reclick on an already-selected marker until all the markers for the same line are selected, and then assign a design, the new design will apply only to the selected line. (You can extend the graph by adding more rows, and the new data points will inherit the marker for the line they are on.)
    The thread linked to below demonstrates in more detail how the marker designs are scaled:
    http://www.adobeforums.com/cgi-bin/webx/.3bc10970/0

  • Value for customized fields didn't get copied to back end system

    Hi,
    We are in SRM 4.0 and using extended classic scenario.
    We have defined two customized fields in account assignment tab in shopping cart and SRM Po and also in back end PO.
    SRM POs are having values for the field but while transferring the Po details to back end system, for some of the line items of the Po the entries are missing in back end system.
    Problem is only with few line items of the PO.
    Have tried with FM like BBP_PD_PO_TRANSFER_EXEC  and BBP_PD_SC_RESUBMIT, but it is not transfering the values to back end.
    Is there any other way to push the missing values to back end system.
    Please advise.
    Thanks.

    Sk,
    Table adjustment has to be done accordingly. Get in touch with your Basis team.
    Thanks.

  • How to get the current month value for a customer exit variable?

    How to get the current month value for a customer exit variable? 
    And also if we have an InfoObject with date value (including date, month, year), then how to derive the month value from this date type of Char.?
    Thanks!

    Hi Kevin,
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    Regards,
    Vijay.

  • Trigger how to get new and old value for nested table column?

    Hi,
    I have created a nested table based on the following details:
    CREATE TYPE typ_item AS OBJECT --create object
    (prodid NUMBER(5),
    price NUMBER(7,2) )
    CREATE TYPE typ_item_nst -- define nested table type
    AS TABLE OF typ_item
    CREATE TABLE pOrder ( -- create database table
    ordid NUMBER(5),
    supplier NUMBER(5),
    requester NUMBER(4),
    ordered DATE,
    items typ_item_nst)
    NESTED TABLE items STORE AS item_stor_tab
    INSERT INTO pOrder
    VALUES (800, 80, 8000, sysdate,
    typ_item_nst (typ_item (88, 888)));
    Now I would like to create a trigger on table pOrder for after insert or update or delete
    and I would like to track the new and old value for the columns inside nested table.
    Can anybody direct me how to do it?
    I would like to know the sytax for it like:
    declare
    x number;
    begin
    x := :new.nestedtablecolumn;--how to get the new and old value from nested table columns
    end;
    Hope my question is clear.
    Thanks,
    Lavan

    Hi,
    Try like this:
    CREATE OR REPLACE TRIGGER PORDER_I
    BEFORE INSERT
    ON PORDER
    REFERENCING OLD AS old NEW AS new
    FOR EACH ROW
    DECLARE
      items_new typ_item_nst;
      ordid_NEW NUMBER;
    BEGIN
    FOR i IN :new.items.FIRST .. :new.items.LAST LOOP -- For first to last element
      DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').prodid: ' || :new.items(I).prodid );
      DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').price:  ' || :new.items(I).price );
    END LOOP;
    END;Regards,
    Peter

  • SAP BEX Analyzer Set values for variables

    Please help us out in sorting out this problem,
    We are automating BEx Analyzer for a Testing Project with Quick Test Professional (QTP) a functional automation tool uses VB script.
    Problem:
    There are 5 steps in automation
    Invoke BEx Application
    Log in to BEx server
    Run Query
    Set values for Variables for Query
    Display Report
    We are able to do 1,2,3 steps using BEx API functions and running BEx macros but we struck up with 4th step,
    1. Invoke BEx Application
    ‘Launch Excel
    Dim app
    Set app = createobject("Excel.Application")
    ‘Make it visible
    app.Visible = true
    ‘Attach add-in to Excel file
    app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SetStart")
    2. Log in to BEx server
    Login to Bex server
    Function logonToBW(app)
    Dim myConnection
    Dim logonToBW2
    On Error Resume Next
    logonToBW2 = True
    ' Create logon to system with following user and system details
    Set myConnection = app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'! SAPBEXgetConnection")
    With myConnection
    .client = "600"
    .User = "USERNAME"
    .Password = "Welcom123"
    .Language = "en"
    .systemnumber = "00"
    .System = "BWDCLNT600"
    .systemid = "BWD"
    .ApplicationServer = "156.158.7.161"
    .SAProuter = ""
    .Logon 0, true
         If .IsConnected = 0 Then
               .Logon 0, False
    If .IsConnected <> 1 Then
    MsgBox "Automatic logon failed. Please enter your username and password in the next screen ..."
    Exit Function
    End If
    End If
    End With
    ' Run connection query to see if connected
    app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXinitConnection")
    logonToBW2 = True
    End Function
    3. Run a Query
    app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'! runQuery", "ZZCCA3_M01_Q0003"
    Till here the script is running fine then the “Select values for Variables” window is displayed.
    This is where exactly we struck up; in this window we need to select values.
    Name of the Fields
         Field Name     Technical name of characteristic     Variable Name     Value
    1     Company Code                     0COMP_CODE     ZM_COMPCODE     1000
    2     Cost Center Hierarchy          0COSTCENTER     ZS_CCTRN     1000MDON
    3     Cost Center Node     0COSTCENTER     ZS_CCTRN     1000COP
    4     Cost Element          0COSTELEMENT     ZS_COELN     1000GDON_6999
    5     Fiscal Year     0FISCYEAR     0P_FYEAR     2007
    To select values for variables, we are trying below code but its giving an error,
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000”, "0COMP_CODE"
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000MDON”, " 0COSTCENTER "
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000COP”,  "0COSTCENTER"
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000GDON_6999”,  "0COSTELEMENT "
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “2007”,  " 0FISCYEAR"
    Any help highly appreciated, thanks in advance.

    Hi Reinhard,
    Pleas look at this:
    Passing a range to SAPBEX.XLA!SAPBEXSetFilterValue
    Best regards,
    Eugene

  • There are values for cost element 80000 that are not assigned to any line I

    Hi,
    While calulating WIP I am getting below error:
    There are values for cost element 80000 that are not assigned to any line ID
    Message no. KJ161
    Diagnosis
    Not all values for the cost element are assigned to a line ID.
    Procedure
    Assign the cost element to a line ID. If you don't want to include the cost element in results analysis, assign it to a line ID of category N.
    You can access a detailed list of unassigned cost elements as follows: Start results analysis in the individual processing mode (transaction KKA1, KKA2, or KKA3). Select the field Full log. Execute the function. On the next screen, choose Logs -> Parameter List in the menu. A list is generated. The unassigned values are shown at the end of the list.
    If cost element "+++++++++" was shown in the message, this is because in the assignment of costs and revenues to line IDs, you have not used a cost element other than the full masking "+++++++++". In this case a presummarization eliminates the information on the cost element.
    Cost Element 80000 is of type 43 Internal activity allocation, I have Masked this in OKGB as below:
    Controlling Area = FLGP
    RA Version = 0
    Masked Cost Element = 000008++++
    Masked Cost Center = ++++++++++
    Masked Activity Type = +++++
    ReqToCap= COS (Secondary Cost)
    I have Configure OKGA also but still system is giving error.
    Please help me to understand.
    Regards,
    Vivek

    I was wondering if you could help me I am trying to configure the RA key for Refurb orders and when I go into txn OKGB for the Assignment of C/E for WIP there is sample config already there which I copied.  But I am having difficulty getting the KK1A to work I am getting the message as outlined above.  Could you explain how this OKGB works and how to configure it a bit more fully.  In my sample config there is a ReqTOCap section and in it there are letters like ABR, EK, FK, EL what do they mean.  This is a screen shot of it.  I am not sure how to go about this entirely so any light you could shed would be greatly appreciated.  Can you suggest a good resource or documentation you may have, would be greatly appreciated.

  • How can I get null values for the later weeks

    Hi All,
    When I execute this code I get the records till current week.
    How can I display the output so that I get null values for the later weeks. (with the help of v_numOfWeeks variable in the code)
    Thanks,
    Vikram
    DECLARE
       v_query VARCHAR2(4000);
       TYPE ref_cursor IS REF CURSOR;
       v_refcur ref_cursor;
       v_sum NUMBER;
       v_id NUMBER;
       v_name VARCHAR2(1000);
       v_weeknum NUMBER;
       v_pernum NUMBER;
       v_numOfWeeks NUMBER := 5;
    BEGIN
    v_query := ' SELECT SUM(product_bkg), postn_id, postn_tbl.postn_name, b.week_num, b.period_num
                              FROM ops_cv_extract b, (SELECT row_id, desc_text postn_name
                          FROM s_postn) postn_tbl
                          WHERE lvl_6_id = 5767
                          AND fiscal_year = 2008
                          AND b.week_num < 4
                          AND b.period_num = 3
                          AND b.postn_id = TO_NUMBER(postn_tbl.row_id)
                          GROUP BY postn_id, postn_tbl.postn_name, b.week_num, b.period_num
                          ORDER BY  postn_tbl.postn_name, b.week_num';
    OPEN v_refcur FOR v_query;
    LOOP
       FETCH v_refcur INTO v_sum, v_id, v_name, v_weeknum, v_pernum;
       EXIT WHEN v_refcur%notfound;
       dbms_output.put_line('P'|| v_pernum||'W'|| v_weeknum||' '||v_name||' '||v_sum);
    END LOOP;
    END;
    This is the output when I execute this code.
    P3W1 COMM CNTRL ISAM 213 26961.61
    P3W2 COMM CNTRL ISAM 213 12870.4
    P3W3 COMM CNTRL ISAM 213 245.88
    P3W1 COMM CNTRL ISAM 273 72831.2
    P3W2 COMM CNTRL ISAM 273 8739.38
    P3W3 COMM CNTRL ISAM 273 3764.92
    P3W1 COMM CNTRL TAM 213 49844
    P3W2 COMM CNTRL TAM 213 20515.17
    P3W3 COMM CNTRL TAM 213 16167.46
    P3W2 COMM CNTRL TAM 216 12561.4
    P3W3 COMM CNTRL TAM 216 2027.1
    P3W1 COMM CNTRL TAM 273 -3336.71
    P3W2 COMM CNTRL TAM 273 -1376.68
    P3W3 COMM CNTRL TAM 273 19707.42
    P3W1 Damon Walters -609.07
    P3W2 Damon Walters 30030.24
    P3W3 Damon Walters 37475.1
    This is the output I'd like to get
    P3W1 COMM CNTRL ISAM 213 26961.61
    P3W2 COMM CNTRL ISAM 213 12870.4
    P3W3 COMM CNTRL ISAM 213 245.88
    P3W4 COMM CNTRL ISAM 213
    P3W5 COMM CNTRL ISAM 213
    P3W1 COMM CNTRL ISAM 273 72831.2
    P3W2 COMM CNTRL ISAM 273 8739.38
    P3W3 COMM CNTRL ISAM 273 3764.92
    P3W4 COMM CNTRL ISAM 273
    P3W5 COMM CNTRL ISAM 273
    P3W1 COMM CNTRL TAM 213 49844
    P3W2 COMM CNTRL TAM 213 20515.17
    P3W3 COMM CNTRL TAM 213 16167.46
    P3W4 COMM CNTRL TAM 213
    P3W5 COMM CNTRL TAM 213
    P3W1 COMM CNTRL TAM 273 -3336.71
    P3W2 COMM CNTRL TAM 273 -1376.68
    P3W3 COMM CNTRL TAM 273 19707.42
    P3W4 COMM CNTRL TAM 273
    P3W5 COMM CNTRL TAM 273
    P3W1 Damon Walters -609.07
    P3W2 Damon Walters 30030.24
    P3W3 Damon Walters 37475.1
    P3W4 Damon Walters
    P3W5 Damon Walters Edited by: polasa on Oct 28, 2008 6:42 PM

    Sure, in a Single SQL ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>-- Start Of Test Data --
    satyaki>with week_tab
      2  as
      3    (
      4      select 1 period_num, 1 week_num, 10 bkg1 from dual
      5      union all
      6      select 1, 2, 40 from dual
      7      union all
      8      select 1, 3, 30 from dual
      9      union all
    10      select 1, 2, 20 from dual
    11      union all
    12      select 1, 1, 10 from dual
    13      union all
    14      select 1, 1, 20 from dual
    15      union all
    16      select 1, 3, 10 from dual
    17      union all
    18      select 2, 1, 15 from dual
    19      union all
    20      select 2, 2, 20 from dual
    21      union all
    22      select 2, 3, 10 from dual
    23      union all
    24      select 2, 1, 15 from dual
    25      union all
    26      select 2, 2, 30 from dual
    27      union all
    28      select 2, 3, 20 from dual
    29    )
    30  -- End Of Test Data --
    31  select period_num,
    32         week_num,
    33         (
    34            select sum(week_tab.bkg1)
    35            from week_tab
    36            where period_num = m.period_num
    37            and   week_num   = m.week_num
    38            group by week_num, period_num
    39         ) sum_bkg1
    40  from (
    41        select dum.week_num,
    42              wk.period_num
    43        from (
    44                select 1 week_num from dual
    45                union all
    46                select 2 from dual
    47                union all
    48                select 3 from dual
    49                union all
    50                select 4 from dual
    51                union all
    52                select 5 from dual
    53              ) dum ,
    54              (
    55                select distinct period_num
    56                from week_tab
    57          ) wk
    58      ) m;
    PERIOD_NUM   WEEK_NUM   SUM_BKG1
             1          1         40
             1          2         60
             1          3         40
             1          4
             1          5
             2          1         30
             2          2         50
             2          3         30
             2          4
             2          5
    10 rows selected.
    Elapsed: 00:00:00.48
    satyaki>Regards.
    Satyaki De.

  • How to get the values for the Authorization Object Fields....

    Hi Everyone,
    I'm pretty new to the SAP Security and have been working on the Basis sides...I created a new role in PFCG and added a few transactions (ME13) and clicked on the Authorizations tab. In there, the authorization tree is in yellow and red. After providing the Org Values, only the yellow lights remain (apart from the green one ofcourse). Now how do we get the values for the different auth obj fields that are in yellow... say for example
    Conditions                                                   COND
    Maintain Condition: Auth. for Use/Appl./Cond.Type/Table      V_KOND_VEA
    Activity                       03                                                                        ACTVT
    Application                                                                                KAPPL
    Condition table                                                                                KOTABNR
    Condition Type                                                                                KSCHL
    Usage of the condition table                                                                 KVEWE
    Here the values for V_KOND_VEA fields e.g. KAPPL, KOTABNR etc are missing.
    My question is how do we get these values in regard to the requirement provided by the client...is it the functional guys who provide these values or else how is a security person supposed to know it...
    All the help in this regard is sincerely appreciated along with the awarding of points...

    Hey thanks Alex and Catastrophe for the quick response...
    I'll be sitting with the functional team and reviewing the roles created.
    Thanks for all the help once more
    Regards,
    Akash.

Maybe you are looking for