2007 Apr 11 12:25 PM
in a form window can we cont no. of lines it will display?
- how many line will appear on ship to address, 3 or 4 lines?
-
also second point if the 4thrd line is blank and address is shown in 5th line of any address can we move it up 5th line to 4th liine
2007 Apr 11 3:49 PM
Hi Arora,
for 1st query:
Yes, u can count the number of lines displayed. If ur print program is ZPROGRAM, then find the number of records in the ITAB u r passing to script form using DESCRIBE statement.
In script, write a perform statement ( a subroutine to count the number of records printed on form).
if count reached the no: of records in ITAB then last line reached.
for 2nd Query:
use /: IF &ADDRESS-4THLINE& NE ' '
&ADDRESS-4THLINE&
/: ENDIF
WITH THAT U CAN SUPRESS BLANK LINE.
i think there is some command too to suppress blank line in Scripts
Regards
SAB
in a form window can we cont no. of lines it will display?
- how many line will appear on ship to address, 3 or 4 lines?
-
also second point if the 4thrd line is blank and address is shown in 5th line of any address can we move it up 5th line to 4th liine
2007 Apr 11 12:31 PM
Check this , if the value is blank , blank line will not appear on the form.
/: IF &i_tab-address4& NE ' '.
display address field : &i_tab-address4& .
/: ENDIF
/: IF &i_tab-address5& NE ' '.
display address field : &i_tab-address5& .
/: ENDIF
Regards
L Appana
2007 Apr 11 12:35 PM
pls
i dont want to d o it do it comes later
i just need answer to q wheter i can count no. of lines in a particular windon in a form and if yes how
secondly
can i move the fift line data to fourth line if the fourth line is blank
2007 Apr 11 3:45 PM
Hi Nishant
for the query which you have asked
can i move the fifth line data to fourth line if the fourth line is blank
You can do it this way.
creata a work area and print the fields one after the other and if there is no data in anyone of the feilds then the next line will come upwards i guess.
Regards
Zarina
2007 Apr 11 3:49 PM
Hi Arora,
for 1st query:
Yes, u can count the number of lines displayed. If ur print program is ZPROGRAM, then find the number of records in the ITAB u r passing to script form using DESCRIBE statement.
In script, write a perform statement ( a subroutine to count the number of records printed on form).
if count reached the no: of records in ITAB then last line reached.
for 2nd Query:
use /: IF &ADDRESS-4THLINE& NE ' '
&ADDRESS-4THLINE&
/: ENDIF
WITH THAT U CAN SUPRESS BLANK LINE.
i think there is some command too to suppress blank line in Scripts
Regards
SAB
2007 Apr 12 4:30 AM
my q is can i count Maximum no. of lines a window can accomdate? by looking at the form window or frm any otther means?
not when the data which is coming i want to count what maximum nuo. of lines a particluar window can accoudate how to see it that the window that is in frot of me say ship from how many lines it can accoumate at the max how to see it from form
secondly
the address is comming by address end adress command
is is possible if hte third line is blank and fourth line data is coming can the fourth line can be shifted to third ( of any comand canbe used in betewee not to dsiplay the blank line)
2007 Apr 12 4:40 AM
HI Nishant
I doubt if we can determine the number of lines by the size of the window and directly viewing the window on screen, as CHARACTER FORMATS will definetely influence the count.
To be specific maybe you can try by trial and error basis.
Kind Regards
Eswar
2007 Apr 12 4:54 AM
hi Eshwar
can u give ur contact info
pls elaoborate more, giving the character format eloboration like how to explain to the user that we cannot count, is there any way to count? the no of line a window will display
and what abt the second query? can u suggest?
arora
2007 Jun 07 3:51 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |