ALV - default to saved layout
How can a default to a particular saved layout when using
REUSE_ALV_GRID_DISPLAY? I tried using the is_variant parameter but that doesn't seem to work.
Thank you for any help.
Make sure that you give all data for the variant. Also, I think that the name is case-sensitive. So make sure you check that.
data: variant type disvariant.
* Set layout variant
variant-report = sy-repid.
variant-username = sy-uname.
variant-variant = p_var.
Regards,
Rich Heilman
Similar Messages
-
Default Query Print Layout problem
Hello:
I have a query below SELECT T0.[ItemCode], T0.[Dscription], sum(T0.[Quantity]) as 'Quantity' FROM INV1 T0 WHERE month(T0.[DocDate]) =month([%0]) AND year(T0.[DocDate]) = year([%0]) and T0.[ItemCode] IS NOT NULL GROUP BY T0.[ItemCode], T0.[Dscription] ORDER By T0.[ItemCode].
Which basically output monthly inventory invoiced qty. It works fine. However when I try ti link to the default system print layout and try to print. The column 'quantity' become very small and cut off most of the number. How do I make it bigger? I have been trying to modify it for quiet a while now. Nothing seems to work. I think it's length is preset base on the column lenth in the table! If that's the case how do I make it wider?
Also the default layout for user query are pretty weired. I think it's dynamically allocating spaces depends on number of column. But what happens when you do functions such as sum, avg..etc. There is no present length. So they just disregard it?
Any help will be appreciated.. Thank You
Sincerely Yours
Bo PengHi Bo,
I am asuming that u are not yet familiar with how to work with PLD (Print Layout Designer). I would suggest that u see some tutorials from the following link and then try to change that default layout according to ur own requirements
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/51c19891-0901-0010-6eb1-e71abf09298a
Reagrds
Rizwan Hafeez
Team Lead
SAP Addon Development Section
Abacus Consulting - Pakistan -
Error encountered during generation of default Crystal Report Layout
Hi Experts,
I am currently encountering an error on a particular workstation during generation of a default crystal report layout. Is there any SAP note for this or did someone encountered this error already?
Details:
SAP B1 8.81 PL:06 (I think its not a patch issue since the error is occurring on a particular workstation)
Windows OS: Windows 7
Actions Taken:
Run CRRedist2005_x86
Run CRNET11WIN_EN_200403
Run crnet11win_en_sp1
Run crnet11win_en_sp2
Regards,
ZeusHi,
Check SAP note regardless of version and PL.
1529682 - Crystal report not displayed in Windows 7 OS
1668274 - Print Draft with Crystal Layout
Thanks & Regards,
Nagarajan -
Error while saving layout for report
Using BIEE 11. (Win64 Server 2003 R2 - russian edition)
When designing layout for report and putting text field (dos'nt matter - russ or engl) - I get an error during saving - 'Error when saving layout' (trunslated from russ)
This happens only when putting text field, with other types of filds all is ok!
Where can I find more detailed info about my error?
Also when I choose layout from existing e.g. - Dashboard.xpt and save - I get the same error. When I cut off all text fields from this template - I can successfully save it.
ThanksCheck the OSS note 550760 regarding the issue.
-
Enabling User Specific check box while saving layout in VA05
Dear All,
While saving layout in VA05 user specific check box is in disabled mode , is there any possibility to enable the check so that i can create user wise layouts in VA05.
Regards,
PrasadHi,
Goto SU3, enter user name and press enter
goto parameters tab, enter parameter ID SD_VARIANT_MAINTAIN and parameter value 'A' and save.
Now check in VA05, you will get save button in active mode.
Regards,
Hrishi -
Default the screen layout in T.code FBL1N
Can anyone help me with defaulting the screen layout for FBL1N. When I give the t.code FBL1N i should see the default layout populated.
Pls let me know the settings to be done.
Vinayhi Vinay,
each user can set for her/himself in FB00.
ec -
How do I restore default US keyboard layout?
I am running Tiger on a PPC. I recently chose Spanish to do some writing. I am unable to return my keyboard to the default US English layout even though it is now the only language chosen. Have followed directions for choosing language in system preferences. Thanks for any help.
Do you mean is there any English under the flag (US) in the menu bar?
Yes, does it show there or not?
Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, move these files to the Desktop...
/Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
/Users/YourUserName/Library/Preferences/ByHost/com.apple.HIToolbox.<12digitHexNu mber>.plist
Then reboot once more & set it up again.
PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive. -
Save as project - default to saving all files?
Hi can you make logic default to saving all files when saving as a project or do you have to click copy all everytime you do this? Thanks, Ben
You only have to make your copy/leave/move choices the first time you 'save as project.' After that, it should take care of your choices without further intervention.
-
Set default Skin and Layout for all users
Hi all,
Im using UCM 10GR3 and i must set an default skin and layout for all users.
Into General Configurations Field > System Variables i set
LMDefaultSkin=MySkin
LMDefaultLayout=MyLayout
But this didnt work. Anybody have a clue?
My skin is working fine but i have to change via My Profile.
Best Regards
Danielonly new users.
According to metalink, each one of these will overwrite existing user settings.
XuiSearchTemplate=slim
XuiSearchTemplate=dam
XuiSearchTemplate=myview
XuiSearchTemplate=none -
When I backup my bookmarks to a JSON file, I always do so to the same folder on my PC but the Save dialog defaults to saving on the desktop instead of to the folder previously used. This is profoundly unintelligent behaviour & extremely irritating, as it means I have to navigate through the folder tree every time I want to make a backup.
There seems to be no option to specify a backup location, either in the Options dialog or in about:config.
How can I tell Firefox either to remember the folder previously used or to default to a specified folder, rather than to the desktop?I don't think that there is a way to remember the last used location for creating a backup in the Bookmarks Manager (Library)
Note that Firefox creates an automatic JSON backup in the bookmarkbackups folder in the Firefox profile folder every day when you start Firefox. -
Fields present in the saved layout of ALV
Hi All,
I have a report which has 20 fields in output.
I have saved a layout with only 10 fields and I am using these default layout while executing the program.
Is there any possibility to get the fields in the layout without actually going to the report output?
When I run this report in background mode I am downloading the fields into an excel and sending it to an email.Though the layout has ten fields, all the 20 fields are downloaded into the excel.This is because I have taken all the possible fileds into the excel.
Is there any possibilty to look at the fields present in the layout and pass only those fields data to the excel?
Thanks
SandeepYou should be able to do this as the data is obviously held inside SAP - but the approach may differ a little depending on how your table catalog is defined. The best starting point would probably be function REUSE_ALV_VARIANT_SELECT - have a look at include RJITMON_DOWNLOAD for example (if it's in your system) that uses this to read the variant and assemble a download. Otherwise you may need to delve down a layer or two into the function modules that REUSE_ALV_VARIANT_SELECT calls (e.g. LT_VARIANT_LOAD, LT_DBDATA_READ_FROM_LTDX, & LT_FC_LOAD) - if you do a where-used on these you will probably find an example you can copy the logic for determining the variant column attributes from.
Jonathan -
Displaying an ALV report using a saved layout.
Dear friends
In ALV report there are 2 standard buttons.
One says "select Layout CTRLF9" and another one says "Save Layout CTRLF10".
Using this I can select the layout and save it using some variable.
Now I want to create a field in the main screen so that when
I enter this saved name and run the ALV report, it should show
report using the layout I entered selected (which was saved earlier).
Where will this variable get saved and how can i access this and make it
display using this layout.
Any feed back will be greatly appreciated.
Thanks
RamHi Ram,
Try this code..
BR
Rakesh
**// INITIALIZATION.
initialization.
perform initialize_variables.
**// AT SELECTION-SCREEN.
at selection-screen.
if p_vari is initial.
variant_init.
endif.
perform check_email.
at selection-screen on value-request for p_vari.
alv_f4_for_variant. "#EC
at selection-screen on p_vari.
alv_pai_of_selection_screen.
M A C R O S *
define variant_init.
clear: disvariant,
vartext.
if v_pgm is initial.
disvariant-report = sy-cprog.
else.
disvariant-report = v_pgm.
endif.
end-of-definition.
define alv_f4_for_variant.
variant_init.
call function 'REUSE_ALV_VARIANT_F4'
exporting
is_variant = disvariant
i_save = xsave
importing
e_exit = i_exit
es_variant = disvariant
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.
elseif i_exit = space.
p_vari = disvariant-variant.
vartext = disvariant-text.
refresh i_dynpread.
i_dynpread-fieldname = 'VARTEXT'.
i_dynpread-fieldvalue = disvariant-text.
append i_dynpread.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = v_pgm
dynumb = '1000'
tables
dynpfields = i_dynpread.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
else.
variant_init.
endif.
end-of-definition.
define alv_pai_of_selection_screen.
if not p_vari is initial.
move p_vari to disvariant-variant.
call function 'REUSE_ALV_VARIANT_EXISTENCE'
exporting
i_save = xsave
changing
cs_variant = disvariant.
vartext = disvariant-text.
else.
variant_init.
endif.
end-of-definition. -
Disable Default Settings while saving Layout
Hi,
The client has a requirement wherein he wants to disable the "Default Setting" for all the Users and enable only the "User Specific" while saving a Layout in Standard Reports.
Guide me as to how i can address this issue.
Regards
PJDear PJ,
As per me, instead of Functional Consultant, you must get in-touch with BASIS-Admin; particularly for this requirement.
As, what i know to achieve this, some settings needs to done in Parameter-ID (or Authorization Object - replace/ restrict access to Global layout) in T. Code: SU01/ SU3.
Can't comment much on the same.
Best Regards,
Amit.
Note: Alernatively, post the query in to Forum: SAP Netweaver Administration -
Hi,
I have created an ALV report using the class CL_GUI_ALV_GRID. The report has a toolbar which allows the layout of the report to be changed. But, it doesn't have any provision to save layouts. How do I enable this functionality?
Any help would be appreciated.
Thanks,
DivyamanHi,
while calling method grid1->set_table_for_first_display
pass parameter i_save = 'A'.
CALL METHOD grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'ZCA0FCSTFTOP'
is_layout = grid_layout
is_variant = s_variant
i_save = 'A'
CHANGING
it_outtab = t_zca0fcstftop
it_fieldcatalog = fieldcat.
regards,
vikas.
plz reward if helpful... -
Problem in saving layout in ALV's
Hi all!
I am getting a strange problem in ALV's .For an ALV report some users are able to save the layouts where as some are not able to save .Why is it happening so? I have mentioned IS_SAVE = 'X' in my func.module REUSE_ALV_GRID_DISPLAY.Please help.Hi,
You Have to call the Fm Reuse_alv_variant_f4
SELECTION-SCREEN : BEGIN OF BLOCK blk3 WITH FRAME TITLE text-003.
PARAMETER:p_var TYPE disvariant-variant MODIF ID p2. "Variant Part
SELECTION-SCREEN:END OF BLOCK blk3.
Data: wa_variant TYPE disvariant,
wa_variant1 TYPE disvariant.
CONSTANTS:c_x(1) TYPE c VALUE'X',
lc_a(1) TYPE c VALUE 'A',
FORM alv_variant .
wa_variant-username = sy-uname.
wa_variant-report = sy-repid.
*For variant Part
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = wa_variant
i_save = lc_a
IMPORTING
es_variant = wa_variant1
EXCEPTIONS
not_found = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
p_var = wa_variant-variant.
ELSE.
p_var = wa_variant1-variant.
ENDIF.
ENDFORM. " alv_variant
After That
*display variant
wa_variant-report = sy-repid.
IF NOT p_var IS INITIAL.
wa_variant-variant = p_var.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
is_layout = lwa_layout
it_fieldcat = gi_fieldcat
is_variant = wa_variant
i_default = c_x
i_save = lc_a
TABLES
t_outtab = gi_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
Regards
Sandipan
Maybe you are looking for
-
Firefox wont open - or if it does then it wont load a website - why is this?
Since updating firefox a few weeks ago it hasnt been running as well as previously. Today though a message box appeared asking for firefox to make changes to the computer - I agreed (as I have done before) & still nothing happened, approx 45 mins lat
-
Error in compiling Flex application: 64K byte limit
Hi experts , While deploying the VC model , i m getting this error : Error in compiling Flex application: Error: A function in the code exceeds the 64K byte limit (actual size = '65557'). Since the problem occurs in the compiler-generated deferred in
-
Not sure if IDoc was created or received in file to idoc scenario
Hi, I configured a file to idoc scenario in my test client for idoc MATMAS.MATMAS02 , now after going thru all the phases of design and configuration and creating partner profile using we20 , when I m executing the scenario , I am not sure wht happen
-
The video file was filmed in iMovie, exported as quicktime movie (.mov) and inserted Is there a solution to this? I really need this to work! Thanks!
-
In search of XDK for Oracle 8i.
In some Application (what I am devbeloping) I need to fetch data from Oracle 8i and embed it into an XML for further processing. I read that XSQL Server pages is capable to generate XML with data embedded in it. For this operation XDK is Required. I