How to display result order by date desc?

Hi Everyone,
My DB version is
BANNER                                                        
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production                          
CORE 10.2.0.1.0 Production                                        
TNS for Linux: Version 10.2.0.1.0 - Production                  
NLSRTL Version 10.2.0.1.0 - Production                          
Please do have a look at this query and the result displayed. It's always showing results in draw_dt asc. I need to get this result as draw_dt desc. Please suggest something.
select rownum as sl_no,
       sub.patient_name,
       sub.external_id,
       sub.modality,
       sub.account_number,
       sub.hlab_num,
       sub.spectra_mrn,
       sub.draw_dt,
       sub.requisition_number,
       sub.facility_name,
       sub.facility_id,
       sub.corporation_name,
       sub.acronym,
       sub.patient_id,
       SUB.TEST_ID,
       count(sub.requisition_number) over (partition by null) as entity_count
from(
select distinct
        (select p.last_name || ', ' || p.first_name
          from patient p
         where p.patient_id = loc.patient_id) as patient_name,
       (select p.external_id
          from patient p
         where p.patient_id = loc.patient_id) as external_id,
       (select p.spectra_mrn
        from patient p
        where p.patient_id = loc.patient_id) as spectra_mrn,
       ord.requisition_number as requisition_number,
       f.facility_name as facility_name,
       f.facility_id as facility_id,
       (select fad.account_type as modality
          from patient p,
               patient_facility_modality pfm,
               facility_account_modality fam,
               facility_account_detail fad
         where p.patient_id = pfm.patient_id
           and pfm.facility_account_modality_id =
                                              fam.facility_account_modality_id
           and fam.facility_account_detail_id = fad.facility_account_detail_id
           and p.patient_id = loc.patient_id
           and pfm.facility_id = loc.facility_id) as modality,
       (select fad.account_number as account_number
          from patient p,
               patient_facility_modality pfm,
               facility_account_modality fam,
               facility_account_detail fad
         where p.patient_id = pfm.patient_id
           and pfm.facility_account_modality_id =
                                              fam.facility_account_modality_id
           and fam.facility_account_detail_id = fad.facility_account_detail_id
           and p.patient_id = loc.patient_id
           and pfm.facility_id = loc.facility_id) as account_number,
       (select fad.hlab_num as hlab_num
          from patient p,
               patient_facility_modality pfm,
               facility_account_modality fam,
               facility_account_detail fad
         where p.patient_id = pfm.patient_id
           and pfm.facility_account_modality_id =
                                              fam.facility_account_modality_id
           and fam.facility_account_detail_id = fad.facility_account_detail_id
           and p.patient_id = loc.patient_id
           and pfm.facility_id = loc.facility_id) as hlab_num,
       loc.order_draw_dt as draw_dt,
       c.corporation_name as corporation_name,
       c.corporation_acronym as acronym,
       loc.patient_id,
       loct.test_id
  from lab_order_occ loc,
       lab_order_occ_test loct,
       facility f,
       corporation c,
       order_requisition_header ord
where loc.lab_order_occ_id = loct.lab_order_occ_id
   and loc.facility_id = f.facility_id
   and f.corporation_id = c.corporation_id
   and ord.patient_id = loc.patient_id
   and ord.facility_id = loc.facility_id
   and ord.draw_dt = loc.order_draw_dt
   and loc.order_draw_dt between sysdate - 65 and sysdate
   and loc.status = 'A'
   and loc.msg_sent_to_lab_yn = 'Y'
   and loct.test_id in (
                   select test_id
                     from test_required
                    where required_test_code in (
                                                 select test_code
                                                   from interface_adt_aoe_master))
   and upper (c.corporation_acronym) in ('CORVA', 'DSI', 'USRC', 'DLYSNEWCO')
   and not exists (
                    select 1 from emr_adtaoe_dtl
                    where patient_id = loc.patient_id
                    and facility_id = loc.facility_id
                    and status = 'Y'
                    ))sub
ORDER BY
        sub.draw_dt,
--         sl_no,
         sub.corporation_name,
         sub.facility_name,
         SUB.PATIENT_NAME
         desc;
