Sort in tabcontrol

Hey
i want more information about tablecontrol.
In tablecontrol at screen.
1.want to display tablecontrol retriving value from table zmw0001.
  i dont know how to do this.
2- how to do sort option in tablecontrol.
3-if select particular row from tabctrl and click the appl toolbar push button,
  Record in tabcontrol has to be updated.
could you pls give me idea to do this.
if you reference material to do pls refer me.
ambichan.

i have create tabcontrol using wizard
and it creates like this automatically.
TYPES: BEGIN OF T_ZTABCTRLOBJ,
         TRKORRNUM LIKE ZMW0001-TRKORRNUM,
         CLIENT LIKE ZMW0001-CLIENT,
         IMPORTDAY LIKE ZMW0001-IMPORTDAY,
         CONVERTFILENAME LIKE ZMW0001-CONVERTFILENAME,
         TRANSNO LIKE ZMW0001-TRANSNO,
         EXETIMING LIKE ZMW0001-EXETIMING,
         PRETRKORRNUM LIKE ZMW0001-PRETRKORRNUM,
         IMPRETURNCODE LIKE ZMW0001-IMPRETURNCODE,
         STATUS LIKE ZMW0001-STATUS,
         HOLD LIKE ZMW0001-HOLD,
         MEMO LIKE ZMW0001-MEMO,
         JOBNAME LIKE ZMW0001-JOBNAME,
         JOBCOUNT LIKE ZMW0001-JOBCOUNT,
         UDATE LIKE ZMW0001-UDATE,
         UTIME LIKE ZMW0001-UTIME,
         FLAG,
       END OF T_ZTABCTRLOBJ.
INTERNAL TABLE FOR TABLECONTROL 'ZTABCTRLOBJ'
DATA: G_ZTABCTRLOBJ_ITAB   TYPE T_ZTABCTRLOBJ OCCURS 0,
          G_ZTABCTRLOBJ_WA  TYPE T_ZTABCTRLOBJ,
          G_ZTABCTRLOBJ_COPIED.
DECLARATION OF TABLECONTROL 'ZTABCTRLOBJ' ITSELF
CONTROLS: ZTABCTRLOBJ TYPE TABLEVIEW USING SCREEN 0300.
LINES OF TABLECONTROL 'ZTABCTRLOBJ'
DATA: G_ZTABCTRLOBJ_LINES  LIKE SY-LOOPC.
DATA: TABIX LIKE ZTABCTRLOBJ-CURRENT_LINE.
DATA WA TYPE CXTAB_COLUMN.
AT PAI
WHEN 'SORT'.
DATA: FLDNAME(100),HELP(100).
READ TABLE G_ZTABCTRLOBJ_ITAB-COLS INTO WA WITH KEY SELECTED = 'X'.
    SPLIT COL-SCREEN-NAME AT '-' INTO HELP FLDNAME.
      SORT G_ZTABCTRLOBJ_ITAB BY (FLDNAME).  (i matched ur code with my code
but i am not sure its correct. it gives error during compilation.)
IT SAYS "G_ZTABCTRLOBJ_ITAB IS A TABLE WITHOUT A HEADERLINE AND THEREFORE HAS
NO COMPONENT CALLED 'COLS'"
ambichan.

