How can i change sequence of structrure when i display in alv grid.

Hi,
I am doing object oriented alv. Now i need to change my sequence of alv grid. How can i change sequence of structrure when i display in alv grid. Send me code if possible....
IF G_CONTAINER IS INITIAL.
     CREATE OBJECT G_CONTAINER
         EXPORTING
            CONTAINER_NAME = 'CONTAINER'.
     CREATE OBJECT ALV_DISP
         EXPORTING
            I_PARENT = G_CONTAINER.
     CALL METHOD ALV_DISP->SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING
           I_STRUCTURE_NAME  = 'ZPMS_OUTPUT_V3'
          CHANGING
            IT_OUTTAB        = IT_PMT
            IT_FIELDCATALOG  = G_FLDCAT
          EXCEPTIONS
            INVALID_PARAMETER_COMBINATION = 1
            PROGRAM_ERROR                 = 2
            TOO_MANY_LINES                = 3
            OTHERS                        = 4.
     IF SY-SUBRC <> 0.
     ENDIF.
Regards,
Gurprit Bhatia
Message was edited by:
        GURPRIT BHATIA

Hi Gurprit,
when you are maintaining the field catalog you can maintain the order by populating the value as 1,2,... into col_pos filed.
<b><REMOVED BY MODERATOR></b>
Satish
Message was edited by:
        Alvaro Tejada Galindo

