Number of line Smartforms
Hi,
is it possible to calculate the number of line in a loop? In the loop i have lot of text with condition, and i want to know if it's possible to know how many line they are in the loop.
If it's not possible, have an other question, is it possible to write a text in the down of a window?
thanks.
Hi!
All lines within an internal table:
DATA: gv_lines TYPE i.
DESCRIBE TABLE itab LINES gv_lines.
The number of the actual line can be found in the SY-TABIX system variable.
Regards
Tamá
Similar Messages
-
How can i know total number of lines in a smartform page?
Hello All,
1. How to find the total number of lines that can be printed on a smartform page?
2. Need to determine the current line on which the text is goint to printed
Depending upon the no of lines left for printing i need to call a new page explicitly?
Answers will be rewared...
Thanks and Regards,
Josin George
Edited by: Bhuvaneswari Mathuraiveeran on Jan 1, 2009 1:02 PMhi ,
I think u have to decide no of lines by trial error menthod only ...
u can use SY-TABIX to decide , which line its printing ...
hope its helps ..... -
SAP-Script - Draw Table (Boxes) with variable number of lines
Hello,
I want to create a Table with Frames in a SAP-Script Form. First of all I don´t know the position of the table in the window main. It can be page 2 or 3 on top or in the middle. But i have to describe a position like
POSITION YORIGIN '12.95' CM. How can i position the table in a variable way?
And i don´t know the number of lines of the table. How can I manage to draw the correct numbers of boxes as numbers of lines exist?
Kind Regards
Carsten FuchsHi carsten,
1. Drawing GRID (just like excel, matrix)
is very cumbersome in sapscript layout.
(either dynamically, or hardcoded)
2. Moreover, the final look,
may or maynot appear as requried,.
ie. exactly with proper alignment and grid lines.
3. If the font size is required to change,
then the dynamic position also changes.
4. If the grid is supposed to go to the next page,
again the calculation and logic becomes tougher.
5. To use grid, its better to use smartform,
which provided FINE CONTROL of the grid
and its lines and width, height, style etc.
6. In sapsctip, at most we can use
UNDERLINE (_) and PIPE (|)
regards,
amit m. -
Restriction on number of line items in an automatically generated document
Hi all,
As per my info, an accounting document must have a minimum of 2 line items to complete the document. At the same time an accounting document can have a maximum of 999 line items.
My observation:-
When I am posting depreciation using t-code AFAB, system is posting depreciation document (document type AF). While checking, I found that the system has posted around 16 document for a period.
On further checking, I observed that the each document contains a max 100 line items.
I am using SAP 4.7
My Query:-
a> Is there any way / place wherein we can restrict the maximum number of line items possible for a given docuemnt type or for all document types in the client?
b> In case it is not possible to restrict the number of line items per document, what could be possible reason for the system behaviour wherein it is posting about 100 line items per document & thereafter starts a new document.
Thanking you in advance
Santosh K AgarwalHi,
I have been reading CIN. There I came across with a statement i.e. "There is restriction on no of line items to be in an Excise Invoice".
where you read this i dont know
but yes for outgoing excise invoice we can put limitation in sap cin
as per incoming excise invoice i think no limitation
in path SPRO-tax on goods movemnet-India-basic setting-maintain excise registration here you can maintain this
and yes this for india only for other country they may have different
Regards
Kailas ugale -
ALV_GRID How to get number of lines after filted applyed?
Hi, all!
The task is to display title in alv_grid like
"N records selected (X records on the screen)".
It means, N records in dataset and X records displayed after filter applyed by user.
But i can't get number of lines after filter applyed from the alv_grid.
Can anybody help me?
Thanks & regards,
KonstantinHi,
If it goes through PBO/PAI cycle after user sets the filter then in your PBO call method get_filtered_entries of CL_GUI_ALV_GRID and then do a describe statement on the table.
Number of entries in your grid table - number of entries in this filtered entries table will give you the displayed entries after the filter is set.
If it does not go through PBO/PAI cycle then register for after_user_command and I think the fcode for filter is '&FILTER' and code for the above logic in your handler method..
Hope this helps..
Sri -
Number of line items in each Invoice
Hi Gurus,
I have one requirement
i need to display one column in the Report i.e. "Line items per eachinvoice" which should give the number of line items per that Invoice
when iam using tcode 'FB03' at ECC - Document Display it is giving
for Doc 1111 - 2 line items
for Doc 2222 - 12 line items
so in the report that column should display
2 for Doc 1111
12 for Doc 2222
please guide me how to do this
Thank youcreate a formula with constant 1
and set the exception aggregation as Total, and set the reference char as Line Item.
Make sure you have Invocie in the report.
- Danny -
How to restict number of lines from my report output
Hi,
I deveoped a noraml alv report where 26 fields displayed in the report output .But when nuber of lines exdeed 65,000 then we are unable to donload it to spread sheet .so we want to reduce the number of lines based on customer .How to do this in layout is there any facility to restict the number of lines ??
Please help meHi I am not sure but you can try like devide table entries in multiple internal tables.
Create saperate ALV Report and give customized button(Next and Back) to each report will have interlink to this reports. -
How to find number of lines in the text content?
Hello All,
I have a multi line text item. I want to know the number of lines in a text item? How can I do that?
Note that every lines end with the shift+enter.
Example,
This is a
sample.
After line This is a there is (Shift + Enter).
Thanks for any help.Whenever the user inputs Shift-Enter, Photoshop inserts an [EOT] (End Of Text) control character (\x03 or \u0003) in the string.
Also, in order to split the text according to multiple separators in only one call, it is necessary to use a regular expression instead of a string.
Try replacing:
var theArray = theText.split("\r");
with:
var theArray = theText.split(/[\u0003\r]/);
BTW, you can improve performance by explicitely requesting the textKey property of the current layer object.
Try using:
ref.putProperty( charIDToTypeID("Prpr"), stringIDToTypeID("textKey") );
ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
instead of:
ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
HTH... -
How to count number of lines in a file?
I am using a BufferedReader to read my file, but I like to know how to count the number of lines in a file is there a way to do that in Buffered Reader or do I have to use FileInputLineStream?
Well, if you know how to read one line with a Buffered reader, and you know how to keep reading lines until you run out, then all you have to to is initialize a counter to zero before you start reading, add 1 to it each time you read a line, and then examine its value when you're done.
Try that, and post again if you get stuck.
Just be careful how you construct your loop. "Off by one" errors are a common way to get bitten. It could happen if you count what you think is the last line, but you've actually already counted all the lines and you end up counting one extra for "there are no more lines". -
How can I find out the number of lines in a text file?
How can I find out the number of lines in a text file?
java.io.BufferedReader in = new java.io.BufferedReader( new java.io.FileReader( "YourFile.txt" ) );
int lineCount = 0;
while( in.readLine() != null )
lineCount ++;
System.out.println( "Line Count = " + lineCount ); -
How do you find the number of lines in a file?
I need to count how many lines there are in a file, I am using a BufferedReader to read in the data, but how can I find the number of lines?
ThanksThat depends. How do you define a line? Is it a specific number of
characters, a String that's terminated by a newline character or some
combination thereof? -
How do I increase the number of lines presented in a drop down list?
When I am entering a single character/number for each of a random selection of three letters in a password verification, I get a drop down list from A to S only, the first 20. Accessing letter T to number 9 means scrolling down. How can I increase the number of lines in a drop down box to 36?
Hi canddski,
If you are taking about an interface on a website, this is up to the ui designer. But there is a reflow that depends on screensize for the Firefox UI.
You can use asp to control the list:
[http://forums.asp.net/t/1970301.aspx?How+can+i+display+selected+no+of+records+from+datatable+using+dropdown+list+without+database+]
but also try asking on stackoverflow.com -
How to get the number of lines of a FileReader
I need to calculate the number of lines of a FileReader object. How can I do that ?
I wrote the following some while ago. It assumes that a line is terminated by '\n' but it should be easy to adapt.
import java.io.*;
public class LineCounter
public static int countLines(File file, String encoding) throws IOException
int lineCount = 0;
Reader reader = new InputStreamReader(new FileInputStream(file), encoding);
char[] buffer = new char[4096];
for (int charsRead = 0; (charsRead = reader.read(buffer)) >= 0;)
for (int charIndex = 0; charIndex < charsRead ; charIndex++)
if (buffer[charIndex] == '\n')
lineCount++;
reader.close();
return lineCount;
public static void main(String[] args)
try
File file = new File("/home/sabre/work/dev/maps/EUROPE.RIV");
long startTime = System.currentTimeMillis();
int lineCount = countLines(file, "UTF-8");
double time = (System.currentTimeMillis() - startTime) / 1000.0;
System.out.println("File size = " + file.length() + " contains " + lineCount + " lines taking " + time);
catch (Exception e)
e.printStackTrace();
} -
How to get the number of lines of a file?
Folks:
Is there a way to get the number of lines of a text file? I don't know if there is an existing method to do that.
Thanks a lot.HI
I found some solution
other than increment loop and all
here is the code it might helpful to u
//returns the number of lines in a file
//author : Ravindra S
//Symphony software Hyderabad
try
RandomAccessFile randFile = new RandomAccessFile(csvFile,"r");
long lastRec=randFile.length();
randFile.close();
FileReader fileRead = new FileReader(csvFile);
LineNumberReader lineRead = new LineNumberReader(fileRead);
lineRead.skip(lastRec);
countRec=lineRead.getLineNumber()-1;
fileRead.close();
lineRead.close();
catch(IOException e) -
Maximum number of line items in sales order
hi,
Is there a limit on the maximum number of line items that are permitted in a sales order?
Thanks,
ShailajaHi
I think the correct reply would be 999,999 because data type of item number POSNR is NUM 6, which means that it can hold upto value 999,999.
However, at the same time keep the following into consideration:
1. FI document has a restriction of 999 line items per document. So, depending on the account settings, there will be a lower limit. E.g. if each Sales order line item results in 2 line items in the accounting document, then the max. no. of SO line items is limited to 499.
2. If FI summarization is active, then the system summarizes the account postings, thus reducing the no. of FI line items. Hence, a SO can accomodate more than 999 line items. However, this means that certain line item level details will not be available to the Finance guys (which they may not like).
3. As the number of line items in a Sales order increases, the system performance suffers greatly. There are performance fixes available, but in general, it is painful to load a SO with large no. of line times through BDC's. 10 Sales orders with 100 lines each consume less system resources than 1 Sales order with 1000 lines.
Maybe you are looking for
-
IPhone no longer synchs with iTunes
For the past few days, my iPhone was syncing perfectly. My songs, calendar Apps; everything was on my iPhone. Now, since this morning, for some reason, none of my songs will sync to my iPhone from iTunes. I am wondering if it has something to do with
-
Windows 7 and Photosmart C6280
I have read that Windows 7 may not allow older printers to function. I am getting close to purchasing a new desktop PC, HP Pavilion HPE h8qe series with Windows 7 and I want to use my HP Photosmart C6280 All-in-One printer with it. Can anyone tell
-
I want to run iTunes on a home server, how do I do this?
My iTunes music files take up too much space/room on my laptop hardrive. I want to store the music and a separate storage area. Is that possible?
-
Check_Requirement &Queue_Not_Empty error in SPAM
Hi Experts, I'm strucked at the middle stage of support packages applying in solution manager. below patches are in the spam queue Abap-16,Basis-16,BW-17 ST-427 and KU50012. I have downloaded proper files and extracted into EPS/in. still i'm getting
-
UCES licensing - External Users
Has anyone had experience in regards to external user licensing and UCES. For example, I have a customer that will want to use the customer e Services. I have them create the user id and password, and they are able to perform the e services. Is this