AT NWE COMMAND IN SMARTFORMS

HOW TO GIVE AT NEW COMMAND IN SMARTFORMS.NEED THE REPLY URGENTLY.PLEASE HELP.

To determine the sorting of your internal table, use the Data tab of the table or loop node. In the Sort Criteria  group box you can enter the fields by which to sort the table.
The sequence in which you enter the field names into the table control determines the sort sequence. Use the radio buttons to choose whether to sort the field in ascending or in descending order.
If you want to display data before or after a sort level, mark Event on Sort Begin  and/or Event on Sort End . In the navigation tree, an event node appears for which you can create inferior nodes. In these inferior nodes you specify the data you want to display at this event (for example, subtotals).

Similar Messages

  • Address Command in smartform

    Hi all,
    i am using address command in smartform .there is a radio button for po box and street ..i have to select both po box and street ..is there any way to get the same.
    also i need to print some hard code text in front of address how can i do it.
    i want output as
    B  Name
    I    Street
    L   po box
    L

    Hello,
    The radio buttons are specified to just give the priority to print; i.e.,  whether to print the street as the priority or the PO as the priority.
    Now you can decide what to print first by selecting the radio button.
    If you are selecting radio button for street then, first Street prints and then the PO, if you are selecting the PO radio button, then PO prints then followed by street.
    Hence no worries, now your second requirement to print the text before the address, just add an text element before the address format.
    PS: please do make a note that you cannot insert your texts in the middle of the address that is being printing by using address tab.

  • What are the commands in smartforms

    hi gurus
    can anyone suggest me
    what are the commands in smartforms
    thank you
    regards
    kals.

    Hi,
    Check the below link for complete information on smartforms
    [SMARTFORMS|http://sapabap.iespana.es/sapabap/manuales/pdf/smart.pdf]
    Regards,
    Chandru

  • BOX Command in Smartforms

    Guyz,
    My situation is i have main window which is having 2 columns ...
    1st - invoice line item text
    2nd - invoice line item value
    requriement is i'll have to print a vertical line after the 1st column (inv line itemtext) which should draw through out the main window.
    Firstly - I tried with BOX Command (BOX XPOS 3.00 CM WIDTH 5.00 CM FRAME 10 TW) inside the MAIN Widnow and inside a text element which is not working to my surprise.  MAIN WINDOW  height = 11,80 cm width = 18,16 cm ...SO I'M SURE ABOVE BOX COMMAND SHOULD FIT INTO THIS WINDOW DIMENSIONS but nothing is being printed ?
    Secondly -- As i'm using internal table for priting whole MAIN Window i tried using patterns (framed pattern having one line after first column)... initial look at this pattern made me happier but to my disappointment it didn't work i.e., though it's pritning vertical line it's not printing through out the main window. Say if we have just one row to print vertical line just spans the first row but I WANT VERTICAL LINE TO BE PRINTED THROUGH OUT THE MAIN WINDOW.
    Any suggestions pls ?
    Thanks in advance
    SK

    Sreedhar,
    In SMART Forms you cannot have a line / box unless there is a element.
    What you can do is CREATE a TEMPLATE object and select the pattern. But with template and TABLE inside that formatting of the data will be difficult.
    This link might be useful for you.
    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
    See the demo programs and smartforms SF_EXAMPLE_*
    Regards,
    Ravi
    Note : PLease mark the helpful answers

  • Smartforms : How to include Printer commands in smartforms

    I want to include printer command <esc>&l1T at the end of the smartform so that the printer can staple the form after printing.
    Can any one please let me know how to include this in smart form ..?
    Is there any way ..?

    You should use the following way:
    - Copy the device type into the Customer name space.
    - Go via transaction SPAD - Device types into the device type and
    here to tab strip 'Print controls'. Here add a print control
    with the following contents: \e&l1T
    (without flag 'Hexadecimal'; the \e is the escape character)
    - Now go to your Smartform and add a command node (right-click
    on the tree, Create - Flow logic - Command) and enter the print
    control name into the field 'Include Printer Control'.
    This adds the print control at this point. You only have to
    select the right position of the command node in the tree
    (and therefore the point of time, when the sequence shall be sent).
    - If you want to check the print data, which the SAP sends to the
    printer (and therefore whether the escape sequence was included
    correctly), you can use note 5799, method 2.

  • New Page COmmand in Smartforms

    Hi,
    My requirement is as follows,
    Whenever the item number changes it has to generate a new page with the header
    Whenever an item overflows it should come in a new page without the header details.
    So for this I have two pages in my smartform.
    Page1 - Header with item details
    Page2 - Only item details without the header
    I have given Page1's next page as Page2. And I have given a command whenever the item no changes it should go to Page1.
    But whats happening now is whenever a new page is generated only Page 2 is coming and not the Page 1.
    Any ideas??

    Hi ,
    u want like this right ...
    assume  that  table  data
    item                            item desc                              qty
    10                              10item descripotion                 23
                                        for material      
    20                               20item descripotion                 33
                                         for material      
    O/P Like  This u want
    *page1
    item                                    item desc                            qty
    10                                       10item descripotion            23
    page2  (dont want  want headers only remainning data of the line item)
                                              for material      
    For this simply u can put your header  in the main area of the table  (leave header as blank)
    Let me know if any concerns........
    Regards,
    Lokesh.

  • Regarding event & command in smartforms

    i have an assignment like this,i need to develop an smartforms in which
    employees details will come page wise means for first employee the details will come
    in the first page for second employee the details will come in the second page
    like this i need the outptut ,here i need to use templates plz let me know how will
    i proceed in smartforms as well as in the driver programs....
    if possible plz send ur codes as i m new to smartforms.
    FOR THIS i already post the maater and got this answer,
    write the driver program in se38 ......with taking an internal table with the details of all
    employees for your selection.......
    in the driver program itself call ssf_function_module ........and pass the internl atable to
    this FM .......sort the table by employee number
    now create a smartform ......with one page...desgin the page as per your requirement.....
    in the mail window create a loop (assgin the tAable ....to it which has been passed from driver program....)
    inside the loop create at new (down you will see ) and put the employee number field.....
    next inside the loop create a command ...and put a new page(call) ...
    new page will trigger automatically for each employeee.
    and i did as per the answer but i m not getting here in my smartforms i m using
    table under this i have sorted pernr in the data tab and under this event i m
    putting command in this command i m using go to new page,as per this scenario
    i m getting my output but one blank page is also coming in the output ,
    how to remove this page plz help me i also tried in the condition not on first page but it is not coming.
    plz help me

    Hi,
    Uncheck the goto new page command and put the condition pernr not equal to prevevious pernr in the conditions tab of the new command.
    This can be done as follows.
    with in loop and endloop at the end of the loop create text node(cretae a var called W_prev_pernr and then w_prev_pernr = itab-pernr.) which stores the current pernr.at in the conditions tab of the new command(Create>Flow Logic>Command) put the condition like : pernr NE w_prev_pernr.
    Hope this helps you.
    Regards,
    Rama.P.

  • Command in smartform

    hi..
    i have given a explicit page break in smart form by using command-->goto new page,but its not triggering.in the conditions tab i have given sfsy-page>=4.
    My sf has 3 pages first,next and new, but the data in the main window flows for abt 12 pages.In the main window footer i am giving the command .can anyone let me know why it is not triggering.

    Hi
    u have given cndtion for the command node i.e. sfsy-page >=4 it is fine..
    u r telling that this created in main window footer.. as per my knowledge the main window doesn't contains any parts just it is a window. i dont wht do u mean here.
    the command node will be triggered only if it is in main window.
    and u r telling u have 3 pages.. so u have to give another condtion i.e. "only on Page" PAGE1 or PAGE2 or PAGE3.. otherwise it will be executed in all the pages(i am reffrering page number1.2.3.4 etc iam reffereing page type PAGE1 PAGE2 PAGE3)..
    make sure u have created the commang in MAin window

  • Command in Smartform not working

    Hi all,
    I need to print totals in every page, for that how to know the end of the page.
    i tried to print only 15 rows in page and set a flag, if flag = X then im printing total in footer.
    But in some instances, the page has more than 15 rows then after 15th row the total is printing then the
    remaining records are printing. Now i called the Command with flag = X and in goto new page i gave second page.
    But the flag has set to X, total is also printing but the command is not trigerring.
    after 15th record the total is getting displayed and remaining item are printing.
    anybody has a clue on this why the command is not trigerring?
    pls suggest.
    Regards,
    Priya

    Declare your total line in Footer of table. There you will have the option to display it at end of table or end of each page.
    No need to calculate 15 lines or so.
    Just keep calculating the total in a variable and display it in footer.
    Double click on Footer node of table and you will see the optin to display it 'At page break' or 'End of table'
    Revert if in any doubt.
    Edited by: Ankesh Saharan on Dec 24, 2008 2:19 PM

  • "AT END OF" Command in Smartforms

    Hi all,
           I'm trying to use Smartforms For Invoice Printing. I created a "Z" Smartform wherein I've to call a new page for a new invoice number. I'm giving the Invoice numbers as I/P in my "Z" report. What should I do regarding this?
    Cheers
    Ramky.G

    Hi Ramakrishna,
    <b>1</b>.
    Try to loop ur Internal table with invoices and Call ur SMARTFORM for every new invoice .
    <b>2</b>.
    Define 2 variables
    DATA:
    num_1 TYPE i,
    num_2 TYPE sy-tabix.
    DESCRIBE TABLE it_table LINES num_1.
    LOOP AT it_table.
    num_2 = sy-tabix.
    CASE num_2.
    WHEN 1.
    control_parameters-no_open = ' '.
    control_parameters-no_close = 'X'.
    WHEN num_1.
    control_parameters-no_open = 'X'.
    control_parameters-no_close = space.
    WHEN OTHERS.
    control_parameters-no_open = 'X'.
    control_parameters-no_close = 'X'.
    ENDCASE.
    IF num_1 = 1.
    CLEAR: control_parameters.
    ENDIF.
    Here u call Smartform
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = control_parameters
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    output_options = gv_output
    user_settings = space
    gv_agmt = p_agr
    gv_dist = gs_distributors-kunnr
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    Endloop.
    <b>3</b>.
    If u do as in 2nd point by defining 2 variables num_1 num_2 and logic for control_parameters between LOOP and ENDLOOP.
    U will get all Invoices pages in single output.
    I hope that u can understand .
    <b>Thanks,
    Venakt.O</b>
    Thanks,
    Venkat.O

  • REQUIRE One spool request for n copies in one print command in smartform

    Hii Friends,
              I created a smartform..I require 5 copies of that form..There is a text which needs to be changed in evry copies...eg Original in first copy
                            Duplicate in second copy
                            Triplicate in third copy....n so on
    So i used a loop n i am calling smartform 5 times....The problem is i need one spool request to be created..
    Note: By default sometimes it create one spool request and sometimes 3 spool request...
    Pls share your inputs ............
    Thanks,
    Regards,
    Sujit.

    hi,
    this is more complicated see below description from help
    regards,darek
    Printing Several Forms in One Print Request
    Use
    You want to bundle several forms into one print job.
    Print Request vs. Spool Request
    SAP Smart Forms allows you to bundle several forms to form one output unit. This output unit is called a print request. A print request is different from a spool request:
    Whether a new spool job is created in the spool depends on the settings in the spool dialog.
    Whether a new print request starts depends on the standard parameters of the generated function module you set in SAP Smart Forms. For each print request, the spool dialog is called only once. If you suppress the dialog, you can pass parameters for spool processing only at the beginning of the print request.
    This means that a print request gathers several forms before submitting them to spool processing. Thus they cannot be spread over several spool requests. Vice versa however, you can include several print requests into one spool request.
    Procedure
    Use function module SSF_FUNCTION_MODULE_NAME to retrieve the name of the function module generated from the Smart Form (see also: Integrating the Smart Form Into the Application).
    Call the Smart Form for the first time and set the NO_CLOSE parameter of the control structure. This prevents the print request from being closed after accepting the output of the Smart Form and allows you to include all other form output into this print request as well. Leave the NO_OPEN parameter empty.
    Instead of calling the Smart Form for the first time you can also call function module SSF_OPEN .
    If you want to start a new spool request for the print request, set the TDNEWID field of the Output Options in this first call.
    For all other form output of the application program that you want to include into the print request, use a loop to set both the NO_OPEN field and the NO_CLOSE field of the control structure.
    To close the print request, in the call of the last Smart Form set the NO_OPEN parameter and unmark the NO_CLOSE parameter.
    Instead of calling the Smart Form for the last time, you can also call function module SSF_CLOSE .
    Result
    The forms you called in the steps described above are included into one print request. If in the first step you started a new spool request, you can now view its status in the spool request overview (transaction SP01 ).

  • STANDARD TEXT with BITMAP command in SMARTFORM

    Hello,
    I'd like to customize my smartform with picture defined by standard text.
    I defined standard text in SO10:
    /:   BITMAP 'xxx' OBJECT GRAPHICS ID BMAP TYPE BMON DPI xxx 
    .. and this standard text included to my smartform.
    But no picture appears.
    Best regards,
    Josef Motl

    Hi Josef!
    If you want to use the graphics from SO10 you have to change the syntax. Instead of "bitmap" you should use "include", the object should be text and you need the textid. If you use the bitmap-call you should upload the image with SE78. If you're transporting your syntax from one system to the other you have to include the image in your transport order or you have to upload it in each system.
    If you want good quality you should use SE78 and the BITMAP-call instead of SO10.
    Best regards,
    Ingo

  • Dynamic New-Page Command in Smartform

    Dear Experts,
    I have a particular requirement of triggering New-Page after the end of Main window for displaying Terms & Conditions on the last page.
    For this purpose I have designed 3 pages :
    PAGE1 - Contains Main window, few Secondary windows and some Graphic windows.
                   (In PAGE1 -> General Attributes -> Next Page = PAGE2)
    PAGE2 - Is in continuation with PAGE1 except a few changes w.r.t. some Secondary windows.
                   (In PAGE2 -> General Attributes -> Next Page = PAGE2)
    PAGE3 - Contains a new Main window for displaying Terms & Conditions, few Secondary windows and
                   some Graphic windows.
                   (In PAGE3 -> General Attributes -> Next Page = PAGE3)
    After the end of Main window in PAGE1 or PAGE2 depending on the amount of data, I have used a Command logic for triggering New-Page (PAGE3). But it always triggers PAGE2 as new page and not PAGE3.

    Thanks Muthukumar.
    But in case if I set a next page of page 3 to the second page, then if my Page2 contains data spreading over more than one pages, it will display Page2 once and immediately display Page3 as next page.
    I will explain my requirement once again:
    1. If my PO details fits on Page1 itself than my next page should be Page3(Terms & Condition page).
    2. If my PO details is of more than one page, for that I have designed Page1 as first page and Page2
        for remaining pages. Once the PO details is over the next page should be Page3.

  • What are commands in smartforms

    hi gurus
    can anyone suggest me
    what are commands in scripts..
    thank you
    regards
    kals.

    SAPscript Control Commands
    The functionality of the SAPscript editor is made available through a set of commands. These commands give you full editing control over your text. They are executed immediately when called.
    There is, however, another kind of SAPscript command, namely the control commands. The purpose of these is to allow control of the output formatting. These commands are not interpreted by the SAPscript editor, but are passed through to the SAPscript Composer for processing. The Composer is the program that converts text from the form displayed in the editor to the form used for printing. This includes, for example, line and page formatting, the replacement of symbols with their current values and the formatting of text according to the paragraph and character formats specified.
    The SAPscript control commands are described in the following sections.
    Syntax of Control Commands
    Explicit Page Break: NEW-PAGE
    Preventing Page Breaks: PROTECT
    Next Main Window: NEW-WINDOW
    Assigning a Value to a Text Symbol: DEFINE
    Formatting Date Fields: SET DATE MASK
    Formatting Time Fields: SET TIME MASK
    Country-Dependent Formatting: SET COUNTRY
    Position of the Leading Sign: SET SIGN
    Initializing Numbered Paragraphs: RESET
    Including Other Texts: INCLUDE
    Changing the Style: STYLE
    Formatting Addresses: ADDRESS
    Setting a Header Text in the Main Window: TOP
    Setting a Footer Text in the Main Window: BOTTOM
    Conditional Text: IF
    Finding a Match: CASE
    Calling ABAP Subroutines: PERFORM
    Inserting Print Controls: PRINT-CONTROL
    Boxes, Lines, Shading: BOX, POSITION, SIZE
    Hexadecimal Data: HEX, ENDHEX
    Summing a Program Symbol: SUMMING
    Check this link for detail information.
    http://help.sap.com/saphelp_40b/helpdata/en/d1/80318f454211d189710000e8322d00/content.htm

  • Issue in using an AT NEW command in SMARTFORM.

    Hi.
    I am printing a total summary of flight data and then calculating the total price in Smart forms.
    I would like to group the fetched data according to it's Carrid and Connid.
    I would like to ask for some guidance at this point,
    Sr.No     Carrid        Connid           Fldate          Price
    1.            AA            0017            28102007      1000 USD
                                                      29102007      2000 USD
    2.             LH           0402            10102007       1500 EURO
                                                      12112007       4500 EURO
    3.             SQ          0200             14112007       2000 SGD
                                                       16122007      4500 SGD
    We can solve this by using AT NEW FIELD in normal case.
    But, In smart forms I am unable to do that or not finding the appropriate way. Can we use AT NEW in smart form and if yes, where and is there any condition for its applicability.
    If no, what is the best suggested way.
    I appreciate your inputs.
    Good Luck & Regards.
    Harsh Dave

    Hi,
    You can get the functionality of At new by using the Event in loop control in smart froms.
    In the Loop , Go to Data tab.Now in the below 'Sort criteria,
    give the field name in which you want At new Function.
    then Check the Checkbox right.
    You will get an Event tree just below the loop tree.
    In that Event tree,put the Text you want to display only for new value.
    Right clicking on the loop give the text that is displyed multiple times.
    In this way you will get the desired output.
    Regards,
    sujit

Maybe you are looking for

  • How to get PXI 5152 working in LabVIEW 7.0

    Hi,..I recently purchased a PXI 5152 digitiser. The driver CD had NI Scope 3.4 which, when installed worked fine. But it also installed NI DAQ MX 8.5 (min. requirement) and removed my older version of DAQMx.. This new version DAQMx 8.5 does not suppo

  • How to Handle RFC delivery exception (rfcClientException) in XI?

    I have a following scenario. I have an outbound soap interface (sender) and inbound RFC(receiver). When the soap message is posted it goes to receiver where it has to execute the RFC. It tries to convert the XML to RFC and throws the following except

  • Still no answer

    How can you change font size on iPhoto 11 when printing contact sheet. When I print it prints out very small. Please i need help with this!

  • Does Mac OS 10.8.2 support dictionary in language other than English.

    Does Dictionary in Safari and Mail support language other than English (say Chinese and Japanese)?  In iOS, I can simply highlight a word, press "Define" and boom...result is there.  But in Mac OS, I tried highlighting Chinese and Japanese words, dic

  • BBP_EXTLOCALPO_BADI doesnu00B4t execute from BID

    Hi Gurus, We have implemented ECS scenario and BBP_EXTLOCALPO_BADI BADI, and when we create PO from SOCO everything works fine. But when we create PO from vendor Bid, with "Create PO" button the BADI BBP_EXTLOCALPO_BADI doesn´t execute. Can you help