Need some examples for smartforms and scripts

hi
now i am working in scripts and smartforms. so i need some examples and some information for scripts and smartforms. where i can find that information.

hi jyothsna,
i have given below a simple example
this is the report program,
*& Report  ZSCRIPT1                                                    *
REPORT  ZSCRIPT1                                .
TABLES : EKKO,
         EKPO,
         KNA1,
         USR01,
         MARA,
         MAKT.
DATA : BEGIN OF ZOPTION.
        INCLUDE STRUCTURE ITCPO.
DATA : END OF ZOPTION.
PARAMETERS: P_EBELN LIKE EKKO-EBELN,
            P_EBELP LIKE EKPO-EBELP.
CLEAR EKPO.
SELECT SINGLE * FROM EKPO
       WHERE EBELN = P_EBELN AND
             EBELP = P_EBELP.
CLEAR KNA1.
SELECT SINGLE NAME1 FROM KNA1
              INTO KNA1-NAME1
              WHERE KUNNR = EKPO-KUNNR.
CLEAR MAKT.
SELECT SINGLE MAKTX FROM MAKT
              INTO MAKT-MAKTX
              WHERE MATNR = EKPO-MATNR AND
                    SPRAS = SY-LANGU.
CLEAR USR01.
SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.
ZOPTION-TDDEST    = USR01-SPLD.        "Output device (printer)
ZOPTION-TDIMMED   = 'X'.               "Print immediately
ZOPTION-TDDELETE  = 'X'.               "Delete after printing
ZOPTION-TDPROGRAM = 'ZPQRPRNT'.        "Program Name
CALL FUNCTION 'OPEN_FORM'
     EXPORTING
         APPLICATION        = 'TX'
        ARCHIVE_INDEX      = ' '
        ARCHIVE_PARAMS     = ' '
         DEVICE             = 'PRINTER'
         DIALOG             = ' '
         FORM               = 'ZFORM1'
         LANGUAGE           = SY-LANGU
         OPTIONS            = ZOPTION
     IMPORTING
          LANGUAGE           = SY-LANGU
       EXCEPTIONS
         OTHERS     = 1.
CALL FUNCTION 'WRITE_FORM'
     EXPORTING
         ELEMENT       = 'HEADER'
        FUNCTION      = 'SET'
        TYPE          = 'BODY'
         WINDOW        = 'HEADER'
     EXCEPTIONS
          ELEMENT       = 1.
CALL FUNCTION 'WRITE_FORM'
     EXPORTING
         ELEMENT       = 'MAIN'
        FUNCTION      = 'SET'
        TYPE          = 'BODY'
         WINDOW        = 'MAIN'
     EXCEPTIONS
          ELEMENT       = 1.
CALL FUNCTION 'WRITE_FORM'
     EXPORTING
         ELEMENT       = 'FOOTER'
        FUNCTION      = 'SET'
        TYPE          = 'BODY'
         WINDOW        = 'FOOTER'
     EXCEPTIONS
          ELEMENT       = 1.
CALL FUNCTION 'CLOSE_FORM'
     EXCEPTIONS
          UNOPENED = 1
          OTHERS   = 2.
This is the layout Set
Layout set           Z_TESTSCRIPT
Description          Test SAP script
Standard attributes
  First page          FIRST
  Default paragraph   P1
  Tab-stop            1.00 CH
  Page format         DINA4
  Orientation         Landscape
  Lines/inch            6.00
  Characters/inch      10.00
Font attributes
  Font family         COURIER
  Font size           12.0 Point
  Bold                No
  Italic              No
  Underlined          No
Characters    Attributes
  B           Character String Bold
              Standard attributes
              Marker            No
              Font attributes
              Bold              Yes