Similar Messages

  • How can I change the install location when installing an App (i.e. Lightroom) from Creative Cloud?

    How can I change the install location when installing an App (i.e. Lightroom) from Creative Cloud?

    Rolfjuelg I am sorry but Lightroom does not support custom installation locations through the Creative Cloud.  You can find more details at Lightroom and Creative Cloud FAQ.

  • How can I change my security questions when I don't remember the answers?  I've been locked out now!

    How can I change my security questions when I don't remember the original ones?  I've now been locked out!

    Reset Security Questions
    Frequently asked questions about Apple ID
    Manage My Apple ID
    If all else fails:
    Go to: Apple Express Lane;
    Under Product Categories choose iTunes;
    Then choose iTunes Store;
    Then choose Account Management;
    Press Continue;
    Now choose iTunes Store Security and answer the bullet questions, then click Continue;
    Sign in with your Apple ID and press Continue;
    Under Contact Options fill out the information and advise iTunes that you would like your security/challenge questions reset;
    Click Send.
    You should get a response within 24 hours by email.

  • How can I change my security questions when I don't know them

    How can I change my security questions when I don't know them at all

    Reset Security Questions
    http://support.apple.com/kb/HT5312
    If you can't solve problem, call Apple to help reset your Security Question.
    http://support.apple.com/kb/HT5699

  • HT1689 how can I change my security questions when I can't seem to get them typed correctly to get to that area?

    how can I change my security questions when I can't seem to get them typed correctly to get to that area?

    https://iforgot.apple.com. If you can't resolve it yourself there contact Apple Account Security at http://support.apple.com/kb/HT5699

  • How can I change the settings so when I delete an email from my iPhone it will also delete from my iPad.....very sick of deleting the same emails two times

    How can I change the settings wit mail so that when I delete my Verizon email from my iPhone it will also delete from my iPad too.... Seems like I shouldn't have to delete my email in three places...iPhone ..iPad ...and desktop

    Don't know which email host you are using, but if this is a POP account, you can't do it. If IMAP, then deleting one email should delete it on all other devices.

  • How can I change the actions taken when I insert an SD card to my iMac?

    When I insert an SD card in my iMac it copies all the photos in a directory and deletes them from SD card.
    How can I change that? I just want to view my pics and then be asked if copied or not.
    Thanks in advance.

    You have the option in iPhoto to delete or keep the photos on the SD card or Camera when the photos are finished importing into iPhoto.
    To change what happens when you plug in an SD card or Camera you will need to open Image Capture in your Applications Folder.
    In Image Capture:
    1 select and highlight the SD card in the list of Devices
    2 click on the pointers in blue at the bottom for Connecting this camera/card/device
    3  change the action for to any one of the other options there, No Application (if for example you want to open it with Finder) or to Preview (if for example you want Preview to open) the SD card.

  • My Apple ID is registered in wrong email address. How can i change it or else when the server reply me to check my email that i can't check due to they sent to wrong email address...

    Please give advice of how can i change my Apple ID (email address) as it is wrong address. Like i just update my iPhone to latest version 6.0, and get the new app, iCloud which need me to key in my Apple ID and Password. I have no choice to use the wrong email address as it is already registerd since from 1st day i use my iPhone. Then i received the reply that tell me to check my email for verifing but the problem is i can't check my gmail as they sent to the email is not my actual gmail address....
    How can i solve this problem?

    You may change your Apple ID to any email address that is not already used as another Apple ID, or that is not already associated with another Apple ID.
    In other words, if I have an Apple ID [email protected], and have alternate email addresses of [email protected] and [email protected], none of them may be used by me or anyone else for an Apple ID, Rescue Email, alternate email, or anything Apple-related.
    If the Apple ID link above indicates your email is already in use then it is. Use https://iforgot.apple.com, select Forgot your Apple ID? and provide the information requested. If the email address is one you created and can still access, you may be able to retrieve it. If it is one someone else created, you will not.

  • HT3069 How can I change the content list when I change residence country?

    I bought an Apple TV in Mexico but came to came to the US to work on a project, so I brought my Apple TV with me. I already changed the credit card to an American one and all the country settings, but it still displays the Mexican list. How can I change the movie content?

    Purchases will be tied to the original account. Your US account will not have access.
    If your Apple TV is not displaying US content make sure the Apple TV location settings are correct. DNS should be on automatic.

  • How can i change my apple id when i accidentally type in the wrong email?

    i accidentally put in the wrong email account that does not exist and i already activated my itune card
    how do i change the apple id when it said to verify it first FROM the non-existing account? does that mean you cant change it  AT ALL or is there a solution?!

    Contact iTunes?\
    Apple - Support - iTunes - Contact Us

  • How can i change the code in when new form instance trigger using JDAPI

    Hi all,
    Can anyone tell me how can i use JDAPI to modify the when-new-form-instance trigger in all my forms,coz we have around 500 FMB's ,if this is possible by using jdapi it will be better for us..
    Thanks in advance..
    Najeeb

    Hi Najeeb,
    The code I've given you should cover the basic steps - you will need to have a basic knowledge of Java if you want to use the JDAPI, there's no way around that unless you go and buy one of the off-the-shelf products for this kind of thing (I think there's one called orcltoolbox..?)
    I've written an application that does all kinds of things to Forms specific to our needs, so it's a bit tricky to just pull out the code you need, but again, the basics will be:
    String formName="C:\some_dir\some_form.fmb";
    FormModule mForm=FormModule.open(formName);
    Trigger myWNFITrig=Trigger.find(mForm,"WHEN-NEW-FORM-INSTANCE");
    String myText=myWNFITrig.getTriggerText();
    And there you have your trigger text, to do with what you please. You could put this code in the main() method of one class if you want to keep things really simple - but see how you get on, if you have any more specific questions, do come back.
    Eric - that's a very good point about using Regular Expressions. I haven't used them in my JDAPI app because I wanted to keep all my .fmbs 6i-compatible for the short-term, and a posting I saw somewhere recommended sticking to Java 1.3. Which rules out the regex facility, which only appeared in Java 1.4. Now, though, I think I needn't have worried - it surely shouldn't matter which version of Java I use to make the changes to the .fmbs. My stupid!
    James

  • How can I change sequence setting after done editing?

    I just finish editing one of my video project. Unfortunately, just found out the sequence I was working with was in wrong settings. I tried to change aspect ratio from HD1440 *1080 to HDTV 1080i (16:9). However, after I changed the setting, my footage got all stretched out. Is there someway I can still change my sequence to HDTV 1080i without distorting it? Or do I have to re-edit everything with a new sequence, which I will hate it. Thanks a lot.

    Highlight all your footage and then control click or right click and choose REMOVE ATTRIBUTES, and then choose things like BASIC MOTION and DISTORT. If you have stills with moves, or some clips with push ins, you can avoid those and do them separately.
    Shane

  • How can i change the default module when lr5 opens

    lr5 on my win7 pc opens in the print module.  how do i change this to open in the library module?

    Lightroom re-opens at the same place, i.e. Catalog, Module, file, etc where you were working when you last closed the program. If you wish to have the program open in the Library module then you need to return there before you close/shut down the program.

  • How can i change my iCloud email when i don't know previous apple id password

    my little brother and i share the same apple id and he messed with everything and i am unable to get on my old apple id so i made a new one but i can't delete it off my phone and i can't change my email for iCloud because i can't get on my old apple id

    You need to get the previous Apple ID password reset. The only way to do that is to log onto Manage your Apple ID  and click on Reset Password for the Apple ID you need to sign off of the device:
    Apple - My Apple ID
    You will have to answer the Security Questions. If you do not know the answers, you will have to have Apple Support reset them for you:
    ACCOUNT SECURITY CONTACT NUMBERS
    Cheers,
    GB

  • How to make the first row  selected before the display of ALV grid

    Hello Experts,
    I created a ALV grid using custom container in a screen . Now i want do the follwing:
    1. i want that, the  <b>first line must be selected before the display of ALV.</b>
    2. I have selection buttons . But i dont want the multiselect button and the  
        standard  toolbar in the ALV grid.
    Could any one please help me regarding the above?
    Thanks & Regards
    Sudhansu

    can u pls explain in more details with an example?
    I am telling u the scenario.
    1. i have a screen(Modal dialog Box)  containing ALV grid with selection buttons for each row  (top part) and a subscreen(second part).
          Now when i click on a selection button, it will display the corresponding values in the subscreen.
        When this screen will display for the first time , then first row of the ALV grid should be selected and the corresponding values should be displayed in  the subscreen.
    i   wrote the following code in the PAI. But when i select a record its not triggering the PAI.
    DATA:
         gi_index_rows TYPE lvc_t_row, " Internal table for indexes of selected rows
         g_selected_row LIKE lvc_s_row, " Information about 1 row
         l_lines TYPE i.
      CLEAR g_wa_vdmeko.
    *get selected row
      CALL METHOD g_alv_grid->get_selected_rows
        IMPORTING
          et_index_rows = gi_index_rows.
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      LOOP AT gi_index_rows INTO g_selected_row.
        READ TABLE g_int_vdmeko INDEX g_selected_row-index INTO g_wa_vdmeko.
        SELECT SINGLE  *
               FROM vdmepov
               WHERE bukrs = g_wa_vdmeko-bukrs AND
                     styp  = g_wa_vdmeko-styp  AND
                     sbez  = g_wa_vdmeko-sbez  AND
                     svym  = g_wa_vdmeko-svym  AND
                     svnr  = g_wa_vdmeko-svnr.
      ENDLOOP.
    I am displayinng the ALV using method "set_alv_for_first_display".
    Please help if u have any idea..................
    Thanks
    Sudhansu

Maybe you are looking for

  • My ipod touch asking me for a password after reset setting

    hi, i need help with my ipod i reset the setting and now need a password that i don't have it, can you tell me what i can do? is an ipod touch 2G

  • 8.1 update problems: iMessage

    after updating to the 8.1 yesterday morning my iMessage has not been working correctly. first my messages said undelivered until I turned Imessage off. Then I tried to turn them on again and they will only send from my email. When I uncheck my email

  • Netui:tree jsp example

    All, Can anyone supply me with an examplpe of using a netui:tree in a JSP portlet(s)? I am going to be selecting info from a database and would like to loop through that info to populate the tree. I have had zero success in getting the tree to render

  • If you restore your iphone 3g would you need to activate you sim card? how to do you acticvtae your sim card?

    if you restore your iphone 3g would you need to activate you sim card? how to do you acticvtae your sim card?

  • Installing SMB 4.6D

    Hi, I recently purchased ABAP objects and am trying to install the SAP Mini Basis 4.6D on the included CDs. I can not get it to install beyond 88%.  I listed the errors below.  Any assistance would be greatly appreciated. Thanks! Error: DBR3LICENSECR