Help on Report Layout Variant.
Hello,
I have a requirement as stated below:
I have a custom report and it displays say 15 fields. I have created a variant for it to display only 10 fields.
Now, is there a Function Module or a report that will give me details of these 10 fields that I have chosen.
Basically I want to know if there is a FM that gives details of a report layout variant by just passing the report name and the variant name etc?
Thank,
Ketan.
Hi Ketan,
check this FM : REUSE_ALV_VARIANT_SELECT
sample code :
DATA: g_variant LIKE disvariant.
CONSTANTS:
g_x VALUE 'X'.
DATA: g_fieldcat_tab TYPE slis_t_fieldcat_alv.
DATA: g_layout TYPE slis_layout_alv.
DATA: g_fieldcat_tab TYPE slis_t_fieldcat_alv.
DATA: g_sortfields_tab TYPE slis_t_sortinfo_alv.
DATA: g_filter_tab TYPE slis_t_filter_alv.
IF NOT g_variant-variant IS INITIAL.
CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT'
EXPORTING
i_dialog = ' '
i_user_specific = g_x
i_default = ' '
I_TABNAME_HEADER =
I_TABNAME_ITEM =
it_default_fieldcat = g_fieldcat_tab[]
i_layout = g_layout
IMPORTING
E_EXIT =
et_fieldcat = g_fieldcat_tab[]
et_sort = g_sortfields_tab[]
et_filter = g_filter_tab[]
CHANGING
cs_variant = g_variant
EXCEPTIONS
wrong_input = 1
fc_not_complete = 2
not_found = 3
program_error = 4
OTHERS = 5.
IF sy-subrc IS INITIAL.
ENDIF.
ENDIF.
Regards
Appana
Similar Messages
-
Hi Gurus
Please help me regarding a Report layout variant.
1. Can I transport a report layout variant and how?
Regards
KTKHow to transport a Layout variant
As an example use transaction code FBL5. Run it for some selection criteria (customer code, company code).
Goto menu option Settings  Display Variants  Administration
Now select your variant and goto menu option Layout  Transport
Hope this is what you are looking for.
Regards -
Report Layout variant missing in ECC6
Hi All,
we are going for upgrade from 4.6 to ECC6. In ECC6 in most of report's report layout variant are missing in ECC6.But our client want same variant in ECC6 as in 4.6.
Please sugest how to over come this issue.
Thanks
Mohit KhandelwalMohit,
I think you can try out this...
Include the variant in a transport request and give the transport req no to the basis guy; and inform him to import the same req no into ECC6 version.
He can export the transport req no from 4.6 to windows desktop and then he can import the same into ECC 6 system.
I hope this will solve your issue.
- Seenu
Edited by: Sreenivasulu Nallani on Jan 25, 2010 12:24 PM -
Report Layout Variant - transaction S_AHR_61016503 - Staff Assignments
Hi,
One of our users has created a layout variant in the above report. Some other users can view and choose the layout but one cannot. Is there an authorisation object missing? If not, does anyone have any ideas why this one person cannot view it.
Thanks
HannahHi Arun,
Thanks for your reply. If the authorisation group is blank, shouldn't anyone be able to view it?
Thanks
Hannah -
Hello,
I have to alter a report layout on Reporting Services 2008 and after 2 and a half days trying I simply give up!
It's impossible to make this layout in RS2008. It simply does not accept what I need to do. See layout bellow:
Consumption Location X
MU A | PartNo x | Part Description | Qty
| PartNo y | Part Description | Qty
MU B | PartNo q | Part Description | Qty
MU C | PartNo n | Part Description | Qty
| PartNo z | Part Description | Qty
| PartNo s | Part Description | Qty
--------------------Skip line-----------------
Consumption Location Z
MU G | PartNo t | Part Description | Qty
--------------------Skip line-----------------
This "Consumption Location" must be over the pieces of information and they are data from my query, so are the other columns. The 4 other columns must be grouped, so they can look as the first image, otherwise won't have the layout needed.
Now I ask you: How can I do such thing?!
I appreciate the help, and I'm sorry that I sounded mad. I'm really pissed off 'cause of this.
Tks!I believe I have reproduced the layout you are looking for.
I created a static dataset using sample data similar to what you have:
I then added a table and the dataset to the above sample dataset. I added a parent group to the detail group (MU) and a parent group to MU (Consumption Location). These each added a group column. I deleted both of the new group columns without deleting the
groups. I deleted the existing header row then added a Total row to the MU group > Before. I right-clicked the new total row and Inserted a row > Inside Group - Above. I added a 4th detail cell by right-clicking the middle column and choosing Insert
Column (either left or right). Now I merged the 4 cells of the top total row together and did the same for the bottom total row.
I populated the data as follows... bottom total row I added [Consumption Location]. In the 4 data cells from left to right... [MU], [PartNo], [Description], [Qty]. Last step is to edit the expression in the first detail cel. Instead of just displaying [MU]
you want that for only the first record of the group so use the following expression instead: =IIf(Previous(Fields!MU.Value) = Fields!MU.Value, "", Fields!MU.Value)
Add a little formatting to make it pretty and...
The empty total row at the top I set the top, left and right border style to None. This gives you the empty line.
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek. -
Dear Fico Family members.....
KE30 Report is a multidimentaional nd highly flexible report, many of the users accessing the report regularly and they can view the report as per their requirement in different dimentational...
Std functionality : Any one can access the report and view the report in their view without saving that views.
Problem : In our case users access the report in different view and finally they are saving that views this is become a big truobles for next user..
Clarification need from you end :--
1) Is there any chance to create Userwise layout option
2) How to control above problem ??
Qucik solutions highly appreciated and rewardable
Regards
Suresh PolineniIs the issue regarding too many saved views getting difficult to manage, or is it that the subsequent users end up seeing a calling a view they don't wish to?
The first is a training issue.
In the second option, the system normally asks if it should re-read the data or display a saved version as of a <<date>>. Ask the report to run afresh and it shouldn't resort to saved views.
Cheers. -
Handle in the report layout structur.
Hi Team,
I have created a selection screen with two radio buttons one for Preq Details and another for PO Details.I am showing the output in ALV Report using(Reuse_alv_grid_display).Also i am saving the report layout variants in the alv report using(Reuse_alv_variant_f4,REUSE_ALV_VARIANT_DEFAULT_GET and REUSE_ALV_VARIANT_EXISTENCE).I am getting the layout variant but Layout Variants saved for P-req report should not show up in PO report and vice versa.)what to do for that one?
i have read some postings saying that just we need to a Pass HANDLE in layout structure..but still i am not able to save them in specific report.
Thanks
ShakeerHi Friends,
Can any one Please help me..
Thanks,
Shakeer -
Download alv report using layout variant in background
Hi All,
I want to download an Alv report using layout varaint in background job.
can any one please help me.
i.e...
I am facing a problem in downloading a text file to the Application server.
My requirement is, when the user downloads a file with the layout variant, the file should have only the columns which was selected in the variant.
Will rewards to helpfull ans
regards
Chetanhey seshu,
I am facing a problem in downloading a text file to the Application server.
My requirement is, when the user downloads a file with the layout variant, the file should have only the columns which was selected in the variant. -
Layout variant is not working in background in ALV report
Hi,
I have one LAV report to send the report output through mail in foreground and backgroud.Final internal table is having 46 fileds to display the output.But here user is saving the layout variant and sending that layout variant output to mail id in excel format with zip file.Its working in foreground.But in background its not working.Even if we select the layout variant,its sending all the 46 fileds to mail.
here we have used the below FM to update the fieldcat itab.
CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET'
IMPORTING
et_fieldcat = it_fieldcat[]
es_variant = v_disvariant
EXCEPTIONS
no_infos = 1
program_error = 2
OTHERS = 3.
In for ground NO_OUT = 'x' for non selected fields and NO_OUT = ' ' for selected fields.
But in background NO_OUT = ' ' for all the fileds, even if we select the layout variant.
Please suggest me with the solution.
Regards,
Jayaramhi ,
Do according to this
SORT t_ekbe by belnr.
if t_ekbe[] is not initial .
SELECT MBLNR
BWART
SMBLN
ERFMG " This is the new added field
erfme " This is the new added field
INTO CORRESPONDING FIELDS OF TABLE t_mseg
for all entries in t_ekbe
from mseg
where mblnr = t_ekbe-belnr
AND bwart = '101'.
endif.
after this
loop at t_ekbe .
loop at t_mseg where mblnr = t_ekbe-belnr .
t_ekbe-ERFMG = t_mseg-ERFMG .
t_ekbe-erfme = t_mseg-erfme .
modify t_ekbe transporting ERFMG erfme .
clear t_mseg .
endloop.
clear t_ekbe .
endloop.
Regards
Deepak . -
DB Table for Layout Variant in ALV report
Please help me by providing the table name which will get an entry when we save Layout Variant in ALV(OO ALV grid) output.
Hi,
I have seen the table LTDX which is giving me the Variant names for a particular program. Hope this will help you.
Database table is LTDX
Database view is V_LTDX.
Regards,
Venaktesh -
Downloading ALV Report using Layout Variant
I want to download an Alv grid report output using layout varaint to Presentation server and also wants to mail to user .
i.e...
I am facing a problem in downloading and in sending mail.
My requirement is, user will choose layout variant
As per Variant chosen, i have to download that alv grid output to presentation server and also to mail.
These download and mail sending options is in selction screen
Will rewards to helpfull ansHello,
Do like this.
FORM DOWNLOAD_FILE TABLES P_T_LISTE STRUCTURE G_T_LISTE.
G_R_DISP_VARIANT-REPORT = SY-REPID.
G_R_DISP_VARIANT-VARIANT = PA_VAR.
CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT'
EXPORTING
I_DIALOG = 'N'
I_USER_SPECIFIC = 'A'
I_DEFAULT = 'X'
IT_DEFAULT_FIELDCAT = G_T_FIELDCAT
I_LAYOUT = G_R_LAYOUT
IMPORTING
ET_FIELDCAT = G_T_FIELDCAT
ES_LAYOUT = G_R_LAYOUT
CHANGING
CS_VARIANT = G_R_DISP_VARIANT
EXCEPTIONS
ERROR_MESSAGE = 4
OTHERS = 4.
LOOP AT G_T_FIELDCAT INTO G_R_FIELDCAT WHERE NO_OUT NE 'X'
AND TECH IS INITIAL
AND FIELDNAME NE 'ICON'.
MOVE-CORRESPONDING G_R_FIELDCAT TO IS_FIELDCAT.
IS_FIELDCAT-FIELDNAME = G_R_FIELDCAT-FIELDNAME.
IS_FIELDCAT-INTTYPE = G_R_FIELDCAT-INTTYPE.
IS_FIELDCAT-OUTPUTLEN = G_R_FIELDCAT-OUTPUTLEN.
IS_FIELDCAT-REF_FIELD = G_R_FIELDCAT-FIELDNAME.
IS_FIELDCAT-REF_TABLE = G_R_FIELDCAT-REF_TABNAME.
APPEND IS_FIELDCAT TO IT_FIELDCAT.
ENDLOOP.
DATA: WA_LISTE LIKE P_T_LISTE.
CLEAR:IT_OUTTAB.
REFRESH: IT_OUTTAB.
LOOP AT P_T_LISTE INTO WA_LISTE.
WA_OUTTAB-PSPID = WA_LISTE-PSPID .
WA_OUTTAB-POSID = WA_LISTE-POSID.
WA_OUTTAB-POST1 = WA_LISTE-POST1.
WA_OUTTAB-STTXT_INT = WA_LISTE-STTXT_INT.
WA_OUTTAB-STTXT_EXT = WA_LISTE-STTXT_EXT.
APPEND WA_OUTTAB TO IT_OUTTAB.
ENDLOOP.
**dynamic table creation for data
ASSIGN LT_DATA TO <FS_DATA>.
* Create a new Table
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = IT_FIELDCAT
IMPORTING
EP_TABLE = <FS_DATA>
EXCEPTIONS
GENERATE_SUBPOOL_DIR_FULL = 1
OTHERS = 2.
IF SY-SUBRC = 0.
ASSIGN <FS_DATA>->* TO <FS_1>.
CREATE DATA NEW_LINE LIKE LINE OF <FS_1>.
*** A field-symbol to access that work area
ASSIGN NEW_LINE->* TO <FS_2>.
**MOVE DATA
LOOP AT IT_OUTTAB INTO WA_OUTTAB.
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT'
EXPORTING
INPUT = WA_OUTTAB-PSPID
IMPORTING
OUTPUT = WA_OUTTAB-PSPID.
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT'
EXPORTING
INPUT = WA_OUTTAB-POSID
IMPORTING
OUTPUT = WA_OUTTAB-POSID.
LOOP AT G_T_FIELDCAT INTO G_R_FIELDCAT
WHERE NO_OUT IS INITIAL
AND TECH IS INITIAL.
ASSIGN COMPONENT G_R_FIELDCAT-FIELDNAME OF STRUCTURE
WA_OUTTAB TO <FS_5>.
ASSIGN COMPONENT G_R_FIELDCAT-FIELDNAME OF STRUCTURE
<FS_2> TO <FS_3>.
<FS_3> = <FS_5>.
ENDLOOP.
INSERT <FS_2> INTO TABLE <FS_1>.
ENDLOOP.
ELSE.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC EQ 0.
LOOP AT <FS_1> ASSIGNING <FS_2>.
TRANSFER <FS_2> TO P_FILE.
ENDLOOP.
ELSE.
MESSAGE E041(S9) WITH P_FILE.
ENDIF.
CLOSE DATASET P_FILE.
ENDFORM. " download_file
* 002 vsm1kor 13.06.06 - en
Regards,
Vasanth -
Running the ALV report in Background using layout variant
Hello Everyone,
I am facing a problem in downloading a text file to the Application server.
My requirement is, when the user downloads a file with the layout variant, the file should have only the columns which was selected in the variant.
Can anybody give me a optimized solution for this issue.
Regards,
VasanthHi,
How are you downloading the file to the app server, using which internal table? How are you building that internal table?
What you need to do is to build a internal table dynamically with only those columns that are a part of the layout variant. Then move the data from the original internal table into this and then download the dynamica internal table to the app server.
Regards,
Ravi
Note : Please mark the helpful answers -
Hi all,
Could you tell me any tools for design report layout or other way to design? Beside Quick Viewer, SAP Query, Report Painter/Writer, they can't group data and very complex.
Thank you!Use transaction GR11 GR12 GR13 to create and change layout.
-
PLEASE HELP! members deleted after refreshing, current report and report layout
Hi ,
First of all , before explain my issue, I read the note about March Microsoft update, and my symptoms aren't exactly similar but almost the same.
And it appeared last week, so one month after the ms update.
So, I opened my report, and I see that current report and report layout are greyed out,
I try to refresh the report and some members in rows axis are deleted.
I'm only one to have this problem in my team.
Is there anybody able to solve my issue please ?
Thanks in advance
Jonas
P.S sorry for my english.Hi Marco,
First of all, sorry to reply long a time after you answer but I was so very busy with another things.
In fact, It's was a mistake, It's sure that it's not about an update. My issue comes only when I save my report in a different server, When I'm in the source server, I select the target server with "Select Another Connection" process And I save my report in the target server.
After that, lot of members are dissapeared in my row axis.
I don't know why. -
Unable to save the ALV layout variant and display of selection screen on F4
Hi All,
The end user wants to directly select the layout variant (SLIS_VARI). I have used the following code to display the layout variant on selection screen. But, I am unable to save the variant on ALV. Whenever I am trying to select the layout variants (by doing F4 on selection screen) its displaying "No Layout found".
Following is the code for displaying layout variant:
PARAMETERS: p_var TYPE slis_vari.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_var.
PERFORM f4_variant CHANGING p_var.
FORM f4_variant CHANGING c_variant TYPE slis_vari.
DATA: ls_variant TYPE disvariant,
l_exit TYPE char1.
ls_variant-report = sy-repid.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = ls_variant
i_save = 'A'
IMPORTING
e_exit = l_exit
es_variant = ls_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
IF l_exit EQ space.
c_variant = ls_variant-variant.
ENDIF.
ENDIF.
ENDFORM. " f4_variant
and following is the code for displaying the ALV:
FORM edition_alv.
ws_variant2 = ls_variant.
* Call ALV editor in list mode
IF p_list = 'X'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = ws_extract1-report
i_callback_user_command = ws_user_command
is_layout = ws_layout
it_fieldcat = wt_fieldcat
it_sort = wt_sort
i_save = 'A'
is_variant = ws_variant2
it_events = wt_events[]
TABLES
t_outtab = wt_edition.
* Call ALV editor in grid mode
ELSE.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = ws_extract1-report
i_callback_user_command = ws_user_command
it_fieldcat = wt_fieldcat
it_sort = wt_sort
i_save = 'A'
is_variant = ws_variant2
it_events = wt_events[]
TABLES
t_outtab = wt_edition.
ENDIF.
ENDFORM.
I am not sure whats going wrong, but I am unable to save variants.
Please help.
Thanks,
Vishal.The F4 will display you the existing layouts only. So you need to save the layout first & then execute the report again & check if you are getting F4 values for that field.
The Layout needs to get stored with variant.
Regards,
Mahesh
Maybe you are looking for
-
I have installed Lion and getting the following error, i can't tell why since it doesn't mention any other plugins, etc. I tried creating a new user and the problem persists. Also having a similar crash on launch issue with Mail but I use Outlook, j
-
Best Practice storage of OLAP and ROLAP data
Hi all, We are looking at building OLAP cubes based on our our existing relational datawarehouse . Should we just build OLAP cubes in another schema on the existing datawarehouse database or are there fundamental reasons for not storing the OLAP cube
-
Quicktime Error during Install/when try to open Itunes says encounterederro
error.... any ideas,fixes? Thanks
-
I'm applying for a job that asks you to fill out an online application which is a pdf that cannot be saved. Question is can I still send them it some other way or do you think they want me to scan and send in that way. The job annoucement says to
-
Formula not working, Plz help
Hi all i have one scenario for formula$ I am calculatingYTD value in period dim and one more dime CATGORY and INDICATOR scenario is wen indicator member is ID3 we have to calculate ytd values and we have to displaythe values for ytd crossing(which is