How to use protect and endprotect in smart form

hi to all experts,
                    im still begineer in smart form , i have two headings like
company_code:              purchase doc no:
after this i have a table to be displayed with four columns
what i want is the whole data should not be split by a page break
i know this can be achieved by using protect and end protect in sap scripts how to implement in smart form

probably u have the table inside a loop or a folder or something....
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

Similar Messages

  • How to use protect and protect

    how to use protect and endprotect for two different element.
    iam using one element for 'tax' and one for 'item total'
    i wnt to print two elements in one page only.

    Hi
    What does 'Elements' mean for u?
    Text Elements?
    You can try to manage it in print program:
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        COMMAND = 'PROTECT'.
    CALL FUNCTION 'WRITE_FORM'
      EXPORTING
        ELEMENT = 'ELEMENT1'.
    CALL FUNCTION 'WRITE_FORM'
      EXPORTING
        ELEMENT = 'ELEMENT2'.
    CALL FUNCTION 'WRITE_FORM'
      EXPORTING
        ELEMENT = 'ELEMENTN'.
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        COMMAND = 'ENDPROTECT'.
    Max

  • How to use Multiple Logos in One Smart Form?

    All,
    I have a client where they will have 2 logos for, e.g. "Invoicing" and want the form to decide which logo to print (based on plant code).
    We are using Smartforms.
    They want to use one form and based on the plant code - the form should determine which logo to print in the upper left corner of the invoice - how do you do this?
    This is not like having text to print on the form in the same place - my understanding is the logo is NOT some variable you can "clear" in the program and then use the logo you wish to show up on the printout.
    Does this have something to do with using multiple layouts within the same form?  You define a layout for each logo and then within the Smartform logic determine which layout to print?  And if that is true - does someone have sample code of how they determined which layout to use?
    Thanks - and as always - points rewarded where helpfull!
    Scott

    Hi Scott,
    Create two Graphics in Smartform window & place them wherver you want in the smart form.
    Now in Graphics node, you can find  'Conditions' tab, under this you can give the conditions.
    Hope this clue wil help you
    Regards,
    Sujatha

  • How to use check box & dropdownlist in smart forms

    can anybdy explain(any examples) how i can use check box or drop down list in smart forms.is ther any provision like that

    Hi Ranjith,
    To use Check box in smartform do the following:
    Change the editor to 'PC Editor' and take the menu.
    in text editor of TEXT ELEMENTS..
    Insert -> Characters -> SAP Symbols
    in print preview u can't see these changes..
    for more details check this link..
    How to create checkbox in smartforms??
    Ashven

  • How to use loop inside table in smart form

    Hi All
    i have to use page break at the end of each pernr. i got table in smart form and print cells on event on sort begin. it is working ok . i have an other itab in  as well .which i want to the same page with respect to the pernr no.
    but the problem is as i loop the 2nd itab. it prints all the record what it has.
    e.g  i have two pernr 54 and 55.
    the records of itab1 prints on page1 and page 2 properly. now i loop at itab2 it also have relevent records of above said pernrs. but i m unable to control those pernrs and loop print all the records on both pages.
    if u get some thing out of it kindly help me
    Regards
    ammad

    hi,
    Place the second loop ie. itab2 inside the first loop of itab1.  And in the conditions tab of looping itab2 give the condition for checking the pernr.
    try to implement this logic.
    loop itab
      at new pernr
        new-page
      endat.
        loop at itab2 where pernr eq itab-pernr.
       endloop.
    endloop.
    revert back for further queries.
    regards
    Rajitha.

  • How to use own created STYLE at SMART FORM

    Hi all,
    i am making a smart forms in which i want to use my own created STYLE even tough i already copied my style from the existing one and activate it it but when i m going to use it at SMART FROM,it give me  SMART FROM default style.i can't understand what is the issue and why it is not showing in smart form even i have already activate it.
    Thanks & Regards,
    sappk25

    Thanks every body,i have resolved it by my own self.
    Thanks & Regards,
    sappk25

  • How to use a check box in smart forms????

    Hi All,
    Pls let me know how to use check boxes in smartforms.....??
    there are check boxe available which are crossed (i.e,, selected checkboxes) in the smartforms..
    But i need a checkbox which are not selected.( i.e.., which are not crossed).
    Its really urgent...
    Quick responses are highly appreciable..
    Bye

    Refer this thread
    Re: how to display symbols in smartforms
    We can create symbols in smartforms. For this, change the editor to text editor and then goto insert->characters->SAP Symbols and select the symbol you want.
    You cannot see the symbols in print preview, it'll appear only on a hard copy.
    You can also create as Text Element. In the left side of the right window,you can see a icon called Editor.Click it.
    Then in the Menu,
    go to->Change Editor
    Then in the menu,
    Insert->Characters->Displayable characters,select the character you want.Otherwise,if you want to insert SAP Icon,select that option instead of Displayable Character.

  • How we will have more line of data using protect.. endprotect in main windo

    I have a main window which can have 20 lines and I have paragraph which is of 23  lines, If I use Protect and Endprotect will the data display?(because the protect Endprotect will take whole paragraph in one page but here the paragraph is of 23 lines which cant fit in on window which is of 20 lines)

    Hi
    <u>You have couple of options.</u>
    <b>1) Either you can reduce the font size of the text (To say Courier,  8 Points)
    2) Protect ... Endprotect is for displaying the text inside the block on the same page. Incase the page is geeting ended, then the text printing will not start on that page and will start from the next page to display the whole contents in a page (block).
    3) Increase the page layout from A4 to Letter size if possible.
    View the print preview, to make sure, all the text will come on the desired page as per your requirements.</b>
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • How to Use CMOD and SMOD in SAP using ABAP Code

    Hello anyone,
      Please help me How to use CMOD and SMOD in SAP using ABAP code.
    Give Me Some Sample Example.
    Mail ID: [email protected]
    Thanks,
    Regards,
    S.Muthu,
    SAP Developer.

    Hi,
    User Exits.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    customer exits
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Menu Exit.
    http://www.sappoint.com/abap/spmp.pdf
    http://www.sappoint.com/abap/userexit.pdf
    http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
    http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html

  • How to use protected method in jsp code

    Could anyone tell me how to use protected method in jsp code ...
    I declare a Calendar class , and I want to use the isTimeSet method ,
    But if I write the code as follows ..
    ========================================================
    <%
    Calendar create_date = Calendar.getInstance();
    if (create_date.isTimeSet) System.out.println("true");
    %>
    ============================================================
    when I run this jsp , it appears the error wirtten "isTimeSet has protected access in java.util.Calendar"

    The only way to access a protected variable is to subclass.
    MyCalendar extends Calendar
    but I doubt you need to do this. If you only want to tell if a Calendar object has a time associated with it, try using
    cal.isSet( Calendar.HOUR );

  • Equivalent command in Reports like Sapscripts's PROTECT and ENDPROTECT

    Hi,
    What is the equivalent command in Reports like Sapscripts's PROTECT and ENDPROTECT?
    - Selva

    Hi,
    I don't think you have any particular command for that in reports. but if you are talking about headers / footers then you may use the events TOP-OF-PAGE and END-OF-PAGE.
    Regards,
    Anand Mandalika.

  • How to use javasetters and getters in different classes

    how to use setters and getters in different class so that the setvalue in one class is effect in second class for getting

    If i got your question right,
    make sure your classes are in the same package
    make sure your getters are public/protected
    make sure your code calls the setter before calling the getter
    Kind regards

  • How to use Protected event CLICK_ROW_COL  of  cl_gui_alv_grid.

    I've  worked with Double_click,Hotspot_click events of Cl_gui_alv grid class quite comfortable as they are Public.
    But i'm unable to work with click_row_col..
    Could u tell me how to use protected event click_row_col..

    Hi Ilayarajaramana 
    Did you try to build up a subclass of cl_gui_alv_grid and access the protected events via the subclass?
    You could e.g. throw an own public event every time the click_row_col event is risen.
    I know this isn't the best way, but it should work.
    Kind Regards,
    Sebastian

  • How to use Checkbox  and radio buttons in BI Reporting

    Hi BW Experts,
       My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I don’t know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
    Thanks,
    Ram

    Hi..
    Catalog item characteristic
    - Data element
    - Characteristic type
    Entry type
    List of catalog characteristics
    Designer
    Format (character)
    Standard characteristic
    Alternative: Master characteristic
    (used for automatic product
    assignment)
    Simple entry field
    Alternatives:
    Dropdown listbox or radio button
    list

  • How to use perform and endperform in scripts

    Can anybody cleaerly explains me how to use perform and endperform in scripts with an example to add something extra dynamically to the standard script (like rvorder01).
    thanks in advance.
    regards
    anil.

    Check this example:
    In form
    PERFORM READ_TEXTS IN PROGRAM 'Z08M1_FORM_EKFORM1'
    USING &EKKO-EKORG&
    USING &EKPO-WERKS&
    USING &EKKO-EKGRP&
    USING &EKKO-BSTYP&
    CHANGING &COMPNAME&
    CHANGING &SENDADR&
    CHANGING &INVCADR&
    CHANGING &COMPADR&
    CHANGING &COVERLTR&
    CHANGING &SHIPADR&
    CHANGING &REMINDER&
    CHANGING &REJECTION&
    CHANGING &POSTADR&
    CHANGING &LOGO&
    ENDPERFORM
    In program
    FORM READ_TEXTS TABLES IN_PAR   STRUCTURE ITCSY
                           OUT_PAR  STRUCTURE ITCSY.
      DATA : L_EKORG TYPE EKORG,
             L_WERKS TYPE WERKS_D,
             L_BSTYP TYPE BSTYP,
             L_EKGRP TYPE BKGRP.
      READ TABLE IN_PAR WITH KEY 'EKKO-EKORG' .
      CHECK SY-SUBRC = 0.
      L_EKORG = IN_PAR-VALUE.
      READ TABLE IN_PAR WITH KEY 'EKPO-WERKS' .
      CHECK SY-SUBRC = 0.
      L_WERKS = IN_PAR-VALUE.
      READ TABLE IN_PAR WITH KEY 'EKKO-EKGRP' .
      CHECK SY-SUBRC = 0.
      L_EKGRP = IN_PAR-VALUE.
      READ TABLE IN_PAR WITH KEY 'EKKO-BSTYP' .
      CHECK SY-SUBRC = 0.
      L_BSTYP = IN_PAR-VALUE.
      CLEAR Z08M1_ORG_TEXTS.
      SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
                                              AND WERKS = L_WERKS
                                              AND EKGRP = L_EKGRP
                                              AND BSTYP = L_BSTYP.
      IF SY-SUBRC NE 0.
        SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
                                               AND WERKS = L_WERKS
                                               AND EKGRP = L_EKGRP
                                               AND BSTYP = SPACE.
      ENDIF.
      READ TABLE OUT_PAR WITH KEY 'COMPNAME'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COMP.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'SENDADR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_ADRS.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'INVCADR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_INVC.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'COMPADR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_CPAD.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'COVERLTR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COVR.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'SHIPADR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_SHIP.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'REMINDER'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RMDR.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'REJECTION'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RJCT.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'POSTADR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_POST.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'LOGO'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_LOGO.
      MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Check and let me know if u face any problem.
    Regards

