Can anyone tell me how to use GUI status in ALV report.

Can anyone tell me how to use GUI status in ALV report. I want to use  buttons in ALV report.

Juheb,
see the link
http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
Adding a button on the ALV grid using OOPs
check these sites.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproABAP-ALVControllingStandard+Buttons&
chk this.
alv-pfstatus:
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_pfstatus.htm
then how to capture that button click.
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_ucomm.htm
REPORT ZTESTALV.
TYPE-POOLS: SLIS.
*- Fieldcatalog
DATA: IT_FIELDCAT  TYPE LVC_T_FCAT,
      IT_FIELDCAT1  TYPE SLIS_T_FIELDCAT_ALV..
*- For Events
DATA:IT_EVENTS TYPE SLIS_T_EVENT.
DATA:  X_FIELDCAT  TYPE LVC_S_FCAT,
        X_FIELDCAT1  TYPE SLIS_FIELDCAT_ALV.
DATA:X_LAYOUT TYPE LVC_S_LAYO.
"{ FOR DISABLE
DATA: LS_EDIT TYPE LVC_S_STYL,
      LT_EDIT TYPE LVC_T_STYL.
"} FOR DISABLE
DATA: BEGIN OF IT_VBAP OCCURS 0,
      VBELN LIKE VBAP-VBELN,
      POSNR LIKE VBAP-POSNR,
      HANDLE_STYLE TYPE LVC_T_STYL, "FOR DISABLE
   <b>   BUTTON(10),</b>
     END OF IT_VBAP.
DATA: LS_OUTTAB LIKE LINE OF IT_VBAP.
SELECT VBELN
       POSNR
       UP TO 10 ROWS
      INTO CORRESPONDING FIELDS OF TABLE IT_VBAP
      FROM VBAP.
DATA:L_POS TYPE I VALUE 1.
CLEAR: L_POS.
L_POS = L_POS + 1.
<b>X_FIELDCAT-SELTEXT = 'Button'.
x_fieldcat-fieldname = 'BUTTON'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS    = L_POS.
X_FIELDCAT-OUTPUTLEN = '10'.
X_FIELDCAT-style = X_FIELDCAT-style bit-xor
                  cl_gui_alv_grid=>MC_STYLE_BUTTON bit-xor
                  cl_gui_alv_grid=>MC_STYLE_ENABLEd.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.</b>
L_POS = L_POS + 1.
X_FIELDCAT-SELTEXT = 'VBELN'.
X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS    = L_POS.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-OUTPUTLEN = '10'.
x_fieldcat-ref_field = 'VBELN'.
x_fieldcat-ref_table = 'VBAK'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-SELTEXT = 'POSNR'.
X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS    = L_POS.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-OUTPUTLEN = '5'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
"{FOR DISABLE HERE 6ROW IS DISABLED
SY-TABIX = 6.
LS_EDIT-FIELDNAME = 'VBELN'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 10.
INSERT LS_EDIT INTO TABLE LT_EDIT.
*LS_EDIT-FIELDNAME = 'POSNR'.
*LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
*LS_EDIT-STYLE2 = SPACE.
*LS_EDIT-STYLE3 = SPACE.
*LS_EDIT-STYLE4 = SPACE.
*LS_EDIT-MAXLEN = 6.
*INSERT LS_EDIT INTO TABLE LT_EDIT.
INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
MODIFY IT_VBAP INDEX SY-TABIX FROM LS_OUTTAB  TRANSPORTING
                                  HANDLE_STYLE .
X_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
"} UP TO HERE
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
  EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    IS_LAYOUT_LVC      = X_LAYOUT
    IT_FIELDCAT_LVC    = IT_FIELDCAT
  TABLES
    T_OUTTAB           = IT_VBAP[]
  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.
Don't forget to reward if useful....