Paragraphs    Attributes
  P1          Default Paragraph
              Standard attributes
              Line spacing      1.00 LN
              Left margin       1.00 CM
              Alignment         Left-aligned
              Font attributes
              Font family       TIMES
              Font size         12.0 Point
  P2          Header Paragraph
              Standard attributes
              Line spacing      1.00 LN
              Left margin       4.50 CM
              Alignment         Left-aligned
              Font attributes
              Font family       TIMES
              Font size         18.0 Point
              Bold              Yes
  P3          Undelined paragraph
              Standard attributes
              Line spacing      1.00 LN
              Alignment         Left-aligned
              Font attributes
              Font family       TIMES
              Font size         12.0 Point
              Underlined        Yes
Windows       Attributes
  MAIN        Main window
              Window type       MAIN
  HEADER      Main window
              Window type       CONSTANT
  FOOTER      Main window
              Window type       CONSTANT
Pages         Attributes
  FIRST       First Page
              Standard attributes
              Next page         FIRST
              Page counter
              Mode              START
              Numbering type    Arabic numerals
              Page window
              HEADER               Left margin          00.00 CM
                                   Upper margin         00.00 CM
                                   Window width         20.00 CM
                                   Window height        04.00 CM
              MAIN                 Left margin          00.00 CM
                                   Upper margin         05.00 CM
                                   Window width         20.00 CM
                                   Window height        20.00 CM
              FOOTER               Left margin          00.00 CM
                                   Upper margin         25.00 CM
                                   Window width         20.00 CM
                                   Window height        04.00 CM
Text elements for following windows:
HEADER
Element HEADER
/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'
/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10
P2     ,,<B>TEST PURCHASE ORDER</>
MAIN
Element MAIN
P1  <B>Customer/Supplier:</>,,&KNA1-NAME1&
P1  <B>PO No:</>,,&EKPO-EBELN&
P1  <B>Part No:</>,,&MAKT-MATNR&
P1  <B>Description:</>,,&MAKT-MAKTX&
P1  <B>Quantity:,,</>&EKPO-MENGE&
P1  <B>Sign:</>&uline(81)&
P1  <B>Date:</>&EKKO-AEDAT&
FOOTER
Element FOOTER
/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'
/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10
P2     ,,<B>PLEASE SIGN THE PO BEFORE DISPATCH</>
<b>reward if useful :)</b>

