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

script help req in logic

Former Member
0 Likes
369

Hi all,

I have a script with 2 pages first and next

i have two main windows 00 and 01 per page.

I have records like

type mat matdes

a 1 abc

b 2 abcd

a 3 abcde

b 4 bggu

I want to display in my script as

type mat matdes --inside a box

a 1 abc

a 3 abcde

type mat matdes --inside a box.

b 2 abcd

b 4 bggu

my requirement is

1)i want a box for type mat matdes headings

2) i wnat to display everything in 1 window i.e main 00 or main 01,

i.e i dont type mat matdes in mianwindow 00

and

b 2 abcd

b 4 bggu

in mainwindow 01.

or

i dont type mat matdes in mianwindow 01 of page first

and

b 2 abcd

b 4 bggu

in mainwindow 00 of page next.

mY CODE IS LIKE

/E ITEM

/: PROTECT

/: IF &TYPE1& NE ' '.

P TYPE Material Description

/: ENDIF.

Q &TYPE1& &MATNR& &MAKTX&

/: ENDPROTECT

tHIS IS MY DRIVER PROGRAM.

LOOP AT ITAB.

CLEAR TYPE.

AT NEW TYPE.

TYPE1 = ITAB-TYPE.

ENDAT.

WRITE_FORM

ITEM

END LOOP.

WHAT I SEE IN MY OUTPUT IS,

1)i DON'T HOW TO WRITE THE CODE FOR BOX, BECAUSE THE YPOS IS DETERMINED BASED ON THE NO OF RECORD FOR EACH TYPE,

2)i GET THE PROTECT END PROTECT WORKING FOR MAIN WINDOW 00 TO MAIN WINDOW 01 IN FIRST PAGE,

BUT IT DOESN'T WORK FOR MAIN WINDOW 01 OF FIRST PAGE TO MAIN WINDOW OF WINDOW 00 OF NEXT PAGE AND

ALSO IT DOESN'T WORK FROM MAIN WINDOW 00 TO MAIN WINDOW 01 OF NEXT PAGE.

the number of items for type may vary some times type a has 4 and some times 5 .

so it varies.

Any help regarding would be greatly appreciated and its bit urgent.

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
341

you didnt design BOX

/: BOX XPOS YPOS WIDTH HEIGHT FRAME TW INTENSITY

Read only

0 Likes
341

hi,

ANY SUGGESTIONS OR HELP ON MY POST

THANKS

Read only

Former Member
0 Likes
341

Hi

This is an example -- WINDOW (FOR BOX) in se71

/: POSITION WINDOW

/: POSITION XORIGIN '-0.5' CH YORIGIN '-0.25' LN

/: SIZE WIDTH '+0.4' CH HEIGHT +1 LN

/: BOX FRAME 10 TW

/: BOX HEIGHT '1.7' LN INTENSITY 20

Regards,

vind.