Can i use classes or grid control (alv) in normal report
Hai,
Can i use Grid control or classes in normal report.If yes what are the steps that i have to go for.
thanks
kiran
Sure... here is a sample of an ALV in a report. All you need to do is call a screen. I believe that there is also a way to do it without having to create a screen.
REPORT ZRICH_0001.
DATA: BEGIN OF I_ALV OCCURS 0,
MATNR TYPE MARA-MATNR,
MAKTX TYPE MAKT-MAKTX,
END OF I_ALV.
DATA: ALV_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
DATA: ALV_GRID TYPE REF TO CL_GUI_ALV_GRID.
DATA: LAYOUT TYPE LVC_S_LAYO.
DATA: FIELDCAT TYPE LVC_T_FCAT.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 .
SELECT-OPTIONS: S_MATNR FOR i_ALV-MATNR.
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION.
PERFORM GET_DATA.
CALL SCREEN 100.
* Module status_0100 OUTPUT
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS '0100'.
SET TITLEBAR '0100'.
DATA: VARIANT TYPE DISVARIANT.
VARIANT-REPORT = SY-REPID.
VARIANT-USERNAME = SY-UNAME.
* Create Controls
CREATE OBJECT ALV_CONTAINER
EXPORTING
CONTAINER_NAME = 'ALV_CONTAINER'.
CREATE OBJECT ALV_GRID
EXPORTING
I_PARENT = ALV_CONTAINER.
* ALV Specific. Data selection.
* Populate Field Catalog
PERFORM GET_FIELDCATALOG.
CALL METHOD ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = LAYOUT
IS_VARIANT = VARIANT
I_SAVE = 'U'
I_STRUCTURE_NAME = 'I_ALV'
CHANGING
IT_OUTTAB = I_ALV[]
IT_FIELDCATALOG = FIELDCAT[].
ENDMODULE.
* Module USER_COMMAND_0100 INPUT
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'BACK' OR 'CANC'.
IF NOT ALV_CONTAINER IS INITIAL.
CALL METHOD ALV_CONTAINER->FREE.
CLEAR: ALV_CONTAINER.
FREE : ALV_CONTAINER.
ENDIF.
IF SY-SUBRC = 0.
SET SCREEN 0.
LEAVE SCREEN.
ELSE.
LEAVE PROGRAM.
ENDIF.
WHEN 'EXIT'.
IF NOT ALV_CONTAINER IS INITIAL.
CALL METHOD ALV_CONTAINER->FREE.
CLEAR: ALV_CONTAINER.
FREE : ALV_CONTAINER.
ENDIF.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.
* FORM GET_DATA
FORM GET_DATA.
SELECT * INTO CORRESPONDING FIELDS OF TABLE I_ALV
FROM MARA
INNER JOIN MAKT
ON MARA~MATNR = MAKT~MATNR
WHERE MARA~MATNR IN S_MATNR
AND MAKT~SPRAS = SY-LANGU.
SORT I_ALV ASCENDING BY MATNR.
ENDFORM.
* Form Get_Fieldcatalog - Set Up Columns/Headers
FORM GET_FIELDCATALOG.
DATA: LS_FCAT TYPE LVC_S_FCAT.
REFRESH: FIELDCAT.
CLEAR: LS_FCAT.
LS_FCAT-REPTEXT = 'Material Number'.
LS_FCAT-COLTEXT = 'Material Number'.
LS_FCAT-FIELDNAME = 'MATNR'.
LS_FCAT-REF_TABLE = 'I_ALV'.
LS_FCAT-OUTPUTLEN = '18'.
LS_FCAT-COL_POS = 1.
APPEND LS_FCAT TO FIELDCAT.
CLEAR: LS_FCAT.
LS_FCAT-REPTEXT = 'Material Description'.
LS_FCAT-COLTEXT = 'Material Description'.
LS_FCAT-FIELDNAME = 'MAKTX'.
LS_FCAT-REF_TABLE = 'I_ALV'.
LS_FCAT-OUTPUTLEN = '40'.
LS_FCAT-COL_POS = 2.
APPEND LS_FCAT TO FIELDCAT.
ENDFORM.
Regards,
Rich Heilman
Similar Messages
-
Can I logon to a Grid Control maanagement sonsole from a remote PC?
Three questions:
1. Can I logon to a Grid Control management sonsole from a remote PC?
2. Can I manage heterogeneous Oracle databases (runing on different OSs) using the same Grid Control system?
3. Is Grid Control free to be used. I can not find the price on Oracle Price List.Hi,
1. Yes you can use it from remote PC if it is not outside the firewall.
2. Yes you can have hetrogeneous database on different server monitored using Grid control.
3. Grid Control is not free. You need to talk to Oracle rep for the pricing detail.
Regards -
Hey, can i use the mac remote control on the new imac 2013? if so, how?
hey, can i use the mac remote control on the new imac 2013? if so, how?
No,
The new iMacs no longer have an IR receiver.
If you want to control your iMac remotely.
If you own an iPhone, iPod Touch or iPad.
Here's an app
http://regularrateandrhythm.com/apps/rowmote-pro/
or this
http://www.amazon.com/Satechi-MediaRemote-Bluetooth-Multi-Media-Control/dp/B0082 4948U/ref=sr_1_10?ie=UTF8&qid=1364328484&sr=8-10&keywords=Satechi
http://www.amazon.com/Satechi-Bluetooth-Pointer-Presenter-Control/dp/B00A3WRM5G/ ref=sr_1_1?ie=UTF8&qid=1364328551&sr=8-1&keywords=Satechi+Remotes -
HT1947 Can I use my iPhone to control Netflix on my iPad 2
Can I use my iPhone to control Netflix on my iPad 2?
Yes. If your carrier provides this service.
iPhone User Guide (For iOS 4.2 and 4.3 Software)
iPad 2 User Guide (For iOS 4.3 Software)
iOS: Understanding Personal Hotspot -
The log file which can be used to track the HTML preview of HFR Reports
Hi,
Could you please let me know the log file which can be used to track the HTML preview of HFR Reports?
Thanks,
AparnaYou could check the FinancialReporting0.log and FRLogging.log .You could refer the same in the
" http://docs.oracle.com/cd/E17236_01/epm.1112/epm_install_troubleshooting_11121.pdf" page 47. -
Can we use ad hoc query to get a temporary report of payroll result?
Hi,All
can we use ad hoc query to get a temporary report of payroll result?or we have to get a report of payroll result by customizing and ABAP?
and how can I customizing a report on the basis of standard SAP report for payroll?Hi
As of my Knowledge You cannot get the payroll report through Adhoc query you have to go for ABAP Devlopment
Thanks
Mahantesh -
Control Break in normal report regions
Can I somehow insert kind of a control break for normal report regions?
I use it within serveral interactive reports. Now I have a normal report region displaying projects of all department. The users want to have them grouped with a sum by department, which would be easy to do within an interactive report using a control break.
But how can I do this in a normal report region?
BR & thank you,
Lena
Edited by: Lena F on Mar 30, 2011 6:04 AM
--> already found the solution - sorry :-(
Edited by: Lena F on Mar 30, 2011 6:18 AMPlease post solution
-
Send the list ouput of ALV or normal report to e-mail
how to send the list ouput of ALV or normal report to e-mail?
Already SAP is providing the option to send output to email
For ALV
Go to Print Preview> list> send to --> mail receipient
if it is normal list
list> Save/Send> office
a® -
ORA-03137: While using Enterprise manager Grid Control
Hi All,
I have this strange issue.
I use grid control to monitor production database. Both grid and prod db are on diff servers.
when I login to grid control and frm there i login to prod database. I see this error in prod db alert log.
Fri Aug 26 01:05:40 2011
Errors in file /logs/oracle/admin/diag/rdbms/mksprd/mksprd/trace/mksprd_ora_25152.trc:
ORA-03137: TTC protocol internal error : [12333] [11] [81] [117] [] [] [] []
This appears only at the first login.
Here are some details.
Operating System SunOS 5.10 Generic_144488-11 (64-bit)
Database Version : 11.1.0.7.0
Regards,Hello,
this appears to be related to optimpeek_user_binds parameter in 11.1.0.7.
There is a note in My Oracle Support (1296792.1) that shows the same symptoms.
It looks to me that the solution is to install patch: 9703463
If this is not possible in your system then you can try the workaround from the Note:
alter system set "_optim_peek_user_binds"=false
Kind regards,
Frank -
Can I use classes and methods for a maintenance view events?
Hello experts,
Instead of perform/form, can I instead use classes and methods, etc for a given maintenance view event, lets say for example I want to use event '01' which is before saving records in the database. Help would be greatly appreciated. Thanks a lot guys!Hi viraylab,
1. The architecture provided by maintenance view
for using EVENTS and our own code inside it -
It is provided using FORM/PERFORM
concept only.
2. At this stage,we cannot use classes.
3. However, inside the FORM routine,
we can write what ever we want.
We can aswell use any abap code, including
classes and methods.
(But this classes and methods won't have any
effect on the EVENT provided by maintenance view)
regards,
amit m. -
Can I use an iMac to control a mac pro
I have a 2008 Mac pro that's working well. Since I'm doing a lot a video creation that needs to go to DVD I'm not ready to give it up. but I see the need for a more modern machine for some of the newer software I would like to use. so here is the question.
Can I use a new iMac as my primary machine, and send the video files to the mac pro for rendering, compression, and storage?
also can I boot up an older OS (snow leopard) from a disk on the mac pro?
thanksYou can use file share
iOS: About File Sharing
You can use remote desktop to control hte Pro by another computer
OS X Mavericks: Allow access using Apple Remote Desktop
http://www.apple.com/remotedesktop/ -
Can I use classes in Flash 8? I get errors by doing so.
Hi All,
Whenever I use classes in Flash 8, I get the below error on
compiling. How do I create classes to make my programs more
modular? Can anyone explain me with a simple executable example?>> Classes may only be defined in external ActionScript
2.0 class scripts.
That's your answer... classes have to be located in external
.as files.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Can I use a colour palette control to set the colour of an LED on front panel?
Hi,
I want to allow the user of my LabView program to be able to set the colour of an enlarged LED on the front panel using a colour palette control also on the front panel. Is this possible or can the LED only be the colour it is set to in its properties dialogue box?
Thanks,
Dave.The question is of course: "Does it really need to be a boolean LED that has a True/False and all the boolean logic???
If you just want an LED lookalike where the color can be easily controlled programmatically I would recommend a color box indicator instead. You can even customized it to look like an LED! The attached example (LabVIEW 7.1) shows both methods, but the color box option is programmatically much less messy (no bundling, no array building, no property nodes!).
(To make the LED color box indicator, I customized a plain color box and simply imported the graphic elements from the regular LED indicator.)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
ColorBoxLED.vi 22 KB -
Can I use CC Perspective grid "in reverse" -- for inside of a room
Hello
Using windows cc 2014 (most recent update).
I want to draw the inside of a room using the perspective grid if possible.
I see how it's done using a exterior of a building. But I need it for inside of a room. See attached mockup.
I know I've seen a cc tutorial somewhere showing how to use perspective inside a room. But can't seem to find it today.
Any suggestions and/or links?
Thanks
Rowbywith your perspective grid visible, select the "perspective grid tool" from the tool palette or press Shift+P. with that tool drag on the bottom controller of the vertical grids across to the opposite side so that the 2 vertical grids cross each other
-
Can I use 7344 card to control other dynamic system
Excuse me
I want to control a piezoelectric stripe actuator, I just want to input a step function to the actuator and use the 7344 PID controller to control the actuator.
step input | 7344 | | | step response
--->o--->| PID |--->|actuator|--------->
^ |controller | ---------- |
| ------------ |
|___________________________________|
feedback
Dose 7344 controller satisfy my request?
Thank youIn fact the control algorithm on the 7344 can be used for a variety of control tasks. I have dealt with customers who use the board for controlling force, pressure, piezo stack actuators and piezo ultrasonic motors. As long as your drive provides an analog control input and an appropriate feedback signal (quadrature encoder or analog output) I don't see a reason why the 7344 shouldn't be able to control a piezo stripe actuator.
I don't know much about the characteristics of a piezo stripe actuator but maybe you will have to consider setting the parameters for a static friction deadzone in the 7344 configuration in addition to the normal PID parameters. You need to set these parameters whenever there is a deadzone around the zero voltage output. Refer to this link for further information about deadzone compensation.
Best regards,
Jochen Klier
National Instruments Germany
Maybe you are looking for
-
Moving iTunes From PC to Mac keeping play counts etc.
I am trying to move my iTunes from a PC ( XP ) to a Mac ( OS X ). I have moved the entire iTunes folder which contains the XML file and music folder to the mac using an external hard drive. The PC was consolidated before the copy. On the Mac I found
-
Z10 Product Improvement Ideas: Peak, Flow and Navigation
Note sure what the best way to get some ideas across to Blackberry but since I've been using my Z10, there are a few ways that I think that navigation and application access can be improved. Sometimes I feel that you need to perform one too many swip
-
How to view my messages?
Last night I dropped my S4 three feet and was really upset that it ended up cracking and disabling my screen that if I get lucky I will be able to see the matrix on my phone. I want to be able to view my text messages now, but when I downloaded the V
-
Hi, iam a fresher and i have choosen to take my career oracle Apps Techincal side...So, can you give me the books or url from where i could get the basics required for this and books and url's for basics of Oracle forms.
-
Hi Expert , When i am trying to Load data from 2Lis_03_bx fro stock initialization i am getting followinh error <b>Error when updating Idocs in Business Information Warehouse Diagnosis Errors have been reported in Business Information Warehouse dur