cancel
Showing results for 
Search instead for 
Did you mean: 

How to Supress the Second Page in Smart form

Former Member
0 Kudos

Hi,

I have First page where there is no Main Window and on the Second page is with Main Window.Now lets say if there is item detais then vlaue will be printed on second page but in case there is no Item details so..the second page should not come only the first page would appear i.e. we need ot supress this second page.

Thanks,

Pramod

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

just use the command Describe table ITAB lines v_lines.

so v_lines <> 0 means items Exist.

so use this field in the condition

Define a Text ELEMENT for the MAIN window data

Before that text element put a condition based on the v_lines field.

/: IF V_LINES NE 0.

/E MAIN

...........................

............................

/: ENDIF

So when you give print , if no data in internal table it won't print.

Reward points for useful Answers

Regards

Anji

Former Member
0 Kudos

Hi..

There is an option in the main window.

U will find a checkbox which asks u in which page u need the specific main window..

Or else u canm also give conditions in the condition tab..

Rewards points if useful..

Thanks,

Arun