REG: Set default width of the ALV header Text
Hi,
The issue which is reported is .
We have a Custom Z program which needs to display the ALV Output. And also there is a scope to change the Layout,
Now in one of the fields, there is
LOAD_NUMBER.
The length of this header is set to 11 in the Change Layout screen,
Now the issue is, If i want to change the layout and set the default width to 15 char and then save it
1)The ALV layout is saving with the Width as 15 and now i can see
*|LOAD_NUMBER<space><space><space><space>|*
|_________________________________________|
|_________________________________________|
|_________________________________________|
But when i re execute the Z Program, the first time when i go to the Change ALV Output screen, then i still see 11 as the default width,
*EITHER *
I want to get the default width what i have saved previously
OR
I want to set the default width to 15
Please give me suggestions or clues to handle such situations.
NOTE The ALV used is Blocked ALV.
Thanks
Sri
Hi SRIKANTH,
ALV has a very weird feature: The layout is stored in some buffering tables that can not be accessed directly by the user. The buffer is re-generated only once a day when the layout changes.
Just run report BALVBUFDEL once, this may change it.
With ALV, I use the column width optimization feature avoiding trouble like this.
FORM alv_layout CHANGING ps_layout TYPE lvc_s_layo.
ps_layout-sel_mode = 'A'.
ps_layout-cwidth_opt =
ps_layout-zebra = abap_true.
ENDFORM. " ALV_LAYOUT
Regards,
Clemens
Similar Messages
-
How can you set the default width of the 'Detailed Navigation iView'?
Hello,
we would like to reduce the default width of the 'Detailed Navigation iView' in order to save some screen space.
So far, we havn't found the right item in the portal admin to do this.
Any help would be much appreciated! Thanks in advance.
Frank Schülke, E.ON Ruhrgas, GermanyHi Frank,
You can change the width of this navigation iview by changing the value of "defaultExpWidth" in the file WAandNAVPanel.js present in the par file com.sap.layouts.framework.par from default value 220 pixels to the value you want.
upload the changed par file and restart the server.
Hope this helps,
(if not do get back )
Regards,
Uma.
Do award points for helpful answers in SDN!!!!!!!:-) -
Need to set default values for the fields plant and location in ME21N
Hi All,
i need to set default values for the fields plant and location in ME21N tcode.
In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
How to resolve this?
Thanks in Advancehi .
i needed to set default strorage location and plant in personal setting in me21n.
i solve it with this way.
go to program SAPLMEPERS in se38.
create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
in this module write:
if MEPOITEM_PROP-WERKS is INITIAL and MEPOITEM_PROP-LGORT is INITIAL.
MEPOITEM_PROP-WERKS = '1000'.
MEPOITEM_PROP-LGORT = '0032'.
endif.
this is the solution.
best regards.
maryam -
How to set default values on the screen painter parameters?
Hello ABAP Gurus,
I would just want to ask how to set default values on the screen painter parameters.
Thank you for your replies.Hi,
To set default values for screen painter parameters initialize the field names with default values in the PBO module....
say u have the field name as f_field1....
in the PBO of that screen initialize it....
f_field1 = '100' "here 100 is the default value.
<b>reward points if useful.</b>
regards,
Vinod Samuel. -
Badi for setting default values in the transaction in APO.
BADI NAME: SMOD_APOCF005 which is used for setting default values in the transaction.
I have implemented the BADI using the below code but that BADI is not triggering. Please can you provide any solution for resolving this.
As per my requirement I am trying to set default values for these three fields RRP_TYPE, WHATBOM, CONVH.
DATA: LS_MATLOC LIKE LINE OF IT_MATLOC.
LOOP AT IT_MATLOC INTO LS_MATLOC.
LS_MATLOC-RRP_TYPE = '4'.
LS_MATLOC-WHATBOM = '5'.
LS_MATLOC-CONVH = '999'.
MODIFY TABLE IT_MATLOC FROM LS_MATLOC TRANSPORTING RRP_TYPE WHATBOM CONVH.
ENDLOOP.
DATA: LS_MATLOCX LIKE LINE OF IT_MATLOCX.
LOOP AT IT_MATLOCX INTO LS_MATLOCX.
LS_MATLOCX-RRP_TYPE = 'X'.
LS_MATLOCX-WHATBOM = 'X'.
LS_MATLOCX-CONVH = 'X'.
MODIFY TABLE IT_MATLOCX FROM LS_MATLOCX TRANSPORTING RRP_TYPE WHATBOM CONVH.
ENDLOOP.The BADI name: SMOD_APOCF005 .
T.code at APO : /sapapo/mat1
Once we enter in that T.Code with some Product and Location data.
There under PP/DS tab.
Under Planning Procedure there is a field PP Plng Procedure which I want to set as 4
And under Order Creation there is Plan Explosion which needs to be set as 5
And Under Horizons there is PP/DS Horizon which needs to be set as 999.
BADi is implemented and active.
And once the data is CIF from ECC to APO
These default values are not set in the T code in APO and the BADi is not triggering. -
How to populate the Ser Entry ext key into the Doc Head text in ML81N Txn??
Hello all,
My requirement is to to populate the Service Entry external key into the Document Header text.
( ServiceEntry - ERS Invoice (MRRL) ). through ML81N Transaction.I have checked for exits in ML81N as well as MIRO. those doesn't seem very convincing.
IF i see the field of Document header text where i need to populate the data it is
( BKPF-BKTXT ) how do i populate the data ( SE external field ) which is in ESSR table..?
if any one has some piece of code please send it across.
this is urgent pls help...........
Any pointers for this would be highly appreciated.
Thanks,
Sreekanth...Please close this thread.Open new thread in forum [SAP Community Network Forums » ABAP Development » ABAP, General |;
-
Capture the Invoice Split Reason and update it in the invoice header text
Hi All,
We have a requirement where we need to capture the invoice split reason and update the reason in the one of the invoice header text.
Problem is the routine where the split criteria is being determined is called a number of times, so how will we determine at what time of time do we need to capture the split reason. I mean at what iteration of the routine will we know that the split value is the right value.
Is there any way to determine the number of iterations of a routine written for split?
Require your valuable inputs for this issue....
TIA
Regards,
SharadenduHi,
Is your invoice split reason maintained in the header or item level?
Try coding your logic in user exit MV45AFZZ and update header text using text id and save it in header text using
FM [SAVE_TEXT|http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm].
Before this logic use FM [READ_TEXT|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm] to determine if the header text is already updated. If yes,exit else save your HEADER_TEXT using SAVE_TEXT.
This code can be written under FORM_USEREXIT_SAVE_DOCUMENT_PREPARE.
Regards,
Amit
Edited by: Amit Iyer on Sep 1, 2009 8:46 PM -
Copy the PR header Text to RFQ header Text while Creating W.R.T
Dear Guru's
While Creating with reference I want to Copy the PR Header text into RFQ Header Text..
Please do the needfulll
Thanks in Advance.
GSANADear You can not copy the header text of PR to RFQ in the standard SAp, as PR is internal document and RFQ is external. but if you even want to do it then contact your ABAP team.
regards,
qsm sap -
Set default width for text box in Adobe Acrobat X
Hello!
I am using the textbox tool to add comments to a document. (not the Typewriter, but the Textbox, since that has more flexibility for formatting the text).
I know how to set the default proprties for text size, color, background color, etc.
Cannot figure out however to to set the default width. Every time I try to add a new textbox, it defaults to about 1 or 2 inches wide, so the text wraps around and around, and then I have to resize the box when I am done.
Is there a way to change the default width?
Thanks!Hi, Amonra
I drew a box I like, and select, and then, Ctrl+C, and then Ctrl+V.
And move the pasted box where to need, and resize the length. At least I get same width boxes.
I don't know how to default it.
I hope it may help you. -
URM How to set default value in the "New Check-in" - "Folder" field
Hello everyone,
I'm trying to find out how to set the default value for the "folder" field in a check-in profile created using the Configuration Manager. If I browse to the folder in the "Browse Content -> Folders" menu and check-in a file inside the folder, it will fill this field automatically. I need to replicate this behavior using the "New Check-in" drop-down menu and selecting a profile, in other words, associate a Folder with a check-in profile.
I know it was possible to do so in previous versions using the folders_g component, but I'm unable to figure out how to accomplish it with the new FrameworkFolders component.
Any help is greatly appreciated.
Thank you.Hello,
It is working fine try this.
PARAMETERS :
y_p_list TYPE char32 AS LISTBOX VISIBLE LENGTH 22
MODIF ID rsg. .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR y_p_list.
MOVE: text-200 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-203 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-210 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-211 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-204 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-205 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-206 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-207 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
MOVE text-208 TO y_wa_listbox-field.
APPEND y_wa_listbox TO y_i_listbox.
CLEAR y_wa_listbox.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FIELD'
dynpprog = sy-repid
stepl = 1
value = ' '
value_org = 'S'
display = ' '
TABLES
value_tab = y_i_listbox[]
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
REFRESH y_i_listbox. -
Setting default size for the information area in the main window
Hi, I wonder if there is any way to change the default size of the information area in the main window (lower left corner). I want it a little bigger because I had some useful information set there and I had to change the size every time I log in.
Thanks in advance.That part of the interface doesn't have an exposed preference to control.
One thing you could do is reorder your metadata fields within the info pane so the most important are listed first and always visible. -
How can i adjest the width of the JTable Header
hi all,
I have putted group header in JTable, due to this the width of the JTable and width of the column of the row is little bit variation. pleases suggest me any way to avoid it.
Thanks
Dayananda B VTableColumn tCol = null;
for(int i = 0; i <= 5; i++){
tCol = tblData.getColumnModel().getColumn(i);
if(i == 1)
tCol.setPreferredWidth(130);
else
tCol.setPreferredWidth(30);
} -
Set default calendar in the ical 5.0.1?
How do I set the default calendar for new events in ical 5.0.1 I just upgraded my iMac to Lion and have migrated to icloud. The calendar that ical currently defaults to is an "unclicked" calendar on My Mac rather than any of the "clicked" (active) calendars on icloud. I tried dragging the preferred default calendar to the top of the icloud calnedar list - that didn't work.
I don't want to totally delete the calendar that is being used as the default, but I certainly don't want it as the default calendar. Any suggestions?No worries, we all forget the obvious at times
Thanks for the star and have a great day. -
Setting default values at the start of a process
Hello
I need to set some constant values to the attributes in data object as soon as start event of a process is triggered.
How can I do that?
Regards
VidyadharVidyadhar,
Follow the below procedure to set Default Values
1.Right Click on Start Event select Properties
->Goto Output Mapping Tab
->Double Click on Element on which you want to give Static Value
and enter the value with double codes for eg: "Name"
Make sure that this element value should be has a Input to the next level.
Thanks
Srikanth -
Set default width of columns in JTable
i have a JTable which has multiple columns.
the rows dont fit into the JTAble normally so i needed to add a horizontal scroll pane which was done by
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);the problem now is that the columns are squashed into table,
i want to be able to set the width of the columns, is there anyway of doing this?good tutorial on JTable
Maybe you are looking for
-
PLEASE HELP!! Compressor or DVDSP problem
I am trying to finish my DVD project and cannot get around this problem. I bring my timeline in from FCP. I add my MPEG2 and Dolby settings. I compress it and import it into DVDSP. The audio comes in fine, but I get the following error message for th
-
Problems in registering Locations with global_name = true.
Hello, I am facing problems registering locations using ombplus. Here is what I did. OMB+> OMBCREATE LOCATION 'TEST_LOCATION' SET PROPERTIES (TYPE, VERSION, DESCRIPTION, BUSINESS_NAME) VALUES ('Oracle Database', \ '10.2','This is a location', 'TEST_L
-
Pruchased music on iPhone, Desktop won't give it back
Hello, I just purchased the iPhone a couple weeks ago and I synced all the music that I had put on iTunes from physical store bought CDs fine. Last night I purchased a CD on iTunes from my iPhone, then went to charge it today on my USB dock and my de
-
Cs6 illustrator trail failed to install
This message pops upwhenever i want to install illustator as part of master collection trial:Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example, ERROR: DF015, DW063 ... --------------------------------------
-
Multiple tabs open each time I open FF and FF freezes midsession
Examples of the freezing: being logged in to OED and not being able to type a word; trying to upload a photo to Facebook and not being able to select one; not being able to make active certain parts of an otherwise active website; not being able to c