cancel
Showing results for 
Search instead for 
Did you mean: 

a SMARTForm question--new page

Former Member
0 Kudos

hi guys,

a SMARTFORM question need your help here.

ABAP program

-


itab1 (sflight-carrid)

itab2 (sflight-carrid,connid,paymentsum,seatsmax,seatsocc)

in this example, i have 'LH' and 'SQ' in itab1

pass it to SMARTFORM

SMARTFORM

-


1.how to separate both the 'LH' and 'SQ' info into difference form to print?

2.also i have a separte window with text field(for heading purpose, in this example will be the carrid) place above the main window area. how to get the correct carrid?

thank you very much

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

for this u can use the window inside the loop.

Inside the loop in the second table section, u need to give the field name and select the event 'Event on sort End'. then one event will generate. in that event select new page option.

REward me if it useful...

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

You can use the <b>SORT Criteria</b> and give CARRID in the <b>Data tab</b> of the table.

Regards

Raj

Former Member
0 Kudos

Hi,

First of all in itab1 (sflight-carrid) you have only two types of carrid ('LH' ,'SQ' ) or multiple.

If you have only two types of carrid and you want to print both in separate forms then,

It is simple, in your abap program differentiate the two types into two different internal tables. And pass the two tables to the smart form

call two different form

1. if itab1-carrid = 'LH'.

call form 'Form1'.

pass the itab2.

elseif itab1-carrid = 'SQ'.

call form 'Form2'.

pass the itab3.

2. No need of define a widow for heading. Place table in main window.

And in the header of table add text and write your itab-carrid.

Former Member
0 Kudos

Hi,

After some try, I'm passing the detail level data in separate forms into spool. However we're facing a problem that the &SFSY-PAGE&/&SFSY-FORMPAGES& are not showing continually. It will start with page 1 whenever the new carrid come. Any suggestion to deal with this?

Thanks.

Former Member
0 Kudos

hi Boon,

try to use the Alternative command...for CARRID....

check for 'LH' or 'SQ'....

hope this may be helpfull....

or else plz explain ur query in brief...

please reward in case useful...

regards,

prashant