Similar Messages

  • Can anyone tell me how to use Tiles framework in an existing JSP page

    I want to seperate my portal area using tiles. I'm looking for example on how I go about that.

    This book doesn't have information on how to use tiles in legacy JSP page. Let me rephase the question again:
    How do I place Tiles tags to an existing JSP page to seperate the areas in a page?

  • Can anyone tell me how to use the loops and backing tracks with a single guitar input? I can't seem to figure out how to set this up

    I am trying to configure Mainstage to input my own guitar and add a backing track from the library or a loop but, I can figure out how to open or add the tracks I've downloaded. Any help would be great

    did you try the PlayBack preset/template?
    once you open the PlayBack plug-in you just load the tracks from the plug-in's menu.

  • HT1338 Can anyone tell me how to find what OS I'm using on the Mac? Tiger or Leopard? Also, how do I update from 10.6.8 to the latest version?

    Can anyone tell me how to find what OS I'm using on the Mac?
    Tiger or Leopard?
    Also, how do I update from 10.6.8 to the latest version?

    Go to the Apple menu and select "About This Mac". You will get a window similar to this one -
    You current OS X version number will be shown as I've marked.
    OS X 10.4.x is Tiger, 10.5.x is Leopard, 10.6.x is Snow Leopard, 10.7.x is Lion, and 10.8.x is Mountain Lion.
    Whether or not you can go to the latest OS X version depends upon your hardware -
    You will need to purchase the retail set for the OS X version you want; there is no pint in getting and installing any intermediate versions. Once the retail version has been installed, you can update it to the latest release for that version via download updater.

  • Hi, I am using USB 8476s to communicat​e to a slave unit in LIN network using LabVIEW7.1​. Can anyone tell me how i can send a header file plus 1 byte of data to the slave in a LIN network. or how do i use ldf file. i want to read responses from the slave

    Hi,   I am using USB 8476s to communicate to a slave unit in LIN network. Can anyone tell me how i can send a header frame plus 1 byte of data to the slave in a LIN network. or how do I communictae with slave using LabVIEW7.1.
    I want to read responses from the slave. When i tried with labview exapmle programs or even using MAX also, while doing some switching action in my slave, i am getting response as Device inactive with timestamp but there is no data format. 
    And I have Lin Description File. Can you suggest me how to use ldf file.
    I am at customer place and It would be great help from you if you can suggest me at the earliest. Thank you

    you may use the LDF Starter Kit to use LDF informations in your application
    http://joule.ni.com/nidu/cds/view/p/id/665/lang/en

  • I am using a MacBook Pro and am trying to print double sided copies on the HP Deskjet 3054 that came with it. Can anyone tell me how to do this?

    I am using a MacBook Pro and am trying to print double sided copies on the HP Deskjet 3054 that came with it. Can anyone tell me how to do this? I am a total MacBook nube and can use any help you may offer! Thank you so much.

    How you enable double-sided printing can depend on the applications from whick you wish to print. Example: if I print to my HP PhotoSmart  from Safari, I get this print dialog box:
    (Edit: OOPS! Note that I forgot to switch printers when i took the scene-shots, so ignore the "Brother" reference. It's should look the same for your HP.
    Note the selection labled "Safari" near the bottom. If I change that form "safari to "Layout: I get this:
    Note the option for two-sided printing appears for your selection. If I print from Word, the box is different:
    The "Copies & Pages" option can be changed to "Layout" when you click it, again allowing the selection of two-sided printing.
    If you tell us what applciaiton is vexing you, we may be able to give better-focused information.
    A

  • HT4061 Every time I use my I pad it keeps popping up with enter my iTunes password. I have nothing waiting to download and not trying to purchase anything yet every time I want to listen to music or use my apps this happens. Can anyone tell me how to stop

    Every time I use my I pad it keeps popping up with enter my iTunes password. I have nothing waiting to download and not trying to purchase anything yet every time I want to listen to music or use my apps this happens. Can anyone tell me how to stop this?

    If you get an error that says can't backup, try moving the existing backup file to a safe location and thry again. again. You can find the location of the backup file here:
    iPhone and iPod touch: About backups

  • Can anyone tell me how to scan documents to the icloud, so they will be on the ipad.  My husband is planning on using the ipad for work.

    Can anyone tell me how to scan documents to the icloud, so they will be on the ipad?  My husband is planning on using his ipad for business.  I haven't been able to even find anywhere that I could read about scanning documents.

    If you scanned the documents - what format did you save them in - pdf? If so, Pages will not open pdf files. you can save a file and export it as a pdf from Pages - but not the other way around.
    If you need simply view the documents - you can send them to the iPad via email or DropBox and them open and save them in iBooks. or Adobe Reader. both apps are free. Adobe Reader can use file sharing in iTunes to transfer the files.
    If you need to annotate the files - you will need an app like Goodreader - which can use file sharing from iTunes in order to transfer the files as well. GoodReader may work with iCloud now, but you will have to check that out in the App Store.
    You can read this to see how to use file sharing. It really is pretty easy to use. You do need to do this with your computer.
    http://support.apple.com/kb/ht4094

  • Hi there, can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac Mini? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? Thanks in advance, Grtz T.

    Hi there,
    Can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac mini i7 using an Apogee jam as an input for bass and a Behringer USB DAC with RCA audio output? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? I'm also suffering massive audio lag issues with the Apogee jam after waking the mini from sleepmode, wich pretty much renders it useless.
    Thanks in advance,
    Grtz T.

    I think the easiest way to do this is to have the EyeTV app running in one user account and sent via HDMI to the TV, and use a separate user account for Screen Sharing. Both logins can be active at the same time and with Lion you can connect via screen sharing to which ever login you need.
    With regards to the Mac video resolution changing, when it is not the current input on your AV receiver. This is 'normal', if the Mac sees no signal it drops down the a lower level. What you need is to buy a HDMI Detective Plus which tricks the Mac in to always seeing a signal and hence it will not drop down the resolution. See http://www.gefen.com/kvm/dproduct.jsp?prod_id=8005
    The Mac mini does have an IR receiver. This can be used with the EyeTV app, iTunes, and similar. Yes I believe EyeTV would run for prolonged periods quite happily, it is has been around for a long time and had most of the rough edges polished off. However one issue you will have to deal with is that it does not automatically update its program guide data. For this you might have to write or modify an AppleScript. Elgato support or their user forums will be a lot of help.
    You can set EyeTV to convert recordings to an iTunes (Apple TV) compatible format and then delete them from EyeTV.
    The HDMI Detective should solve your handshaking problems.

  • The option to sync apps is no longer available in iTunes, though it used to be. Can anyone tell me how to access the sync apps button please?

    Can anyone tell me how to access the sync apps button please? I used to be able to select it but it is no longer visible.

    You have to connect and select iPhone in computer iTunes Sidebar.
    If you don't see the Sidebar, toggle it on in iTunes menu View > Show Sidebar.
    Take a look at this screenshot on updating apps.

  • Can anyone tell me how to do a system level deployment using JNLP ?

    Hi All,
    Can anyone tell me how to do a system level deployment using JNLP ?
    Any example or link will be very useful.
    Thanks in advance..

    Thanks for the link. I can now able do configure on system level.
    Uniform for all users.
    However, I have three different environment running ( e.g : production, uat and dev )
    And I want to deploy all of them on system or enterprise configuration.
    I create the file "deployment.config" on jre/lib directory and put the entry as below :
    deployment.system.config=file:/E:/Deployment/XXXX/production/deployment.properties
    deployment.system.config.mandatory=trueNow, when I run other environment it will look on the production deployment. I have different
    version of jars for production , uat and dev.
    How can I archive that ? I want different universal "cache" of jars for all the three different environment.
    e.g ( production - in one loaction for all the users , C:\Documents and Settings\All Users\Application Data\prod\cache
    uat - in one loaction for all the users , C:\Documents and Settings\All Users\Application Data\uat\cache
    dev - in one loaction for all the users, C:\Documents and Settings\All Users\Application Data\dev\cache )
    Is that possible ??
    Thanks in advance,

  • I used a terminal command to show the Library in the User folder, and now the Finder is behaving erractically.  Can anyone tell me how to reverse the show library terminal command?

    I used a terminal command in Lion to show the LIbrary in the Users folder, and now the Finder is behaving erratically, hanging up and becoming almost paralyzed.  Can anyone tell me how to reverse the terminal command for show Library.  The command I used was:
    chflags nohidden ~/Library/

    Showing the Library folder will not cause the problem you've described. Nevertheless:
    chflags hidden ~/Library
    will hide the folder. To reveal the folder:
    chflags nohidden ~/Library
    Note, there is no "/" after Library.

  • Can anyone tell me how to install logic 8 on lion using pacifist step by step in simple terms please

    can anyone tell me how to install logic 8 on lion using pacifist step PLEASE

    Both psd and tiff are the two formats to use for your master file. Saving as a jpg will flatten the layers and remove any trace of transparency. Tiff has an option in the save as dialog box to compress the file.
    If you find it necessary you could zip older files for archiving.
    Once the raw file has been opened in photoshop, it is no longer considered a raw file, as photoshop has no way to save to that file. Which is why you need to save as a psd or tiff.
    That said, camera raw dialog box and Lightroom will save its edits to a sidecar file, which is why they are considered to be non-destructive. Since you can delete the side care file and start again. It is the combination. Of the raw file and the side car file that ends up in photoshop. Which is one reason why it is recommended to do as much as you can in camera raw or Lightroom first. But the latest version of photoshop allows your photoshop filets be loaded into camera raw as a filter. So that recommendation is not as important as it once was.

  • HT1391 Hi can anyone tell me how to find out what and when my last purchases were made from the App Store ? I think my kids used all my credit

    Hi can anyone tell me how to find out what and when my last purchases were made from the App Store ? I think my kids used all my credit

    .from iTunes, go to View > Show sidebar
    From sidebar > Itunes Store > Click top left on your Apple ID email address > Account > ...scroll down > Purchase History > View All

  • Hi i dont have a wifi broadband n i just bought the new ipod touch can anyone tell me how 2 download apps for my ipod without using wifi

    hi i dont have a wifi broadband n i just bought the new ipod touch can anyone tell me how 2 download apps for my ipod without using wifi

    Download the apps on your syncing computer and then sync to the iPod. Note that you can only sync apps for the one syncing computer you use with the iPod. You can manage music and videos among different computer.

Maybe you are looking for

  • IPod Classic not syncing // iTunes crashing (iTunes 10.7)

    A couple of days ago I restored my iPod as there were tracks that weren't playing. After restoring i'm unable to sync my iPod again...i've never had this problem before. I'm getting various error messages, some examples are :: 'The iPod cannot be syn

  • Asterisk on Layer Names

    I recently switched from PC to Mac and notice on the Mac version of Flash CS3 there are sometimes asterisks that appear next to the layer names. I have never noticed these before so I assume it is a Mac thing....anybody know what the asterisks mean??

  • Screen exit ME32L

    Hi all. I need to add a Z field in screen ME32L --> put an agreement number and INTRO --> Item --> Conditions --> selecting a condition Goto --> Aditional data. In this screen Additional sales data I need to add a field (program SAPMV13A screen 305).

  • Newly created folder not visible in directory tree (Outlook 2013)

    We are using Exchange 2007 on-premise and Outlook 2013 on the client computer. When creating a folder in a (very large) existing folder structure from within Outlook, it is not shown in the client. When logging in onto OWA it is visible. If we delete

  • Cann t open new imported Package in Forte 4-Develop Editor

    Hallo, i have downloaded a java source-code from Internet. I want to open the classes in the Forte 4 Development Editor. When i import the classes in the workspace, i cannt find any code. I can see the structure of the classes. When i click on it the