• RELEVANCY SCORE 4.02

    DB:4.02:[Smartforms] Can You Have A Different Layout Per Page? jk





    Hi exper,

    In SMARTFORMS, can you have a different layout per page?

    DB:4.02:[Smartforms] Can You Have A Different Layout Per Page? jk


    Hi,

    Yes we can set different page formats per page.You can set it in the Output options tab.You can select either landscape or portrait.

  • RELEVANCY SCORE 3.57

    DB:3.57:Extra Page In Smartforms mm





    Hi Gurus

    I got a problem in smartforms , in my layout one extra page is comming

    even it doesn't have the Sufficient data in the first page .

    Thanks

    DB:3.57:Extra Page In Smartforms mm


    Give the next page as same first page or put some condition for second page.

  • RELEVANCY SCORE 3.42

    DB:3.42:Smartforms Adding A Page In The Layout c8





    i need to add apage in the layout , if i do that one it is showing me dump error , the requirements is as such that i need to add terms and condition to the PO details so it is right way to go for a new page or what is option for giving new page for printing the terms and condition actually i have given that terms and condition in include text.

    DB:3.42:Smartforms Adding A Page In The Layout c8


    Sridhar,

    I suggest you create a separate smart form for the terms and conditions and call that after calling the smart form for the document that you are printing.

    That way, the terms and cond smart form will be a reusable one wherever you want.

    Regards,

    Ravi

  • RELEVANCY SCORE 3.37

    DB:3.37:Sales Order Confirmation,Standard Layout Set,Smartforms. kp



    What is the standard layout set for sales order confirmation in smartforms.

    I promise to reward,than Q

    DB:3.37:Sales Order Confirmation,Standard Layout Set,Smartforms. kp


    Hi,

    Check In Transaction Code NACE and

    Check table TNAPR.

    TNAPR is the table which will have all the Standard Script and Smartforms

    Regards

    Sudheer

  • RELEVANCY SCORE 3.24

    DB:3.24:About Smartforms c7



    hi to all,

    friend i am getting this message while executing smartform program.

    Line 2 column 3 do not exist.

    now how i locate this line in layout.

    with regards

    bhupi

    DB:3.24:About Smartforms c7


    hi

    u have to ROW by ROW , somewhere in ROW ur using LINE-TYPE which will have only two column and u have defined TEXT for third column also.

    OR u can check for where ur using LINE-TYPE which have only two columns .

    reward if helpful.

  • RELEVANCY SCORE 3.15

    DB:3.15:General Problems Developing Form In Lifecycle Designer pm


    Hi,I'am encountering general problems when working in the layout editor ALD 7.1 from tx SFP.eg, - flipping of forms to utter right when moving one of the embedded subforms, while the main area on the master page remains on its correct position.- when clicking on a textblock to enter and edit the text the text becomes invisible- windows error, ending the editor process- after translating the text (ENtoNL) the form becomes corrupt and not printable or editableAmong others this squeezes us to stop developing in Adobe and return to smartforms since we really need to deliver.used versions: ALD 7.1 patch 3, netweaver 2004s, gui 640 patch 22.please help us preventing the switch to smartforms

  • RELEVANCY SCORE 3.15

    DB:3.15:Print Mode 'T' In Smartforms ax



    Hi,

    Can anyone please explain about tumble duplex mode in smartforms. If we use this mode, how exactly it will going to print on a page.

    With Best Regards

    Mamatha.B

    DB:3.15:Print Mode 'T' In Smartforms ax


    Design your terms and conditions on LAST page, set it to Duplex. Give this page as your Next page for the page "first"/ "Next". Treat this last page as next page but when you set it duplex, it doesnot go for new page instead prints on the back side, select appropriate 'duplex mode' for the page and finally check whether your printer supports duplex printing or not.

  • RELEVANCY SCORE 3.15

    DB:3.15:How To Call One Page After Another Page In Smartforms ? xd



    Hello Experts,

    How to call one page after another page in smartforms ?

    Thanks and Regards,

    Nikhil Kulkarni

    DB:3.15:How To Call One Page After Another Page In Smartforms ? xd


    Hello Experts,

    How to call one page after another page in smartforms ?

    Thanks and Regards,

    Nikhil Kulkarni

  • RELEVANCY SCORE 3.08

    DB:3.08:Forms xs



    How do we get "page 1 OF 50" this format in smartforms

    DB:3.08:Forms xs


    ----

    CONSTANTS *

    ----

    CONSTANTS: c_x TYPE c VALUE 'X', "Constant X

    c_one TYPE n VALUE 1, "Constant 1

    c_unit LIKE mara-meins VALUE 'EA', "Constant EA

    c_colon TYPE c VALUE ':', "Constant :

    c_uscore(4) TYPE c VALUE '__', "Constant ___

    c_of(2) TYPE c VALUE 'of' ,"Constant of

    c_hyphen TYPE c VALUE '-', "Constant -

    ----

    * Form display_pageno

    ----

    This subroutine is used to display page number

    ----

    FORM display_pageno.

    DATA l_page_count(4) TYPE c.

    *Page count will be printed on each page here

    WRITE sy-pagno TO l_page_count RIGHT-JUSTIFIED.

    CONDENSE l_page_count.

    *Do loop for replacing the c_uscore with last page count

    DO sy-pagno TIMES.

    READ LINE c_first OF PAGE sy-index.

    IF sy-subrc = 0.

    REPLACE c_uscore WITH l_page_count INTO sy-lisel.

    MODIFY CURRENT LINE.

    ENDIF.

    ENDDO.

    ENDFORM. " display_pageno

    I hope this code will slove ur problem.

    Reward me if its useful

    Regards

    Ravi

  • RELEVANCY SCORE 3.06

    DB:3.06:Smartforms Layout mx



    Hi,

    I need to display the terms and conditions text in the following format in smartform:

    paragraph 1 -

    paragraph2

    paragraph 3 -

    paragraph4

    paragraph 5 -

    paragraph6

    As you see above, I need to have 2 paragraphs sideby in the same page. Do i need to put the conditions in paragraph format or is there any concept like page frmat where we can have 2 paragraphs?

    thanks

    Message was edited by: joseph Prashanth

    DB:3.06:Smartforms Layout mx


    hi

    joseph..

    first must know whether the no. of entries are fixed or not..if its fixed use template for that.. if it varies use table istead..

    one thing more..if page size varies give everythin in main window only ...otherwise it will not automatically go on next page ...and you have to again make a new window ....

    feel free to revert back..

  • RELEVANCY SCORE 3.02

    DB:3.02:Smartforms (Urgent) c3



    how to download the smartforms layout into word file?

    is there any function module to do that as we do to download in PDF format?

    DB:3.02:Smartforms (Urgent) c3


    Hi Amab,

    you can download for function module is gui_download.

    it is applied for doc and xml..

    you can download for function module is convert_otf.

    it is applied for PDF..

    Reward if Useful,

    Thx,

    S.Suresh.

  • RELEVANCY SCORE 3.01

    DB:3.01:Smartforms fs



    how can we supress the leading zero's for a field/page no in smart forms?

    DB:3.01:Smartforms fs


    Hi

    bconversion_exit_alpha_output/b

    ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.

    Example:

    (Input field and output field are both eight characters in length)

    1. '1234 ' -- '00001234'

    2. 'ABCD ' -- 'ABCD '

    3. ' 1234 ' -- '00001234'

    Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.

    bCONVERSION_EXIT_ALPHA_INPUT/b

    vice versa for CONVERSION_EXIT_ALPHA_OUTPUT.

    reward points if helpful,

    Regards

    Raghunath.S

  • RELEVANCY SCORE 3.01

    DB:3.01:Regarding Smartforms 19



    hi ,

    pls help me,

    i have to customize the existing smartforms , but i am new to smartforms.so,pls help me.

    i want to add some new fields in one page but when i am changing layout like left margin

    right margin,upper margin, and height all the other windows are effecting.i am changing all

    this for a particular window,

    then it was giving an error message , ur window is not fit to main page like that.

    pls help me how to adjust the windows for my requirment .

    pls help me .

    thanks regards,

    snl.

    DB:3.01:Regarding Smartforms 19


    Hi,

    Click Form Painter on(F9) so that while changing the layout you can know how it should be.

  • RELEVANCY SCORE 2.99

    DB:2.99:Printing Smartforms For Different Paper Sizes x9



    Hi,

    This is with reference to the thread [Print Smartform in different page size (A4, A3...) with same ayout.|Print Smartform in different page size (A4, A3...) with same layout.;. I'm just curious to know if anyone has a better option than having to copy the smartform and changing the page format.

    Can this be done dynamically.

    I'm using the application version 4.7.

    Thanks in advance.

    Br,

    Advait

    DB:2.99:Printing Smartforms For Different Paper Sizes x9


    We are going with the solution to copy the smartforms to a new one and change the page format.

    Thanks.

    Br,

    Advait

  • RELEVANCY SCORE 2.96

    DB:2.96:Barcode(Smartform)Printing Through Intermec Printers fj



    Hello All,

    Is it possible to print Barcodes through Intermec Printers, I am using smartforms for the layout development.Pleaswe guide me with the procedure.

    Thanks Regards,

    Vanita M.

    DB:2.96:Barcode(Smartform)Printing Through Intermec Printers fj


    In SE73 create a barcode of new technology. After this go to TA: smartstyles and create a characterformat with your created barcode inside. Then enter your smartform and add the style to it. Now if you create a textnode you can assign the character format "barcode" to your text or number. In preview and printout the barcode should be shown. In smartform you will only see the numbers or characters.

  • RELEVANCY SCORE 2.95

    DB:2.95:Sales Order fs



    what r the driver progrm and layout for salesorder in smartforms.how to convert sapscripts into smartforms.

    DB:2.95:Sales Order fs


    i want layout for salesorder in smartforms

  • RELEVANCY SCORE 2.94

    DB:2.94:Regarding Main Window In Smartforms dm



    Hi experts!

    i have requirement that i have to print a form

    with three windows.

    layout is like this

    page 1:

    window1

    aaaaaaaaaaaaaaa

    bbbbbbbbbbbbbbb

    ccccccccccccccc

    my check

    window2

    aaaaaaaaaaaaaaa

    bbbbbbbbbbbbbbb

    ccccccccccccccc

    page 2:coninuous from page1

    window1

    ddddddddddddddd

    eeeeeeeeeeeeeee

    ffffffffffffffffffffffffffffffffffff

    my check

    window2

    ddddddddddddddd

    eeeeeeeeeeeeeee

    ffffffffffffffffffffffffffffffffffff

    where this data is continuous in both windows window 1 and window2

    can anyone help me out that how i can acheive this in smartforms.

    thanks

    in advance

    jawad

    DB:2.94:Regarding Main Window In Smartforms dm


    HI rudra!

    thanks for your reply.

    I understand that.

    but the thing is i have to copy the same stuff which is on the first window to the 2nd window on first secon third..... pages.

    will appreciate your reply.

    thanks

    jawad

  • RELEVANCY SCORE 2.90

    DB:2.90:Scripts To Smartforms zc



    hi,

    how to transfer layout and the program from scripts to smartforms.for this which program we have to use.

    DB:2.90:Scripts To Smartforms zc


    hi krishna,

    the simple way to migrate script to smartform is as follow:

    goto transaction SMARTFORMS -- menu UTILITIES -- click on migrate migrate

    entre the script name which u want to migrate...

    now wat happens when you migrate script to smartform is that only the layout will be created....you will have to change all the texts as per smartforms...

    for example: in script it is possibe to use IF condition in text...in case of Smartform you will have to use ALTERNATIVE in place of IF condition...

    the second way to migrate is execute the program SF_MIGRATE....

    hope this would help you out,

    please reward pts in case usefull...

    regards,

    prashant

  • RELEVANCY SCORE 2.90

    DB:2.90:Smartforms Mutiple Page Format k1



    hi gurus,

    Is mutiple page format possible in smartforms if yes then how.cud u provide me the detiled steps for that.

    thanks in advance.

    Regards,

    Rohan.

    DB:2.90:Smartforms Mutiple Page Format k1


    hi gurus,

    Is mutiple page format possible in smartforms if yes then how.cud u provide me the detiled steps for that.

    thanks in advance.

    Regards,

    Rohan.

  • RELEVANCY SCORE 2.90

    DB:2.90:New Forms With Smartforms/Sapscript 9j



    Hi,

    I have the honourable job to recreate some sapscript forms. They are all in DINA4 and they have many dynamic boxes...

    Now, everything should be new! All forms should be in A5 landscape and some other layout changes...

    Up to now, the programs are quite big and hard to see through because of the box-size-calculations, different window callings and so on.

    What should I do? Recreate the forms with smartforms? Then I only have to give some structures and tables to the form and loop the data in smartforms. I think, I have to change many things in the programs beside the data selection.

    Or should I use sapscript and recreate the forms there? Then I have to change all window/element-calls in the program and also the box-size calculations. And of course, I have to change the fixed layout box and set it all to DINA5...

    I need an advice!

    The other thing Im thinking about is, how to make dynamic windows/boxes in smartforms? I have to create some fixed ones on the top of the page and then one bigger one (main) with smaller ones inside. But the problem is, there can be up to 6 records in the table (for each record, I need some boxes), but the number of records is various!

    How can I do that?

    Can I set windows in something like a loop?

    One more question is, can I print a barcode vertical?

    Cheers and thank you!

    DB:2.90:New Forms With Smartforms/Sapscript 9j


    Ok, thank You.

    Ill do that the next time.

    Cheers

  • RELEVANCY SCORE 2.90

    DB:2.90:Displaying Multiple Pages In Smartforms kd



    Hi ,

    I have created 4 pages in a single smartform application, I am having a problem in displaying

    these pages on the screen . When i run the application only the first page is getting displayed.

    I entered the "NEXT PAGE" values correctly . Are there any other values that i have missed out .

    How do i display all the four pages on the screen in order to check my layout correctly before

    issuing them for the print.

    Ashok Kumar.N

    DB:2.90:Displaying Multiple Pages In Smartforms kd


    Hi Ashok,

    -- In the First page general Attributes, give the next page as 'Second page'

    -- In the second page general Attributes, give the next page as 'Third page'

    --- In the third page general Attributes, give the next page as '4th page'

    -- In the fourth page general Attributes, give the next page as 'Fourth page'..

    if you already maintaing this, then see the Main window, if the main window is correctly working then see the page by pressing the Pagedown button, this will work

    Regards

    Sudheer

  • RELEVANCY SCORE 2.90

    DB:2.90:Page Break c9



    I am facing a problem with page break in smartforms while in loop.

    DB:2.90:Page Break c9


    Hi,

    put the loop with in the folders...

    then it will work just like protect and endprotect in

    scripts

    reward points if helpful,

    thanks regards,

    venkatesh

  • RELEVANCY SCORE 2.87

    DB:2.87:Looping The Complete Page In Smartforms fj



    Hi,

    How can I loop the entire page in smartforms which contain multiple windows?

    DB:2.87:Looping The Complete Page In Smartforms fj


    Hi Shah Kunal

    A Simple Smartform Tutorial

    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).

    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).

    1. Create a new smartforms

    Transaction code SMARTFORMS

    Create new smartforms call ZSMART

    *2. Define looping process for internal table *

    Pages and windows *

    First Page - Header Window (Cursor at First Page then click

    Edit - Node - Create) *

    Here, you can specify your title and page numbering

    SFSY-PAGE (Page 1) of SFSY-FORMPAGES(Z4.0)* (Total Page)*

    *Main windows - TABLE - DATA *

    In the Loop section, tick Internal table and fill in

    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2

    3. Define table in smartforms

    lobal settings :

    Form interface

    Variable name Type assignment Reference type

    ITAB1 TYPE Table Structure

    Global definitions

    Variable name Type assignment Reference type

    ITAB2 TYPE Table Structure

    4. To display the data in the form

    Make used of the Table Painter and declare the Line Type in Tabstrips Table

    e.g. HD_GEN for printing header details,

    IT_GEN for printing data details.

    You have to specify the Line Type in your Text elements in the Tabstrips Output options.

    Tick the New Line and specify the Line Type for outputting the data.

    Declare your output fields in Text elements

    Tabstrips - Output Options

    For different fonts use this Style : IDWTCERTSTYLE

    For Quantity or Amout you can used this variable GS_ITAB-AMOUNT(12.2)

    5. Calling SMARTFORMS from your ABAP program

    REPORT ZSMARTFORM.

    Calling SMARTFORMS from your ABAP program.

    Collecting all the table data in your program, and pass once to SMARTFORMS

    SMARTFORMS

    Declare your table type in :-

    Global Settings - Form Interface

    Global Definintions - Global Data

    Main Window - Table - DATA

    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming

    http://sapr3.tripod.com

    TABLES: MKPF.

    DATA: FM_NAME TYPE RS38L_FNAM.

    DATA: BEGIN OF INT_MKPF OCCURS 0.

    INCLUDE STRUCTURE MKPF.

    DATA: END OF INT_MKPF.

    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.

    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.

    MOVE-CORRESPONDING MKPF TO INT_MKPF.

    APPEND INT_MKPF.

    ENDSELECT.

    At the end of your program.

    Passing data to SMARTFORMS

    call function 'SSF_FUNCTION_MODULE_NAME'

    exporting

    formname = 'ZSMARTFORM'

    VARIANT = ' '

    DIRECT_CALL = ' '

    IMPORTING

    FM_NAME = FM_NAME

    EXCEPTIONS

    NO_FORM = 1

    NO_FUNCTION_MODULE = 2

    OTHERS = 3.

    if sy-subrc 0.

    WRITE: / 'ERROR 1'.

    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    endif.

    call function FM_NAME

    EXPORTING

    ARCHIVE_INDEX =

    ARCHIVE_INDEX_TAB =

    ARCHIVE_PARAMETERS =

    CONTROL_PARAMETERS =

    MAIL_APPL_OBJ =

    MAIL_RECIPIENT =

    MAIL_SENDER =

    OUTPUT_OPTIONS =

    USER_SETTINGS = 'X'

    IMPORTING

    DOCUMENT_OUTPUT_INFO =

    JOB_OUTPUT_INFO =

    JOB_OUTPUT_OPTIONS =

    TABLES

    GS_MKPF = INT_MKPF

    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.

    Reward if helpful

    Regards

    Lakshman

  • RELEVANCY SCORE 2.87

    DB:2.87:Urgent-Smartform cj



    have modified standard layout of script(form) by means of smartforms,now how can i attach it to the driver program and execute and see the output of smartform.

    DB:2.87:Urgent-Smartform cj


    hi,

    NACE is the Tcode used to link the Application type, Output Types and its processing Routines like ( Driver programs and attached Script forms or Smartforms).

    You should know the Application of a document first Like:

    for PO it is EF, for sales Doc's it is V1, for Delivery docs it is V2, for billing Doc's it is V3 etc.

    so first select the Application type (ex: EF) for PO and press OUtput types

    then a list will come in that you should know the related output type for PO.

    in this case it is NEU,

    select that and click on the processing Routines button on the left side

    it will display the Medium, Driver Program and the Script form or smartform related to that document..

    Reward if it helps..

    regards,

    Omkar.

  • RELEVANCY SCORE 2.87

    DB:2.87:How To Convert Sap Script Layout Into Smartforms? 87


    hihow to convert sap script layout into smartforms? and viceversaplease replythanks in advance

    DB:2.87:How To Convert Sap Script Layout Into Smartforms? 87

    Step 1. Access the initial screen. Choose ToolsForms printoutSmart Forms (transaction SMARTFORMS) from the SAP Easy Access Menu. The dialog window SAP Smart Forms: Initial Screen appears.Step 2. Name the form. In the Form Field, enter field name you want to give, for example ZTF_GR_## (based on your company standard starting with Z to identify this as a customized form, where ## is the group number). Step 3. Access the migrate function. Go to UtilitiesMigrate SAPscript Form. In the dialogue window enter the SAPscript form name, for example Y_SAPSCRIPT_STD. Choose the Check button. Step 4. View the migrated layout. On the screen that appears, the SAPscript form is migrated into a rough Smart Form . Click on Form Painter to see an overview of the form layout.Use the following steps for mass migration or simultaneous migration of multiple SAPscript forms: Step 1. Run the mass migration program. In Reporting (transaction SE38), select the program SF_MIGRATE and execute it (Figure 3). Select the names and the language of the SAPscript forms and click the execute icon. The system creates the Smart Forms named for the SAPscript forms plus the extension SF. It displays a list of the migrated forms. Step 2. Make changes (if necessary). To change and adapt a form, go to transaction SMARTFORMS. Then activate the changed Smart Form.Once the SAPscripts are converted, whether in Smart Forms or Smart Styles, you should clean up any errors made during the conversion process, in terms of attributes, window alignment, or syntax errors. Cleaning up errors during conversion is often standard procedure, as SAPscript might have used local logic. Errors may occur when a field displayed is extracted or manipulated to display and doesnt exist, or fields exist but appear with no values. Errors may also arise in ABAP syntax.Step 1. Define the Import Parameter. Double-click on the Global Settings Form Interface from the navigation menuStep 2. On the Import Tab, enter the import structure information. For example, enter Parameter Name (table name, such as LIKP), Type Assignment: Type, Reference Type (table name), Optional (or Mandatory); Pass Val: (Passing value indicator). This must be done for all the data retrieved from the SAP tables.Step 3. Remove irrelevant or unnecessary windows. To delete a navigational menu node, right-click on the node, and select Delete. Since you start with windows in SAPscript, there might be redundant windows created for text.Step 4. Set the first page. Delete the NEXT page node on the menu tree. Double-click on the first page node. In the General Attributes tab, change the Next Page value to FIRST. Step 5. Delete the DETAIL frame window. Expand the MAIN window and delete all its text nodes.Step 6. Adjust the text nodes. Click on the text nodes and let the system fit the text.Step 7. Save and check the syntax.

  • RELEVANCY SCORE 2.86

    DB:2.86:Any Standerd Layout And Tcode Of Loadinglist Is There In Smartforms ks



    any standerd layout and tcode of loadinglist is there in smartforms

    DB:2.86:Any Standerd Layout And Tcode Of Loadinglist Is There In Smartforms ks


    Hi

    Check the Std smartformb /SAPSLL/SF_EU_SAD_LL/b for loading list

    and copy it and change it and use

    bReward points for useful Answers/b

    Regards

    Anji

  • RELEVANCY SCORE 2.85

    DB:2.85:Doubt In Smartforms 3p



    i designed a layout for PO in smartforms.... i get everthing right in the print preview but i could not get the some fields in the print out.... how to go about

    thanks

    DB:2.85:Doubt In Smartforms 3p


    hi,

    just change the font or style

    Regards,

    Nandha

  • RELEVANCY SCORE 2.85

    DB:2.85:Smartforms Workflow Logic zx



    Hello!

    How works smartforms logic in this case.

    How is the worklflow

    by the following circumtance within smartforms:

    E.g.

    Does he continue working with next node "code"

    after COMMAND ????

    Header-Window

    -Text

    Main-Window

    LOOP

    CODE

    COMMAND (new Page if condition true)

    code

    LOOP

    CODE

    TEXT

    END Main-Window

    Regards

    Ilhan

    DB:2.85:Smartforms Workflow Logic zx


    Hi,

    COMMAND here just Force a page break within table loop.

    if the it is satisfied it will go to new page else ends the main window.

    Here is the code that can be use to determine the internal name of the function module:

    Code:

    if sf_label(1) '/'. " need to resolve by name

    move sf_label to externalname.

    call function 'SSF_FUNCTION_MODULE_NAME'

    exporting

    formname = externalname

    importing

    fm_name = internalname

    exceptions

    no_form = 1

    no_function_module = 2

    others = 3.

    if sy-subrc 0.

    message 'e427'.

    endif.

    move internalname to sf_label.

    endif.

    also please check out the link below it will help you

    http://myweb.dal.ca/hchinni/sap/smartforms/SmartForms.doc

    *******please reward points if the information is helpful to you*********

  • RELEVANCY SCORE 2.84

    DB:2.84:Purchase Order Layout Using Smartform sp



    Hi All,

    Can anyone let me know how to create Purchase order layout using smartforms and assigning it to output type.

    Is there standard smartform for purchase order?

    DB:2.84:Purchase Order Layout Using Smartform sp


    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

    http://www.sap-basis-abap.com/sapsf001.htm

    http://help.sap.com/printdocu/core/Print46c/de/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf

    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

    http://www.esnips.com/doc/13b7ae7a-b32c-4b96-b588-881859d4ac99/Template,Table,Loop,Command-in-Smartforms.doc

    http://www.esnips.com/doc/97acb00a-e513-4611-91f0-c626f460bfc5/Smart_Form_Overview.pdf

    http://www.esnips.com/doc/77a981b9-8fe3-4fbb-8101-67745c1fe60c/SMART-FORMS_shail.ppt

    http://www.sap-basis-abap.com/sapsf001.htm

    http://www.sap-press.com/downloads/h955_preview.pdf

    http://www.ossincorp.com/Black_Box/Black_Box_2.htm

    http://www.sap-img.com/smartforms/sap-smart-forms.htm

    Try this. A simple sample Smart Form.

    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).

    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).

    1. Create a new smartforms

    Transaction code SMARTFORMS

    Create new smartforms call ZSMART

    2. Define looping process for internal table

    Pages and windows

    First Page - Header Window (Cursor at First Page then click Edit - Node - Create)

    Here, you can specify your title and page numbering

    SFSY-PAGE (Page 1) of SFSY-FORMPAGES(Z4.0) (Total Page)

    Main windows - TABLE - DATA

    In the Loop section, tick Internal table and fill in

    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2

    3. Define table in smartforms

    Global settings :

    Form interface

    Variable name Type assignment Reference type

    ITAB1 TYPE Table Structure

    Global definitions

    Variable name Type assignment Reference type

    ITAB2 TYPE Table Structure

    4. To display the data in the form

    Make used of the Table Painter and declare the Line Type in Tabstrips Table

    e.g. HD_GEN for printing header details,

    IT_GEN for printing data details.

    You have to specify the Line Type in your Text elements in the Tabstrips Output options.

    Tick the New Line and specify the Line Type for outputting the data.

    Declare your output fields in Text elements

    Tabstrips - Output Options

    For different fonts use this Style : IDWTCERTSTYLE

    For Quantity or Amout you can used this variable GS_ITAB-AMOUNT(12.2)

    5. Calling SMARTFORMS from your ABAP program

    REPORT ZSMARTFORM.

    Calling SMARTFORMS from your ABAP program.

    Collecting all the table data in your program, and pass once to SMARTFORMS

    SMARTFORMS

    Declare your table type in :-

    Global Settings - Form Interface

    Global Definintions - Global Data

    Main Window - Table - DATA

    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming

    http://sapr3.tripod.com

    TABLES: MKPF.

    DATA: FM_NAME TYPE RS38L_FNAM.

    DATA: BEGIN OF INT_MKPF OCCURS 0.

    INCLUDE STRUCTURE MKPF.

    DATA: END OF INT_MKPF.

    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.

    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.

    MOVE-CORRESPONDING MKPF TO INT_MKPF.

    APPEND INT_MKPF.

    ENDSELECT.

    At the end of your program.

    Passing data to SMARTFORMS

    call function 'SSF_FUNCTION_MODULE_NAME'

    exporting

    formname = 'ZSMARTFORM'

    VARIANT = ' '

    DIRECT_CALL = ' '

    IMPORTING

    FM_NAME = FM_NAME

    EXCEPTIONS

    NO_FORM = 1

    NO_FUNCTION_MODULE = 2

    OTHERS = 3.

    if sy-subrc 0.

    WRITE: / 'ERROR 1'.

    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    endif.

    call function FM_NAME

    EXPORTING

    ARCHIVE_INDEX =

    ARCHIVE_INDEX_TAB =

    ARCHIVE_PARAMETERS =

    CONTROL_PARAMETERS =

    MAIL_APPL_OBJ =

    MAIL_RECIPIENT =

    MAIL_SENDER =

    OUTPUT_OPTIONS =

    USER_SETTINGS = 'X'

    IMPORTING

    DOCUMENT_OUTPUT_INFO =

    JOB_OUTPUT_INFO =

    JOB_OUTPUT_OPTIONS =

    TABLES

    GS_MKPF = INT_MKPF

    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.

    SMARTFORMS GENERATION: (calling internal table fields)

    #61656; Open a smartform using the tcode smartforms.

    #61656; Usually form attributes shows admn data.

    #61656; In the form interface declare import/export parameters if any. Else declare the tables in tables tab button.

    #61656; In the windows and pages expand and create a table. It automatically generates header, main area and footer for the table.

    #61656; In data tab button in the table we usually declare a work area to bring the data from se38. Like: ktab into wa. ( The purpose of declaring the wa is , to get the data of the ktab in to header from the body area of the internal table).

    #61656; And in the tablepainter pushbutton in table we can have any no of line types. Depending on the requirement. ( for ex: If we want to devide a row in to 4 columns, we can devide it as 4,4,4,4cm as line type 1, And usually for the footer we dont need no of columns, So, we declare it as one column with 16cm measure with the name line type 2.). We can use these line types in the tables.

    #61656; In the header right clickcreatetableline. It asks for line type. Select one line type which is appropriate.

    #61656; Like same create a row2 in main area using right click. If we select the line type 1, it automatically generates 4 cells. We can create text in each cell as per requirement.

    #61656; We can generate general attributes using general attributes tab button in the text. Or in the other way. We can switch on the field list on/off button from the application tool bar. It displays all the attributes in the left down corner of the screen. We can drag and drop the required fields in the general attributes tab button of the text.

    #61656; We continue the same procedure for all the texts. The texts should be displayed in the gray color. Then only it can collects the data from the abap editor fields.

    #61656; If it wont turns gray, we can check the fields in the editor by changing it to the line editor. The best thing is to drag the fields from the list, rather than declaring like wa-matnr

    #61656; In the footer also we create a line type and in that table line we create text.

    SE38 PROGRAM(method I):

    REPORT Z_CALLING_SMARTFORM2 .

    tables: mara.

    select-options: S_MATNR for MARA-MATNR.

    DATA: kTAB LIKE MARA OCCURS 1 WITH HEADER LINE.

    data: FM_NAME TYPE RS38L_FNAM.

    SELECT * FROM MARA INTO TABLE kTAB WHERE MATNR in

    S_MATNR.

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

    formname = 'Z_MYFIRST_FORM2'

    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.

    CALL FUNCTION fm_name

    EXPORTING

    ARCHIVE_INDEX =

    ARCHIVE_INDEX_TAB =

    ARCHIVE_PARAMETERS =

    CONTROL_PARAMETERS =

    MAIL_APPL_OBJ =

    MAIL_RECIPIENT =

    MAIL_SENDER =

    OUTPUT_OPTIONS =

    USER_SETTINGS = 'X'

    IMPORTING

    DOCUMENT_OUTPUT_INFO =

    JOB_OUTPUT_INFO =

    JOB_OUTPUT_OPTIONS =

    TABLES

    ktab = ktab

    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.

    IN THE OTHER WAY(method II):

    REPORT Z_CALLING_SMARTFORM2 .

    tables: mara.

    select-options: S_MATNR for MARA-MATNR.

    DATA: kTAB LIKE MARA OCCURS 1 WITH HEADER LINE.

    SELECT * FROM MARA INTO TABLE kTAB WHERE MATNR in S_MATNR.

    CALL FUNCTION '/1BCDWB/SF00000199'

    EXPORTING

    ARCHIVE_INDEX =

    ARCHIVE_INDEX_TAB =

    ARCHIVE_PARAMETERS =

    CONTROL_PARAMETERS =

    MAIL_APPL_OBJ =

    MAIL_RECIPIENT =

    MAIL_SENDER =

    OUTPUT_OPTIONS =

    USER_SETTINGS = 'X'

    IMPORTING

    DOCUMENT_OUTPUT_INFO =

    JOB_OUTPUT_INFO =

    JOB_OUTPUT_OPTIONS =

    TABLES

    ktab = ktab

    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.

    In the method I we are calling the amartform dynamically using the function module 'SSF_FUNCTION_MODULE_NAME'.

    Here we are exporting form name and importing fm_name.

    So we need to declare the variable fm_name as

    data: FM_NAME TYPE RS38L_FNAM.

    We can have the type of the fm_name in the function module 'SSF_FUNCTION_MODULE_NAME' (in the export tab button).

    Since we are passin the name of the Function module generated by the smart form in to the fm_name variable. We run the function module with the name fm_name, but not the FM generated by the smartform(like /1BCDWB/SF00000199).

    In the method II we directly call the smartform generated function module (i.e, /1BCDWB/SF00000199).

    But the method I is recommended. In the method I, The fm_name is a variable we dont put it in the quotes while calling.

    In the both methods we declare the internal table using the like option, but not begin of. end of. And in select statement we select *, But not individual fields.

    EX2:

    SMART FORM NAME: ZGITI_FORM1.

    SE38:

    REPORT Z_CALL_GIRI_FORM1 .

    TABLES: VBRK.

    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE T1.

    SELECT-OPTIONS: S_VBELN FOR VBRK-VBELN.

    SELECTION-SCREEN END OF BLOCK B1.

    *INITIALIZATION.

    *T1 = 'SELECTION-CRIETERIA'.

    DATA: BEGIN OF I_INVOICE OCCURS 1.

    INCLUDE STRUCTURE ZSTR_INVOICE.

    DATA: END OF I_INVOICE.

    DATA: VAR1 LIKE VBRP-NETWR.

    DATA: BEGIN OF I_ADDRESS OCCURS 1.

    INCLUDE STRUCTURE ZSTR_ADDRESS.

    DATA: END OF I_ADDRESS.

    DATA: BEGIN OF I_ORDER OCCURS 1.

    INCLUDE STRUCTURE ZSTR_ORDER.

    DATA: END OF I_ORDER.

    DATA: BEGIN OF I_ITEM OCCURS 1.

    INCLUDE STRUCTURE ZSTR_ITEM.

    DATA: END OF I_ITEM.

    DATA: BEGIN OF I_VBFA OCCURS 1,

    VBELV LIKE VBFA-VBELV,

    VBELN LIKE VBFA-VBELN,

    END OF I_VBFA.

    SELECT KUNAG VBELN VKORG VTWEG SPART FROM VBRK INTO TABLE I_INVOICE

    WHERE VBELN IN S_VBELN.

    IF I_INVOICE[] IS NOT INITIAL.

    SELECT KUNNR LAND1 NAME1 NAME2 ORT01 PSTLZ REGIO FROM

    KNA1 INTO CORRESPONDING FIELDS OF TABLE I_ADDRESS FOR ALL ENTRIES IN

    I_INVOICE WHERE KUNNR = I_INVOICE-KUNAG.

    ENDIF.

    IF I_INVOICE[] IS NOT INITIAL.

    SELECT VBELV VBELN FROM VBFA INTO TABLE I_VBFA FOR ALL ENTRIES IN

    I_INVOICE WHERE VBELN = I_INVOICE-VBELN.

    ENDIF.

    IF I_VBFA[] IS NOT INITIAL.

    SELECT VBELN BSTNK FROM VBAK INTO CORRESPONDING FIELDS OF TABLE I_ORDER

    FOR ALL ENTRIES IN I_VBFA WHERE VBELN = I_VBFA-VBELV.

    ENDIF.

    IF I_INVOICE[] IS NOT INITIAL.

    SELECT POSNR MATNR ARKTX FKIMG NETWR FROM VBRP INTO TABLE I_ITEM FOR ALL

    ENTRIES IN I_INVOICE WHERE VBELN = I_INVOICE-VBELN.

    ENDIF.

    LOOP AT I_ITEM.

    AT LAST.

    SUM.

    VAR1 = I_ITEM-NETWR.

    ENDAT.

    ENDLOOP.

    CALL FUNCTION '/1BCDWB/SF00000223'

    EXPORTING

    ARCHIVE_INDEX =

    ARCHIVE_INDEX_TAB =

    ARCHIVE_PARAMETERS =

    CONTROL_PARAMETERS =

    MAIL_APPL_OBJ =

    MAIL_RECIPIENT =

    MAIL_SENDER =

    OUTPUT_OPTIONS =

    USER_SETTINGS = 'X'

    var = VAR1

    IMPORTING

    DOCUMENT_OUTPUT_INFO =

    JOB_OUTPUT_INFO =

    JOB_OUTPUT_OPTIONS =

    tables

    i_vbrk = I_INVOICE

    i_vbak = I_ORDER

    i_vbrp = I_ITEM

    i_kna1 = I_ADDRESS

    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.

  • RELEVANCY SCORE 2.84

    DB:2.84:Diffrence B/W Template Table In Smart Form? cx



    hi ,

    wat is the diffrence b/w template table in smartforms and how this diffrence can be used while creating layout using smartforms?

    deepak

    DB:2.84:Diffrence B/W Template Table In Smart Form? cx


    hi,

    Template is a static content so that its layout cannot be changed dynamically.Eg.Tax forms etc..

    Table is a dynamic content whose layout doesn't have fixed size ie.dynamic..eg..internal table contents..

    Regards,

  • RELEVANCY SCORE 2.84

    DB:2.84:Calling Different Pages In Smartforms xs



    Dear Friends,

    I need one solution in smartforms, i need to print the different labels in my smartform. For example i have to print three labels

    and one normal layout. Three labels means having some fixed data of three rows maximum and these labels repetatively i need to print based on some conditions those conditions i am doing in driver program itself.

    For example assume first label i need to print 2 times,second 2 times and third 14 times then final layout contains header and items section as usual.

    So here in the first page only i need to print first label then i have to call the new page to print second label then i have to call the

    new page to print third label as there are 14 labels in third page i have to print 9 labels and in the fourth page i have to print remaining 5 labels and i need to call new page to print the last section, the last section is like normal layout there mainwindow and everything is there.

    Please help me to handle this scenario.

    Any help will be highly appreciated.

    Thanks a lot in advance.

    DB:2.84:Calling Different Pages In Smartforms xs


    Dear Friends,

    I need one solution in smartforms, i need to print the different labels in my smartform. For example i have to print three labels

    and one normal layout. Three labels means having some fixed data of three rows maximum and these labels repetatively i need to print based on some conditions those conditions i am doing in driver program itself.

    For example assume first label i need to print 2 times,second 2 times and third 14 times then final layout contains header and items section as usual.

    So here in the first page only i need to print first label then i have to call the new page to print second label then i have to call the

    new page to print third label as there are 14 labels in third page i have to print 9 labels and in the fourth page i have to print remaining 5 labels and i need to call new page to print the last section, the last section is like normal layout there mainwindow and everything is there.

    Please help me to handle this scenario.

    Any help will be highly appreciated.

    Thanks a lot in advance.

  • RELEVANCY SCORE 2.84

    DB:2.84:Smartforms c8



    is it necessary to create multiple pages in smartforms even if the layout is similar for both the pages?can it not create multiple pages automatically if the data can not be accomodated in single page?

  • RELEVANCY SCORE 2.84

    DB:2.84:Example Of Smartforms mf



    Hi ABAPers

    I need an example of smartforms which has two form pages and second page in back of first.Please send me the procedure to create it.

    Thanks

    Raghavendra

    DB:2.84:Example Of Smartforms mf


    Hi,

    Goto Change mode of Your Smartform Click on PAGE Nu of PAGES and Windows..in that Select output options tab..Here Select Print mode as D (Duplex)

  • RELEVANCY SCORE 2.84

    DB:2.84:Page Break Problem In Smartforms sj



    Hi,

    I have designed a PO Layout in SMARTFORMS. I have total 4 pages.

    1. COVER_LETTER

    2. FIRST

    3. NEXT

    4. TERMS

    In COVER_LETTER page i am printing covering letter in a secondary window. i have a main window in this page, where i ahve added COMMAND Node which is calling page FIRST.

    FIRST Page is printing PO Heaader and Item details. in this page main window i have placed COMMAND Nodes to call NEXT and TERMS pages.

    Now the Problem is COVER_LETTER page is getting executed, and it is calling FIRST Page, but in FIRST page MAIN window is not getting executed. other windows are printed. I dont' have any conditions for the page or for window.

    When i place FIRST Page at starting and NEXT, TERMS, COVER_LETTER pages and called, it is working properly.

    any one know solution for this.

    DB:2.84:Page Break Problem In Smartforms sj


    Hi,

    I have designed a PO Layout in SMARTFORMS. I have total 4 pages.

    1. COVER_LETTER

    2. FIRST

    3. NEXT

    4. TERMS

    In COVER_LETTER page i am printing covering letter in a secondary window. i have a main window in this page, where i ahve added COMMAND Node which is calling page FIRST.

    FIRST Page is printing PO Heaader and Item details. in this page main window i have placed COMMAND Nodes to call NEXT and TERMS pages.

    Now the Problem is COVER_LETTER page is getting executed, and it is calling FIRST Page, but in FIRST page MAIN window is not getting executed. other windows are printed. I dont' have any conditions for the page or for window.

    When i place FIRST Page at starting and NEXT, TERMS, COVER_LETTER pages and called, it is working properly.

    any one know solution for this.

  • RELEVANCY SCORE 2.82

    DB:2.82:In Smartform 9a


    i designed a layout in smartforms it has to trigger for each vendor in my selectionin a page it is printing all the layouts..but it has to print if the space is available for total layout of vendor..in my program it is printing according to the paper size means it is printing the header of third vendor and remaing details in second page..how to use it.i have to use page protection but how to use it..i had used the mainwindow in the main window iam using a loop (for vendors) in that loop using the folder in which the entire logic is written ..i wnt to use the page protection at folder level

    DB:2.82:In Smartform 9a

    sandeep if i insert the table node in the folder the page protection is reset to initial ...that's my problem

  • RELEVANCY SCORE 2.82

    DB:2.82:Abap-Smartforms k9



    How to convert smartform layout into .PDF format?

    DB:2.82:Abap-Smartforms k9


    try this program RSTXPFD4 and give the spool request number it the downloads form into PFD format

  • RELEVANCY SCORE 2.79

    DB:2.79:Reg:Smartforms In One Form How Many Maniwindows We Can Put 7k



    Hi friends,

    I am working in Smartforms.

    in My smartforms Total 2 pages.

    These 2 Pages have differnt layout and Different windows.

    For first page if line items is more then its Extending to page page1_NEXT .in first page i was taken Main Window.

    In Second Page when i am Giving main window it not giving Any Syntatical Errors.

    but When I am Executing it .

    Its giving DUMP.

    if I am taking in Page2 all are SSECONDARY Windows it working But PAGE Not Extending.

    Please tell me the Solution for This.

    Thanks,

    Vasu.

    DB:2.79:Reg:Smartforms In One Form How Many Maniwindows We Can Put 7k


    Hi,

    The width of the main window in both the pages should be same. Height can vary. Chk this.

    Regards.

  • RELEVANCY SCORE 2.79

    DB:2.79:Smartforms ap



    how many main and secondary windows are allowed per single page in scripts and smartforms.

    differences between main secondary copy and final windows

    just describe in single lines

    DB:2.79:Smartforms ap


    Hi,

    For scripts only one main window for each script ie., if the main window space is not sufficient for the record automatically another page is triggered. Without main window a page canot possible.

    For smartforms many mainwindows are possible in a page. If one main window is filled with data, it will go to the other main window. A page without main window is also possible in smartforms.

    Reward.

  • RELEVANCY SCORE 2.79

    DB:2.79:Smartforms: Multiple Dynamic Windows m3



    Hello experts,

    I have to modify an existing smartform. The main window on the first page is dynamic and can continue to the second page. This works fine. However on the third page a totally different layout to what is requested for the main window is being asked and it is also dynamic. My question is since I can only have ONE main window on the form how do I make a secondary window dynamic to automatically continue to the forth page is necessary.....is it possible to have 2 tables on the same main window using a totally different layout and tell the form to start the new layout on a subsequent page?

    Any suggestions

    Thanks

    DB:2.79:Smartforms: Multiple Dynamic Windows m3


    hello harshad,

    Thank you for this reply. If I do this would I insert 2 tables in the main window with a condition between them also a loop on both tables.

    regards

  • RELEVANCY SCORE 2.79

    DB:2.79:Smartforms fd



    Hi,

    how can I prevent page-break in smartforms?

    thanks in advance.

    DB:2.79:Smartforms fd


    see this

    Page protection attribute

    Switch for page protection.

    Use

    Page protection switch.

    In some cases you may want to avoid that text is divided by a page break. Therefore, you can protect text sections with a page protection.

    Page protection can extend to

    a paragraph

    a text node

    all output within a folder, for example, several text nodes combined in this folder.

    a line type (table node)

    If on the current page there is not enough space left for the protected text, it is displayed entirely on the next page.

    So u can page protect a line in table...

    in the table node..goto tables tab and click the details tab--select the line type and check the 'no page break'

    check box

    REWARD IF HELPFUL

  • RELEVANCY SCORE 2.79

    DB:2.79:2 Smartforms In One Program f8



    is it possible to call 2 smartforms in one program wherein the 2nd smartform will always be printed as last page?

    how do i do this in the program?

    DB:2.79:2 Smartforms In One Program f8


    It is possible to call two smartforms and combine their output..check the link

    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450

    But i think when you are doing everything in one samrtform itself as second smartform will be last page always.

  • RELEVANCY SCORE 2.79

    DB:2.79:Check Output With Smartforms? 1d



    Greetings, everyone.

    Is it at all possible to use Smartforms to create check (payment advice) output?

    All the documentation I've found says to basically use RFFOUS_C and a SAP Script layout (F110_PRENUM_CHCK or a customized version), but I'd much rather use Smartforms if I can to format and output checks.

    The relevant SAP version is 4.7.

    Thanks for your assistance!!

    Chad

    DB:2.79:Check Output With Smartforms? 1d


    Hi

    I have the same issue right now, we need to use smart forms in F110, where our current options are SAPscript and PDF.

    Anyone with who has made the change and tested, could you please guide as to how to make the change.

    Thank you very much.

  • RELEVANCY SCORE 2.79

    DB:2.79:Coding For Page-Break After Every 6 Lines In Smartforms d7



    i need a detailed description about page-break in smartforms asap.

  • RELEVANCY SCORE 2.78

    DB:2.78:Avoid Table Page Break In Smartforms 98



    Hi ,

    How to avoid table page break in smartforms.

    Thanks

    DB:2.78:Avoid Table Page Break In Smartforms 98


    Hi,

    1. In the output options tab of the table node itself enter style name and check the page protection check box

    2.keep the table node inside a folder and in the output options tab of this folder enter your style name and tick the page protection check box.

    3.If you want to protect individual line (line type) of a table from page break, goto the table tab- details- check the no pagebreak checkbox

    Regards,

    Ravi

  • RELEVANCY SCORE 2.78

    DB:2.78:How Data Can Be Flowed In To Next Page In Adobe Forms ( Offline ) 7p



    hi,

    please help me out for the queries below

    In most of the tutotrial for Adobe forms I could see using body pages, but i cannot find this body pages in my layout, the following tabs are available in my layout.Design viewMaster pagesXML SourcePDF Preview when i am trying to map an internal table to a form, the data is getting printed only in first page, the rest is coming. How can I make data flow to next page just as in smartforms.

    regards

    deric

    DB:2.78:How Data Can Be Flowed In To Next Page In Adobe Forms ( Offline ) 7p


    Hi Deric,

    The Design view you mentioned is nothing but here the contents of the body page can be maintained. It itself acts as a default body page.

    The table you want to be flowed needs to be put in the design view and it should be inside a subform and the properties of subform needs to be flowed.

    It will solve your problem.

    Note one thing only header and footer data or the details you need on every page like some constant value needs to be maintained in master page tab, everything else you will put in the design view or body page.

    Regards,

    Sandeep

  • RELEVANCY SCORE 2.78

    DB:2.78:Smartforms 8p



    hi abapers,

    this is priya,

    i have doubt in smartforms. i have hundered records in my table. in smartforms we can print number of pages.

    in first page it can print 50 recods.now i want to continue the records in second page.

    pls send details if useful.

    thanx and regrads,

    priya

    DB:2.78:Smartforms 8p


    Hi,

    As u wanna display the application data Records , u have to create TABLE node in MAIN window,if the data fills in first page, if there is any excees records then the data will overflow to the next page .

    hope u have an idea abt these nodes.

    Revert back if any issues,

    Reward with poinst if helpful.

    Regards,

    Naveen

  • RELEVANCY SCORE 2.76

    DB:2.76:Problem In Smartforms zd



    HI ,

    I have one custom print pgm the same pgm I want to use for different layout .But I need only few feilds in that..But for both the smartforms opt type is different.

    Pls suggest some Idea..

    Regards

    Arun.P

    DB:2.76:Problem In Smartforms zd


    So I guess you want display 2 layouts of a single smartform from a single driver program?

  • RELEVANCY SCORE 2.76

    DB:2.76:Multiple Page Layout m9


    hi, in smartforms how to set the multiple page layout ? is it possible? if yes, plz provide details of how to do that.regardsmuthuraman.d

    DB:2.76:Multiple Page Layout m9

    Hihope this link solve your problemhttp://sample-code-abap.blogspot.com/2009/05/creating-custom-page-format-for.html

  • RELEVANCY SCORE 2.76

    DB:2.76:Zebra Printer With Smartforms Barcode p1



    How to print a barcode include interpretation line?

    Can add a ZPL2 command to control this layout? If can, what command ?

    DB:2.76:Zebra Printer With Smartforms Barcode p1


    I want to include interpretation line below barcode.

  • RELEVANCY SCORE 2.76

    DB:2.76:Smartform / Sapscript 7a



    What about the standard left margin, upper margin, window width, and window height in creating layout of cheque either in sap script or smartforms. As I have not got these info from my Fuctiona Consultant.

    Really in need as i am not much aware of the sapscript and smartforms......

    thanks.......

    ur help much be appreciated.....

    DB:2.76:Smartform / Sapscript 7a


    hello sam..

    u can create a table for getting the left margin, upper margin etc.

    1. in smartforms, after creating the page,right click on the page and then select "create" and "table" in menu.

    2.this creates a table for you.

    3.click on the "details" tab.

    4. here, you can specify the width and height of the columns of the table( i.e the margin you wanted)

    try this out..

    hope this helps you.

    reward if helpful

  • RELEVANCY SCORE 2.76

    DB:2.76:Smartforms aa



    Hi

    i look for good Tutorial in smartforms with data page screen and etc

    can u send me please link or pdf

    thanks

    have a nice day

    DB:2.76:Smartforms aa


    this link having step by step:

    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

    http://help.sap.com/saphelp_nw04/helpdata/en/9b/e3b0d9c2a711d3b558006094192fe3/frameset.htm

  • RELEVANCY SCORE 2.76

    DB:2.76:Layout In Smartforms 9m



    how to create layout in smartform ?

    DB:2.76:Layout In Smartforms 9m


    hi,

    For smartforms refer to the following links

    http://www.sap-basis-abap.com/sapsf001.htm

    http://www.sap-press.com/downloads/h955_preview.pdf

    http://www.ossincorp.com/Black_Box/Black_Box_2.htm

    http://www.sap-img.com/smartforms/sap-smart-forms.htm

    http://www.sap-img.com/smartforms/smartform-tutorial.htm

    http://www.sapgenie.com/abap/smartforms.htm

    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF

    http://www.sap-img.com/smartforms/smart-006.htm

    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

    Re: Need FAQ's

    http://www.sapgenie.com/abap/smartforms.htm

    http://www.sap-img.com/smartforms/sap-smart-forms.htm

    http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm

    http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm

    http://www.sap-img.com/smartforms/smart-001.htm

    http://www.sap-img.com/smartforms/smartform-tutorial.htm

    http://www.sap-img.com/smartforms/smart-002.htm

    http://www.sapgenie.com/abap/smartforms.htm

    http://www.sap-img.com/smartforms/sap-smart-forms.htm

    regards,

    Veeresh

  • RELEVANCY SCORE 2.74

    DB:2.74:Second Page In Smartforms jm



    Hi all,

    Can anyone help me out in solving this issue.

    I have a smartform (customized) with layout containing 3 copies (copy A-original, copy B,C as duplicates )to retreive the vendor information.

    copy A should be in the first page and the same information has to be printed in the second page as

    copy B and copy C.When I am passing the main window in the second page, based on the logic given in the main window,it is picking the next vendor information.

    what ever changes i do in the second page main window it is reflected in the first page main. To trigger the command 'goto page', it has to be in the main window only.

    for each vendor, these two pages should be displayed.

    can anyone help me in solving this.

    thanks and regards,

    vinod.

    DB:2.74:Second Page In Smartforms jm


    Hi ravindra,

    I am trying to solve it through the logic but i am unable to do that by looping at the main and subnodes.

    Since this is the modification of the standard form, i am worried that the functionality changes.

    anyways thanks for your valuable suggestion.

    regards,

    vinod

  • RELEVANCY SCORE 2.74

    DB:2.74:Page Layout For Smartforms xa



    dear all,

    I have made 2 smartforms for checmical and mechanical print.one has to be printed in landscape and the other has to be printed in potrait format.The problem is the user wants the smartforms to be called from the same program and hence everytime he has to set the printer settings.

    for exapmle

    mechanical smartform is in landscape format and if the printer settings is not changed to landscape then the smartform wont get printed in landscape format, its getting printed in potrait format only and half of the data is cut off.

    Please tell whether any option is there so that I can change the printer setting from landscape to potrait in the runtime only based on the layout of the smartform.

    DB:2.74:Page Layout For Smartforms xa


    hi,

    Try to change in the control parameters of the function module.

    Regards,

    Sailaja.

  • RELEVANCY SCORE 2.74

    DB:2.74:Print Terms And Conditions At The Back Of First Page In Smartforms 9m



    Hi Experts,

    I am trying to print one full page (static content) of Terms and Conditions at the back side of the FIRST page in Smartforms for Invoice (Std. Print program and custom layout) and from SECOND page onwards i just want to print only the overflow of line items (simplex mode with back side of 2nd and later pages should be empty). Can you please help me out in achieving the Duplex printing of FIRST page and Simplex printing of pages from 2nd onwards?

    For your reference, I have tried the following things and still not able to achieve it,

    1. I configured my form pages as follows: FIRST page -- TC Page (Terms Conditions) -- FIRST page -- EMPTY page -- FIRST Page

    2. I tried triggering the NEW PAGE command at the Footer of the Looping Item Table in the MAIN Window from the FIRST page (so that the TC will print at the back of FIRST page). But, the output is not generated and No Error messages being shown. When i execute the invoice form nothing is showing up.

    3. I tried with Page Protection and that also did not help me in this scenario as the Terms Conditions are static text for a full page.

    Any valuable Suggestions/Inputs would definitely help me a lot.

    Thanks in Advance and please let me know if you need more explanation/clarification.

    Edited by: karsar on Oct 5, 2010 2:45 PM

    DB:2.74:Print Terms And Conditions At The Back Of First Page In Smartforms 9m


    Hi,

    I would still insist you to display it in footer above the command node. The condition for new page must be command node's condition tab only. You may not require any program lines, just the right use of calculations tab in table node will do all the required summing. Just the target field, field to summed and time (before loop/ after loop) is required in that tab. A line type maybe required to be used in the footer. Yes, you need not clear the sum and your issue of the first item on next page being included in 1st page sub total will also be solved by selecting Before loop or after loop appropriately in calculation tab.

    Else if you still want to display in separate windows, then just assign the summed variable to the field with which you are displaying the sum in secondary window, but the calculation's tab must be used.

    Regards,

    Karthik

  • RELEVANCY SCORE 2.74

    DB:2.74:Smartforms Next Page- Indefenite Loop kj



    Hi,

    I am changing the std layout smartform for pick list. I want to display next page for more line items. I have devloped next page and given tht, but its going for indefenite loop. how do i get the correct output?

    its very urgent plz help

    Thanks

    DB:2.74:Smartforms Next Page- Indefenite Loop kj


    nagaraj, to begin your "solution" is an obvious copy of YUGANDHAR's only you changed one word and your "solution" is now incorrect. If you copy a user's solution at least have the insight to change any typos (the second line where you have "smartform bin in /bpage"). Also please stop telling people that the Next Page option for next page needs to be First Page. This is wrong and will cause the users problems. Also, please don't ask or beg for points.

    Davis

  • RELEVANCY SCORE 2.73

    DB:2.73:Two Colons In Smartforms... 7x



    Hi,

    is it possible to print a document with a layout of 2 colomns in the main page? the text begins in the first column, at the end of the 1 column, it continues in the same page but at the beginning of the second column, and at the end of the second colomn it goes on on the second page.

    -

    -

    1-text begin 3-text continues

    2- Colomn end 4-Colomn end -- next page

    -

    -

    Thanks and best regards,

    Patrick Tambourgi

    DB:2.73:Two Colons In Smartforms... 7x


    Hi, just got the same problem - did you find a solution?

    thanks+best, mm

  • RELEVANCY SCORE 2.73

    DB:2.73:Smart Form kp



    Can we use forms developed using smartforms as a web page form .

    DB:2.73:Smart Form kp


    yes,you can do this .

    For Web publishing, the system provides a generated XML output of the processed form.

    Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.

    You may use the following logic

    SAP Smart Forms automatically transforms the formatted contents of a form to HTML. If you want to allow input on the form, you can flag either the fields in text nodes as Web input fields or the whole text node as a text area. Users of the Web application can use these input elements to enter values, which you can then evaluate in the SAP System

    You set the Web attributes of a text node on the corresponding tab page. If you have specified a URL for the evaluation of Web input fields, SAP Smart Forms embeds the input elements of the whole form in an HTML form during the HTML conversion. The opening FORM tag then appears immediately after the BODY tag and the closing /FORM tag appears immediately before the closing /BODY tag. This implies that for each form only one HTML form is possible, which encloses all pages of the print pages.

    You can mark fields in text elements and text modules as input elements. Input elements can be either simple input types or group input types.

    You can mark text elements, text modules, and include texts as text area.

    To use the fields of the text node or the whole text node as an input element in a Web form, make the relevant settings on the Web attributes tab page.

    Evaluate the entries that the user makes on the form. See also: Evaluating Form Input.

    The values of fields that have the input types Submit, Reset, and List box are displayed as texts on the generated HTML page. To allow these texts to be translated, you have to define them using text elements before calling the Smart Form and then pass them to the Smart Form at the form interface. See also: BSP applications SF_WEBFORM_02 or SF_WEBFORM_03.

    Hope this would help.

    Please mark the relevant answers

    regards

    Vinay Swarup

  • RELEVANCY SCORE 2.73

    DB:2.73:Smartforms mp



    Hi all

    In which dbase table smart form layout details will be stored like window ,pages ,attributes ,tables ,styles

    DB:2.73:Smartforms mp


    Hi,

    Try table STXFADM.

    Regards,

    Aravind

  • RELEVANCY SCORE 2.73

    DB:2.73:Standard Smartforms mc



    Hi,

    I am new to smartforms , i have gone thru different threads regarding smart form.

    Can any one tell me in detail about altering a standard smartform( layout and program also) and attaching it to nace transaction.

    Help will be appreciated. Thanks in advance

    thanks...,

    DB:2.73:Standard Smartforms mc


    check TNAPR table.

    enter ur form name in the field sform get the program name.

  • RELEVANCY SCORE 2.73

    DB:2.73:Break Loop In Smartforms am


    hello everyone, im a newbie at ABAP and i have a problem in smartforms, I will display data from database and I want to place a break after the loop in the smartforms, example, new matnr, new page...how can i do that? do you suggest any tutorials about smartforms? tnx alot?

    DB:2.73:Break Loop In Smartforms am

    in your case insert command inside the loop/tablecheers,sasi

  • RELEVANCY SCORE 2.72

    DB:2.72:Smartforms Print Two Copies 9s



    Hello,

    Please, can you tell me how can I print two copies of the same smartforms in the same page / in the next page?

    Thanks a lot

    Enrique Aguirre

  • RELEVANCY SCORE 2.72

    DB:2.72:Totals In Smartforms m7



    Hi,

    How to get subtotals in each page and grandtotal in last page in smartforms.

    Regards,

    Suresh.

    DB:2.72:Totals In Smartforms m7


    hi,

    WELCOME TO SDN.

    in footer window there is a check box at end of main page check it which will allow u to get

    grandtotal in last page.

    for ex u r displaying 1 purchase document which may hav so many items in each page then in program give at new ebeln.sum.this will give u subtotals at every page.

    reward points if hlpful.

  • RELEVANCY SCORE 2.72

    DB:2.72:Smartforms jk


    Hi,In smartforms how to print every page back side for e.g1 st page -2nd page should print in backside of 1st page,same as fallows?Thanks

    DB:2.72:Smartforms jk

    Hi,The solution is given pls close d thread ,/ revert with the status,Thanks

  • RELEVANCY SCORE 2.72

    DB:2.72:Manageg New Page In Smartforms 3c



    hello all.

    How to managed the recall at new page,That is not defined as next page

    Thanks

    DB:2.72:Manageg New Page In Smartforms 3c


    Hi

    Use Command and the General Attribute section selection the Go to New Page and specify which page you want to call

    Hope this will help. Do let me know if further information is required.

  • RELEVANCY SCORE 2.70

    DB:2.70:Smartforms 1k



    Hi all,

    Question regarding smartforms. I know the name of the layout, but how to find the print program for the same. and also vice versa.

    thanks,

    John

    DB:2.70:Smartforms 1k


    In NACE transaction choose P1 direct production output types

  • RELEVANCY SCORE 2.69

    DB:2.69:Smartforms kj



    give the std layout set and print prg for

    1. PO

    2. SO

    3. IR

    4. Delivery

    also FM used

    DB:2.69:Smartforms kj


    go to transaction NACE or NACT .

    and see the layout as ur rquirment.

  • RELEVANCY SCORE 2.69

    DB:2.69:How To Take Annexture [ Long Text ] In Purchase Order In Smartforms 3d



    hi all expert's

    [1] i printing P.O in smart form ....

    can any body tell me how to take annexture [ long text ] into P.O layout....text will be a page or more pages...

    [2] how to pass mumtiple line item on next susquent page .....

    e.x suppose i having 10 line items for a P.O [ Purchase Order ]

    on page first it should display 5 lines and on 2nd page it should display 5 lines .....

    while i am printing it is showing all items on same page and breaking footer and printing on next line...

    kindly suggest me ...

    thanx in advance ...

    DB:2.69:How To Take Annexture [ Long Text ] In Purchase Order In Smartforms 3d


    hi all expert's

    [1] i printing P.O in smart form ....

    can any body tell me how to take annexture [ long text ] into P.O layout....text will be a page or more pages...

    [2] how to pass mumtiple line item on next susquent page .....

    e.x suppose i having 10 line items for a P.O [ Purchase Order ]

    on page first it should display 5 lines and on 2nd page it should display 5 lines .....

    while i am printing it is showing all items on same page and breaking footer and printing on next line...

    kindly suggest me ...

    thanx in advance ...

  • RELEVANCY SCORE 2.69

    DB:2.69:Smart Forms 13



    hi folks,

    iam doing smartforms ,i have to add additional form to the existing form does that mean adding page to existing form if so how should i do ?i have to create a form with required layout ,i i have write select queries in form to retrive data in database and give values ,where do in write these quries in driver program r in form ?my layout contain two fields with diff description (VBAK-VBELN) another field down to it and another field toth top of the right side ,below material no next to its description and tow more fields , how should i create layout please help and quiries where should i write ,points will be awarded for the answers.

    DB:2.69:Smart Forms 13


    Hi Vinay,

    Here I am sending you the sample code for driver program.

    REPORT z50871mm_smartform.

    ----

    INTERNAL TABLE DECLARATIONS

    WORKAREA DECLARATIONS

    ----

    DATA : it_ekpo TYPE z50871_ekpo_t.

    DATA : wa_ekko TYPE z50871_ekko_s,

    wa_lfa1 TYPE z50871_lfa1_s.

    *Variable Declarations

    DATA : v_funcname TYPE rs38l_fnam, "Function Module Name

    v_ebeln TYPE ebeln. "Purchase Document Number

    ----

    SELECTION-SCREEN

    ----

    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE tit1.

    PARAMETERS : p_ebeln TYPE ekko-ebeln OBLIGATORY.

    SELECTION-SCREEN END OF BLOCK b1.

    ----

    INITIALIZATION

    ----

    INITIALIZATION.

    tit1 = text-001.

    ----

    AT SELECTION-SCREEN

    ----

    AT SELECTION-SCREEN ON p_ebeln.

    PERFORM validate_ebeln.

    ----

    START-OF-SELECTION

    ----

    START-OF-SELECTION.

    PERFORM get_headerdata.

    PERFORM get_itemdata.

    PERFORM get_vendordata.

    PERFORM call_smartform.

    ----

    * Form get_headerdata

    ----

    FORM get_headerdata.

    SELECT SINGLE ebeln bstyp bsart aedat ernam

    INTO wa_ekko

    FROM ekko

    WHERE ebeln = p_ebeln.

    ENDFORM. "get_headerdata

    ----

    * Form get_vendordata

    ----

    FORM get_vendordata.

    SELECT SINGLE lflifnr lfname1 lfort01 lfland1 lf~adrnr

    INTO wa_lfa1

    FROM lfa1 AS lf INNER JOIN ekko AS ek

    ON lflifnr = eklifnr

    WHERE ek~ebeln = p_ebeln.

    ENDFORM. "get_vendordata

    ----

    * Form get_itemdata

    ----

    FORM get_itemdata.

    SELECT ebelp ematn matkl netpr

    INTO TABLE it_ekpo

    FROM ekpo

    WHERE ebeln = p_ebeln.

    ENDFORM. "get_itemdata

    ----

    * Form validate_ebeln

    ----

    FORM validate_ebeln.

    SELECT SINGLE ebeln

    FROM ekko

    INTO v_ebeln

    WHERE ebeln = p_ebeln.

    IF sy-subrc NE 0.

    MESSAGE e020(z50871msg) WITH 'Purchase Document Number Is Invalid'(002).

    EXIT.

    ENDIF.

    ENDFORM. "VALIDATE_EBELN

    ----

    * Form CALL_SMARTFORM

    ----

    FORM call_smartform.

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

    formname = 'Z50871MM_SMARTFORM'

    IMPORTING

    fm_name = v_funcname

    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.

    ****/1BCDWB/SF00000721

    CALL FUNCTION v_funcname

    EXPORTING

    wa_lfa1 = wa_lfa1

    wa_ekko = wa_ekko

    TABLES

    it_ekpo = it_ekpo[]

    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.

    ENDFORM. "CALL_SMARTFORM

    In the smartform , I am displaying Purchase order header details, Item details, and vendor details.

    So, those parameters I am passing from here.(wa_lfa1, wa_ekko,it_ekpo).

    This you can use it as a reference.

    Regards

    Sandeep Reddy

  • RELEVANCY SCORE 2.69

    DB:2.69:Smartform m8



    Hi

    I am designing a layout in Smartforms.

    In the MAIN window of the first page, I am looping a table (fields like EKPO-EINDT,EKPO-TXZ01,EKPO-MATNR etc)

    My query : I need to place the TOTAL VALUE(EPKO-NETWR) AT THE END OF THE LINE ITEM.

    CAN I PLACE IT IN THE FOOTER OF THE TABLE OR CREATE ANOTHER WINDOW

    kINDLY CLARIFY

    POINTS WILL BE AWARDED

    DB:2.69:Smartform m8


    Hi,

    You can place it in the footer of the table.

    click on the table.

    in calculations tab mention the operation as total, field name, target field name and time as after loop.

  • RELEVANCY SCORE 2.69

    DB:2.69:Page Break am



    I am facing a problem with page break in smartforms while in loop.

    Message: Try with PROTECT and ENDPROTECT statement.

    DB:2.69:Page Break am


    I am facing a problem with page break in smartforms while in loop.

    Message: Try with PROTECT and ENDPROTECT statement.

  • RELEVANCY SCORE 2.69

    DB:2.69:Page Format For Landscape Page Layout In Smart Forms 1p



    Hi Guys,

    Please give the solution for which page format used for landscape layout used for creating smartforms.

    DB:2.69:Page Format For Landscape Page Layout In Smart Forms 1p


    Hi Vinayak,

    Even though there are no specific page formats available for landscape layout, you can use a standard DINA4 page format and put the page as land scape layout.

    This can be done in the Page's Out put Tab, there is an option Print Attributes in which you can select either Portrait format or Landscape format.

    Hope this will help you.

    Regards,

    Ajith V

  • RELEVANCY SCORE 2.69

    DB:2.69:Related To Smartforms jf



    hi all,

    how can I put a page break in smartforms based on some condition...

    plz help me...its urgent

    DB:2.69:Related To Smartforms jf


    hi,

    You can use the command node to Print the data to the next page i.e. control can be passed to the next page.In the command node general attributes check the box go to new page and select the page from the drop down.

    Thanks Regards,

    Veeresh

  • RELEVANCY SCORE 2.69

    DB:2.69:About Smartforms 3p



    Hi Developers,

    I AM WORKING ON ECC6.0 IS THERE ANY OPTION TO CALL FUNCTION MODULE IN PROGRAMLINES IN SMARTFORM LAYOUT,CAN ANY ONE HELP ME.

    ThanksRegards,

    phani.

    DB:2.69:About Smartforms 3p


    Hi,

    Go through the following Links, here u can find example with step

    by step.

    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

    http://sap.niraj.tripod.com/id67.html

    Check these step-by-step links

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287

    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985

    Check these links also.

    http://www.sap-basis-abap.com/sapsf001.htm

    http://www.sap-press.com/downloads/h955_preview.pdf

    http://www.ossincorp.com/Black_Box/Black_Box_2.htm

    http://www.sap-img.com/smartforms/sap-smart-forms.htm

    http://www.sap-img.com/smartforms/smartform-tutorial.htm

    http://www.sapgenie.com/abap/smartforms.htm

    for Smartforms material

    http://www.sap-basis-abap.com/sapsf001.htm

    http://www.sap-press.com/downloads/h955_preview.pdf

    http://www.ossincorp.com/Black_Box/Black_Box_2.htm

    http://www.sap-img.com/smartforms/sap-smart-forms.htm

    http://www.sap-img.com/smartforms/smartform-tutorial.htm

    http://www.sapgenie.com/abap/smartforms.htm

    How to trace smartform

    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF

    http://www.sap-img.com/smartforms/smart-006.htm

    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

    Re: Need FAQ's

    http://www.sap-img.com/smartforms/smart-006.htm

    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

    Re: Need FAQ's

    Regards,

    Priyanka.

  • RELEVANCY SCORE 2.69

    DB:2.69:Declare Own Page Format In Smartforms p1



    hi

    can any body help me in giving my own pageformat in smartforms. please tell the procedure.

    thanks,

    rajesh

    DB:2.69:Declare Own Page Format In Smartforms p1


    To create an user defined page format first open transaction SPAD, then select Full Administration push button.Then select the device types tab after that page formats.Go to change mode,then press the create button on the Application tool bar then give all your requirements.Save it and go to format types in device types tab.Open it in change mode and press the create button and assign the new page format in the custom format type save it.Now open your smartform and go to Output Options and assign your custom page format there. To create a custom page format you must have access to SPAD transaction.

  • RELEVANCY SCORE 2.69

    DB:2.69:How To Put Page Break In Smartforms am



    Hi Guys,

    Can anyone please let me know How to put page break in SMARTFORMS

    Regards

    Avi

    DB:2.69:How To Put Page Break In Smartforms am


    Hi,

    Look at the below thread, you will get the answer

    https://www.sdn.sap.com/irj/sdn/profile?userid=2522810

    Regards

    Sudheer

  • RELEVANCY SCORE 2.69

    DB:2.69:Multiple Page Formats In Smartforms k3



    we say that multiple page format is possible in smartforms but not in SAP Script. What does this multiple page format exactly means and whar does label means exactly in smartforms.

    Please help.

    DB:2.69:Multiple Page Formats In Smartforms k3


    Hi joseph,

    go with tc:smartforms,specify some name and go with create.place the cursor on 'Pages and windows' folder.on right side we will have option page format:go with f4 .u will find many page formats,but its not there for scripts designing

  • RELEVANCY SCORE 2.69

    DB:2.69:Smartforms Not Triggering Next Page When Main Window Has Template With Loop 1c



    Hello SAP Gurus,

    I need your help in smartforms, actually main window is not triggering next page when template is filled up with items. Here is details how I have created smartforms.

    First page-

    subwindows....

    Main

    - Template-loop at interanl table-Program lines(for condition check)-texts

    there are fews points I would like to add here:

    1. Reason for using template is, layout has three columns and based on conditions I need to show items in specific columns.

    2. when any column of Template is full with items it should trigger next page, but it is not happening. when I added command inside loop then I got error that cell number N row Y not avaliable. It seems next page didn't consider template.

    3. If I use tables then data was not displaying correctly, like if second column is filled for first case, for another case if first column should fill up then data was not populating at the start of column it was displaying just below of second colum data, in the first coulum. means first line of first coulum display blank. so can't use tables.

    4. If I put Template under loop then for each data, smartforms triggers new page and templete is filling up with only one record at a time. that is also wrong.

    I hope you all understand my problem. Please let me know if there is any other method or I am doing somthing wrong.

    Thanks in Adv.

    Gaurav.

    Edited by: Gaurav Sharan on Nov 26, 2009 1:24 PM

    Edited by: Gaurav Sharan on Nov 29, 2009 7:45 PM

    DB:2.69:Smartforms Not Triggering Next Page When Main Window Has Template With Loop 1c


    Thank you all,

    Actually I was thinking, if any other way could be handle without using tables and changing codes. Now I got answer.

    Thanks once again.

    Cheers!

    Gaurav.

  • RELEVANCY SCORE 2.68

    DB:2.68:Urgent-Smartform 1m



    have modified standard layout of script(form) by means of smartforms,now how can i attach it to the driver program and execute and see the output of smartform.

    DB:2.68:Urgent-Smartform 1m


    think this is what you are looking for:

    In the output type definition (Trx NACE - Output Types) you define the most common Program and (Smart)Form that is used.

    E.g. output type ZQ01 connects to program RLB_INVOICE and SmartForm ZLB_BIL_INVOICE.

    Then you can set up condition records for a numerous options, for example the document type. In this condition record, you select a document type and press the button Communication.. In this page, you can set a different SapScript of SmartForm to overrule the settings you made in the output type. The Print Program wil stay the same.

    e.g. For document type IV (InterCompany), you can set SmartForm ZLB_BIL_INVOICE_INTERCOMP.

    In this way, you won't have to use a Z-program, and you can use the same print program with different layout forms.

    Please award points if this helps.

  • RELEVANCY SCORE 2.68

    DB:2.68:Smartforms mm



    Hi experts!

    i want to reduce the page size in SMARTFORMS,

    can u tell me,how to reduce the pagesize.

    Thanks in advance

    chandu

    DB:2.68:Smartforms mm


    Hi Chandu,

    On the pages of a form you determine the page layout and the sequence of pages with different structures.The page layout includes the page format (for example, DIN A4, Letter, DIN A5 landscape) and the position of the windows on a page.

    Form attributes Contains administrative info of the form.

    1)General attributes like created by, creation date, creation time.

    2)Output options a) Style

    b)Page format

    c)Output formats(Standard/XSF/XSF+HTML).

    Form attributes Contains administrative info of the form. Also defines the page

    format (DIN A4, Letter, DIN A5 )and output format like

    Standard Output: during form processing, the output data is generated in OTF format.

    XSF Output: during form processing, the output data is generated in XSF format. XSF is an XML-based language that is determined in the SAP Smart Forms DTD. (for the definition refer to BSP page /bc/bsp/sap/smart_forms/smart_forms_xsf.dtd)

    XSF Output + HTML:during form processing, the output data is generated in XSF format as well as any HTML data which the application can send to the browser for display.

    Form interface Through Form Interface application (print) program can interact

    with smartform and vice a versa. It has Import, Export, Tables and Exceptions

    tab which define the set of data passed from a program to a smartform.

    Global Definitions All the variables that are global across the smartform are declared here. Here we have five tabe viz Global Data, Types, Initialization,Field Symbols and Form Routines.

    and

    Use tcode SPAD. Here u defene ur custom page size(widh, height).

    Take new form name. assign to SAPWIN declare top of page, end of page. at line selection. activate it.

    Then u can use it in your smartforms.

    Kindly Reward Points If You Find The Reply Helpful.

    Cheers,

    Chaitanya.

  • RELEVANCY SCORE 2.67

    DB:2.67:Calling Subroutines In Smartforms 7s


    hi fnds, i need u r help.. my sinario is thatin smartforms ..for each page i need to calculate the subtotal and need to print at the end of page..and how to we can use the command in smartforms..help me to solve..this ..

    DB:2.67:Calling Subroutines In Smartforms 7s

    Hi Sunil,Have a variable to keep track of current value of bSFSY-PAGE/b. In a variable keep accumulating the values for subtotal.When, the new page fires and SFSY-PAGE value changes, display the variable content, and reset.Regards,Raj

  • RELEVANCY SCORE 2.67

    DB:2.67:Need Shipping Detials In Smartforms ja



    i am developing a layout,everthing is fine but need shipping details,which table - fields ,should i use here.

    Thanx in advance.i promise to reward.

    DB:2.67:Need Shipping Detials In Smartforms ja


    The Shipment details are in VTTK and VTTP table.

    VTTP table contains the shipment and corresponding delivery note information...

  • RELEVANCY SCORE 2.67

    DB:2.67:Move To Next Page In Smartforms cz



    Hi all,

    Can any one tell me how to move from one page

    to another page using smartforms....

    Regards,

    Ranjith C.

    DB:2.67:Move To Next Page In Smartforms cz


    hii

    whatever you want to display in next page...plz create that on main window.

    and in general attribute tab set next page to same page no.

    hope it will help you

    thanks regards

    abhishek

  • RELEVANCY SCORE 2.66

    DB:2.66:Smartforms Page Protection? sz



    Why is Page Protection underintensified in my objects when I want to check it off?

    Thank-You.

    DB:2.66:Smartforms Page Protection? sz


    Hi,

    U can create a FOLDER node and check the page protection.

    If u want to protect a particular line type then in table click DETAILS and click the line types which u want to protect.

    Thanks,

    Nithya.

  • RELEVANCY SCORE 2.66

    DB:2.66:Problem In Se80 mx



    Hi guyz,

    problem:

    when i click on display .........control must goto smartforms ie , zff_oi_print_segregation(function) .... including the message on the layout screen

    thanks in advance......

    sudheer

    DB:2.66:Problem In Se80 mx


    Hi Sudheer,

    Your problem looks simple.

    Just use submit command, if you are using a smartforms print program as below:

    (only part of code)

    -

    When 'DISP'. here DISP is your function code for diplay button.

    Submit zff_oi_print_segregation.

    (You can call function module also)

    -

    Please feel free to contact.

    If helpful rewards are welcome.

    -B S B

  • RELEVANCY SCORE 2.66

    DB:2.66:Controlling Formpages Inside Smartforms zs



    Hi Everyone!

    Hope somebody can help me with the sfsy-page and sfsy-formpages in SMARTFORMS. Is there a way that i can reset the paging inside Smartforms and not on the print program?

    Thank you very much!

    Regards,

    Dexter Nubla

    DB:2.66:Controlling Formpages Inside Smartforms zs


    It is imposible control these variables. Smartforms manages them.

    You can control this dividing the smartforms in parts and then concatenate in a unique PDF file.

    Don't forget the points

  • RELEVANCY SCORE 2.66

    DB:2.66:How To Know "When The Last Time" Sapscript/Smartforms Is Printed? js



    Dear Gurus,

    How to know "the last time" SAPscript/Smartforms is printed?

    example :

    I have a program ZPYG_FORM and layout ZPYG_LAYOUT

    I want know when the last time layout ZPYG_LAYOUT is printed through program ZPYG_FORM?

    Cheers!

    DB:2.66:How To Know "When The Last Time" Sapscript/Smartforms Is Printed? js


    Hi Sendy,

    If your requirement is to know when the form was last printed, you may create a custom table ZTABLE contaning DATE, TIME, or other details you want, and then you change your driver program such that it will update the custom table whenever the driver program is run.

    If the driver program is a standard program, you can simply add program logic in the smartforms so that it will update the custom table. For sapscript, you might need to use PERFORM subroutine IN PROGRAM another custom program.

    Take note that this will let you know the details of the spool generated. It's possible that the end-user can print the spool multiple times. If you want to know that too, you may have to refer to standard spool tables such as TSP02.

    Regards,

    Paul

  • RELEVANCY SCORE 2.66

    DB:2.66:Copying Smartforms cs



    Hai Friends,

    I have copied a smartforms from another smartforms. But i want only the layout to be copied and not the coding. I have deleted all the input/output parameters and the global data one by one manually. this is a tedious process. is there any way to copy only the layout and not the coding or to delete all the variables on the whole.

    Thanks.

  • RELEVANCY SCORE 2.65

    DB:2.65:Quotation Printprogram Using Smartform x3



    Hi,

    Is there any standard printprogram which uses SMARTFORMS for printing the quotation layout?

    Thanks

    DB:2.65:Quotation Printprogram Using Smartform x3


    Hi,

    Please check this.

    Smart Form: /SMB40/SDQUO_A

    Program: /SMB40/RVADOR01

    Regards,

    Ferry Lianto

  • RELEVANCY SCORE 2.65

    DB:2.65:Background Execution Of Smartforms kk



    Hi Frineds,

    Here is a requirement to execute a smartforms Layout in background. Can you please provide the detail step for execution.

    Rgds, Krishan Raheja

  • RELEVANCY SCORE 2.65

    DB:2.65:Smartforms k1



    hi friends,

    how to see the output layout of standard smartforms.

    for example tell me how to see the print preview of visitor pass (sf_le_pass_per)

    DB:2.65:Smartforms k1


    HI,

    U have to call that FM for that smartform in Z program and execute that program . then only you can see the print preview............................

  • RELEVANCY SCORE 2.65

    DB:2.65:Call Smartforms In Bsp pz



    Hi experts,

    I am implementing of copy of standard bsp application "hap_document" and I would like to call a smartforms anytime I click on print button. Does anybody can tell me what are the different steps to call a smartforms which will display all the data in a nicer layout than the bsp?

    Thanks in advance,

    Best Regards,

    Murai

    DB:2.65:Call Smartforms In Bsp pz


    Hi Murai,

    Please check the below links may helpful you :

    BSP/HowTo: Generate PDF Output from a BSP.

    Smart Form output into a BSP page?

    Regards,

    Prakash.

  • RELEVANCY SCORE 2.65

    DB:2.65:Smartforms - Multiple Original Copies jc



    Hi,

    In smartforms I would like to print multiple original copies as well as multiple duplicate copies of BOL layout.

    I know tdcopies parameter has multiple duplicate copies and 1 original copy.But I need multiple originals,how do I do?

    Thanks,

    Bala

    DB:2.65:Smartforms - Multiple Original Copies jc


    Hi Saurabh,

    Our requirement is we have additional data tabstrip customized screen in Sales Order screen.In this we have values in the fields like originals 5 duplicates 6.

    Based on this above values our layout should print 5 originals and 6 duplicates print out.

    I think sfsy-copycount0 prints only one original..How do I print multiple originals.

    Regards,

    Bala

  • RELEVANCY SCORE 2.65

    DB:2.65:New Page In Smartforms 39


    Hi All ;I want to create new page in smartforms for each vbeln in the itab.For examp; I have 3 records in itab.I want to see different 3 pages ,the output is 4 pages the last page is free.The screenshot of th smartforms ;Thanks for your help.RegardsFırtına

    DB:2.65:New Page In Smartforms 39

    Hi yigit, sorry for mistake. actually i posted near four screen shots but it loaded only one.. i didnt noticed that.

  • RELEVANCY SCORE 2.64

    DB:2.64:How To Trigger Page Brake Explicitly In Smartforms. f8



    Hello Experts,

    How to trigger PAGE BRAKE explicitly in smartforms ?

    Thanks and Regards,

    Nikhil Kulkarni

    DB:2.64:How To Trigger Page Brake Explicitly In Smartforms. f8


    Create a Command node in Main Window.

    In General Attributes U can check Go to New Page Option. U can specify a condition as well in the conditions tab.

    Thanks,

    Mahendra

  • RELEVANCY SCORE 2.64

    DB:2.64:How To Sum Up For A Page In Smartform dm



    I dont see SUM tab in SMARTFORMS. Is there a way for me to fix loop of 20 rows in a page? Need to overflow the rest of the rows into another page. Each page must only have 20 rows. Is there a way for me to total-up the 20 rows of amount in a page? Need to refresh the total sum of 20 rows to be output on that same page layout as it loops to many pages

    DB:2.64:How To Sum Up For A Page In Smartform dm


    Declare a global variable(say v1 default 0) in global definitions-Global data.

    Create a program line inside loop.

    Give input and output parameters as v1.

    Increment v1 inside the program lines.

    Use alternate to check if the counter is 20.

    set counter = 0.

    Then inside alternate use command to go to new page.

  • RELEVANCY SCORE 2.64

    DB:2.64:Smartforms. Printing A Vertical Text. 33



    Hi,

    We need to print a smartforms with a vertical text in the left bottom of page. It is possible?

    Thanks

    DB:2.64:Smartforms. Printing A Vertical Text. 33


    Dear Karthik,

    To print a text in vertical position you can use the OFFSET keyword in SAP.

    Eg. if u need to print "GOOD" in Vertical

    assign "GOOD" to a string variable.

    data : wrk_text TYPE string.

    data : n type i.

    data : k type i.

    wrk_text = 'GOOD'.

    wrk_text + 0(4).

    wrk_text + 1(4).

    wrk_text + 2(4).

    wrk_text + 3(4).

    output:

    G

    O

    O

    D

    if the String is getting populated dynamically the after assigning value to wrk_text

    find the lenght of the string

    n = strlen ( wrk_text ).

    U can print the text inside DO...EndDo Loop.

    I think this will solve ur pblm.

  • RELEVANCY SCORE 2.64

    DB:2.64:How To Have Custom Page Format In Smartforms ss



    Hi,

    I need to define a custom Page Format (Custom Page Size). Where could I define this size so that I could select it in smartforms.

    Thanks,

    Kishan

  • RELEVANCY SCORE 2.64

    DB:2.64:Smartforms: Dual Page Layout sz



    Hi! All,

    Need help with a smartform issue. We developed custom print program and smartform for printing invoices and one requirement was to print a report at the end of the invoice. Actual invoice is in portrait format but the report needs to be output in landscape. This report could span into multiple pages.

    Creating a new page in landscape format, triggering it at the end of the invoice print and calling it subsequenly doesn't work since the main window has to have the same width on all pages.

    I cannot rename the main window on this page to a different name since a form cannot have multiple main windows.

    How do I go about in doing this?

    If I do call a separate smartform just for the report, can I have the complete data, invoice and the report in one spool request and if so is this the only solution?

    TIA

    Sreedhar Chelamkuri

    DB:2.64:Smartforms: Dual Page Layout sz


    Hi! All,

    Need help with a smartform issue. We developed custom print program and smartform for printing invoices and one requirement was to print a report at the end of the invoice. Actual invoice is in portrait format but the report needs to be output in landscape. This report could span into multiple pages.

    Creating a new page in landscape format, triggering it at the end of the invoice print and calling it subsequenly doesn't work since the main window has to have the same width on all pages.

    I cannot rename the main window on this page to a different name since a form cannot have multiple main windows.

    How do I go about in doing this?

    If I do call a separate smartform just for the report, can I have the complete data, invoice and the report in one spool request and if so is this the only solution?

    TIA

    Sreedhar Chelamkuri

  • RELEVANCY SCORE 2.64

    DB:2.64:Smartforms Next Page Shows Duplicates x9


    I'm currently able to branch out to next page in smartforms but the data that is being displayed is duplicatedEx. Page 1data1data2PAGE 2data1data2data3PAGE 3data1data2data4Can anyone help/ provide advice?

    DB:2.64:Smartforms Next Page Shows Duplicates x9

    I defined the line type to display the correct Item data.

  • RELEVANCY SCORE 2.64

    DB:2.64:Smartforms 7a



    hai sir

    how many max main windows can u create in one page in smartforms.

    DB:2.64:Smartforms 7a


    Hi,

    Only one main window is allowed in smartforms. But you can define number of main windows in scripts.

    Regards,

    Priyanka.

  • RELEVANCY SCORE 2.64

    DB:2.64:Internal Table Smartform am



    Hi,

    In smartforms I have an internal table which has abt 10 records i have to print each record in different pages with page nos 1/1 , 1/2 .... etc till 10/10 , if the records are less then have to print accordingly. the layout is same for all the pages.

    ie the same page must be printed for each record of the internal table.

    give me detailed answers pls,.....

    Points sure ......

    Regards

    Arun T