on 05-13-2009 6:52 AM
Hi All,
There is a requirement in which we get Program name and smart form name from table TNAPR.Now the smart form contains 2 pages.We have to check condition in the program and based on the condition we have to Display either ( first and second page ) or only second page of the smart form.
Can any one please tell how to solve this .
Tahnks in advance.
SSFCOMPOP-SPONUMIV-->Number range number
SSFCOMPOP-TDPAGESLCT-->Pages selected for printing
Data: t_out type ssfcompop.
If COndition.
t_out-sponumiv = 'Number Range'. " 1-2 or 2
ESLE.
t_out-sponumiv = 'Number Range'.
ENDIF.
OR:
If COndition.
t_out-TDPAGESLCT = '2'. " Else Bot pages will print
ENDIF.
Pass T_out to the function module.
CALL FUNCTION 'FORM'
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = t_out
* USER_SETTINGS = 'X'.
Regards,
Gurpreet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Write like,
If sfsy-page = sfsy-jobpages.
display.
endif.
sfsy-page = currentpage.
sfsy-jobpages = last page.
or you can check like
sfsy-page = 2.
I think this may help you.
Thanks and regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
define a flag variable in the program, make it 'X' if it satifies the condition.
define Importing Paramter in smartform with same type as like flag variable in progarm.
now U Export Flag variable to Smartform..
now, in Smartform in Conditions tab of every window of 1st page & 2nd page give condition to print based on the Flag value.
Rgds,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.