ALV query
hi all,
i have a small query regarding alv report.
How to make individual cells in alv editable and noneditable??
Regards,
Satya.
hi,
please refer to the below mentioned link... it wil solve almost all your alv related queries.
http://www.sap-partner.hu/ABAP_HELP_INFO/An%20Easy%20Reference%20for%20ALV%20Grid%20Control.pdf
<removed_by_moderator>
preet
Edited by: Julius Bussche on Aug 26, 2008 11:55 AM
Similar Messages
-
Alv query regarding function modules
hi all,
what is difference between
Reuse_alv_list_display & Reuse_alv_grid_display?
thanks & regards
sanjeevhi,
1. For all practical purposes, they are the same.
2. Some differences:
a) from abap coding point of view,
alv list is done with Function modules,
alv gris can also be done with FM,
but can also be done using OO concepts.
b) Alv grid (using oo concept) requires
designing the screen layout .
Hence, in one screen, we can show more
then one alv grid
(we cannot show more than
one alv list on one screen)
c) ALV grid uses ActiveX controls
present on the Presentation Server.
Hence, it consumes More Memory
on the presentation server.
d) ALV LIST is Display Only.
Whereas
ALV Grid Can Be made EDITABLE for entry purpose.
e) In alv grid, these options are possible,
but not in alv list.
without horizontal lines
without vertical lines
without cell merging during sorts
display total lines above the entries
ALV LIST Can be coded using only FMs
ALV GRID Can be coded using FMs and object oriented concepts
ALV LIST Can be displayed hieraicharlly
ALV GRID cannot be displayed hierarichally
I hope it helps.
Rgds
Anver -
Main heading and Sub Heading Requirment in ALV wih download to excel featur
Hello Everyone,
I have a very typical requirment in ALV . I want the output to be displayed as folows :
Category
Head1
Head2
Here the heading category is just a heading and no header and line item data. so hirearchal kind of ALV is of no use. and i cant write this was in TOP-OF-PAGE as i want to download this data to excel and if i write it in TOP-OF-PAGE the dwnload in excel is misaligned. I have been thorugh the various topics posted here and couldn't get a feasible solution. Please Help.Hi,
This is not possible
Refer these links
Re: ALV query
Re: Multiple lines in alv column headings
If this solves ur problem reward points and close the thread -
Displaying columns of alv with Main Heading and Sub Heading
Hi friends.
I have certain fields in display of ALV.
Out of all fields(columns), I would have to display some columns with one Main Heading,Below it's being split in multiple rows.
I have data relevent to that multiple fields.
Let say ,
In first row it will show |Allowance |
In second |HRA |PA | OTHERS|
Thanks And Regards,
Amit RautHi,
This is not possible
Refer these links
Re: ALV query
Re: Multiple lines in alv column headings
If this solves ur problem reward points and close the thread -
Get selection screen parameters from sap query
Hello. I use SAP Query Reporting, so I added a report assignment for detailing (sq01 -> Change button -> Goto -> Report Assignment -> Insert row -> Other type row -> Abap Report Program)
and put there ABAP program.
When I run query and press CtrlShiftF1 (or double click) It calls my abap program.
So the question is: how to get selection screen parameters in my program ?
to be more precise I want to get date parameter (begda, endda)
Thanks a lot.There is a Z query which I can see in sq01. I set reporting period and run the query; when I run it, it gives me the employee list.
So I wrote the abap report to get an employee details, customized query as I mentioned above.
The query calls my report and I need to get parameters.
SELECTION-SCREEN BEGIN OF BLOCK frm1 WITH FRAME TITLE text-001.
PARAMETER : p_pernr LIKE p0001-pernr OBLIGATORY MATCHCODE OBJECT prem.
PARAMETER : p_date LIKE sy-datum.
SELECTION-SCREEN END OF BLOCK frm1.
Parameter
p_pernr
passes normal. ALV Query contains it, but I'd like to get one more parameter from selection screen of the query and don't know how to get it. -
Hi Please suggest how to give heading and subheading in ALV using Grid using Function Modules .
Three of four columns should be grouped under a heading..
and in that header the subheading for each items should come.Refer these links
Re: ALV query
Re: Multiple lines in alv column headings
If this solves ur problem reward points and close the thread -
How can i shoulD use 'select' for ALV
Hello guys,Please Help
how can i summation as date with alv.
how can i use 'group by' in select statement.
Normally my alv table like this.
I want to this.MY STANDART ALV QUERY IS THIS.
select * appending corresponding fields of table itabon
from ( lips
inner join likp
on LIKP~VBELN = LIPS~VBELN )
where
likp~WADAT_IST between s_WADAT-low and s_WADAT-high AND
likp~VKORG eq 'O001' AND LIPS~LFIMG ne 0
I WANT TO QUERY FOR MY SECOND PICTURE.
Thank you -
Hi Guys,
Working on legel forms in case of country version Russia.
Can anybody give some input on where the legal form M-4(Receipt Voucher) is used.
Thanks for the Help.
Regards,
AkshayHi,
Please refer to [SAP Note 1312499 - Russian AiO logistic reporting extension|https://service.sap.com/sap/support/notes/1312499].
From the note, upload the user group and infoset text files using SQ02 --> Transport
In the ALV query output; upload the excel template into BDS using change layout and you are done.
Please note that the output then becomes flexible and open to change from user; so controls would be an issue.
Cheers. -
Want to learn Report Painter.
Dear All,
Can anyone tell me what Report painter is and how is it useful and how to use, Also the PROS & CONS in respect to the standard Classical/Interactive/ALV/Query reports.
Waiting for your valuable feedback.
Thankx
RajHi,
Check this link
http://help.sap.com/saphelp_erp2004/helpdata/EN/5b/d22dc343c611d182b30000e829fbfe/frameset.htm
Creating a Special Report
Thanks & Regards,
Judith. -
Hi
I have a problem with the legal form M4 for documenting the goods receipt in Russia.
It will not fill in all required information correct. When we ask the business about what has to be in the different fields we get different answers?
Do anyone know if there is an official site(english speaking) where I can find information about the forms and the legally correct content?
We are running on ECC 60 with the latest support stack and no enhancement packages using adobe interactvie forms.
BR//ThomasHi,
Please refer to [SAP Note 1312499 - Russian AiO logistic reporting extension|https://service.sap.com/sap/support/notes/1312499].
From the note, upload the user group and infoset text files using SQ02 --> Transport
In the ALV query output; upload the excel template into BDS using change layout and you are done.
Please note that the output then becomes flexible and open to change from user; so controls would be an issue.
Cheers. -
How to display long text in SAP Query ALV layout? It only show 129 char now
I have a SAP Query which show a remark field(Max length more than 500 char), but it only show max length 129 char now. In fact, the lenght of remark field text is more than 300, and i had debug the source code, the field text value do is correct, its length do is 376.
Do anybody can help me solve the issue, let the query ALV layout can show the long text field value?
thanks very much in addvance.Hi,
ALV can show only a restrict value length around 128 characters, many experts said that we can not extend. many suggestions is split text into some column.
Regards, -
Hi,
i´m developing an Hierarquical ALV and in order to obtain the data of the item internal table i´ve found a FM of a query already developed that provides exactly the data i need.
the code in question is:
CALL FUNCTION '/1BCDWB/IQ000000000073EXTR'
TABLES
%SELOPT = %selopt
%DTAB = %dtab
CHANGING
%RTMODE = %rtmode
EXCEPTIONS
NO_DATA = 1
NO_AUTHORIZATION = 2
ILLEGAL_PACKAGE = 3
CURSOR_NOT_OPEN = 4
OTHERS = 5.
i´m using it temporarily.
What would be the implications of using it permanently?
if the original query is modified would this affect the FM? Would this FM be renamed?
Best regards.Calsadillo,
This is generated function module out of the query. If some one changes the query the function will be affected.
I don't suggest that you use this funciton.
Regards,
Ravi -
Add color to an Additional Field inside a SAP Query (Infoset) in ALV
I made an Infoset (transaction SQ02) out of table MARC. I created an Additional Field called "STATUS" which I coded to get a value of 1 or 2 depending on the value of another field in MARC.
How can I make this cell in the resulting Query to appear in different colors depending on the value? I found the command "FORMAT" but that doesn't work on SAP List Viewer (ALV) mode.
This is what I coded in the additional field called STATUS::
clear: STATUS.
if MARC-DISPO = 001.
format intensified color = 6.
move '1' to STATUS.
else.
format intensified color = 7.
move '2' to STATUS.
endif.
The coloring didn't work. What ABAP command should I add to this additional field to make the coloring of the STATUS cell work under ALV mode?field catalog and layout are saved into database aqrdb
just before displaying the results into ALV table, they are retrieved by function RSAQRT_ALV_DISPLAY which does
concatenate rtmode-act_report sy-langu into l_srtfd_pattern.
import fieldcat = fieldcatalog
layout = layout
sort = sort
from database aqrdb(lv) id l_srtfd_pattern.
so in order to display some cells with a different color, you have to
- add an additional field that will contain the color codes of cells
- set values in this field at record level (field is a table of type LVC_T_SCOL)
but also adapt the layout in order to set the field as containing the colors
- put the name of this field into layout (CTAB_FNAME)
- export layout to corresponding entry of aqrdb
this part I don't see exactly where to put it, I guess there is some place where it is possible to manage the layout - if not then you have to do it "manually" i.e. with a small report -
Hide columns for ALV list output in SAP Query SQ01/SQ02
Hi All,
I have a requirement to hide the columns which are empty in sap query SQ01 alv list output.
Please let me know this functionality available in Query (SQ01) like normal reports
Regards,
VenkatHi,
We just can't make changes in this case as this are all system generated programs.
WE have to write our own reports to make things flexible to match our requirements.
Things you are asking is not possible.
Regards,
Suvendu -
Hideing a Column in ALV Table which is Displaying the POWL Query data
Hi SDNers,
I want to hide a column of ALV Table which is displaying my POWL Query data in it and hideing should be based on the Role as well. i.e few of the role the column shoudl be hidden and few of the roles should have the Column visible.
waiting for the Valueble Answers.
Thanks & Regards,
GovinduHai Kris,
I took help from ur link and i declared a global attribute request_number.
and i created an event handler ON_ALV_INSERT and did the follwing coding for giving default value wen ever am inserting new row.
FIELD-SYMBOLS: <wa_row> LIKE LINE OF r_param->t_inserted_rows.
DATA bill_details TYPE REF TO zdom_bill_detail.
LOOP AT r_param->t_inserted_rows ASSIGNING <wa_row>.
bill_details ?= <wa_row>-r_value.
IF bill_details->REQ_NUMBER IS INITIAL.
DATA lo_nd_bill_detail TYPE REF TO if_wd_context_node.
DATA lo_el_bill_detail TYPE REF TO if_wd_context_element.
DATA ls_bill_detail TYPE wd_this->Element_bill_detail.
navigate from <CONTEXT> to <BILL_DETAIL> via lead selection
lo_nd_bill_detail = wd_context->get_child_node( name = wd_this->wdctx_bill_detail ).
lo_el_bill_detail = lo_nd_bill_detail->get_element( index = <wa_row>-index ).
lo_el_bill_detail->set_attribute(
EXPORTING
name = 'REQ_NUMBER'
value = wd_comp_controller->request_number
Wen am setting the value of wd_comp_controller->request_number to my context attribute am getting NULL object ref error.
lo_el_bill_detail->set_attribute(
name = `REQ_NUMBER`
value = wd_comp_controller->request_number ).
Pls give some suggestions,
Thanks in Advance,
Nalla.B
Maybe you are looking for
-
Problem in : Reciever Mail Adapter.
Hi all, In my scenario file --> Mail this scenario is worked fine but now it showing the following error in Adapter monitoring. error occured: [2006-01-19T04:59:02Z] unable to call the mailer; com.sap.aii.messaging.srt.BubbleException: Failed to cal
-
Different credits in app and browser
Hi all, My problem is that my Skype app on Mac shows that the credit I have is 2,39€. When I access my profile it shows 18,35€. The problem occurred when I just re-activated the credit I had, i.e. I had not made any calls during the last 6 months. B
-
More trouble with registering sapccmsr and EYE CATCH error
Hello all, I saw that this was a topic in an earlier thread. That thread was very helpful for troubleshooting, but it seems I have everything properly set up and patched, but I am still receiving the dreaded EYE CATCH error. The system is a Unicode d
-
My computer is set to 24-hour clock format, yet on iPhoto the time stamps show up as 12 hour and have been automaticaly adjusted to reflect the time zone my computer is set to, not the time zone where the photos were taken. This occurred when I updat
-
Workflow tasks are dependent or independent from MANDT ???
Hi guys, Could someone please tell me if workflow task's are dependent or not from MANDT? Thanks.