Different page formats in single Smartform
Hello Experts,
I have an requirement in my custom Smartforms. I want my first page as by default DINA4 page in where as from second onwards, I want DINA3 page format. Could it be possible? If yes, how I can achieve this? Thanks in advance.
Hi Mayuresh,
You can't give two page format in one smartform
The page format are declared in form attributes it will be same for all pages
one thing you can do is change it to landscape or potrait.
Regards
Arun VS
Similar Messages
-
Multiple page format for single smartforms
We have a requirement to get the output in different page formates for a smartform.
How to achieve this???suppose you r using a program to print the smartform.
Just check this program.
REPORT z_sf_demo1 .
PARAMETERS p_bukrs LIKE ekko-bukrs.
DATA: fm_name TYPE tdsfname.
DATA: ssfctrlop LIKE ssfctrlop.
Function to get the function name to run SMART FORM.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZJAYRA_DETAIL'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
To pass parameters for CONTROL_PARAMETERS
ssfctrlop-no_open = ' '.
ssfctrlop-no_close = 'X'.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = ssfctrlop
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
bukrs = p_bukrs
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
To pass parameters for CONTROL_PARAMETERS
ssfctrlop-no_open = 'X'.
ssfctrlop-no_close = ''.
ssfctrlop-startpage = 'PAGE2'.
Function to run SMART FORM from third page to last page.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = ssfctrlop
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
bukrs = p_bukrs
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ssfctrlop-no_open = 'X'.
ssfctrlop-no_close = ''.
ssfctrlop-startpage = 'PAGE3'.
Function to run SMART FORM from third page to last page.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = ssfctrlop
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
bukrs = p_bukrs
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I have also sent a mail to your gmail id regarding the details of my program.
Hope your query will be solved.
<b>Rewards pioint for helpful answers.</b>
Regards,
Abhay. -
How to trigger different page formats dynamically in smartforms
Hi ,
I have a requirement in smartform,want to trigger different page formants based on country code for ex if country code is ZA12 then pageformant should be DINA4 else page format should be LETTER.
Rgrds
VasumathiHi,
According to me, you have to create 2 smartforms, one in DINA4 and other in LETTER format.
In your driver program, you have to maintain condtion depending on country code.
if country code = 'ZA12'.
call fm <--- DINA4 format
else.
call fm <--- LETTER format
endif.
Regards,
Naveen -
Calling different pages in a single sap script based on conditions?
Hi All,
Can anyone please give me an example of how to call different pages in a single sap script based on condition. Eg., i need to call 5 differnet pages from a single sap script based on 5 company codes.
Please help
Regards
PriyaThis approach to make call from SAPscript. Its concept is similar to make call to a subroutine in another program. I would presume you understand how to use USING and CHANGING parameter. =)
SAPscript -
/: Perform get_date in program z_at_date
/: using &p_year&
/: changing &new_date&
/: endperform.
program z_at_date -
form get_date TABLES rec_in STRUCTURE itcsy
rec_out STRUCTURE itcsy..
DATA:
v_year type char10.
sap script and subroutine uses itcsy structure to transmit parameters
first parameter is incoming while second parameter is out going
their function is like an internal table with header line
all data types between SAPscript and subroutine are string.
so, you might need additional conversion.
read incoming parameter with exact name from SAPscript
READ TABLE rec_in WITH KEY name = 'P_YEAR'.
IF sy-subrc EQ 0.
v_year = rec_in-value.
ENDIF.
to return value, use the exact name on the second structure
CONCATENATE v_year v_year INTO v_year.
READ TABLE rec_out WITH KEY name = 'NEW_DATE'.
IF sy-subrc EQ 0.
rec_out-value = v_year.
MODIFY rec_out TRANSPORTING value WHERE name = 'NEW_DATE'.
ENDIF.
endform.
Hope this helps =) -
Different page formats in the same document
Is it at all possible to create an InDesign-document with different page formats? Example: Page 1: 210x297 mm, page 2: 190x297 mm.
only by using this:
http://www.dtptools.com/product.asp?id=pcid
robin
www.adobescripts.com -
Hi All.
i have an issue in the form printing.
In my form I have to pages.
I want the first page in Potroit format and second one in Landscape.
for this requirement,how to deal in Scripts and in Smart forms.
Can any body help me to solve this issue,.
Thanks in advance,
regards,
eswarWith onli one form u cannot achieve this.. but u need to have two same forms .. one with Landscape orientation.. and second with Portrait orientation...
( Otherwise u can go for the SMARTFORMS , with smartforms u can achieve this in a single form )
There is a way to have first page in landscape and second page in portrait.
Use
START_FORM
END_FORM
twice one form in each having different page setting(like landscape....)
See this code:
REPORT ZTEST_LANDSCAPE.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZTEST_02'
LANGUAGE = SY-LANGU
OPTIONS =
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
SPONUMIV =
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'START_FORM'
EXPORTING
ARCHIVE_INDEX =
FORM = 'ZTEST_02'
LANGUAGE = ' '
STARTPAGE = ' ' <b><u>(*** u can use this option to start printing from the second page )</u></b>
PROGRAM = ' '
MAIL_APPL_OBJECT =
IMPORTING
LANGUAGE =
EXCEPTIONS
FORM = 1
FORMAT = 2
UNENDED = 3
UNOPENED = 4
UNUSED = 5
SPOOL_ERROR = 6
CODEPAGE = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DATA1'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DATA2'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'END_FORM'
IMPORTING
RESULT =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SPOOL_ERROR = 3
CODEPAGE = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'START_FORM'
EXPORTING
ARCHIVE_INDEX =
FORM = 'ZTEST_03'
LANGUAGE = ' '
STARTPAGE = ' '
PROGRAM = ' '
MAIL_APPL_OBJECT =
IMPORTING
LANGUAGE =
EXCEPTIONS
FORM = 1
FORMAT = 2
UNENDED = 3
UNOPENED = 4
UNUSED = 5
SPOOL_ERROR = 6
CODEPAGE = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DATA2'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'END_FORM'
IMPORTING
RESULT =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SPOOL_ERROR = 3
CODEPAGE = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<b>reward if it helps u..
sai ramesh</b> -
Printing different pages by clicking single button
Hi,
I want to print different jsp pages by clicking single button.all process should be done in back ground.Is there any way to do this.
please help me.
thanksIf you are using JavaScript you can do the following:
In the HTML Header add :
<link rel=alternate name="printlink" media=print href="{path to jsp}">
This will cause the jsp/html page pointed at in {path to jsp} when you do a javascript:window.print().
Such as :
<input type="button" class="stdButton" value="Print" name="Print" onClick="javascript:window.print();">
If you have different pages to print you can redirect the link like this:
<input type="button" class="stdButton" value="Other Report" name="OtherReport" onClick="printOtherReport();">
function printOtherReport() {
window.document.getElementsByTagName("link").item(0).href = "{path to other jsp}";
window.print();
window.document.getElementsByTagName("link").item(0).href = "{path to first jsp}"; -
AP Check different page format
Hi Gurus ,
I am printing AP Check using Sapscript . I have to Print the first page in Legal format & Next page inLetter format . How can i control this.
Thanks in advanceTo achieve this kind of scenario you have to modify your driver program, create two forms with your required formats.
Now, fix the lenght of main window ex, 10 line items if it is more then 10 items then it should goto next page, now in your driver program, read the size of internal table.. it line items less then or equal to 10 print in first page, if more then 10 items print first 10 items in first page and delete this 10 line items from internal table and pass the rest to second page.
Rough idea.
OPEN_FORM "Open FORM 1
**USE DO 10 times
WRITE_FORM " PRINT 10 line items on FORM1
*Delete this 10 line items from internal table
**END DO
CLOSE_FORM "Close FORM 1
IF internal table still have values
OPEN_FORM "OPEN FORM 2
WRITE_FORM " PRINT all line items that are left
CLOSE_FORM
Regards,
SaiRam -
I work with Word for Mac, version 11.6.1
When I have one document with several pages setup (say different sizes, or landscape and vertical orientation) and I need to convert to PDF, I got several PDF files, one for each page section of my document.
How can I get only one PDF for my whole document ?
Thanks a lot.
STURIONE
Santiago - Chile
Feb 05, 2011Thank you, MichaelKazlow, for your reply/suggestion.
Actually, I'm not very familiar with this kind of technology, so I'll do my best trying to find out solution following your recommendation.
Tks again. -
Different Page Orientation in Single Report
i am using Crystal Report XI Release 2.
I am creating a report. First page i want to use Portrait Orientation and all remaining pages should have landscape.
First page is cover letter which should only be in Portrait. I tried making this as sub-report, but when i change subreport's orientation, it changes the main reports orientation.
Thanks For Support...Hi Sastry
I've just finished rehashing a report that has required a change from Portrait to Landscape, which I havent' been able to do until getting Crystal 2008... Phew!... Or so I thought...
While editing, the print preview shows me exactly what I want to see... seamless transition from Portrait to Landscape pages.
But once I load the report back into my database and generate it, Crystal seems to change its mind about the changing orientations, and completely ignores the call for Landscape from the second page onwards.
Do you have a suggestion to solve this problem?
-Karen -
How to spilt the screen in to frames and load different pages in a single window??
i want to split the screen in to frames using flex help me...
Welcome to the forum!
The video I want to create is look like a cubic, with my face all around the centre and looking to her ( a video of her will be in the centre) and 8 different video of mine looking to hers.
Put the clip(s) of you on 8 different video tracks in the timeline above each other, and the clip of the girl you want in the center on a 9th video track.
Double-click one of the clips to open it into the viewer. Click the motion tab. There, adjust the scale value so it is the right size and the center value so that it is correctly positioned. Repeat for the other 8 video tracks.
Hope this helped,
Sasha -
Regarding smartforms page format
i create a page format of size 240mm width and 93mm height and go through the transaction SPAD and i done the device type setup also correctly. but when i try to take the print out it is showing the following error as follows.
exception : send_error
message id : ssfcomposer
device type swin does not support page format <name>.
please anybody can give solution for this.Total Posts: 7
Total Questions: 6 (6 unresolved)
Did you even try to search before posting. Similar threads have been discussed no of times.
[Creating custom page format for sapscript/smartform|http://sample-code-abap.blogspot.com/2009/05/creating-custom-page-format-for.html]
Close the threads if resolved
Edited by: K.Manas on Dec 28, 2010 6:06 AM -
Cant print PO - wrong page format
Hi all
I have a smartforms to print PO.
I encounter this problem which some PO cant be print while some other PO can be printed.
Its quite confusing since only some cant be print.
Below is the message:
Form TXT_CONTACT has wrong page format.
Message no. SSFCOMPOSER026
Diagnosis
Form TXT_CONTACT has a different page format than the forms output previously but has been added to the same spool request.
System Response
Form TXT_CONTACT ist not processed.
Procedure
While forms are formatted (FM SSFCOMP_OPEN to FM SSFCOMP_CLOSE), the page format must not be changed. All forms within one spool request must have the same page format.
The first page format used, in this case paper format , is applicable to all subsequent forms.
Please guide me.
Thanks in advanceHi,
Check the NEXT page's PAGE FORMAT what is used in the smartform and make it the same as that of the FIRST page.
I believe the POs which are not being able to print do spill over into the next pages.
Regards,
Ram -
Whats mass printing ?multiple page formating?
whats mass printing ?multiple page formating?
hi..
plz follow the mentioned web link for mass printing ..
and multiple page formatting is ...
sapscript does not support multiple page formatting where as smartform does.
Multiple page formating is nothing havinfg different page formats in a form.
eg..
sapscript zform has 3 pages..
1 page has portrait
2 page has landscape format and 3rd page has landascape.
this is not possible with sapscript..it tends to error. however, you can do so in smartform. Also this is sometime possible in sapscript by creating different form for each page and using the same print program.
regrds,
shamim. -
Creating Tree Menu with each node referring to a different page
Hi,
I've got a Tree with I would like to refer to a different page to each single leaf.
Tree is the following :
select "ID_MENU" id,
"MENU_UNDER" pid,
"MENU_NAME" name,
'f?p=&APP_ID.:&app_page_id.:&SESSION.::NO::FSP_AFTER_LOGIN_URL:'||"ID_MENU" link,
null a1,
null a2
from "#OWNER#"."MENU"
How is possible to refer each single page, stored into the MENU table (wihich contain the menu) to a different node leaf ?
MENU Table is the following :
create table MENU
ID_MENU NUMBER not null,
MENU_NAME VARCHAR2(500),
MENU_UNDER VARCHAR2(500),
PAGE_LINK VARCHAR2(500)
Thanks,
IvanIs your MENU table a hierarchical table or just flat. It looks flat, because it doesn't seem to have a foreign key to it's parent menu. Do you just have two levels?
BTW, you normally would use PAGE_LINK in your link column.
Why not create a hierarchical table as follows:
create table MENU
ID_MENU NUMBER not null,
MENU_NAME VARCHAR2(500),
PARENT_ID_MENU NUMBER,
PAGE_ID NUMBER
);PARENT_ID_MENU would contain the ID_MENU of the parent menu, for the root menus it would be NULL.
Then your query would look as follow:
select ID_MENU AS id,
, PARENT_ID_MENU AS pid
, MENU_NAME AS name
, CASE
WHEN PAGE_ID IS NOT NULL THEN 'f?p=&APP_ID.:'||PAGE_ID||':'||:SESSION
ELSE NULL
END AS link
, null AS a1
, null AS a2
from "#OWNER#".MENUPatrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/
Maybe you are looking for
-
I lose memory from Macbook's hard drive after syncing iPhone
Today I synced my iPhone. My Macbook Pro had about 6 gigs of free space when I synced. During the sync, a message popped up saying my "Startup Disk" was low. I checked my memory usage after the sync and my 6 gigs of free space had shrunk down to less
-
HT204053 How do I get my apps off my iPhone to my ipad
How do I get my apps off my iPhone to my iPad & the rest of the things on my iPhone !!
-
How to output video to TV or Home Theatre? (iphone)
How to output video to TV or Home Theatre? (iphone)
-
I have a late 2009 27in iMac with i7 processor getting colored dots on display
started getting colored dots on desktop could it be bad vidio card
-
Command F [find] function not working in Word 2011
It seems that my Command F function is not working properly...when I look for a term that I KNOW is in my document, sometimes it won't locate it. Sometimes it will only locate one instance of the word [in the sidebar] when the word actually appears m