Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

urgent important

Former Member
0 Likes
1,122

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,100

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

8 REPLIES 8
Read only

Laxmana_Appana_
Active Contributor
0 Likes
1,100

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

Read only

0 Likes
1,100

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

Read only

0 Likes
1,100

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

Read only

Former Member
0 Likes
1,101

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

Read only

0 Likes
1,100

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)

Read only

0 Likes
1,100

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

Read only

0 Likes
1,100

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

Read only

Former Member
0 Likes
1,100

problem solved