Query in output

Hi,
this may be a simple question, but I haven't been able to find an answer.
Is it possible to show the query and the output in the output pane? I'd like to be able to export the results and the query for evidence reasons. The auditors require evidence for possible inserts or updates.
Thanks for your help

We support the SQL*Plus ECHO command, so just add SET ECHO ON to your scripts and execute with F5.

Similar Messages

  • Spool file problem,Can't see the query in output file.

    Hello ,
    I am facing a very old school kind of problem .....about spool file ....
    The scenario -
    I have made a script by name DB_Status_checkup.sql which i want to fire on the database to check the database status. In this script their are many queries regarding the data dictionary views to know about the database. It consist of nearly 25-30 different select queries..
    The problem is i want to make a spool file of the output of that query....i want to see the SQL query & the output below in the spool file, so it will be easy for me to judge the result. But i can't see the SQL query , i can only see the output , & in so many queries it all gets jumbled up....even i can't understand where the next output starts ...
    Sample of my SQL Script ....
    clear buffer
    spool D:\DB_status.txt
    /*To check the database startup time*/
    Select to_char(startup_time, 'HH24:MI DD-MON-YY') "Startup time"
    from v$instance
    .........next query n so on....
    spool off;
    In the output pf the spool file at D:\db_status.txt..
    Startup time
    08:25 16-JUL-10It shows only the output of the query in the spool file not the query,
    What should i do to get the SQL query as well as the output of that query just below it in the spool file ???
    Please suggest if you have anymore ideas , regarding this .....
    ORACLE 10g R2
    Windows Server 2008
    Thanks in advance ...

    Why don't you just use database control, instead of re-inventing the wheel?
    Apart from that, SQL*Plus has it's own reference manual, which you apparently refuse to read.
    The answer to your quiz/doc question is
    set echo on
    Sybrand Bakker
    Senior Oracle DBA

  • Query in output of sh interface

    Hi all,
    I have a query in output of sh interface on ASA.
    On ASA's when we do 'show interface' for a gig interface, we can get any among two,
    input queue (blocks free curr/low): hardware (255/230)
    output queue (blocks free curr/low): hardware (255/0)
    OR
    input queue (curr/max packets): hardware (0/7)
    output queue (curr/max packets): hardware (0/13)
    cur/low I suppose when we have underruns and overruns going on.
    What i want to know is the meaning of the output. In case of curr/max its very clear.
    input queue (curr/max packets): hardware (0/7)
    output queue (curr/max packets): hardware (0/13)
    Above means (correct me if I am incorrect), there are Zero packets currently in input queue, and 7 were the max packets seen at one time. For output queue, zero are the current packets in ouput queue and 13 were max that were seen in output queue. This is documented.
    But I could not find an explaination for,
    input queue (blocks free curr/low): hardware (255/230)
    output queue (blocks free curr/low): hardware (255/0)
    How should I interpret it? I need supporting documentaion please.
    I have gone through this link :
    http://www.cisco.com/en/US/docs/security/asa/asa84/command/reference/s3.html#wp1497263
    But i couldn't find an explanation for blocks free current/low
    Please explain me the following output:
    2506116 packets input, 2624544574 bytes, 0 no buffer
           Received 0  broadcasts, 0 runts, 0 giants
           8036 input errors, 0 CRC, 0 frame, 8036  overrun, 0 ignored, 0 abort
           0 L2 decode drops
           5065834  packets output, 6024814558 bytes, 0 underruns
           0 pause output, 0 resume  output
           0 output errors, 0 collisions, 0 interface resets
           0  late collisions, 0 deferred
           0 input reset drops, 0 output reset drops,  0 tx hangs
           input queue (blocks free curr/low): hardware  (255/230)
           output queue (blocks free curr/low): hardware (254/0)

    i am mainly concerned about
      input queue (blocks free curr/low): hardware  (255/230)
           output queue (blocks free curr/low): hardware (254/0)

  • Parametrized query with output from sql

    Hey all,
    has anyone figure out how to use the database connectivity toolset to perform a parameterized query with outputs (SQL)? From the other threads that i have read it would seem that this issue is not resolved. The error i get is:
    Error -2147467259 occurred at Cmd Execute.vi->getjobID.vi
    Possible reason(s):
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [MySQL][ODBC 3.51 Driver][mysqld-5.0.50sp1a-enterprise-gpl-log]OUT or INOUT argument 3 for routine eln.lv_caperJob_create is not a variable or NEW pseudo-variable in BEFORE trigger in Rec Create - Command.vi->Cmd Execute.vi->getjobID.vi
    However, In Toad for mysql the following call works:
    set @outJobID=-999;
    set @outMsg="";
    call  lv_caperJob_create('TestJune30_2', '207', @outJobID, @outMsg);
    select @outJobID, @outMsg
    Attached is the LV code i am using. Thanks!
    Attachments:
    db code.JPG ‏50 KB

    Your first approach gave you an error because it took the ? parameter inside the '%?%' string and treated it as whole string as '%?%'. As you set the parameter, it did not understood where it need to insert the parameter.
    Your second approach is pretty much OK, only problem is you are trying to set the parameter with a string and aging creating the string while setting the parameter.
    The solution will be to create the whole string before setting the parameter and set the created String as parameter on the query something like this.
    String parameter = "%"+searchString+"%";
    Then set the parameter string to the query.
    Thanks

  • While executing the query the output is completey different from the query

    Dear friends,
    We built a query and loaded the data for that infoprovider.
    While executing the query the output is completey different from the query what we have built.
    Output has no relevance to the query.
    Kindly help the same.
    Regards,
    Sathya

    HI Satya,
    In my opinion the issue is with your front end.
    Results should be identical in RSRT, BEx Analyzer (Workbooks) and the ABAP-Web since all three frontend tools use the "ABAP Runtime layer".
    It may differ In the Portal where the new "Java Runtime layer". (Java-Web.) is used.
    This is given in OSS Note 1296576 - Different Query Behaviour: ABAP - Java.
    So i think the problem lies in your analyser. If you are using Analyzer: BI Add on 7.X (Based on 7.10) try and get support package 8.
    Hope this helps.
    Thanks,
    Rahul

  • Need a procedure to make minus query as output for 2 tables

    Can anybody help me to create a procedure so that I could get minus query of 2 table as a result.
    Requirement:
    I have two table 1- src_table_list ,2- tgt_table_list both tables have 2 columns : serial_no,table_name and 100 records each. and details mentioned in column "table_name" are actually tables name which present in my testing database.
    so I need one procedure which will pick one table_name from src_table_list and one table_name from tgt_table_name each time recursively and provide minus query as a result. as below.
    select c1,c2,c3,c4 from table1 --(fetched from src_table_list)
    minus
    select b1,b2,b3,b4 from table2 --(fetched from tgt_table_list)
    Can any body give or help me to create the procedure..as I have to prepare minus query for more than 200 tables and then I need to test them for integration testing..
    Edited by: 974253 on Nov 30, 2012 5:39 AM

    select 'select '||chr(39)||src_table_list.tblname||chr(39)||','||chr(39)||trg_table_list.tblname||chr(39)||',count(*) from '||' ( select * from '||src_table_list.tblname||'minus select * from '||trg_table_list.tblname||');'
    from src_table_list, trg_table_list
    WHERE src_table_list.serial_no = tgt_table_list.serial_no
    The above statement should give output similar to below code and will list down all the table names in the 2 tables(i.e. above src and trg) -
    select 'src_table_list.tbl1','trg_table_list.tbl1',count(*) from
    (select col1, col2 from src_table_list.tbl1 minus select col1, col2 from trg_table_list.tbl1 );
    select 'src_table_list.tbl2','trg_table_list.tbl2',count(*) from
    (select col1, col2 from src_table_list.tbl2 minus select col1, col2 from trg_table_list.tbl2 );
    Now atleast you can run these statements as script and get to know what all tables are having count differences.
    I might have missed out on some syntax part in above code but hope to have helped you in some way as you will be specific with number of tables to check for differences.

  • In BI Bex Query Designer output, dont want to have unit at column Heading..

    Hi
    I have a BI Bex Query Designer report showing output with Qty unit at Column Heading level. Even in KF's Text i didn't mention unit. I want unit to appear to column fields instead of column heading. Pls let me know how to do that.
    One more thing is: i have 2 reports exactly same except due date range is different. first report showing unit for each KF at the column heading level and for 2nd report showing column fields level... Surprising. Pls let me know what is the reason and how to control it.
    Thanks...

    Hi Harpal,
    Key figures can have scaling factors and units/currencies. Normally, units/currencies are displayed for every key figure, but not the scaling factors. If you activate the Display Scaling Factors for Key Figures, an additional header row is added to the row or column header. Information about the scaling factor and currency/unit appears in this additional header row, as long as it is consistent (for example, 1,000 EURO).
    For more information, You can go through
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/52029f961aa84d869b9b20fa7f7646/frameset.htm
    Hope it helps & resolves your issue.
    Regards,
    Pavan

  • Frequency Generator query frequency output limitations

    Hello,
    I would like to know if there is a way to query a frequency generator for the limitations of the output frequency that can be generated, using the C API. I have found documentation which clearly outlines the limitations of frequency output (min and max) for all devices supported by my current driver, but have yet to find a way to query these values from the driver and or the device itself. Is there such a method? or must I hard code these values into my program if I want to limit user input to the range of correct values for frequency?
    Thank you for your help

    By limitations of the output frequency, do you mean specs related to jitter, phase misalignment, propagation delay, etc? That information is available on the cards spec sheet. I don't believe there are attributes in the driver that report that information. You can always write your own code that identifies a card by its model number, and looks up its specs in a file. The following attribute identifies a cards model number:
    NIFGEN_ATTR_INSTRUMENT_MODEL
    Wan L
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Querying the output of a batch/scheduled report

    We haven't move to Discoverer Viewer as of now. One of the questions I have to those who have already implemented it is, can you schedule a batch report in the viewer and then users are able to query the RESULT of it without querying back the database? We have concerns on performance during the day so scheduling reports to run at night would be convenient for us.
    thanks for any comments........

    In the concurrent program screen, select options . Under Notify the following person, eneter the email address where output needs to be sent.
    Other option could be to create a send mail package and call that from after report trigger of report. The email address can be inputed as a parameter. For more information for this visit
    http://sureshvaishya.blogspot.com/2008/02/email-through-plsql.html
    The third option could be to call the report from a shell script program and after report is completed email the output using mailx functionality.

  • Query for output in this format

    Hi,
    I have data in following format:
    CLIENT REVNO QTY1 RATE1 QTY2 RATE2 QTY3 RATE3
    cln1 1 50 120 60 130 70 140
    cln1 3 10 100 20 50 30 25
    cln1 4 40 50 30 25 40 15
    cln1 2 20 120 10 60 20 30
    cln1 5 25 70 15 35 30 18
    I require o/p in following format:
    cln1 25 70 40 50 10 100 20 120 50 120
    cln1 15 35 30 25 20 50 10 60 60 130
    cln1 30 18 40 15 30 25 20 30 70 140
    In the first record of above result "25" is qty1 of revno=5 & "70" is rate1 of revno=5
    similarly, "40" is qty1 of revno=4 and "50" is rate of revno=4 and so on ..
    In the second record, "15" is qty2 of revno=5 and "35" rate2 of revno=5 and so on.
    So basically,
    it should be qty1 & rate1 of revno 1through 5 in 1st records then
    qty2 & rate2 of revno 1 through 5 in 2nd record
    and qty3 &rate3 of revno 1to5 in 3rd record
    Any Suggestions

    Hi Mohan,There is some problem with your query . It does not function properly.can you check it again?                                   
    Also, one client can have at the most 10 revno and at least 1 revno.                         
    So for a client the query would execute for his last 5 revno.                         
    client     revno      qty1     rate1     qty2     rate2     qty3     rate3
    cln1     1     120     10     130     5     110     20
    cln1     2     105     20     122     7     150     5
    cln1     3     115     25     140     50     110     10
    cln1     4     124     10     145     5     80     40
    cln1     5     50     100     100     50     25     200
    cln1     6     35     40     40     50     25     60
    cln2     1     15     5     18     9     21     11
    cln2     2     16     7     9     9     11     5
    cln2     3     7     7     9     9     11     11
    cln3     1     12     20     15     25     20     30
    The output at the bottom is in the format given below:                    
    Format:
         rev5          rev4          rev3          rev2          rev1     
    cln1     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1
    cln1     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2
    cln1     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3
    cln2     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1
    cln2     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2
    cln2     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3
    cln3     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1     qty1     rate1
    cln3     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2     qty2     rate2
    cln3     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3     qty3     rate3
    Required Output:
    cln1     35     40     50     100     124     10     115     25     105     20
    cln1     40     50     100     50     145     5     140     50     122     7
    cln1     25     60     25     200     80     40     110     10     150     5
    cln2     7     7     16     7     15     5                    
    cln2     9     9     9     9     18     9                    
    cln2     11     11     11     5     21     11                    
    cln3     12     20                                        
    cln3     15     25                                        
    cln3     20     30

  • Counting Record Totals Within Query: Totals Output to New Table

    Hi All,
    I'm failry new to PL/SQL... my apologies if this is obvious... I'm trying to count the total number of BI_WRKFLW.BI_LMN_SRV_AREA occurences by each BI_WRKFLW.BI_LMN_SRV_AREA (The Code correspondes to a city name like Sundance, Sheridan, Etc.)
    So, I have a Query that executes fine:
    Query
    /* Begin Querey */
                    SELECT DISTINCT
                        "BI_SO_DET_VIEW_1"."BI_SO_STAT_CD",
                        "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED",
                        "BI_TYPE_SERVICE"."BI_ACCT",
                        "BI_SO_DET_VIEW_1"."BI_SO_NBR",
                        "BI_LMN_SRV_REF"."BI_LMN_SRV_DESC",
                        "BI_SO_TYPE_REF"."BI_SO_TYPE_DESC",
                        "BI_SRV_STAT_REF"."BI_SRV_STAT_DESC",
                        "BI_DIST_OFC_REF"."BI_DIST_NAME",
                        "BI_CNTY_REF"."BI_COUNTY_DESC",
                        "BI_SO_DET_VIEW_1"."BI_CLOSE_DT",
                        "BI_WRKFLW_TASKS"."BI_EVENT_DT_TM",
                        "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD",
                        "BI_LMN_SRV_REF"."BI_LMN_SRV_AREA",
                        "BI_SO_MASTER"."BI_WO_WORKORD"
                    FROM
                        ((((((((("XXXXXX"."BI_SO_MASTER" "BI_SO_MASTER"
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_SO_DET_VIEW_1" "BI_SO_DET_VIEW_1"
                    ON
                        "BI_SO_MASTER"."BI_SO_NBR"="BI_SO_DET_VIEW_1"."BI_SO_NBR")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_TYPE_SERVICE" "BI_TYPE_SERVICE"
                    ON
                        "BI_SO_DET_VIEW_1"."ACCT_NBR"="BI_TYPE_SERVICE"."BI_ACCT")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_WRKFLW" "BI_WRKFLW"
                    ON
                        "BI_SO_DET_VIEW_1"."BI_WRKFLW_KEY"="BI_WRKFLW"."BI_WRKFLW_KEY")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_SO_TYPE_REF" "BI_SO_TYPE_REF"
                    ON
                        "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"="BI_SO_TYPE_REF"."BI_SO_TYPE_CD")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_WRKFLW_TASKS" "BI_WRKFLW_TASKS"
                    ON
                            "BI_WRKFLW"."BI_WRKFLW_KEY"="BI_WRKFLW_TASKS"."BI_WRKFLW_KEY")
                    AND (
                            "BI_WRKFLW"."BI_WORK_EVENT_CD"="BI_WRKFLW_TASKS"."BI_WORK_EVENT_CD"))
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_DIST_OFC_REF" "BI_DIST_OFC_REF"
                    ON
                        "BI_WRKFLW"."BI_DIST_OFC_CD"="BI_DIST_OFC_REF"."BI_DIST_OFC_CD")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_LMN_SRV_REF" "BI_LMN_SRV_REF"
                    ON
                        "BI_WRKFLW"."BI_LMN_SRV_AREA"="BI_LMN_SRV_REF"."BI_LMN_SRV_AREA")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_SRV_LOC" "BI_SRV_LOC"
                    ON
                        "BI_TYPE_SERVICE"."BI_SRV_LOC_NBR"="BI_SRV_LOC"."BI_SRV_LOC_NBR")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_SRV_STAT_REF" "BI_SRV_STAT_REF"
                    ON
                        "BI_TYPE_SERVICE"."BI_SRV_STAT_CD"="BI_SRV_STAT_REF"."BI_SRV_STAT_CD")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_CNTY_REF" "BI_CNTY_REF"
                    ON
                        "BI_SRV_LOC"."BI_CNTY_CD"="BI_CNTY_REF"."BI_CNTY_CD"
                    WHERE
                            "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='001'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='001NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='010'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='010NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='011'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='011NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='020'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='020NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='030'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='040'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='041'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='050'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='050A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='051'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='051A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='080'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='085'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='085NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='108'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='140'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='141'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='400'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='401'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='450'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='450A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='451'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='451A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='452'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='452A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='453'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='453A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='460'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='RHR'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='RHRNS')
                    AND "BI_SO_DET_VIEW_1"."BI_SO_STAT_CD"='O'
                    AND (
                            "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='ANNEXATION'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='AVIAN'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CAPVERIF'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CBMRETIRE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CBMSERVCHG'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CONTSERVD'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CUSTBLD'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CUTOFF'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='DVCM'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='ENERGIZE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='EQUIPCHANG'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='EQUIPVALID'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='HIGHLOAD'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='LOCATE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='MAINT-EQ'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='MSYSTEMMGT'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='NCBM'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='NEWRES-WF'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='NEW-WF'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='POWER QUAL'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='RECONIDLE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='RECVERIF'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='RETIRE1'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='RETIRE2'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='SERVCHANGE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='SPECIALPRJ'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='SUBD'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='SYSTEMMGT'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='TREE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='TRFX')
                    ORDER BY
                        "BI_LMN_SRV_REF"."BI_LMN_SRV_DESC" DESC,
                        "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"
                        /* End Querey */That is wrapped within a counting Block that is giving me trouble:
    SELECT
        WOCOUNT.Office,
        WOCOUNT.WOCOUNT
    FROM
            SELECT
                CASE
                    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '1'
                    THEN '1-SUNDANCE'
                    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '2'
                    THEN '2-GILLETTE'
                    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '3'
                    THEN '3-SHERIDAN'
                    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '4'
                    THEN '4-West/Central'
                    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '5'
                    THEN '5-East/Central'
                    ELSE '0-OTHER'
                END                                AS Office,
                COUNT (T1.BI_LMN_SRV_AREA ) AS WOCOUNT
            FROM
                    /* Begin Querey */
                    /* End Querey */
                ) T2
            JOIN
                BI_SO_DET_VIEW_1
            ON
                T2.BI_WRKFLW_KEY = BI_SO_DET_VIEW_1.BI_WRKFLW_KEY
            GROUP BY
                BI_WRKFLW.BI_LMN_SRV_AREA
                 )WOCOUNTThis is the 2 blocks together:
    SELECT
        WOCOUNT.Office,
        WOCOUNT.WOCOUNT
    FROM
            SELECT
                CASE
                    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '1'
                    THEN '1-SUNDANCE'
                    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '2'
                    THEN '2-GILLETTE'
                    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '3'
                    THEN '3-SHERIDAN'
                    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '4'
                    THEN '4-West/Central'
                    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '5'
                    THEN '5-East/Central'
                    ELSE '0-OTHER'
                END                                AS Office,
                COUNT (T1.BI_LMN_SRV_AREA ) AS WOCOUNT
            FROM
                    /* Begin Querey */
                    SELECT DISTINCT
                        "BI_SO_DET_VIEW_1"."BI_SO_STAT_CD",
                        "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED",
                        "BI_TYPE_SERVICE"."BI_ACCT",
                        "BI_SO_DET_VIEW_1"."BI_SO_NBR",
                        "BI_LMN_SRV_REF"."BI_LMN_SRV_DESC",
                        "BI_SO_TYPE_REF"."BI_SO_TYPE_DESC",
                        "BI_SRV_STAT_REF"."BI_SRV_STAT_DESC",
                        "BI_DIST_OFC_REF"."BI_DIST_NAME",
                        "BI_CNTY_REF"."BI_COUNTY_DESC",
                        "BI_SO_DET_VIEW_1"."BI_CLOSE_DT",
                        "BI_WRKFLW_TASKS"."BI_EVENT_DT_TM",
                        "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD",
                        "BI_LMN_SRV_REF"."BI_LMN_SRV_AREA",
                        "BI_SO_MASTER"."BI_WO_WORKORD"
                    FROM
                        ((((((((("XXXXXX"."BI_SO_MASTER" "BI_SO_MASTER"
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_SO_DET_VIEW_1" "BI_SO_DET_VIEW_1"
                    ON
                        "BI_SO_MASTER"."BI_SO_NBR"="BI_SO_DET_VIEW_1"."BI_SO_NBR")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_TYPE_SERVICE" "BI_TYPE_SERVICE"
                    ON
                        "BI_SO_DET_VIEW_1"."ACCT_NBR"="BI_TYPE_SERVICE"."BI_ACCT")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_WRKFLW" "BI_WRKFLW"
                    ON
                        "BI_SO_DET_VIEW_1"."BI_WRKFLW_KEY"="BI_WRKFLW"."BI_WRKFLW_KEY")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_SO_TYPE_REF" "BI_SO_TYPE_REF"
                    ON
                        "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"="BI_SO_TYPE_REF"."BI_SO_TYPE_CD")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_WRKFLW_TASKS" "BI_WRKFLW_TASKS"
                    ON
                            "BI_WRKFLW"."BI_WRKFLW_KEY"="BI_WRKFLW_TASKS"."BI_WRKFLW_KEY")
                    AND (
                            "BI_WRKFLW"."BI_WORK_EVENT_CD"="BI_WRKFLW_TASKS"."BI_WORK_EVENT_CD"))
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_DIST_OFC_REF" "BI_DIST_OFC_REF"
                    ON
                        "BI_WRKFLW"."BI_DIST_OFC_CD"="BI_DIST_OFC_REF"."BI_DIST_OFC_CD")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_LMN_SRV_REF" "BI_LMN_SRV_REF"
                    ON
                        "BI_WRKFLW"."BI_LMN_SRV_AREA"="BI_LMN_SRV_REF"."BI_LMN_SRV_AREA")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_SRV_LOC" "BI_SRV_LOC"
                    ON
                        "BI_TYPE_SERVICE"."BI_SRV_LOC_NBR"="BI_SRV_LOC"."BI_SRV_LOC_NBR")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_SRV_STAT_REF" "BI_SRV_STAT_REF"
                    ON
                        "BI_TYPE_SERVICE"."BI_SRV_STAT_CD"="BI_SRV_STAT_REF"."BI_SRV_STAT_CD")
                    LEFT OUTER JOIN
                        "XXXXXX"."BI_CNTY_REF" "BI_CNTY_REF"
                    ON
                        "BI_SRV_LOC"."BI_CNTY_CD"="BI_CNTY_REF"."BI_CNTY_CD"
                    WHERE
                            "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='001'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='001NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='010'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='010NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='011'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='011NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='020'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='020NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='030'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='040'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='041'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='050'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='050A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='051'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='051A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='080'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='085'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='085NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='108'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='140'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='141'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='400'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='401'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='450'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='450A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='451'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='451A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='452'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='452A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='453'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='453A'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='460'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='RHR'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='RHRNS')
                    AND "BI_SO_DET_VIEW_1"."BI_SO_STAT_CD"='O'
                    AND (
                            "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='ANNEXATION'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='AVIAN'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CAPVERIF'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CBMRETIRE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CBMSERVCHG'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CONTSERVD'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CUSTBLD'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='CUTOFF'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='DVCM'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='ENERGIZE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='EQUIPCHANG'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='EQUIPVALID'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='HIGHLOAD'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='LOCATE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='MAINT-EQ'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='MSYSTEMMGT'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='NCBM'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='NEWRES-WF'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='NEW-WF'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='POWER QUAL'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='RECONIDLE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='RECVERIF'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='RETIRE1'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='RETIRE2'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='SERVCHANGE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='SPECIALPRJ'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='SUBD'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='SYSTEMMGT'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='TREE'
                        OR  "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"='TRFX')
                    ORDER BY
                        "BI_LMN_SRV_REF"."BI_LMN_SRV_DESC" DESC,
                        "BI_SO_DET_VIEW_1"."BI_SO_TYPE_CD"
                        /* End Querey */
                ) T2
            JOIN
                BI_SO_DET_VIEW_1
            ON
                T2.BI_WRKFLW_KEY = BI_SO_DET_VIEW_1.BI_WRKFLW_KEY
            GROUP BY
                BI_WRKFLW.BI_LMN_SRV_AREA
                 )WOCOUNTThe last error I received is: [Error Code: 904, SQL State: S0022] [Oracle][ODBC][Ora]ORA-00904: "T2"."BI_WRKFLW_KEY": invalid identifier
    I want the final Output to be something similar to:
    OFFICE          WOCOUNT 
    0-OTHER         44.0       
    1-SUNDANCE      14.0     
    2-GILLETTE      29.0       
    3-SHERIDAN      11.0        
    4-West/Central  37.0       
    5-East/Central  58.0       Thanks for your help,
    :) John

    Hi, John,
    Johnbr (Oracle11G) wrote:
    Hi All,
    I'm failry new to PL/SQL... That's okay; there's no PL/SQL involved in this problem, and there's no PL/SQL needed, only SQL.
    That is wrapped within a counting Block that is giving me trouble:
    SELECT
    WOCOUNT.Office,
    WOCOUNT.WOCOUNT
    FROM
    SELECT
    CASE
    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '1'
    THEN '1-SUNDANCE'
    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '2'
    THEN '2-GILLETTE'
    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '3'
    THEN '3-SHERIDAN'
    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '4'
    THEN '4-West/Central'
    WHEN "BI_WRKFLW"."BI_LMN_SRV_AREA" = '5'
    THEN '5-East/Central'
    ELSE '0-OTHER'
    END                                AS Office,
    COUNT (T1.BI_LMN_SRV_AREA ) AS WOCOUNT
    FROM
    /* Begin Querey */
    /* End Querey */
    ) T2
    JOIN
    BI_SO_DET_VIEW_1
    ON
    T2.BI_WRKFLW_KEY = BI_SO_DET_VIEW_1.BI_WRKFLW_KEY
    GROUP BY
    BI_WRKFLW.BI_LMN_SRV_AREA
    )WOCOUNT
    The sub-query called wocount only involves 2 "tables", namely
    (1) T2
    (2) BI_SO_DET_VIEW_1
    (I put "tables" in quotes because T2 isn't really a table; it's an in-line view. Judging by the name, I'm guessing BI_SO_DET_VIEW_1 isn't really a table, either, but it doesn't matter. You have 2 things that serve as tables, so I'll just call them tables.)
    Since those are the only 2 tables, you can't reference BI_WRKFLW in WOCOUNT. That table is known inside T2, but not outside of T2.
    You can include "BI_WRKFLW"."BI_LMN_SRV_AREA" in the SELECT clause of T2, assuming that doesn't make more rows distinct. T2 will then look like this:
    ...             SELECT DISTINCT
                        BI_SO_DET_VIEW_1.BI_SO_STAT_CD
                        BI_SO_MASTER.BI_WO_WORKORD,
                  BI_WRKFLW.BI_LMN_SRV_AREA          -- New column added
                    FROM ...Then, inside WOCOUNT, you can use BI_LMN_SRV_AREA like this:
    ...         CASE
                    WHEN BI_LMN_SRV_AREA = '1'
                    THEN '1-SUNDANCE'
                    WHEN BI_LMN_SRV_AREA = '2'
                    THEN '2-GILLETTE'
                    WHEN BI_LMN_SRV_AREA = '3'
                    THEN '3-SHERIDAN'
                    WHEN BI_LMN_SRV_AREA = '4'
                    THEN '4-West/Central'
                    WHEN BI_LMN_SRV_AREA = '5'
                    THEN '5-East/Central'
                    ELSE '0-OTHER'
                END                                AS Office,or, to save a little typing:
    ...         CASE  BI_LMN_SRV_AREA
                    WHEN  '1'
                    THEN '1-SUNDANCE'
                    WHEN '2'
                    THEN '2-GILLETTE'
                    WHEN '3'
                    THEN '3-SHERIDAN'
                    WHEN '4'
                    THEN '4-West/Central'
                    WHEN '5'
                    THEN '5-East/Central'
                    ELSE '0-OTHER'
                END                                AS Office, 
    Speaking of saving on typing:
    Instead of
    WHERE
                            "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='001'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='001NS'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='010'
                        OR  "BI_TYPE_SERVICE"."BI_PRIM_RATE_SCHED"='RHRNS'
                  )you can use the IN operator, like this:
    WHERE              BI_TYPE_SERVICE.BI_PRIM_RATE_SCHED  IN ('001', '001NS', '010', ..., 'RHRNS') 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Simplify the problem as much as possible. For example, you would probably have the same problem if there were only 2 o4 3 tables involved in your query. Try to construct a problem that only has 2 or 3 tables, and post only those tables, and the results you want from them.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • Query regarding Output Types

    Hello Experts,
    I have one output type for sales documents. I am able to successfully trigger it for credit/debit memos but when I try to trigger it for standard orders then I am getting "Output not defined" error. Can anybody please tell me where in the config we can define output types for sales document types.
    I have one more query. While trying to trigger one billing document output I am getting "Update Terminated" error. But for same billing document I am able to trigger other output types. If "Update Terminated" error is coming due to number range then should it not be coming for all output types since there is no output type specific number range defined.
    Regards,
    Karan

    Hi,
    please check the configuration settings
    IMG-sales & distribution-basic functions-output control-output determination-output determination using the condition technique-maintain output determination for sales documents.
    1. create condition table . Key combination for maintaining condition record.
    2. access sequence. assign condition table to access sequence.
    3. ouput condition type. Select appropriate for inquiry, quotation or sales order. Assign the access sequence to the ouput type.
    4.ouput determination procedure. Here you assign the output type to this procedure.
    5. assign output determination procedure. Assign the procedure at header level if you want full document ouput. Assign the procedure at Item category level if you want item level output.
    6. VV11 - create  condition records for sales document types or VV31 for billing document types.
    create the order or billing document and see the result.
    Regards,
    csv

  • MySQL query not outputting results

    Hi Guys,
    I want to retrieve a record from my database which has the latest date and output its contents onto the webpage. This is what I have done so far:
    ResultSet rs = DB.exQuery("SELECT max(transaction_date) as 'lastest_date',transaction_value,transaction_type"
                                  + "FROM transaction_log WHERE user_id =" + user.getId() + " AND is_credit = '1'");
    try {
         trans_date = rs.getString("lastest_date");
         credit = rs.getString("transaction_value");
         trans_method = rs.getString("transaction_type");
    } catch(SQLException ex) {}It compiles fine but when I run the servlet I get "java.lang.NullPointerException" on line 92 (+trans_date = rs.getString("lastest_date");+). I get the same error even if I add the rs.next() method. Note that the database will always only output ONE record. I checked the MySQL query (ran it on the server directly) and it worked fine.

    try {
    ResultSet rs = DB.exQuery("SELECT max(transaction_date) as lastest_date, transaction_value,transaction_type"
                                  + "FROM transaction_log WHERE user_id =" + user.getId() + " AND is_credit = '1'");
    if ( rs.next () ) {can you explain
    *     trans_date = rs.getString("lastest_date");* // trans_date is a string type or date type... and max(transaction_date) as lastest_date returns which type...
         credit = rs.getString("transaction_value");
         trans_method = rs.getString("transaction_type");
    } catch(SQLException ex) {}

  • ABAP QUERY PROGRAM OUTPUT SHOULD DISPLAY FROM SAP SCRIPT.

    THIS IS MY URGENT REQUIREMENT ...
    I DONT KNOW ABAP QUERY PROGRAM ..
    PLEASE SUGGEST ME A WAY ON THIS ....
    Functional requirements
    Introduction
    The wish of the customer is a printable customer overview. All desired fields will be shown in a new query called ZZADDRSS_CO. Double entries are taken for granted because of the data taken from the sales area and because of multiple contact persons. The customer accepts this. It should be made possible that the user creates and saves its own variant.
    A second overview is needed, another ABAP will be developed for this requirement. This ABAP will show all the customer data and this list will have the possibility to be printed.
    Solution
    New Query ZZADDRESS_CO
    The desired fields of attachment 1 need to be shown in the query.
    The selection criteria are shown in attachment 2.
    The column names of the additional data have to changed in the query.
    Customer Overview.
    Functional specification.
    On behalf of this customer overview a standard SAP transaction will be used (transaction VC/2).This transaction will be extended.
    The fields are shown on screen with the described headers. Printing of the overview will be done via SAP script. The script makes use of a fixed layout of the data.
    The selection criteria are specified in attachment 2.
    The layout of the customer overview and the SAP Script are specified in attachment 3.
    Specification.
    The next steps need to be performed.
    1.     A routine per infoblock need to be created in Include RV77UNNN. In this routine the data is retrieved and written down to the screen and script,
    Example LST1_901 . In include RV77SNNN you can find the standard infoblocks.
    2.     Adapt via transaction SE16 table TFRM.
    3.     Create a new view in the customizing (sales and distribution- Sales support-sales summary-Assign Reporting Views).Assign the new view to the infoblocks.(Example view 001 is assigned to block 901).
    4.     In customizing it is not possible to assign the correct window and element to the infoblock .so this is done via SE16 in table T182A.
    5.     Adapt script. Copy script SD-SALES-SUMMARY to a Z-SALES_SUMM.
    Assign this new version to the new view in customizing. Create in the main window the element who writes the data on behalf of the print.
    Attachment 1 Desired fields
    Header: Address
    ~ Customer number                          KNA1-KUNNR
    ~ Title                                               KAN1-ANRED
    ~ Name1                                           ADRC-NAME1
    ~ Name2                        ADRC-NAME2
    ~ Name3                                           ADRC-NAME3
    ~ Name4                                           ADRC-NAME4
    ~ PO Box                                         ADRC-PO_BOX
    ~ PO Box POSTAL CODE             ADRC-POST_CODE2
    ~ PO Box city                                  ADRC-PO_BOX_LOC
    ~ Telephone no1                              ADR2-TEL_NUMBER   1ST RECORD
    ~ Telephone no2                              ADR2-TEL_NUMBER   2ND RECORD
    ~ Fax number1                                 ADR3-FAX_NUMBER 1ST RECORD
    ~ Fax number2                                ADR3-FAX_NUMBER 2ND RECORD
    ~ E-mail                                            ADR6-SMTP_ADDR
    ~ Search item                                   ADRC-SORT1
    ~ Notes                                            ADRT-REMARK
    Header: control data
    ~ VAT registration number              KAN1-STCEG
    Header: Payment transactions
    ~Bank country key                         KNBK-BANKS
    ~Bank key                                      KNBK-BANKL
    ~Bank Account number                 KNBK-BANKN
    Header: Marketing
    ~ Industry key                                   KNA1-BRSCH
    ~ Industry code 1                              KNA1-BRAN1
    ~ Industry code 2                              KNA1-BRAN2
    ~ Industry code 3                                KNA1-BRAN3
    ~ Industry code 4                                KNA1-BRAN4
    ~ Industry code 5                               KNA1-BRAN5
    ~Annual sales, currency, year           KNA1-UMSA1, KNA1-UWAER, KNA1-UMAH
    ~ Yearly no of employees, year      KAN1-JMZAH, KNA1-JMJAH       
    ~ Fiscal year variant                          KNA1-PERIV
    ~Legal status                                      KNA1-GFORM
    Header: Correspondence
    ~ Our account number at customer            KNB1-EIKTO
    Header: sales
    ~ Sales office                                              KNVV-VKBUR
    ~ Customer group                                       KNVV-KDGRP
    ~ ABC-classification                                  KNVV-KLABC
    Header: Invoice
    ~Tax classification                          KNVI-TAXKD
    ~Terms of payment key                    KNVV-ZTERM
    ~
    Header: Contact Persons
    ~Title                                   KNVK-ANRED
    ~Name                                   KNVK-NAME1
    ~Advertising material                         KNVK-NMAIL
    ~Martial Status                         KNVK-FAMST
    ~Notes                                   KNVK-PARAU
    ~Function                              KNVK-PAFKT
    ~Department                              KNVK-ABTNR
    Header: Partnerroles
    ~Personnel Number                         KNVP-PERNR
    ~Name of employee                         PA0001-ENAME
    Header: Additional Data
    ~Attribute 1                              KNA1-KATR1
    ~Creation date                              KNA1-ERDAT
    ~Attribute 2                              KNA1-KATR2
    ~Change date of field KNA1-KATR2          CDHDR-UDATE
    ~Attribute 3                              KNA1-KATR3
    ~Attribute 4                              KNA1-KATR4          
    ~Attribute 5                              KNA1-KATR5
    ~Attribute 6                              KNA1-KATR6
    Attachment 2 Selection fields
    ~Customer number
    ~Sales office
    ~Personnel Number
    ~Sales Organization (default NL01)
    ~Industry key
    ~Industry codes (1 till 5)
    ~ABC- classification
    ~Creation date
    ~Attribute 1
    ~Attribute 2
    ~Attribute 3
    ~Attribute 4
    ~Attribute 5
    Attachment 3 Customer overview + SAP Script
    Customer master data sheet: 11490                 Page1
    Requested by karen Dunnewold                Date: 25.08.2004
    Address
    (Default SAP script ADDRESS statement)
    Title
    Name1
    Street + number
    PO Box city
    Country
    Search term: ADRC-SORT1
    Telephone 1:      ADR2-TEL_NUMBER     2: ADR2-TEL_NUMBER
    Fax 1:          ADR3-FAX_NUMBER     2: ADR3-FAX_NUMBER
    E-mail:          ADR6-SMTP_ADDR     
    Notes:           ADRT-REMARK
    PO BOX
    ADRC-PO_BOX
    ADRC-POST_CODE2 ADRC-PO_BOX_LOC
    T005T-LANDX (T005T-LAND1 = ADRC-COUNTRY)
    Control data
    VAT registration number:     KNA1-STCEG
    Payment transactions
    Country: KNBK-BANKS Bank-key: KNBK u2013 BANKL Bank account: KNBK-BANKN
    Marketing
    Industry           KNA1-BRSCH     Industry Description
    Industry code1          KNA1-BRAN1     Industry Description
    Industry code2          KNA1-BRAN2     Industry Description
    Industry code3          KNA1-BRAN3     Industry Description
    Industry code4          KNA1-BRAN4     Industry Description
    Industry code5          KNA1-BRAN5     Industry Description
    Figures
    Annual Sales          KNA1-UMSA1, KNA1-UWAER in KNA1-UMAH
    Employees          KNA1-JMZAH                         in KNA1-JMJAH
    Legal status            KNA1-GFORM description
    Customer master data sheet 11490                         Page 2
    Requested by karen Dunnewold                         Date: 25.08.2004
    Contact Persons
    KNVK-ANRED
    Mailings: KNVK-NMAIL           Notes: KNVK-PARAU
    KNVK-ANRED
    Mailings: KNVK-NMAIL           Notes: KNVK-PARAU
    Correspondence
    Our account number at customer      KNB1-EIKTO
    Sales
    Sales office          KNVV-VKBUR     Description
    Customer group     KNVV-KDGRP     Description
    ABC-classify          KNVV-KLABC
    Currency          KNVV-WAERS
    Invoice
    Terms of payment key KNVV-ZTERM      Tax classification KNV1-TAXKD
                                  Description     
    Partner (Leave SAP default)
    Partnerrole               Number          Name
    KNVP-PARVW          KNVP-KUNNR     NAME1
    KNVP-PARVW          KNVP-KUNNR     NAME1
    Additional data
    Attribute1          kna1-katr1     Description
    Attribute2          kna1-katr2     Description
    Attribute3          kna1-katr3     Description
    Attribute4          kna1-katr4     Description
    Attribute5          kna1-katr5     Description
    Attribute6          kna1-katr6     Description

    hi narayana
    i think u need to write a driving program and a provided with a smatform u sit along with the SD consultant.
    ur further views can be shared.
    Rgs,
    Venkat.

  • Query Pld Output

    Hello Experts,
    I have done a query pld in which item code , description, is repeating. How to restrict this?
    My Current out put is
    Itemcode    Item Desc      Qty   Rate       Batch No.  Batch Qty
    001            ABC                 10  15000          01           05
    001            ABC                 10  15000          02           03
    001            ABC                 10  15000          03           02
    My desired out put should be
    Itemcode    Item Desc      Qty   Rate       Batch No.  Batch Qty
    001            ABC               10   15000          01           05
                                                                    02           03
                                                                    03           02

    Hi Consultant
    For this no need to Create Crystal Report, It can be possible through Group by and Sort by in PLD.
    For Using Sort By
    Click on the repetative area in field index
    Go to Printlayout designer on menu bar - repetative area - sort
    It will open another window sort
    1.In the field name give item no.  and second Item Name
    2.sort type alpha numeric
    3.Check summary and uncheck new page
    All the items with item code 001 will come in series.
    Now we have to use group by
    For Using Group By
    Place Two formula fields in repetative area Above
    001 ABC 10 15000 01 05
    Put SortValue() for first
    and also Sort Value for Second also.
    Select two fields then go to Print Layout designer group.  Select group 1 over there
    Then the out put will be as
    001 ABC
    001 ABC 10 15000 01 05
    001 ABC 10 15000 02 03
    001 ABC 10 15000 03 02
    Hide the field ItemCode and Name.
    We can have
    001 ABC
                 10 15000 01 05
                 10 15000 02 03
                 10 15000 03 02
    Thanks & Regards
    Siva Reddy

Maybe you are looking for

  • Mac no longer sees old external drive, or new external drive

    I have been using a Seagate external drive for months. All of a sudden, my Mac doesn't see it in Finder (Or Disk Utility), and no longer mounts it. I bought a new Drive today and when I plugged it in, my mac doesn't see the new drive either. (WD My B

  • Workflow problem

    Hi! I am working in SRM 5.0 with Server 5.5 and I have a problem with the workflow approval... I activate the workflow WS 10400010 without approval. And when I go to confirm the good, the workflow trows an error message that the workflow not started.

  • COPA report and purchase order value mismatched

    Dear Experts, In copa report ke30 COGS value come Rs 12129805 and in purchage order it shown 767537.34 which was assigned the sales order. In KE33 report i checked VRPRS was th value field which data flowing to copa and input parameter recoed type B

  • The application LOGINserver quit unexpectedly

    Hi, Every time I log in - the following text appears in a box The application LOGINserver quit unexpectedly The following are the problem details. How do I solve this please? Process: LOGINserver [1471] Path: /Library/Printers/Brother/Utilities/Serve

  • Wacom Intuous4 in Lightroom configuration/settings

    I bought a Wacom Intous4 about a month ago, and am loving it so far. I'm still in the process of deciding how I want to set up my ExpressKeys, Touch Ring, and Radial Menu, so I thought I'd check in here and see what other folks are doing. How have yo