Similar Messages

  • Need some demos for MI and RFID

    Hi Experts,
    I need some demos or any presentation slides  where in  Mobile infrastructure + RFID technologies are used
    Thanks
    Regards,
    Santy

    Hi Santy,
    MI:
    I have sent a file to you gmail account on Mobile infrastructure. This will help you to a great extent for subject matter.
    If you are looking for a demo in particular topic please post further, i will do the needful.
    https://www.sdn.sap.com/irj/sdn/nw-elearning
    RFID:
    you will find a demo on RFID application at http://www.sap.com/platform/netweaver/demos/index.epx
    for RFID scenario document form
    http://service.sap.com/ibc
    here you will find many demos and wwebcasts in the forma of video.
    http://www.sap.com/community/pub/innovation/rfid/webcasts.epx
    Hope this helps.
    Regards
    Divya

  • I want to design some products for resale and I want to know if I can use the included Fonts

    I want to design some products for resale and I want to know if I can use the included Photoshop Fonts and Images or do I have to pay additional licensing fees?  Very new to this and just looking for some basic information or a link to specifics.  Most of what I'm searching for brings up content for publishing and I'm really looking for information about reselling items in a product line.  For example Greeting Cards, Signs etc...  Thanks so much!

    As for fonts, you don't need to do anything as long as you don't try to sell the actual font files. In print or the screen your fine to do as you want. Most fonts include a license EULA for you to read when installing them anyway.
    As for images, that may be a different story, it will depend on the image. If there is a file that accompanies the image that states you can do as you please, that fine, but other wise, assume the image is copyrighted and require permission to use.
    Some programs provide clipart that is for public use this clicpart can be printed and sold. But as with the fonts, you can not sell the clipart files themselves.
    In the EULA that accompanies the software, it should state what can be done with any clipart or fonts that are included with the software.
    If you are still in doubt, contact the company and verify it.

  • Give me some examples for functions for read POST, write POST, modify POST

    Give me some examples for functions for read POST, write POST, modify POST, create and delete theme in forum. This functions have to be make like Remote Methods

    Give me some examples for functions for read POST, write POST, modify POST, create and delete theme in forum. This functions have to be make like Remote Methods

  • I need Functional Specification in Reports and Scripts to Practice

    hi
    i am practicing ABAP,
    I need Functional Specification in Reports and Scripts to Practice
    please any one give me.
    thanks in advance.
    bye

    I am not sure what you are requesting will be of any help for you, as functional/technical specifications are specific for each implementation and might be dependent on the configuration on that system. 
    If you are on IDES try to look through the sample programs provided by SAP and see if you can implement your own version of the those.
    hith
    Sunil Achyut

  • REGORDING SMARTFORMS AND SCRIPTS

    14.     What is the main diff. b/w smartform and sap script
    A     smartforms r user-friendly – scripts r not
    B     smartforms r client independent – scripts r client dependent
    C     smartforms do not have a separate driver program-scripts need to have one
    D     smartforms and scripts have no difference except the front end

    smartforms r client independent – scripts r client dependent
    smartforms may not have a separate driver program-scripts need to have one(we can write the code with in the smartform itself)
    <b>REWARD POINTS IF USEFUL</b>

  • I need some parts for my MuVo V100, can anyone help?

    I need some parts for my MuVo V00, can anyone help I couldn't find any thread this would belong in, but if I've made a mistake, I'm sorry.
    I have a Creative Labs MuVo V00 2 gig player. I love it. The only problem is that the back peice of plastic that holds the battery in somehow has fallen off and has disappeared. I really, really, would like to replace it, but I can't find anywhere where parts like this are sold.
    So, does anyone know where I can buy this part Or does anyone have one they are willing to sell me If I have to get the whole little "docking bay" that holds the batery and the unit, that would be fine too. I'm not going to pay huge money for it, seeing that I can still get a new one at a few places, but if anyone has one that broke, or that they just aren't using, and wouldn't mind making a few bucks + postage, I would really appreciate it.
    Thanks for your time.

    Re: I need some parts for my MuVo V00, can anyone help As far as I'm concerned the subject is closed. I was just irritated that I asked for help, and got some glib little reply, telling me something that anyone who's been on the internet for more than ten seconds should know about. Because to be honest, him replying with those three words, might have made someone overlook the post, thinking, "Someone is handling that, let's move on." Someone who actually might have what I needed.
    But, as it turns out, I could order a reconditioned MuVo from Creative directly for about 6 bucks. (vs. 45+ if I'd gone through ebay) so the problem is resolved. If I could figure out a way to erase this entire post, I would do it. If you can do so, being a mod, I would appreciate it.
    Sorry if I upset you Loi-CL, I understand you're a moderator, but I don't take kindly to being treated like I'm stupid and that's exactly what coachop94 was doing. If he didn't have anything important or useful to tell me, he could have just skipped over my post.

  • Already paid need mobile app for ps and ai

    already paid need mobile app for ps and ai on ipad

    Hi Cheskatlu
    The touch apps can be used with Creative Cloud but are sold separately, see this page http://www.adobe.com/products/creativecloud/tools-and-services.html
    Are these the apps you were referencing?
    -Dave

  • Hi, can someone help me, I did my first page in Muse, and I did just for computer, I need to do for tablet and phone, I have to do?  thx

    Hi, can someone help me, I did my first page in Muse, and I did just for computer, I need to do for tablet and phone, I have to do?  thx
    Esto puede ser en español? por favor

    Hello,
    Please refer to the links below, you will find them very useful.
    Adobe Muse Help | Creating a website for Mobile devices
    How to create a mobile website with Adobe Muse | Adobe Muse CC tutorials
    Video Tutorials:
    Design for mobile first | Adobe Muse CC tutorials
    Mobile best practices | Adobe Muse CC tutorials
    Plan your mobile site | Adobe Muse CC tutorials
    Preview your mobile site | Adobe Muse CC tutorials
    How to create a mobile website with Adobe Muse | Adobe Muse CC tutorials
    Regards
    Vivek

  • Examples for Synchronous and asynchronous

    Hi all,
            Please can any body give me the real time example for Synchronous and asynchronus
                                                   Ranjith

    Let us take example of calling a transaction for update:
    Call Transaction
    Synchronous calls are slower but should be used for transactions that are updating the database because control is not passed back to the program until a successful database commit (or rollback) has been executed. Note this the real SQL commit at the database level not the ABAP command COMMIT WORK. Synchronous calls will set the return code (sy-subrc) if an error is encountered. There are actually two synchrounous update modes:
    'S', Synchronous update mode makes database entries describing the updates to be done and an update task (potentially running on a different computer) reads those database entries, does the update, and then deletes the entries describing the update task.
    'L', Local update mode describes the updates to be done in the memory of the current process. No entries are made in and then deleted from the database describing the update task.
    Asynchronous calls are the default if the UPDATE parameter is not specified. Asynchronous calls do not effect the return code (sy-subrc).
    Note - This is opposite of how synchronous/asynchronous workflow tasks behave, in the sense that control is returned to the workflow in a synchronous step even if there is no commit or rollback encountered!
    Prakash.
    Message was edited by: Prakash Ramu

  • Doubt in smartforms and script

    normally when we want to activate previous versions of report
    we get form version management and we can activate previous
    versions but how can be we activate previous versions of smartforms and script.please help.

    Hi Krishna,
    Please check the below threads,
    Version management  in  smartforms ?
    Re: Version Management in smartforms
    how can we revort the smartform previous version
    Best Regards.

  • Need an example for work flow based on multistep activity

    hi,
    i need an example for work flow based on multistep activity for practicing.please do the need.
    thanks

    Hi,
    Workflow document information:
    Check these links.
    http://www.sapgenie.com/workflow/index.htm
    /people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
    http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    &**********Reward points if helpful**************&

  • I pre-ordered an album and i did not get it! i payed 14 some dollars for it and never received it i checked to see if i bought it and it said i did. i looked to see if i could re download the album but i dont know how please help!

    I pre-ordered an album and i did not get it! i payed 14 some dollars for it and never received it i checked to see if i bought it and it said i did. i looked to see if i could re download the album but i dont know how please help!

    If you are in a country where music can be redownloaded then it should show in the Purchased tab in the iTunes store app on your phone, and the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage on your computer's iTunes. If it doesn't show there then does the Store > Check For Available Downloads menu option on your computer's iTunes find it ?

  • I need some help for an explanation. Loop for 1 minute.

              int minute=1;
              long currentTime=System.currentTimeMillis();          
              long stoppingTime = currentTime + (minute * 60 * 1000);
              while (currentTime<stoppingTime) {
                   // do x;
                   currentTime=System.currentTimeMillis();
              }I want to have the loop to run for 1 minute. It does not seem to work.
    What did I miss? I need some help for an explanation.

    Ran:
    class PrintTimeAsProcess {
      public static void main(String[] argv)  throws Exception {
        int minute=1;
        long currentTime=System.currentTimeMillis();
        long stoppingTime = currentTime + (minute * 15 * 1000);
        System.out.println("START Time: "+currentTime);
        while (currentTime<stoppingTime) {
          currentTime=System.currentTimeMillis();
        System.out.println("END Time: "+currentTime);
    }Got:
    START Time: 1149278202718
    END Time: 1149278217718
    1149278217718
    -1149278202718
    15000

  • Please..how to instal libero mail on mi Ipad. I need the parameter for send and receive mail..Thanks

    Please..how to instal "libero" mail on my Ipad. I need the parameter for send and receive mail..Thanks

    FYI: POP will by default, delete messages from the server after downloading them (This applies to most pop clients, computer or mobile). POP is old tech and is not recommended if IMAP or Exchange are available. The default when setting up a g-mail type account is IMAP. Full synchronization with the server. You may also be able to set it up as an Exchange account, allowing for push e-mail and sync of calendars and contacts as well. See the Gmail help pages for instructions.

Maybe you are looking for