Maybe you are looking for

  • Failed to install Adobe Photoshop CS5.1 on Windows 7 64bit

    I get these errors pop up when i tried to install it on my 64bit Windows 7 laptop. I searched for many solutions online, but none worked for me, so I hope that someone can help me to solve this problem - 0 fatal error(s), 64 error(s), 62 warning(s) W

  • Enhansment in internal table

    I have a inernal table gt_itab which is filled with data and i sorted this table with a field(suppose id of empoyee) now i want to transfer some data to another internal table gt_itab1(similar as gt_itb) comparing the field id of employee(supposed fi

  • MuVo TX FM Connection to Computer Prob

    Hello, I am using the windows xp professional with everything updated and have a MuVo TXFM. A few days ago when I plugged it into my usb the computer automatically detects it. i was able to store new music simply be click and drag. However, today, wh

  • Req. delivery date is taking other date than system date in va01

    DEAR SAP GURUS , I am facing one porblem . when i am creating a sales order then in sales tab ( the very first tab ) in req. delivery date field it is picking other date than current system date . for example today (10.04.2009) i am creating a sales

  • HTTP Status 500 Apache/Tomcat error

    Hi ! I'm having trouble getting my Java Plumtree Portal (5.02) to work correctly due to Apache/Tomcat HTTP Status 500 errors that come up when I try to perform certain actions on Content Server objects (PCS v 5.0.2). E.g., when I try to preview the '