Result
SL_NO
PATIENT_NAME
EXTERNAL_ID
MODALITY
ACCOUNT_NUMBER
HLAB_NUM
SPECTRA_MRN
DRAW_DT
REQUISITION_NUMBER
FACILITY_NAME
FACILITY_ID
CORPORATION_NAME
ACRONYM
PATIENT_ID
TEST_ID
ENTITY_COUNT
9
New, Pat
123456
HEMO
72910
A102805
366999
29-DEC-13
9KT005A
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6181
5558
16
2
New, Pat
123457
HEMO
72910
A102805
366999
29-DEC-13
9KT0057
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6181
5558
16
7
New, Pat
123458
HEMO
72910
A102805
366999
29-DEC-13
9KT0059
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6181
5558
16
16
Erere, Gggg
123459
HEMO
72910
A102805
622200
29-DEC-13
9KT0058
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
622
5558
16
10
Erere, Gggg
123460
HEMO
72910
A102805
622200
29-DEC-13
9KT0056
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
622
5558
16
1
Test, Pat
123461
HEMO
72910
A102805
367021
30-DEC-13
9KT0065
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6203
5558
16
14
Test, Pat
123462
HEMO
72910
A102805
367021
30-DEC-13
9KT0064
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6203
5558
16
4
New, Pat
123463
HEMO
72910
A102805
366999
30-DEC-13
9KT005W
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6181
5558
16
3
New, Pat
123464
HEMO
72910
A102805
366999
30-DEC-13
9KT005X
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6181
5558
16
8
New, Pat
123465
HEMO
72910
A102805
366999
30-DEC-13
9KT005V
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6181
5558
16
13
Test, Pat
123466
HEMO
72910
A102805
367021
01-JAN-14
9KT006J
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6203
5558
16
5
Test, Pat
123467
HEMO
72910
A102805
367021
01-JAN-14
9KT006G
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6203
5558
16
6
Test, Pat
123468
HEMO
72910
A102805
367021
01-JAN-14
9KT006H
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6203
5558
16
11
Test, Pat
123469
HEMO
72910
A102805
367021
05-JAN-14
9KT0077
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6203
5558
16
15
Test, Pat
123470
HEMO
72910
A102805
367021
05-JAN-14
9KT0076
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6203
5558
16
12
New, Pat
123471
HEMO
72910
A102805
366999
06-JAN-14
9KT0075
DCI Freehold
90
DIALYSIS CLINIC, INC.
DLYSNEWCO
6181
5558
16
See the date value for draw_dt column. It's always in asc order. How can I display this result set with draw_dt desc order? Please suggest something.

ORDER BY  
        sub.draw_dt desc, 
--         sl_no, 
         sub.corporation_name, 
         sub.facility_name, 
         SUB.PATIENT_NAME 
         desc;

