Supress Field and space
Hi
Supress field is occuping space in crosstab report.
how to remove the space?
Thank you
Hi ,
If the data is not required then delete the field.
It wont show the space ( I know its wont be the better solu kidding).
If the data is important then need to work around on it.
Regards,
Neo.
Similar Messages
-
Hiding a Field and removing the space occupied by it.
Hi All,
I have a requirement where i need to hide one field at line level in Custom Form. The line level block is having a folder.
I should not use folder property to hide the field. The field should be hidden whenever the form is opened AND SPACE OCCUPIED BY THE FIELD SHOULD NOT BE VISIBLE. i.e other fields should move left wards.
can anyone help me please.............Hi Franc..
Thanks for the prompt reply.. I have done it using form personalization.. I used global variable folder_action. First i copied 'CUT' into this global variable then i executed folder_action using builtin execute_trigger.
Thanks again for the prompt reply...... -
Hi,
I have requirement , where I'm supposed to check for a Comma (,) in an address field and send tht (,) as blank space to the workarea.
Do we have any FM or any check method for this.
Plz tell me.
Rohini.Hi,
say address fields is "v_addr"
DATA : v_len TYPE I,
v_cnt1 TYPE i,
v_cnt2 TYPE I value 1.
v_addr = 'adresss,fiedls '.
v_len = strlen( v_addr ) .
DO v_len TIMES.
IF v_addr+v_cnt1(v_cnt2) EQ ',' .
v_addr+v_cnt1(v_cnt2) = ' '.
v_cnt1 = v_cnt1 + 1.
ENDIF.
ENDDO. -
Removing Commas and Spaces from Field
I have a table called TableD1 in a database with a field called "Range".
The ranges are like 1-1000; 1001-2000; etc. up to like 1000000-200000.
That is how they are supposed to look, they are not numeric fields, just general, containing a low, a dash and a high all in the same field.
I just discovered that quite a few of the entries have included commas and spaces, like 1-1,000 or 100000 - 200000.
I need to write a Query that will remove all of the commas from the data in TableD1's "Range" field, then all of the spaces.
I imagine they are some kind of Update statements but because of the potential to blow up the whole thing, I'm reluctant to experiment.
Does anyone know what code I should use?
Thank you in advance for any help.
GeeMaking sure you've taken a backup. Pull the data into temp table and do the testing. once you satisfied with the output then do the update on the main table.
create table #temp
Range varchar(100)
insert into #temp values('1-1,000'),('100000 - 200000')
select replace(replace(Range,',',''),' ','') from #temp
--update #temp set Range=replace(replace(Range,',',''),' ','')
Validate the the output of the select statement.
--Prashanth -
Trying to concatenate 3 fields wiht commas and spaces
I have some simple code below but my results are not what i would expect. i tried using separated by spaces but then it put a space between my 1st field and the comma
CONCATENATE TRAN_STRUCTURE-NACHN ',' ' ' TRAN_STRUCTURE-VORNA ' '
TRAN_STRUCTURE-MIDNM
INTO RESULT.
I want to see this.
Allen, Joe M
but i am getting this
Allen,JoeMHi Immich,
<b>Allen, Joe M</b>
1. For this we have to <b>write two concatenate</b> statements.
2. like this.
REPORT ABC.
DATA : F1(15) TYPE C.
DATA : F2(15) TYPE C.
DATA : F3(15) TYPE C.
DATA : STR(25) TYPE C.
F1 = 'Allen'.
F2 = 'Joe'.
F3 = 'M'.
CONCATENATE F1 ',' INTO STR.
CONCATENATE STR F2 F3 INTO STR
SEPARATED BY SPACE.
WRITE STR.
regards,
amit m. -
How to Hide Fields and shrink group in a crystal report
I am workling on a report that is looking for the top 15 accounts by state based on assets. I did that by creating a running total field and supressing anything where that running total field is greater than 15. However, my problem is that if the state has more than 15 I have blank space between that state and the next one. Any way to clear that blank space??
Thanks for your timeHi,
How you suppressed the particular section Which containing the Objects.
Suppose you are displaying Accounts in Details section , Suppress the section itself with your condiotion.
Selection Expert>Common Tab> Suppress-->x-2
{#RTotal0}>15
Regards,
Salah. -
Hi All,
I like to know, is it NULL and Space value is same in ABAP, if it is not how to check null value.
Thank you.
Senthileverything is correct though some answers are not correct.
A Database NULL value represents a field that has never been stored to database - this saving space, potentially.
Usually all SAP tables are stored with all fields, empty fields are stored with their initial value.
But: If a new table append is created and the newly-added fields do not have the 'initial value' marked in table definition, Oracle will just set NULL values for them.
as mentioned: There is no NULL value to be stored in an ABAP field. The IS NULL comparison is valid only for WHERE clause in SELECT statement. WHERE field = space is different from WHERE field IS NULL. That's why you should check for both specially for appended table fields.
If a record is selected (fulfilling another WHERE condition) into an internal table or work area, NULL values are convertted to their initial values anyway.
Hope that sheds some light on the subject!
regards,
Clemens -
Hello Gurus:
I have had to use BOTH 'null' and 'space' (ofcourse I tried 'initial' too...) when selecting data from PRPS table, otherwise all the required records were not fetched. I had to do this on two different occassions. The first is a SAP provided field and the other is customer's enhancement. I have cut-paste the two code blocks. Any ideas why?
Thanks in advance,
Sard.
***********(1)**************
select posid objnr func_area zzfunct from prps into
corresponding fields of table it_wbs
where func_area is null or
func_area eq space.
************(2)**************
select prps-pspnr prps-posid prps-post1
into (wa_test1-pspnr, wa_test1-posid, wa_test1-post1,
from prps
where prps-posid in s_wbs and
... and
( prps-zzmlind is null or prps-zzmlind eq space ).
append wa_test1 to it_test1.
clear wa_test1.
endselect.Hello Richard,
the Requirement to check for NULL corresponds to the definition of the database (field) within the DDIC. Check the flag initialize (it has also some documentation).
This flag is intended to be used if the definition of the db table is changed at SAP while the table already is used at customer side.
After deploying the corresponding patch or upgrade such a changed definition may result into the need to convert all entries. For tables with many entries this would result into inacceptable downtime. So such changes are done without the initialiazation/conversion of existing entries.
The tradeoff is the syntax you noticed.
Kind regards
Klaus -
Decimal for a weight field and form calc on a table - header text
Hi Guys,
Need your help on 4 issues I am facing.
1) I am using a Quantity field and till interface the value is 100.000 but in adobeform print its showing 100. How to get decimals printed.
2) in item details there is a another quantity field and in old script its printed as &VBPLP-VEMNG&(7.0) but the field length is 12 and 3 decimals. If I am directly making limit leading digits to 7 then in output the values is printed as 0.
3) In item details printing there is a last field weight which is also decimal field. user wants to print this field value text(Weight) only when a text field value has "X". I got it perfectly getting printed if value is "X" and is not getting printed when its space. but the issue is the text weight is not getting printed only at first page and for subsequent pages the weight is getting printed. In what event I have to write the code for this scenario and currently I had written code in initialize.
Item Layout :
If a value of interface field is "X" the output should be
ID | Material no | PO no | SO no | Qty | unit | Weight |
If the value of interface field is " " the output should be
ID | Material no | PO no | SO no | Qty | unit |
4) After completion of item details there is a requirement to print 2 standard texts. If 1st standard text has no value then it should print space and the next standard text text and value should move up and display. currently i had kept text1,std text value1,text2,std text value2 in flowed subform only.
Awaiting for corrections......Hi Guys,
The issue got solved. I am sharing the solution so that it may be useful for others.
1) solved by using pattern - num{$z,zzz9.999}
2) not necessary
3) In Pagination tab of header - you need to check the check box - keep previous , keep next.
4) have to make the text box to fit a single line and check box multiple lines and keep each standard text in a flowed sub form. Now if 1 st standard text is blank then second standard text will come up.
Thanks
Abilash -
Help with creating a form, I want to add a check box to enable me to unlock certain fields and deselect the block again
Look to the right under "More Like This". Your issue has been discussed many many times. The error you are seeing is because you do not have enough free "contiguous" space on your hard drive. Read the other threads that address this issue to find how to solve the issue.
Or, put "The disk cannot be partitioned because some files cannot be moved" into the search box at the upper right of this page. -
How can i limit the user to enter only A to Z and space in JFormattedText
dear
i want to use JFormatedTextField in two manners
1.Limit the no of charecters.means in a text field only 20 charecters r allowed.
2.and also check the enterd charecter must be a to z and space not other chareters r allowed.
3.same for numbers means 0 to 9 and decimal.
how can i do by using the JFormated TextFilef.Probably lacks in some cases but what the hell.
* Filename: JSMaskedTextField.java
* Creation date: 22-mei-2004
* Author: Kevin Pors
package jsupport.swingext;
import java.awt.event.KeyEvent;
import java.util.Arrays;
import javax.swing.JTextField;
* A masked textfield is a textfield which allows only a specific mask of
* characters to be typed. If characters typed do not occur in the mask
* provided, the typed character will not be 'written' at all. The default mask
* for this <code>JSMaskedTextField</code> is <code>MASK_ALPHA_NUMERIC</code>
* @author Kevin Pors
* @version 1.32
public class JSMaskedTextField extends JTextField {
/** Masking for alphabetical lowercase characters only. */
public static final String MASK_ALPHA_LCASE = "abcdefghijklmnopqrstuvwxyz ";
/** Masking for alpha-numeric characters (lcase/ucase) only. */
public static final String MASK_ALPHA_NUMERIC = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
/** Masking for alphabetical uppercase characters only. */
public static final String MASK_ALPHA_UCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ ";
/** Masking for numbers only. */
public static final String MASK_NUMERIC = "0123456789";
/** Masking for hexadecimals. */
public static final String MASK_HEXADECIMAL = "0123456789ABCDEF";
* An array of keyevent constants defining which keys are always to be
* allowed, no matter what.
private final int[] ALWAYS_ALLOWED = new int[] { KeyEvent.VK_BACK_SPACE,
KeyEvent.VK_DELETE, KeyEvent.VK_UP, KeyEvent.VK_DOWN,
KeyEvent.VK_LEFT, KeyEvent.VK_RIGHT, KeyEvent.VK_SHIFT,
KeyEvent.VK_HOME, KeyEvent.VK_END};
/** Boolean specifying whether casing should be ignored. */
private boolean ignoringCase = true;
/** Specifying whether the maskin is enabled */
private boolean isMaskingEnabled = true;
/** The mask for the textfield. */
private String mask = MASK_ALPHA_NUMERIC;
* Creates a default number field.
public JSMaskedTextField() {
super(null, null, 0);
Arrays.sort(ALWAYS_ALLOWED);
* Creates a number field, with a specified number of columns.
* @param columns The columnnumber.
public JSMaskedTextField(int columns) {
super(null, null, columns);
Arrays.sort(ALWAYS_ALLOWED);
* Creates a JSMaskedTextField with a masking.
* @param mask The masking to be used.
public JSMaskedTextField(String mask) {
super(null, null, 0);
Arrays.sort(ALWAYS_ALLOWED);
setMask(mask);
* Gets the masking for this masked textfield.
* @return Returns the mask.
public String getMask() {
return this.mask;
* Gets whether this JSMaskedTextField should be ignoring casing.
* @return Returns if the component should be ignoring casing.
public boolean isIgnoringCase() {
return this.ignoringCase;
* Checks whether masking is enabled. Default should be true.
* @return Returns true if masking is enabled, false if not.
public boolean isMaskingEnabled() {
return this.isMaskingEnabled;
* Sets whether it should be ignoring casing when checking for alpha-chars.
* @param ignoringCase The ignoringCase to set.
public void setIgnoringCase(boolean ignoringCase) {
this.ignoringCase = ignoringCase;
* Sets the masking for this textfield. The masking will determine which
* characters can be typed. If the characters in de <code>mask</code> do
* not occur in the typed character, it won't be typed.
* @param mask The mask to set.
public void setMask(String mask) {
this.mask = mask;
* Sets the masking enabled. If <code>false</code> this component will
* behave just like a normal textfield.
* @param isMaskingEnabled true if masking should be enabled.
public void setMaskingEnabled(boolean isMaskingEnabled) {
this.isMaskingEnabled = isMaskingEnabled;
* Sets text of this textfield. If the blah blah.
* @see javax.swing.text.JTextComponent#setText(java.lang.String)
public void setText(String text) {
for (int i = 0; i < text.length(); i++) {
if (getMask().indexOf(text.charAt(i)) < 0) { // does not occur
return;
super.setText(text);
* @see javax.swing.JComponent#processKeyEvent(java.awt.event.KeyEvent)
protected void processKeyEvent(KeyEvent e) {
if (!isMaskingEnabled()) {
return;
char typed = e.getKeyChar();
int code = e.getKeyCode();
for (int i = 0; i < ALWAYS_ALLOWED.length; i++) {
if (ALWAYS_ALLOWED[i] == code) {
super.processKeyEvent(e);
return;
if (typed == KeyEvent.VK_BACK_SPACE) {
super.processKeyEvent(e);
if (isIgnoringCase()) {
String tString = new String(typed + "");
String ucase = tString.toUpperCase();
String lcase = tString.toLowerCase();
if (getMask().indexOf(ucase) < 0 || getMask().indexOf(lcase) < 0) {
e.consume();
} else {
super.processKeyEvent(e);
return;
} else { // not ignoring casing
if (getMask().indexOf(typed) < 0) {
e.consume();
} else {
super.processKeyEvent(e);
} -
How to padding the zeroes and space befoer sending from XI to R3 system.
Hi Experts,
How to padding the zeroes and space befoer sending any data from XI to R3 during mapping, how to write a java code to implement this logic, please help me with the coding or any other alternative.
thanks
dhanushto pad spaces you need to write a simple UDF
for right padding use the following
while( inputField.length() < Integer.parseInt(totalLength))
inputField = inputField + " ";
return inputField;
for left padding use the following
while( inputField.length() < Integer.parseInt(totalLength))
inputField = " " + inputField ;
return inputField;
Note:in the above examples <i>inputField</i> will be the input to UDF i.e. the sender field which you need to pad and send to receiver , and <i>totalLength</i> will be a constant i.e length of the field you want on receiver side after padding.
also i m not a Java expert so please check for syntax and semantics for code:) to me it looks correct
Thanx
Aamir
Message was edited by:
Aamir Suhail -
How to display attachments as a field and not in message body
I'd like to attach files in Apple Mail through the use of an attachments field (a la Outlook/Entourage) rather than it being shown as an icon in the message body, but I can't seem to find out how to do it.
I'm pretty sure it can be done as it's displayed in Lokisoft's 'Without Attachment Tamer screenshot' (top left image) http://lokiware.info/Attachment-Tamer .
Any bright ideas? Nothing in the GUI seems to help and Apple Tech Support won't divulge a terminal command I can use to expose the attachments field.Right click the department name column and go to format field and select supress if duplicate...this will remove duplicates
to get it displayed in each page
create a formula say F1 and place the column inside the formula
and conditionally supress for each page
This may help
Thanks,
Ganesh -
Need help suppressing some fields and tabs in documents
Hello everyone, I have just begun working as an SD consultant, and found the following challenge:
I was asked to figure out how to make some fields invisible and even take out an entire tab form the different sales documents.
Can anyone please guide me on how to accomplish this? I would be really grateful. If this post is not clear enough, please just let me know.
Thank you in advance,
DanHi
By suppressing fields for particular transaction can be done as belwo
1. T code SHD0 and create the z variant for the t code that you want to supress the fields.
2.Once supress fields has been done u activate the same by going to standard variants
3.you can see the variant in the tcode by going to system --status
if you want to supress the whole tab then better to consult the ABAPER to do that
REgards
Damu -
Sample code to get 1st 5 characters of a field and also how to use help ?
hi ABAP4 experts,
We are kind of new at ABAP4. We'd be appreciated if you would provide sample code to get 1st 5 characters of a field and also let us know on how to use ABAP4 help to look for such kind solution that next time we don't have to bother you guys here!
We will give you reward points!
Message was edited by: Kevin SmithHi Kevin,
here is the Example for the offset which you want
DATA TIME TYPE T VALUE '172545'.
WRITE TIME.
WRITE / TIME+2(2).
CLEAR TIME+2(4).
WRITE / TIME.
<u>The output appears as follows:</u>
172545
25
170000
<i>First, the minutes are selected by specifying an offset in the WRITE statement. Then, the minutes and seconds are set to their initial values by specifying an offset in the clear statement.</i>
<b>2nd Example:-</b>
DATA: F1(8) VALUE 'ABCDEFGH',
F2(8).
DATA: O TYPE I VALUE 2,
L TYPE I VALUE 4.
MOVE F1 TO F2. WRITE F2.
MOVE F1+O(L) TO F2. WRITE / F2.
MOVE F1 TO F2+O(L). WRITE / F2.
CLEAR F2.
MOVE F1 TO F2+O(L). WRITE / F2.
MOVE F1O(L) TO F2O(L). WRITE / F2.
This produces the following output:
ABCDEFGH
CDEF
CDABCD
ABCD
CDEF
First, the contents of F1 are assigned to F2 without offset specifications. Then, the same happens for F1 with offset and length specification. The next three MOVE statements overwrite the contents of F2 with offset 2. Note that F2 is filled with spaces on the right, in accordance with the conversion rule for source type C.
if you want more info
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb341a358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3294358411d1829f0000e829fbfe/content.htm
hope this solves your Problem
Thanks
Sudheer
Maybe you are looking for
-
Hi all, If u have different date fields in the cube delivery date actual delivery date goods issue date delivery at warehouse and they have taken as characterstics? how they should be mapped in cube?
-
I've checked my server. I've checked my Internet connection. The only other culprit is Thunderbird. Has something changed? Do I need different settings? This is the same problem on two different accounts. And both stopped working at the same time. (I
-
Hello! I'm new to this Linux thing but I think I have my first little contribution!! I was using this CompizSnap script to emulate Aero snap window resizing on my desktop. (http://mikesubuntu.com/2010/06/snap-win … ng-compiz/) I'm not sure if there i
-
Applications password not working
My password that is required to change applications on my mac mini is not working.
-
Information Broadcast Error while sending as PDF format
Dear Team I am getting the following error while sending a mail in PDF format using at Query Level. Error: com.sap.ip.bi.base.exception.BIBaseRuntimeException Notification Number RSBOLAP 014 If anybody faced this problem pls reply. Best Regards, SG