Tricky requirement in WAD

Hi folks,
I have a quite tricky requirement for my WAD template -
I have 5 queries to be displayed in WAD. First 2 queries has Debit memo# as variable and last 3 queries has Chargeback line# as its variable. I have created another new query with just Chargeback Line# and Debit Memo#.
Only the Chargeback Line# will be entered in the selection screen, this will only produce the result for last 3 queries. For the first 2 queries i need to pass Debit Memo# value correspoding to Chargeback Line# from the new query that i have created.
How can i achieve this?
Hope I am clear. Please let me know if you need more clarification.
Thanks & Regards,
Chitra.

Hi Karthik,
  If ur IDOC creates a new document in R/3, u can check the number range(s) defined against the document(s) and fetch the new number for due using the fm <b>NUMBER_GET_NEXT</b> and compare it against the number when the refresh last occured.
Assumption:
1.IDOC always creates a new document for which a number range is defined.
2. the appln doc's are only created using IDOC's.
Message was edited by:
        Rajesh

Similar Messages

  • A tricky requirement

    All,
    I have a tricky requirement.
    I have a table A which has around 50 million records. I have 10 other tables say tab1, tab2 ..... tab10.
    Each of these tables have records from 10 million (from tab1-tab5) and half/1 billion (tab 5 -tab10).
    The requirement is that I need to join A with these 10 tables on 3 columns and if value is found in any of these tables, then it should write this record to a file.
    I was thinking of a design like follows
    1. Lookup these 10 tables paralelly at one shot.
    2. The moment a match is found in any one of the table, while looking up paralelly, come out of the query and stop all the lookup process.
    3. process the record.
    How do I achieve 1 and 2 in oracle 10g with on a Aix server?
    Thanks,
    saff

    I think as long as you have run the proper commands to set your session and query to run in parallel mode (I guess you can add the PARALLEL hint to the query if you want to but you shouldn't need to) then Oracle will handle the parallelization of your query on its own.
    Here's a quick and not too pretty version of a MERGE command using the previous query I did. I'm sure it can be prettied up (i.e., simplified) but this is what I just came up with on the fly. I put the records from BIGTABLE into BIGTABLERESULTS if (col1,col2,col3) are found in any of the smallerTable_n tables. At least that's what I think I'm doing!
    MERGE INTO bigTableResults btr
    USING (
    with Q1 as (select col1,rslt from (
      select col1,
        case
        when (col1,col2, col3) in (select col1, col2,col3 from smallerTable_1) then 'smallerTable_1'
        when (col1,col2, col3) in (select col1, col2,col3 from smallerTable_2) then 'smallerTable_2'
    /* Other 8 tables go here */
        else null
        end rslt
        from bigTable ))
    select bt.col1, bt.col2, bt.col3, Q1.rslt
    from bigtable bt,Q1
    where Q1.rslt is not null
    and Q1.col1 = bt.col1) test
    ON (test.rslt is null)
    WHEN NOT MATCHED THEN
      INSERT (btr.col1, btr.col2, btr.col3)
      VALUES (test.col1, test.col2, test.col3);So if you do this in SQL Plus then before running the query do the following in your session:
    ALTER SESSION ENABLE PARALLEL QUERY;
    ALTER TABLE BIGTABLE PARALLEL (DEGREE 10);You may or may not need a parallel hint on the merge, e.g., /*+PARALLEL 5 */
    You should be able to run it with autotrace and see if it's really doing things in parallel. But even if it is, I don't think it will be short circuiting the scans as you describe. Give it a try on some smaller tables!
    It didn't go parallel until I did an ALTER SESSION FORCE PARALLEL QUERY and even though it's in parallel that doesn't necessarily mean it will be faster!! I don't have nearly enough data to tell either way. But if it's in parallel you'll see PX operations in the trace.
    Execution Plan
    | Id  | Operation                           | Name            | Rows  | Bytes | Cost  |    TQ  |IN-OUT| PQ Distrib |
    |   0 | MERGE STATEMENT                     |                 |    90 |  8820 |    16 |        |      |            |
    |   1 |  MERGE                              | BIGTABLERESULTS |       |       |       |        |      |            |
    |   2 |   VIEW                              |                 |       |       |       |        |      |            |
    |   3 |    NESTED LOOPS OUTER               |                 |    90 | 11340 |    16 |        |      |            |
    |   4 |     VIEW                            |                 |    10 |   530 |     4 |        |      |            |
    |   5 |      FILTER                         |                 |       |       |       |        |      |            |
    |   6 |       PX COORDINATOR                |                 |       |       |       |        |      |            |
    |   7 |        PX SEND QC (RANDOM)          | :TQ10000        |    10 |   740 |     3 |  Q1,00 | P->S | QC (RAND)  |
    |   8 |         NESTED LOOPS                |                 |    10 |   740 |     3 |  Q1,00 | PCWP |            |
    |   9 |          PX BLOCK ITERATOR          |                 |       |       |       |  Q1,00 | PCWC |            |
    |  10 |           TABLE ACCESS FULL         | BIGTABLE        |    10 |   370 |     2 |  Q1,00 | PCWP |            |
    |  11 |          TABLE ACCESS BY INDEX ROWID| BIGTABLE        |     1 |    37 |     0 |  Q1,00 | PCWP |            |
    |  12 |           INDEX UNIQUE SCAN         | SYS_C00392742   |     1 |       |     0 |  Q1,00 | PCWP |            |
    |  13 |       TABLE ACCESS BY INDEX ROWID   | SMALLERTABLE_1  |     1 |    37 |     1 |        |      |            |
    |  14 |        INDEX UNIQUE SCAN            | SYS_C00392743   |     1 |       |     1 |        |      |            |
    |  15 |       TABLE ACCESS BY INDEX ROWID   | SMALLERTABLE_2  |     1 |    37 |     1 |        |      |            |
    |  16 |        INDEX UNIQUE SCAN            | SYS_C00392744   |     1 |       |     1 |        |      |            |
    |  17 |     PX COORDINATOR                  |                 |       |       |       |        |      |            |
    |  18 |      PX SEND QC (RANDOM)            | :TQ20000        |     9 |   657 |       |  Q2,00 | P->S | QC (RAND)  |
    |  19 |       VIEW                          |                 |     9 |   657 |       |  Q2,00 | PCWP |            |
    |  20 |        FILTER                       |                 |       |       |       |  Q2,00 | PCWC |            |
    |  21 |         PX BLOCK ITERATOR           |                 |     9 |   657 |     2 |  Q2,00 | PCWC |            |
    |  22 |          TABLE ACCESS FULL          | BIGTABLERESULTS |     9 |   657 |     2 |  Q2,00 | PCWP |            |
    --------------------------------------------------------------------------------------------------------------------Edited by: Gaff on Mar 19, 2010 3:19 PM

  • Tricky Requirement for RMA Approval : OM: Notification Approver

    Dear Gurus,
    I have a Tricky Requirement here.
    My Client Requirement is when they get the RMA, System should trigger the Notification to three people, Means there are three shift manager who works 24*7 in Production. So if one of them is not physically present RMA would stuck and they cant process ahead.
    Can it be set by using OM: Notification Approver profile options ?
    Presently RMA Approval is working perfectly for a Single Approver.
    Please Advice.
    Regards,
    John

    Hi John,
    If you have separate responsibilities for your staff entering the RMAs and their managers, you can specify the manager responsibility (i.e. rather than an individual user) in the OM: Notification Approver profile option (i.e. at responsibility level for the non-manager responsibility).
    This will mean that all/any shift managers see the notifications and approval is on a first-to-approve basis.
    Regards,
    Jon

  • How to read the value of Inputfield in WAD in JAVA script?

    Hi Experts,
    I have a requirement in WAD .
    I have put an Input Field (text box), a button and a script control  in the web template.
    In my script control function , I want to read the value entered in the input field using java script. How do I achieve it?
    Thanks in advance.
    Regards
    akshay

    Hi,
    To do this, first you may want to view the HTML source of the report. So, when you have the report launched with the input field, right click and select View Source. Usually it is under a <span> tag with id something like sapbi_snippet_YOURWEBITEMNAME. Most useful commands here are document.getElementById and document.getElementsByTagName.
    You can also access the input web item value using standard sap command SET_SELECTION_STATE_BY_BINDING. Take a look at the documentation on this.
    Hope the above helps.
    Regards,
    wira

  • WAD: How to.. Cascading Web Items?

    Hello  Gurus,
    I have the following requirement:
    Using WAD 2004s with IP to  build an application, where there are 4 characteristics that need to be showed depending on each other in a cascading way like that:
    We have the following characteristics,  that  are called char1, char2, char3 and char4 , with contents:
    char1    char2       char3     char4
    1             A         11 3       100 4
    1             B         114        1004           
    1             B         113        1005
    1             C         115        1005
    2             A         11 3       1006
    2             C         11 3       1007
    3             D          112       1004
    I want to create one dropdown1 for char 1 , dropdown 2  for char2 and a listbox3 for char 3 and listbox4 for char4. Then if I:
    choose dropdown1 = 1  -> only values A,B,C  are available in dropdown2
    choose dropodown2 = B -> only values  113,114 are available in listbox3
    choose listbox3= 113-> only value  1005 is available in listbox4
    Is there a way to accomplish this?
    At  first, I thought using characteristic relationship with IP,  but could not figure it out.
    I would appreciate any help.
    Thanks in advance.
    Best regards,
    Sue

    Hello Mayank,
    Thank you for your answer, it helped a lot, but solved the problem only partially .
    While cascading with the dropdown works perfectly, when I have to cascade with listbox there is no such thing like commands. Do you have any ideas how to solve that?
    Thanks in advance.
    Best regards,
    Sue

  • Wad report

    hi
    Report requirement in WAD: actual currency ( USD) and local currency has to display in the report,.. any easy way to achieve this.
    regards,

    Hi
    as  suggested i have selected  dp1 as drop-down and in data binding selected fixed list of option and in options USD and INR and as dp2 i have selected AnalysiItem and drag to template area,. in dp1 drop down properties used command -set currency translation. and user can slect currency USD INR , if he selects INR where we will code  target currency INR source currency USD. can you  send me details how u have executed entire logic.

  • How to pass characterstic variable value using button in sap wad

    Hello Gurus,
    I have one requirement in WAD 7.0.i have made one user input characterstic variable in Bex i.e on 0calmonth.Now i have passed the same variable in WAD drop down button.Now suppose based on the logic on that variable which i have made in bex is like when i select 04.2010 in drop down button it dispalys data for next three months.
    Now my user wants same thing to be displayed with the help of button as well. I need to make two buttons one for previous month and other for next month.I made two button using button group and passed that variable also but data is not changing.
    How to get the desired output using buttons.
    I want two buttons like this <<(previous) >>(next) and i want to pass that same variable which i passed in drop down button and when i press previous button it should display last month data and when i press next it should display next month data.
    How to achieve this in WAD with the help of buttons.Give me your useful suggestions.
    Hope my requirement is clear.
    Thanks in advance
    Regards,
    AL

    Need your valuable suggestions on this...

  • Wad reqt - Combining two individual charts

    Hello Experts,
             I have a requirement in WAD where in I have two stacked column charts as shwon below.
             These two column charts are using two different queries. First column chart shows keyfigures related to LT.
             Second column chart shows keyfigures related to LF.
             Requirement now is to combine these two charts as single stacked column chart.
             The new single column chart shoul show the bars for LT and LF for the given month side by side.
             Please help me to achieve the same.
             Thanks in advance.
    Regards,
    Annu    

    Hello,
            @Yasemin : I can create a query as you suggested and use the same for creating the chart.
            But the problem is to create the chart as desired.
            I need the stacked column with two bars for each month.
            First bar must should show first three key figures.
            Second bar must show the keyfigures from 4 to 6.
            Your suggestions are valuable to me.
    Regards,
    Annu

  • Colored column in WAD report

    Hi All,
    I have this requirement in WAD.
    The column having the figures for USD Red should be displayed completely RED in color, Similarly with USD Orange and USD Yellow.
    Plant  USD Red   USD Orange   USD Yellow   Total
    Any Help...!!
    Thanks

    Hi,
    Restrict user rights,I mean don't give edit rights to the user.
    Cheer,
    Ravichandra K

  • Is it possible user to select the chart type in WAD??

    Hi All,
    I have a requirement in WAD, where customer wants to select their own desired chart in WAD.
    Is it possible user to select the chart type?? If so please let me know the path where i need to do the setting.
    Thanks in Advance.
    Regards
    Sathiya

    Hi,
    you have to press the right mouse button on the chart (it is not so easy - there are 2 different context menus) -> in context menu -> properties -> web item -> chart setting -> chart type
    Regards
    Erwin Buda

  • Expert help needed with tricky query

    I have a query database with a real simple schema but a tricky requirement: i need to display records with a simple select but then filter the result based on the authority/access level of the user making the query.
    The source data is held in a table with just the following columns:
    SRCTABLE:
    subject_ID
    date
    data_ID
    data_item
    All column types are text strings and the first 3 are a composite key. There are 10s of millions of records in the table.
    The access authorization is held in another table with the following columns:
    ACCTABLE:
    data_ID
    access1
    access2
    accessn
    The ellipsis means there are as many (boolean type) access1...n columns as there are distinct access levels to the source data.
    The table contains one row for each distinct data_ID appearing in the source table. On each row the TRUE values in the access1...n columns indicate authorization to see the data item and the filter should leave that row in the result set.
    The question then is how to write the query statement? It is assumed that the access id (i.e. the relevant column) is known when the query is made.
    Something like
    SELECT data_item FROM SRCTABLE
    WHERE subject_ID="xxx" AND date = "1/1/2000";
    would do it except for the need to filter each row based on the access authorization of the user.
    Any help would be appreciated.

    Thanks everybody for responding.
    APC has a good point about really protecting every single item type separately. Unfortunately this is precisely the case. The security in this case is not oriented to increasing security in a levels oriented way. Rather each kind of item is protected by a need to know type security related to that particular item. Users are classified by their need to know a combination of the item types and those combinations are not in any sense consistent (and there will be new classes over time). This way access control necessarily becomes a matrix of item types vs access classes.
    Fortunately this particular database does not exist yet so i am free to solve the problem in any way that fulfills the requirement. This is just the suggested form. I am not entirely happy with it hence the question on this forum in the first place.
    So, i appreciate it should you have any further suggestions for optimal solution to handle the requirements. Again, those are:
    1. A query that returns the data_items for a given ID and date (this is dead simple)
    2. A filter (preferably in the query) that filters out those data_items the current user (his/her access class is known) is not authorized to see.
    3. The plan calls for a table listing every possible item type with a column for each access class, enumerating the items allowed for that class. Any other solution to this issue would be acceptable provided it is capable to independently validate any single item type against any access class.
    I hope this makes sense.

  • Urgent: Enable Mulitple selections in filters (WAD)

    Hi Guru,
          I've one requirement on WAD (Web Application Designer), where I need to enable function for multiple selections in filters or dropdowns.
      Ex: assume we have Country Dropdown, user should be able to select multiple values like India, Singapore etc.
    Is it possible at the WAD level i.e Java Script code changes.
    Thanks in advance.
    Regards,
      VJ

    Hi Varun,
    This is possible. See here:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ac51ff2c-0a01-0010-14be-9f106610f389
    Hope this helps...

  • Passing the values in the query dynamically

    Hi,
    I have a tricky requirement.
    1) Selection criteria will be 0I_FPER (interval for 0FISCPER). This obviously has FROM and TO periods.
    2) I need to read amount for the employees who resigned in TO period and need to find out their corresponding amount in FROM period & TO period.
    E.g.
    Resigned employees in TO period (NOV)       Amount paid in TO period (NOV)    Amount paid in FROM period (OCT)
    Ram                                                          10000                         8000
    Shiv                                                           0                           30000
    TO period column is straight forward. But problem is in the FROM column. How to pick only those employees from "TO" period and pass to "FROM" period.
    What you can suggest?
    Regards,
    Shailesh

    Hi Shailesh
    You will have to create 'New Selection' in either Row/Columns (wherever you wish to display the Key Figures) or you could also create a 'Restricted Key figure'.
    In  the First Selection / RKF.. select the ey Figure for  'No of Employee' and then select the Characteristic for the From/To Period (0I_FPER).
    In the second Selection / RKF..select the Key Figure for the Amount and then select the Char for the From/To Period (0I_FPER).
    If there is any other characteristic which is used for identifying the Employees that have resigned, (say for Eg. Employee Status could be 0 for resigned employee, a hypothetical case), select the char. for Employee status with the value '0' and include it in both the selections / RKFs and you will get the desired results.
    Pl remember, if you select a period variable with a range (i.e. from and to values within the same variable)  , then you will get only one column for 'Amount' and the value in this column will be for value for the period.
    If you want Amount for From and To values to appear in two different columns , the do not select variable with a 'range'. Instead select two variables with single value , one each from From and To.  (However, I am not sure if you requirement wants From and To in two different columns, although, you are saying so !!!). If you select two variable (say for eg. ZPERIOD1 and ZPERIOD2 then in your selections you will not use 0I_FPER instead the new variables).
    Hope you find the answer useful.
    Regards
    Umesh

  • Copy and open files on local filesystem?

    Hello,
    For a change request, I have a rather tricky requirement. Suppose each user of the application always has a mapped network drive to a server, let's say drive "k:\", pointing to "\\servername\someDirectory\docs". This folder contains a lot of Word (.doc) files. What the customer wants is a button in the application that copies one or more documents from the "k:\" drive to a local folder, and opens them in Word. The reason the files have to be copied to the local file system is that opening them on the server would result in a read-only copy, whereas the users should be able to edit the opened version.
    So the user is in the adf application, clicks a button, and then one or more word documents should be opened. These documents should be local copies of the documents in the "k:\" drive. The location where to put the local copies can be easily determined, the path(s?) of the relevant document(s?) on the "k:\" drive is known, and the location of MS Word / Office can also be determined. So I have at my disposal for example following Strings:
    tmpDir = "C:\Documents and Settings\<user>\Local Settings\Temp\"
    serverDir = "\\servername\someDirectory\docs\"
    doc1 = "doc1.doc"
    doc2 = "doc2.doc"
    doc3 = "doc3.doc"
    wordLocation = c:\program files\microsoft office\office10In the current Forms application, there is a button that uses WebUtil to:
    <ul>
    <li>Creates an empty .bat file on the local file system (eg C:\Documents and Settings\<user>\Local Settings\Temp, determined by the tmpDir String)</li>
    <li>In this bat file, there are one ore more copy commands added, to copy the doc files from the server to the local Temp dir:
    copy \\servername\someDirectory\docs\doc1.doc C:\Documents and Settings\<user>\Local Settings\Temp
    copy \\servername\someDirectory\docs\doc2.doc C:\Documents and Settings\<user>\Local Settings\Temp
    copy \\servername\someDirectory\docs\doc3.doc C:\Documents and Settings\<user>\Local Settings\Tempor in other words:
    copy serverDir || doc1 tmpDir
    copy serverDir || doc2 tmpDir
    copy serverDir || doc3 tmpDir</li>
    <li>Next, the necessairy commands are added to the .bat file to open Word with the local copies:
    cd c:\program files\microsoft office\office10
    start WINWORD.EXE C:\Documents and Settings\<user>\Local Settings\Temp\doc1.doc C:\Documents and Settings\<user>\Local Settings\Temp\doc2.doc  C:\Documents and Settings\<user>\Local Settings\Temp\doc3.docor in other words:
    cd wordLocation
    start WINWORD.EXE  tmpDir || doc1 tmpDir || doc2 tmpDir || doc3</li>
    <li>Finally, an exit command is also added to the .bat file and the .bat file is executed on the client through WebUtil.</li>
    </ul>
    The resulting .bat file that is executed on the client would look like this as a whole:
    copy \\servername\someDirectory\docs\doc1.doc C:\Documents and Settings\<user>\Local Settings\Temp
    copy \\servername\someDirectory\docs\doc2.doc C:\Documents and Settings\<user>\Local Settings\Temp
    copy \\servername\someDirectory\docs\doc3.doc C:\Documents and Settings\<user>\Local Settings\Temp
    cd c:\program files\microsoft office\office10
    start WINWORD.EXE C:\Documents and Settings\<user>\Local Settings\Temp\doc1.doc C:\Documents and Settings\<user>\Local Settings\Temp\doc2.doc  C:\Documents and Settings\<user>\Local Settings\Temp\doc3.doc
    exitAny suggestions on how I can do this in the cleanest possible way in adf 10.1.3? I do realise that this is not something you want to do in a web application, but this is an important requirement for the customer...
    Help would be greatly appreciated!
    Chris
    Edited by: Chris Schryvers on 17-May-2010 23:55

    For now I'm looking into the (signed) Java Applet solution: this should make it possible.
    Only one problem: I can't get an applet to run from a jspx (or HTML) page... I keep getting following exception:
    load: class applet.view.TestApplet not found.
    java.lang.ClassNotFoundException: applet.view.TestApplet
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://172.22.42.87:8988/TestApplet3-ViewController-context-root/applet/view/TestApplet.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: applet.view.TestAppletEven if I do just the basic steps in JDev:
    <ul>
    <li>Create a new empty Application with a project</li>
    <li>Right click project, New..., Web Tier > Applet > Applet</li>
    <li>extends: java.applet.Applet, name: TestApplet, package: applet.view</li>
    <li>Add "System.out.println("Test");" to the init() method of the applet</li>
    <li>Right click project, New..., WebTier > Applet > Applet HTML Page</li>
    <li>Accept all defaults, run the Untitled1.html</li>
    </ul>
    When using the AppletViewer, the applet is executed correctly, but when I try to run it on the Embedded OC4J server, I always get the exception...
    Any ideas on how to make this work? Help! :-)

  • Pricing Condition for Serivce Line Item

    Hi Experts,
    I'm trying to create a service PO with 1 Service line item and this service line item actually contains more than 1 service number. Using BAPI_PO_CREATE1, how can I define the pricing condition for each of the service number?
    Currently, I'm able to define the pricing condition of the service item as a whole through this input parameter table POCOND.
    Thanks.
    Best Regards,
    Weishan

    Its really tricky requirement, when you are going for manual condition type.
    - the best alternative to cater your requirement is to go for maintenance of condition record, which you can upload at mass with the help of LSMW. Also, will be really helpful in having report for pricing. Finally, reduce time to create sales order. Thus, discuss & encourage your user to maintain pricing based condition record. Only header condition should be on manual bases.
    - If hard to convince your client on condition record. Then develop a routine with the help of ABAPer in your team. Where you can put logic. If the condition is manual enter and system is able find already entered value for material, then copy the price the slots where system don't find manually entered condition value.
    Regards
    JP

Maybe you are looking for