Similar Messages

  • How to Display  'purchase order text' in MM03 using report program

    Hi Friends,
    Can anybody suggest me how to display 'purchase order text' in MM03 using report program.
    'Purchase order text' tab displays purchase long text of particular material .
    I coded as:
          SET PARAMETER ID 'MXX' FIELD 'E'.
          SET PARAMETER ID 'MAT' FIELD k_final-matnr.
          SET PARAMETER ID 'WRK' FIELD k_final-werks.
          CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
    It displays Purchasing tab other than Purchase Order Text tab of MM03.
    Please suggest me how can i solve this.
    Is there any parameter id to set values for Purchase Order text tab

    >
    Madhu Mano Chitra wrote:
    > I want how to navigate to MM03 'Purchase Order text'  tab/ view using ABAP code.
    > could any suggest me
    You can call a transaction and pass it a BDC table that tells it where you want it to go.  You have to work out for yourself what to put into the BDC table.  The code below works for tcode CATSSHOW.
    DATA: bdcdata_wa  TYPE bdcdata,
          bdcdata_tab TYPE TABLE OF bdcdata.
    DATA opt TYPE ctu_params.
       CLEAR bdcdata_wa.
        bdcdata_wa-program  = 'CATSSHOW'.
        bdcdata_wa-dynpro   = '1000'.
        bdcdata_wa-dynbegin = 'X'.
        APPEND bdcdata_wa TO bdcdata_tab.
        CLEAR bdcdata_wa.
        bdcdata_wa-fnam = 'SO_STATU-LOW'.
        bdcdata_wa-fval = '20'.
        APPEND bdcdata_wa TO bdcdata_tab.
        CLEAR bdcdata_wa.
        bdcdata_wa-fnam = 'ANDZEIT'.
        bdcdata_wa-fval = SPACE.
        APPEND bdcdata_wa TO bdcdata_tab.
        CLEAR bdcdata_wa.
        bdcdata_wa-fnam = 'PAST'.
        bdcdata_wa-fval = 'X'.
        APPEND bdcdata_wa TO bdcdata_tab.
        IF p_selscr = SPACE.
           CLEAR bdcdata_wa.
           bdcdata_wa-fnam = 'BDC_OKCODE'.
           bdcdata_wa-fval = '=ONLI'.
           APPEND bdcdata_wa TO bdcdata_tab.
        ENDIF.
        opt-dismode = 'E'.
        opt-defsize = 'X'.
    CALL TRANSACTION 'CAPP' USING bdcdata_tab OPTIONS FROM opt.

  • How to display result of database query in JFrame?

    How to display result of oracle database query in JFrame?
    This is part of my code:
    String username, password;
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              OracleConnection conn = DriverManager.getConnection(String url, String username, String password);
    Statement s= conn.createStatement();
    ResultSet q= s.executeQuery("SELECT A, B, C FROM TABLE X");
    Forget what url, username & password are. Is there any problem with my code?
    What should be next if I want to display result of the query in a table in JFrame?Thx !

    How to create JTable with unknown no. of rows? How to get no. of rows of a query?
    I saw the demo of creating JTable on java.sun.com but the the table has a certain no. of rows which is not applicable to my case.
    Suppose the result of query is a table with 3 attributes so there are 3 columns in the table.
    R contains the result of the query.
    Should it be something like this if I want to create JTable of the query?
    How to make n rows of {R.getString(1),R.getString(2),R.getString(3)};?
    public SimpleTableDemo() {
    super(new GridLayout(1,0));
    String[] columnNames = {"A",
    "B",
    "C",
    while (R.next())
    // content of a row
    Object[][] data = {R.getString(1),R.getString(2),R.getString(3)};
    I can't run it because I still can't debug my code which is said before.
    Thx!

  • Reg: how to display internal order

    HI ,
    How to display internal orders.
    regards
    JK Rao

    Hi,
    You can use KO02/ KO03 to view internal orders.
    Rgds.

  • How do I get items from itunes U to display in order by date rather than in alphabetical order?

    The podcasts I listen are automatically organized chronologically. I downloaded something from itunes U and it is organized by date in itunes but alphabetically on my ipod so I have no idea which one actually comes first. I'd appreciate some help in knowing how to put them in order by date. Thanks.

    Hi Richard,
    Based on my experience, I don't think drill-down links can be included in alerts/messages.
    Thanks,
    Gordon

  • How to display document last modfied date time in core result web part?

    Hi,
    We have a requirment in the sharepoint application where we need to display last modified date&time of document in core result web part.
    To support this we have specify the property <Column Name="Write"/> in custom XSL.
    But it displays only the modified date.Is there is way to display modified date and time as well?
    D.Ganesh

    If you want to modify the
    XML can do i tin the
    template "DisplayTemplate":
    An example:
    Replace
    <xsl:value-of select="write" />
    by
    <xsl:value-of select="ddwrt:FormatDate($write, 1033, 2)"/>
    But I think the managed property"Write"
    is returned only as
    Date without
    Time. By
    this time will
    always 00:00.
    To see the resulting XML
    can replace
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
    <xmp><xsl:copy-of select="*"/></xmp>
    </xsl:template>
    </xsl:stylesheet>
    Where you see the format
    of "write"
    http://msdn.microsoft.com/en-us/library/ms546985(v=office.14).aspx
    Miguel de Hortaleza

  • Order by date desc in oracle 10g

    hil all.
    i want to order the query by date desc but i want to retrieve only top 20 records according to date means latest how can i get,
    Thanks,

    Toon Koppelaars wrote:
    But of course you can use analytics too, which other posters will show you.Why not ;-)
    Depending on what OP want (Note that these does not return the same thing)
    SQL> select empno, ename, hiredate, rnk
      from (select emp.*, row_number() over (order by hiredate desc) rnk from emp)
    where rnk <= 5
         EMPNO ENAME      HIREDATE        RNK
          7698 BLAKE                        1
          7876 ADAMS      83-01-12          2
          7788 SCOTT      82-12-09          3
          7934 MILLER     82-01-23          4
          7900 JAMES      81-12-03          5
    5 rows selected.
    SQL> select empno, ename, hiredate, rnk
      from (select emp.*, dense_rank() over (order by hiredate desc) rnk from emp)
    where rnk <= 5
         EMPNO ENAME      HIREDATE        RNK
          7698 BLAKE                        1
          7876 ADAMS      83-01-12          2
          7788 SCOTT      82-12-09          3
          7934 MILLER     82-01-23          4
          7900 JAMES      81-12-03          5
          7902 FORD       81-12-03          5
    6 rows selected.Regards
    Peter

  • How to display maximum (most recent) date value in a query

    hello,
    I have the following query:
    StudentNumber | ExternalOrganization | Date |         | NumbeOfAdmissions
    0112                  050                            06/27/2007   1
    0234                  060                            07/15/2008   1
    1356                  025                            01/08/2008   1
    My dilemma is how to display only the row that has the most recent Date, e.g. here I want to only see the row with student number 0234 and date 07/15/2008; everything else should be hidden.
    I know it should be very simple....yes/no?
    thanks

    Hi
    even I am facing the same problem..
    Can you please tell me what did you do to get most recent record..
    Even I have made my date field as KF.. n have put condition on it.. but not getting desired result.. may be I am missing something.. somewhere..
    I resolved it.. thanks
    Regards
    Swati
    Edited by: Swati on Feb 17, 2009 7:49 AM

  • How to display results set of multiple reports into a single report table

    Our goal is to create a single report (or dashboard) that shows the "funnel" of object creations related to each campaign. The flow goes from Activity to Lead to Opportunity as well as multiple steps within each (ie. Unqualified Lead -> Qualified Lead, etc).
    We currently have 3 separate reports in three different subject areas, each reporting the different metrics and we would like to combine the output into a single Unified report.
    For example what we currently have is:
    Activities:
    Campaign Name # of Activities
    Campaign A 12
    Campaign B 26
    Leads:
    Campaign Name # of Leads # of Qualified Leads
    Campaign A 10 4
    Campaign B 20 18
    Opportunities:
    Campaign Name # of Opportunities # of Opps per Sales Stage ... # of Wins Closed Revenue
    Campaign A 3 2 1 $1,000.00
    Campaign B 10 8 3 $2,800.00
    What we want to see is:
    Combined:
    Campaign Name - Campaign Cost - # of Activities - # of Leads - # of Qualified Leads - # of Opportunities - # of Opps per Sales Stage - # of Wins - Closed Revenue
    Campaign A - $423.00 - 12 - 10 - 4 - 3 - 2 - 1 - $1,000.00
    Campaign B - $ 1,000.00 - 26 - 20 - 18 - 10 - 8 - 3 - $2,800.00
    We have tried using the "Combine with similar analysis" but the number of columns for each subject area differ. We also tried creating multiple UNION criteria (one for each column), but in the case of # of Opps per Sales Stage and Closed Revenue, those are not "Metrics" fields, so they won't combine.

    Hi, You may have to create some dummy fields to equate the no. of field in each of the report matching the data type too and get a one single report using combined analytics and then using the resultant data you can create a simple pivot like below. Haven't tried it before
    -- Venky CRMIT
    Hi Venky,
    I am facing the same problem. Can you please say Steps how to create resultant data and Combine in pivot Table .
    Please Help me .
    Thanks in Advance .
    My mail id is :
    [email protected]

  • How to display metadata such as data load date in answers report title?

    We have a requirement to display the last load date of the data relevant to the report the user is viewing. We have such information stored in a metadata table listed by the fact table the report is referencing. Our proposed solution is to create new answers reports off of this metadata table and put each report (with the appropriate filter on the fact table) on each dashboard section where the corresponding report is placed. One problem with this approach is the load date information will not be reflected in the print form of the report as the date is dashboard content - not report content. Is there any way to overcome this situation (other than create a ton of variables specifically created for this purpose)? I'm open to entertaining javascript ideas, if necessary. I would love to know how to push this OBIEE envelope further. Thanks in advance.

    Hi,
    I discuss with some people who are familiar with SharePoint, we both thought Windows Explorer may
    not accept the custom metadata.
    if we want to do some customization, it is recommended to ask for help in development forum.
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowsdesktopdev
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • How to display success message when data is changed in the custom tab in MM

    Hi,
    I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
    But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
    Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
    Thanks in advance,
    sudhanva

    Hi Sudhanva,
    The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
    But the message issued by SAP is not related to this Function Exit.
    If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will  not issue the message.
    In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
    I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
    Hope this helps.
    Regards,
    Abhisek.

  • How to preserve result order as specified in 'IN'

    Hi,
    Is there any option to preserve result order as specified in 'IN'. For
    example if I run the following query:
    SELECT * FROM MYTAB WHERE ID IN (4, 1, 2, 3)
    I want the first result have ID = 4, second ID = 1, third ID = 2, and
    fourth ID = 3.
    Even if there is an Oracle hint, it would be very useful.
    Thanks,
    Mohsen.

    There are a number of ways to achieve this.
    e.g.
    SELECT * FROM MYTAB WHERE ID IN (4, 1, 2, 3)
    order by decode(ID, 4,1,1,2,2,3,3,4)
    Of course this could get a tad teadious if your list becomes quite large, there are other ways of resolving this issue such as having user defined columns that hold data you want and us this in your order by e.g.
    SELECT decode(ID,4,1,2) myVal,
    m.*
    FROM MYTAB m
    WHERE m.ID IN (4, 1, 2, 3)
    order by myVal,m.ID
    You could also use analytics to affect your order by.
    Cheers
    Q

  • How to make Sales Order Delivery Date show 30days after Posting Date

    I have problem programming the SBO 2005A- Sales Order Delivery Date automatically add 30 days based on Posting Date, in VB.Net.
    Has someone tried it before ?

    Sorry i did not describe clearly.
    I was developing vb.net with SAPBuiCom (UI API).
    When Sales Order screen and the Delivery Date was empty. In my program i need to auto insert the Delivery Date field with 30days after the Posting Date.
    And when user change the posting date, the delivery date will auto refresh.
    KC

  • How to display results of a report based on current year

    Hi,
    Please advice me for the following requirement.
    I have a report which is having sales results, which is having year column also. Report has to be displayed based on the current year. Now it is 2013. I should show current year results only i.e 2013.
    In 2014, i should show only 2014 results. How to achieve this at a report level.
    regards
    CK.

    Hi CK,
    You are having Data for 2014 also. If not means, you can use sql query select max(year) from period.
    So it will show the final maximum end of the year(2013) from database.
    You can use dashboard prompts too. in the prompt also you can have specific year or sql query
    http://mkashu.blogspot.com
    Regards,
    VG

  • How to display our own selected data in a search help using a exit

    Hello,
    I had created a Search Help Exit to restrict the values to be displayed in the search help. This code was written under the event 'DISP' in the exit. But it is not giving the desired result. So I want to replace the RECORD_TAB of the exit with my own selected data. For this I had written code for selection under the event 'SELECT'. But when I try to overwrite RECORD_TAB with this, this create errors.
    What should I do to overwrite the values of the RECORD_TAB field with my own values?
    Regards,
    Abijith

    Hi,
    This is how we implemented the code modify the values in search help exit.
    Check if display process button is pressed
      IF callcontrol-step = 'DISP'.
    Read the parameter ID for company code.
        GET PARAMETER ID 'BUK' FIELD lv_bukrs.
        IF sy-subrc EQ 0.
          lwa_bukrs-sign   = 'I'.
          lwa_bukrs-option = 'EQ'.
          lwa_bukrs-low    = lv_bukrs.
          APPEND lwa_bukrs TO lr_bukrs.
        ENDIF.
      Check if any entry is made in Test account/Testity account name
        LOOP AT shlp-selopt INTO lwa_selopt.
          CASE lwa_selopt-shlpfield.
            WHEN  'ZZTEST'.
              lwa_roy-sign = lwa_selopt-sign.
              lwa_roy-option = lwa_selopt-option.
              lwa_roy-low = lwa_selopt-low.
              APPEND lwa_roy TO lr_roy.
            WHEN 'ZZTEST_NAME'.
              lwa_roy_name-sign = lwa_selopt-sign.
              lwa_roy_name-option = lwa_selopt-option.
              lwa_roy_name-low = lwa_selopt-low.
              APPEND lwa_roy_name TO lr_roy_name.
          ENDCASE.
        ENDLOOP.
      Get customer in entered for a company code
        SELECT kunnr
               bukrs
          FROM knb1
          INTO TABLE lt_knb1
          WHERE kunnr IN lr_roy
            AND bukrs IN lr_bukrs.
        IF sy-subrc EQ 0.
          SORT lt_knb1 BY kunnr.
        Get customer name for  the customer.
          SELECT kunnr
                 name1
            FROM kna1
            INTO TABLE lt_kna1
            FOR ALL ENTRIES IN lt_knb1
            WHERE kunnr EQ lt_knb1-kunnr
              AND mcod1   IN  lr_roy_name.
          IF sy-subrc EQ 0.
            SORT lt_kna1 BY kunnr.
          ENDIF.
        ENDIF.
      Get Values for Testty account selected by standard search help
        CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
          EXPORTING
            parameter   = 'Ztest'
            fieldname   = 'Ztest'                                    " Reference to search help parameter
          TABLES
            shlp_tab    = shlp_tab                                    " Reference to field of Seatinfo
            record_tab  = record_tab
            results_tab = lt_test_help
          CHANGING
            shlp        = shlp
            callcontrol = callcontrol.
      Get Values for Testty account Name selected by standard search help
        CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
          EXPORTING
            parameter   = 'Ztest1'
            fieldname   = 'Ztest1'                                    " Reference to search help parameter
          TABLES
            shlp_tab    = shlp_tab                                    " Reference to field of Seatinfo
            record_tab  = record_tab
            results_tab = lt_roy_help
          CHANGING
            shlp        = shlp
            callcontrol = callcontrol.
        LOOP AT lt_knb1 INTO lwa_knb1.
          CLEAR lwa_kna1.
          READ TABLE lt_kna1
                INTO lwa_kna1
                WITH KEY kunnr = lwa_knb1-kunnr
                BINARY SEARCH.
          IF sy-subrc EQ 0.
            CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
              EXPORTING
                input  = lwa_kna1-kunnr
              IMPORTING
                output = lv_kunnr.
            lwa_roy_help-ztest1 = lv_kunnr.
            lwa_roy_help-ztest = lwa_kna1-name1.
            APPEND lwa_roy_help TO lt_roy_help .
          ENDIF.
        ENDLOOP.
        SORT lt_ztest_help.
        DELETE ADJACENT DUPLICATES FROM lt_roy_help COMPARING ZTEST1.
    Finally transport the computed numbers into the search help data.
        CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
          EXPORTING
            parameter   = 'ZTEST1'
            fieldname   = 'ZTEST1'" Reference to search help parameter
          TABLES
            shlp_tab    = shlp_tab                                    " Reference to field of Seatinfo
            record_tab  = record_tab
            source_tab  = lt_roy_help
          CHANGING
            shlp        = shlp
            callcontrol = callcontrol.
    Finally transport the computed numbers into the search help data.
        CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
          EXPORTING
            parameter   = 'ZTEST''
            fieldname   = 'ZTEST''                                  " Reference to search help parameter
          TABLES
            shlp_tab    = shlp_tab                                    " Reference to field of Seatinfo
            record_tab  = record_tab
            source_tab  = lt_roy_help
          CHANGING
            shlp        = shlp
            callcontrol = callcontrol.
      ENDIF.
    Nabheet

Maybe you are looking for

  • *.cr2 won't open in Elements 10

    I have just downloaded Elements 10, and to my disappointment, the .cr2-files from my Canon 60d won't open in Elements. I have installed Camera Raw 6.5.0.216 and that did not help ... Can anyone assist?:-)

  • Why must this method invocation be caught?!

    Hi there. I have this following piece of code: public class Dog extends Animal {      public static void main(String[] args) {           Animal animal = new Dog();           System.out.println(animal.getAge(args[0]));      int getAge(String arg) {   

  • BAPI - GR Against Outbound delivery in STO Process

    Hi, For RF transactions i need to do GR Against Outbound delivery in STO Process, For that I need BAPI .  Is the BAPI is 'BAPI_GOODSMVT_CREATE'. or something different. Regards, Jothiswaran.

  • OneDrive Pro Group Policy & Centralised Configuration Options

    Hi there, I would like to guidance as to the available options for controlling and configuring the Office 365 Pro Plus 'OneDrive Pro' application within Group Policy?  What is the most streamlined way of centrally configuring the desktop application

  • Disable Popup confirmation on station globals modified externally

    Hi, Is there any way to Disable the Popup confirmation Message saying the staiton globals are modified externally from TestStand? Regards, Ramjee V