Similar Messages

  • Comment créer une dll sous labview avec plusieurs fonctions venant du même VI et possédant un tabcontrol ?

    Comment créer une dll sous labview avec plusieurs fonctions venant du même VI et possédant un tabcontrol ?

    Bonjour,
    L’utilisation d’une « commande d’onglet », ou « tabcontrol », ne pose pas de problème pour la définition d’une DLL à partir d’un VI.
    Selon la version de LabVIEW que vous utilisez, le processus de création de DLL sera différent.
    Si vous utilisez une version antérieure à la v8, vous pouvez vous reporter à ce lien : Construire une DLL avec LabVIEW 7.0.
    Sinon, vous devez enregistrer votre VI dans un projet, puis définir le connecteur de votre VI avec les paramètres d’entrées/sorties (cette opération est indépendante des différentes « commandes d’onglet » que vous avez pu implémenter).
    Sélectionnez, dans le projet les « spécifications de construction » dans le projet (via un click droit), pour créer une DLL. Dans la boite de dialogue qui s’ouvre alors, à l’onglet « fichiers source », vous pouvez ajouter votre VI parmi les « VIs exportés » et configurer, en fonction des E/S câblées sur le connecteur de votre VI, les fonctions contenues dans la DLL.
    J’espère que ces quelques éléments auront pu vous éclairer.
    Cordialement,
    Guillaume H.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> NIDays 2011, le mardi 8 février au CNIT de Paris La Défense

  • In Photoshop Express, cannot sort images in album by filename in thumbnail view (for slideshow)l.

    In Photoshop Express, I want images to appear sorted by filename.  In the "view as a table" it sorts fine.  When I revert to the thumbnail view, the arrangement is random.  The dropdown "show" list does not offer an option for showing by filename.  If I select the"custom" option, it means I would need to sort 300 images by filename MANUALLY (!!!), a job that a computer does in milliseconds.  Anyone with a solution?  Thanks.

    fwiw, with my images in the 'Folder Location' view the photos are in order by their Windows filename. That is the same order as the hardcopy album the photos came from. So I then created a PSE Album. I selected all my photos and moved them into that album. The order of the pictures was retained in the Album. That worked out great. I wanted my PSE images to be in the same order. I thought I would do it with tags. But creating an album seems to work just fine.

  • Unable to capture the adf table column sort icons using open script tool

    Hi All,
    I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
    1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
    2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • How to sort out different issues on Satellite A505-S6973

    Can anyone tell me, if the warranty period on my laptop has not passed, can i return my laptop to toshiba and have all my issues sorted out. Would there be a cost to do whatever repairs software related needs be done and how i am supposed to go about it because my laptop is beginning to have all sorts of little errors, i noticed that my harddrive has 156gb used although i have about 60 gigs in use.
    A couple multimedia buttons aren't working but i touch them, my touchpad doesn't turn off with the hard button unless i turn it off using the FN key and my processor runs low but when i use a program i see it's reaching between 85 to 100% utilization.
    I really like this laptop, but the issues i'm having i highly doubt it should operate this way.

    Hi mate
    Software issues are not covered by warranty!
    This means that you will have to pay for everything if the ASP technician would not find any problems!
    This is why you should recover the notebook in order to check if its only a software related issue.
    >A couple multimedia buttons aren't working but i touch them, my touchpad doesn't turn off with the hard button unless i turn it off using the FN key
    Reinstall the VAP (value added package) and flash cards utility
    >my processor runs low but when i use a program i see it's reaching between 85 to 100% utilization.
    This is not a bug or hardware problem. You will notice this CPU behavior because the CPU supports an feature which helps to save the power and reduce the heat dissipation

  • Issue With Page Break When Sorting is also applied on group

    Hi
    I am facing an issue with Page break only when I have sorting applied on the grouping that I have in the template.
    The following is the sample XML
    <ROWSET>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Accounts</ORGANIZATION>
    <FULL_NAME>test1,</FULL_NAME>
    <ELEMENT_NAME>TEST BONUS</ELEMENT_NAME>
    <CLASSIFICATION>Supplemental Earnings</CLASSIFICATION>
    <RUN_VALUE>250</RUN_VALUE>
    <MONTH_VALUE>500</MONTH_VALUE>
    <QUARTER_VALUE>500</QUARTER_VALUE>
    <YEAR_VALUE>500</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test2</FULL_NAME>
    <ELEMENT_NAME>VOLUNTARY AD AND D</ELEMENT_NAME>
    <CLASSIFICATION>Voluntary Deductions</CLASSIFICATION>
    <RUN_VALUE>5.19</RUN_VALUE>
    <MONTH_VALUE>10.38</MONTH_VALUE>
    <QUARTER_VALUE>10.38</QUARTER_VALUE>
    <YEAR_VALUE>10.38</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test3</FULL_NAME>
    <ELEMENT_NAME>HMO MEDICAL</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>19.67</RUN_VALUE>
    <MONTH_VALUE>39.34</MONTH_VALUE>
    <QUARTER_VALUE>39.34</QUARTER_VALUE>
    <YEAR_VALUE>39.34</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test4</FULL_NAME>
    <ELEMENT_NAME>PENSION NR DC</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>0</RUN_VALUE>
    <MONTH_VALUE>360</MONTH_VALUE>
    <QUARTER_VALUE>360</QUARTER_VALUE>
    <YEAR_VALUE>360</YEAR_VALUE>
    </ROW>
    </ROWSET>
    In the template I group the data based on CLASSIFICATION and then sort on the same column CLASSIFICATION. I have a page-break applied for every group.
    When I generate the PDF, I am not getting the page-breaks for every group. Instead some of them are displayed in the same page.
    But when I remove the sorting that I had in the template on the column CLASSIFICATION, I am getting the output in the desired way but not in a sorted order.
    kumar

    Hi All,
    I am using MS-WORD 2007 and BI Publisher desktop 10.1.3.3.3.
    When I use split-by-page-break, splitting is performed for every line .. but not for group of lines.
    Can anybody throw some light on this?
    FYI...
    I am using this code:
    ?if: position() mod 6= 0?
    ?split-by-page-break:?
    ?end if?
    (Of course with in tags)
    in G_LINES loop.
    Can anybody help me out :-(
    --Saritha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ALV .  How to remove the sort buttons on toolbar in ALV report?

    Hi,experts
      As you know, in default case , the alv report will display two sort buttons(ascending ,descending) on its toolbar , So How to remove the sort buttons on toolbar in ALV report?
      Thanks for your help .

    Hi guixin,
    1. Before calling REUSE_ALV_LIST_DISPLAY
    2. Write this code :
    data : excl type SLIS_T_EXTAB.
    data : exclwa type SLIS_EXTAB.
    exclwa = '&OUP'.
    append exclwa to excl.
    exclwa = '&ODN'.
    append exclwa to excl.
    3. Then while calling the FM,
       pass this parameter also .
    IT_EXCLUDING     = excl
    It will work fantastic.
    regards,
    amit m.

  • Field should not display in the subtotal row in ALV report after sorting .

    we have a requirement, after sorting and subtotaling, the output in ALV is -
    vbeln        amount1  amount2  amount3
    123           11              12            13
    123           12             13             14
    123           23             25             27 
    133           11              12            13
    133           12             13             14
    133           23             25             27
    Now the customer wants the ALV outpput in this fashion -
    123           11              12            13
    123           12             13             14
                     23             25             27    --->123 (vbeln) should not come in subtotaling row
    133           11              12            13
    133           12             13             14
                      23             25             27--->133(vbeln) should not come in subtotaling row

    Hi,
    if it helps you could create a hierachy. In this way you can define the field catalog for the lines and for the subtotal columns. The only thing is that you would always show the subtotal rows.
    You have references of hierachy alvs in
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f
    ALV Hierarchy
    alv hierarchy
    In this case it also sorts
    Sorting for ALV hierarchy
    I hope it helps.
    Edited by: Oscar Pecharroman on Aug 2, 2010 1:13 PM

  • Sorting not working correctly for date field in alv report

    Hi All,
    My report displays many rows also containing date type fields of bldat,budat .
    When I sort the report selecting field of type bldat budat the sorting is not correct for the year.
    Ex:
    Invoice doc dat
    01-25-2011
    01-21-2011
    02-02-2011
    10-25-2010
    11-20-2010
    If I use ascending then it is sorted as :
    Invoice doc dat
    01-21-2011
    01-25-2011
    02-02-2011
    10-20-2010
    10-25-2010
    Why the sorting is not working correct for year.(2010 records should have been first).
    The field wa_tab-bldat is of type char10.
    It is populated as wa_tab-bldat = bsak-bldat.
    Kindly suggest what can be done.

    The field wa_tab-bldat is of type char10
    Then what it does is correct.
    Refer to type datum...it will work

  • Sort field in ALV report

    Hi Expert,
    IN  ALV report using RESUE_ALV_GRID_DISPLAY . I want to sort the second field of ALV output . In this function module  RESUE_ALV_GRID_DISPLAY  using event PF_STATUS . so can u tell me how sort the second field .
    Regards
    Bhabani

    Hi,
    check the fallowing code
    IT_SORT TYPE SLIS_T_SORTINFO_ALV,
    WA_SORT TYPE slis_sortinfo_alv,
    ****SORT LABELS AT RUN TIME
      WA_SORT-TABNAME = 'IT_FINAL1'.
      WA_SORT-FIELDNAME = 'BUDAT'.
      WA_SORT-UP = 'X'.
      WA_SORT-GROUP = 'X'.
    WA_SORT-subtot = 'X'.
      APPEND WA_SORT TO IT_SORT.
      CLEAR WA_SORT.
      WA_SORT-TABNAME = 'IT_FINAL1'.
      WA_SORT-FIELDNAME = 'MATNR'.
      WA_SORT-UP = 'X'.
      WA_SORT-GROUP = 'X'.
    WA_SORT-subtot = 'X'.
      APPEND WA_SORT TO IT_SORT.
      CLEAR WA_SORT.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM               = SY-REPID
          I_CALLBACK_TOP_OF_PAGE           = 'TOP_OF_PAGE'
          IS_LAYOUT                        =  LAYOUT
          IT_FIELDCAT                      = IT_FIELDCAT
          IT_SORT                          = IT_SORT
          I_DEFAULT                        = 'X'
          I_SAVE                           = 'U'
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
         TABLES
           T_OUTTAB                        = IT_FINAL1
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Nandan.N

  • Sorting in 6i and 10g reports

    Hello All,
    I am running 6i and 10g reports against a 10g database.
    I ran one of the 6i report and it generated a report in one sorting ordear
    and when i ran the same report on 10g ,it generated the report in ddifferent order.
    Both the reports r run against the same 10g database.
    The order by clause on the columns of the records r identical.
    Now i wanted to understand how it is sorting in different orders in both 6i and 10g reports?
    Thanks,
    Ranz

    Hi,
    Please note the fact that 6i Reports is not certified to work with 10g Database. Hence it becomes impossible to address the sorting behavior of 6i Reports, though there is nothing different in the way it works. I would suggest you to use 10gR2 version of Reports services with 10g Database which is certified and supported. Thanks for your understanding.
    Regards,
    Anand

  • Is there a way of making my iPod's "cover flow" sort in the same way the software can . Artist -- Album by Year . It only seems to do Artist -- by Alphabetical Album . I want it look like it does on the PC .

    Is there a way to make the "cover flow" on the iPod match the sort style that I use on the software . I go with Artist -- Album by Release Year . But the ipod seems to only do Artist -- Alphabetical by Album , and then there are a handful of albums oddly out of place . Can it be done ?

    Ottonomy, here's what to do.
    Connect your iPhone to your computer and open the iPhone's playlist in an iTunes window. Copy/Paste the entire playlist into a new(!) playlist in iTunes, not on your iPhone. Then resort the playlist. After you sort it, Copy/Paste it to a new(!) playlist on your iPhone. Now delete the old playlist on your iPhone and rename the new playlist the name you want it to be (probably the same name as the old playlist).
    The downside to this method is that you have to do it every time you add a song to the playlist. Unfortunately, I don't think there's another way.

  • ICal Print List - Why are to-dos randomly sorted?

    When printing from iCal in the list view, my To-Do List is NEVER sorted the way I sorted it in the main iCal window (whether by Calendar, Priority, or Manually). Instead it's just sorted randomly, which is very unorganized.
    Does anyone know why this is, or what can be done to fix it?

    It sounds like from your description that you're entering a date as a string in the todo description. Ideally you should be entering the date as the due date. This will help the sort order both in iCal and when printing. When you decide to print the To Do List, make sure View is set to List. Only check To Dos. In the time range, select the range you want to see. Anything without a due date will be printed under the heading To Dos without Due Date.

  • Month Sorting at Universe Level

    Hi All,
    We have created a Universe on BEx query to develope an BO Explorer.
    We are having Sorting problem with Fiscal Period values, which is in Character type.
    So need some clarification on below queries..
    Q: Can we change the Fiscal Period datatype from Character to Number?
    I think it will give an error if we change the datatype
    Q: Can we add preceding zeros for 1 to 9 months?
    I used below MDX expression for testing purpose,
    <EXPRESSION>IIF([0FISCPER3].[LEVEL01]="1",1,2)</EXPRESSION>
    But it is always giving me the else part only.
    If I replace the dimension with Measure then the above expression is working fine.
    Q: Can we use Concatination Operator for adding preceeding zeros for periods 1 to 9?
    Q: Can we apply any transformations on Dimenstion fields?
    Environment details:
    BO 4.1 SP3
    UDT 4.1 SP3
    Please advise me.
    --Praveen G

    Hi Ann, it is always helpful to have a dim_time table in your data mart where you have these 2 fields (among others):
    month_number     month_full_name
         1          January
         2         February
    and so on...
    Then you can put something like the following SQL in your derived table called "MONTH"....
    select distinct month_number, month_full_name
    from dim_time
    order by 1
    Create a dimension object, says, "month_lov". Go the Properties tab, click "Edit", then "SQL". In the query panel, put in something like this...
    select month.month_full_name
    from
    (select distinct month_number, month_full_name
    from dim_time
    order by 1) month
    Make sure you check "Do not generate SQL before running", then click "OK" and "Save and Close". Then create a condition object to point to this LOV. You should be able to get the months listed in the real order.
    Hope this helps.
    If you are using the BusinessObjects tool, you should join [ASUG|www.asug.com]

  • I have a mac book pro i got about three months ago i know that it has been compromised with some sort of key loger and there for shur using remote desktop client! ill go in delete a bunch of files thy will repute them back in there and make it so i can re

    im very new to computers but very fast learner and very mechenacal but i cant spell my way out of a wet paper bag! lol i receved this macbook pro runing lion 10.7.5 *** a gift slash i paid for it means the most to me its my babie someone has took it apon themselfs to put a keyloger on it been moving files opening accounts in my name basikly identy theft the did not expect me to catch on this fast when i first got it i dident even now ho to use the  mouse pad but been real fortinat i have to the point i know the operating systems realy good but little things still learning iv overloded this thing twice now and brout it back pluse the last time i shute it down trying to get ride of owes so ever on hear i know it sounds crazy but have figuerd out what apps there useing and can revirbalize it back to some one kinda lol remind you im an idiot on computers lol the changing source cods useing key loger of some sort and remote deskstop conection, and a app to watch and record it on there iphone!last time i had coach reboot it i beged him for the start up disk he works for dell tride to tell him in the begining but dident know unuff to verbilize it to him pluse the terminoligies but i have been consuned buy it need some help to file in dark sposts on knolige and if rebooting my mackbook pro is the way to go got a lot of apps from coach dont want to lose im a poorbaserd thats whuy iv been avioding this at all cost plose i dont know if what i got for start up cd is right i was reading you need i desk please i need a bad *** coputer haker iv done all the simpel stuff some of the hard stuff gotten so close but olmst screwd up funkshons "systems preferences plans and framwork plains trying to get rid of this probelem no im not loosing it thats why i need some one who knows what there doing and is up for a challinge sorry about the spelling its bad i know but im only kinda dump lol pretty smart actully whent from be a compleat dump *** on computers to being abel to show some of my would be computer savey friends some tricks and how to do things, really still dump when it comes to windows but its kinda like appel,got lots of quistins like how afer all i done and coach even reboot ti for me (not useing cd but hard drives to reboot so id have apps that cost lot of money on it but cought him right in the middel of moving and i ended up getting lion 10.7.5 insed of having mountin lion 10.8.5  yes it was a big deference too miss mountin lion so much pretty bumed out that this person has done this to me kinda know who it is but cant prove it plese help ill do whatever....

    Hi
    Level 2 posters and Above can report various posts.
    When they do so they have various options that they can attribute as the issue.
    I have reported your post.
    I found the one block of text very difficult to read.
    9:36 PM      Monday; January 28, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

Maybe you are looking for

  • Printing From iBook To Printer on Vista Desktop, Cant see shared printers

    Printing From iBook To Printer on Windows Vista Desktop, Can't see shared printer on a Vista machine from a Mac, although Windows notebooks find it immediately. I have previously always had success sharing printers on Windows XP machines with my iBoo

  • Print Negative

    I have a pdf file of a logo. I need to print a negative. Under Print Menu the mode is composite, and image is positive. It will not allow me to change these settings. I tried to invert colors but it will not allow me to either. It allows me to print

  • Windows 7 Enterprise new bug

    I Found a bug. my machine is 4 GB and 150gb HDD. but after i install WIN 7 its started showing 400gB RAM and 1500tb HDD puneeth 9900909697 [email protected]

  • How to fix iphoto library?

    I just discovered that my library is missing all photos since approximately October 15th. When I add photos to the library, they show up in "last import" but they are not in any of the other views, e.g. "Last 12 Months". I've searched other Help thre

  • I need your help.

    I bought a Mac Pro in September, 2014. I had problems of re-starting the computer after sleep mode. I find three wired things. 1) After the computer was asleep for a while, I opened the lid and it took long time to show me the log-in window. 2) When