Find line no in sap script page

In sap script there are five pages to be printed
I want to check in each page the first line exists or not.
as well as to identify the first line of each page.
How to get a line number for each page in Sap script
Please revert back asap
Thanks

hi ,
there is no specific field for this you have to put a counter for that check these links
Link for SAP Scripts (step by step procedure)
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
SAPScripts
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
SAP SCRIPT FIELDS
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
scripts easy material
http://www.allsaplinks.com/sap_script_made_easy.html
regards,
venkat.

Similar Messages

  • How to leave half line space in SAP Script

    Actually , I have a doubt regarding half line spacing on SAP Script ..
    I am working on Cheque Printing with  fbz5
    Now the issue in  the date, there are 8 box for the date in cheque .
    i.e  0 2 0 7 2 0 1 4
    Currently the date is comming on the cheque box ..like half up the box and half inside
    IF I give one space in cheque  window of my script with  /   its taking complete 1 space
    and result is ,it going down ..with one space
    I want to leave exact half line space ..so date is  adjusted  in the middle .
    I also tried moving my cheque  window from  upper margin in all format(CH , CM , MM  IN ..) above
    But it is taking exact one space .

    Hi Darshit,
    While creating the tab position, you have a option of line spacing.
    make it to 0.5 lines, to make exact half line.
    And also another way out, you can check by moving the 8 box created for the date up by 0.5 lines.
    Regards,
    Ganesh Lathi.

  • Line number in Sap Script

    hi,
    How to get line number in sap script form?
    Regards,
    Sal.

    hi ,
    there is no specific field for this you have to put a counter for that check these links
    Link for SAP Scripts (step by step procedure)
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    regards,
    venkat.

  • How to display the number of line items in sap-script report?

    Hi friends,
    I need a help regarding the SAP Script. In my script (report) I create two pages and created three windows (MAIN, HEADER, FOOTER) for each pages. Now the problem is while displaying the fewer line item which can come under the main window of the 1st page these line items are comming perfectly but for the remaining line items that comes on the second page the table headings and the boexs are not comming.
    Also it is displaying the total and the amount in text in every pages that should be display in last page.
    Here if I eleminate or comments the total and the amount in text for the first page the same is reflected in second page. Also I need to display the page-nor for each pages to displayed.
    I am requesting all the people out there kindly help me to solve this issues.
    Thanks and Regards

    There is no pre built solution for this. But we can show total pages in the report body.
    one way is Create a other column in the report with code sum(count(1))/25. that gives you total number of pages. 25 here is no of rows in each page. The code you can write in narrative "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
    If you are using pivot tables, you can try this.
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
    - Madan

  • Vertical line issue in SAP Script main window

    Hi All,
    I want to draw a vertical line in my main window in SAP Script output.
    But problem is in main window i am printing some texts at the beggining then i am printing line items.
    So this is not fixed line (box). It may increase/decrease based on text available before line items.
    How can i manage this prining vertival line as i don't know height, top of this line!
    Thanks in advance.
    Thanks,
    Deep.

    Hai Deep,
    Use Elements as suggested by Kodarapu.
    Now goto Paragraph Formats create a format for Item lines.
    ex.
    Name Paragraph Format as 'IL' Now click on the Push Button "Tabs" on bottom Right.
    now in "Tab Position" enter the spacing that you need for your item dispaly
    ex.
    Number     Tab position       Alignment
    1               6.00   CH          LEFT
    2               25.00  CH         LEFT
    3               54.00  CH         LEFT
    The above example is for 3 items
    Now in your Script Windows-> Main
    do the following.
    /E           ITEM_LINE_A
    IL           &EKPO-EBELP&,,&EKPO-EMATN&,,,,&EKPO-TXZ01&
    Hope it SOlves your Issue.
    Cheers,
    Suvendu

  • Multiple line issue in sap script

    Hi All,
    There is a window in the sap script.
    The window consists of a text element and i am displaying 4 lines of text in that window.
    Sap script:
    /E   Reason
    AC  &LINE&
    In the source code, an internal table will have 5 text lines and those 5 lines should be reflected in sap script.
    The source code as follows.....
    loop at li_tline.
    CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'
             EXPORTING
                  NAME  = 'LINE'
                  VALUE = li_tline-tdLINE.
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                ELEMENT = 'REASON'
                WINDOW  = 'REASON'
                function = 'APPEND'.
    endloop.
    In final output, the last line of the internal table is reflacting..... Hope its getting over written each time in the loop.
    How to make the code, so that i can reflect all the lines from internal table to the sap script....??????????????
    Please help me, as this issue is very much urgent..........
    Regards
    Pavan

    Hi
    Do like this.
    declare 5 variables each of 80 char length.
    data: v1(80), v2(80), v3(80), v4(80), v5(80).
    Read the Internal table li_tline with index and move each line to different variables and write those variables in the script.
    if not li_tline[] is initial.
    read table li_tline  index 1.
    if sy-subrc = 0.
       v1 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 2.
    if sy-subrc = 0.
       v2 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 3.
    if sy-subrc = 0.
       v3 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 4.
    if sy-subrc = 0.
       v4 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 5.
    if sy-subrc = 0.
       v5 = li_tline-tdline+0(80).
    endif.
    endif.
    write the &V1& &V2& &V3& &V4& &V5& variables ins cript
    Reward points if useful
    Regards
    Anji

  • How to Draw diagonal lines in a SAP Script

    Hi All,
    I got a requirement to strike out a box with diagonal lines in SAP Script. My client is not interested in just shading out the box. He want atleast 3 or 4 diagonal lines to make feel the customer that the box is striken off.
    How can we do this ?
    Thanks & Regards,
    Bhupal

    Hi B,
    as u have the dimension of  the box..so create a box in paint as bmp.....with digonals as u required.....
    upload this image thru SE78...and call it in ur script.......
    and superimpose that graphic on the text box....
    hopefully this will solve ur problem...
    thnx
    rohit

  • Problem in sap-script, page count when trigger new page.

    Hi to all,
    Please help on my sap-script problem. When I trigger new-page the page count should continue.
    Ex: I have total of 2 pages, the second page is trigger in new-page. the page count of 2nd page should show as Page 2 of 2. but it shows on me is still Page 1 of 2.
    my command of new-page is in the zprogram. using function command_control
    thanks to all,
    I will reward points.
    Booh.

    Hi ,
    use &PAGE& of &SAPSCRIPT-formpages&
    IF Found Helpfull.
    Do Reward.
    Regards.
    Eshwar

  • Issue regarding sap script pages

    Hi all ,
       my issue is regarding the medruck. when i click on the print preview option on me23n, the sap script attached(that is medurck) will be printed. in my case the sap script is zmm_medruck(the zcopy of medruck). now, the print out of the sap script is 2 or  3 or 5 paged depending upon the p.o. number given.
    for example for a p.o. number 2100001564, the sap script contains 4 pages. now, my issue is , the print out should contain only last 2 pages or only 3 rd page.(that is without all pages, we want only specific pages of the sap script to be printed). how to do this. plz reply fast. points will awarded.
    this is urgent issue.
    thanking u in advance,
    sreenu.

    Hi all ,
       my issue is regarding the medruck. when i click on the print preview option on me23n, the sap script attached(that is medurck) will be printed. in my case the sap script is zmm_medruck(the zcopy of medruck). now, the print out of the sap script is 2 or  3 or 5 paged depending upon the p.o. number given.
    for example for a p.o. number 2100001564, the sap script contains 4 pages. now, my issue is , the print out should contain only last 2 pages or only 3 rd page.(that is without all pages, we want only specific pages of the sap script to be printed). how to do this. plz reply fast. points will awarded.
    this is urgent issue.
    thanking u in advance,
    sreenu.

  • Not Printing Item Schedule line items in SAP Script

    Hi ,
    I modified  copied sap standard script(MEDRUCK) and copied my Zprogram to standard program.
    But here every thing is fine but i am not getting schedule line items and item text  in items data for every item
    thanks,
    sriram

    Hi
    Pls Check in the Line item Ur using the syntax properly or not..In SAP if it ios syntax error it won show..Pls chk the syntax properly ...POr try to debug the script and see whether item text is coming or not.
    If it is not coming check me23n whether tat PO has item text or not..if it is there Problem is in ur Include text.

  • Line items separed line(Uline) in SAP Script

    Dear Friends.
    I want to print a separated line (Uline) in-between each line item and the line should not come when it is last line item of the page.
    I am going to print in first page with 7 records and next all pages with 17 records.
    here I have written it for first page which is working but how to do with rest of the pages???
    Here I have taken a flag when the line item reach to 7th record, and i am using it in my form window as bellow:
    /: IF $GV_FLAG& = 'X' AND &PAGE& = '1'
    /: ELSE
    UN &sy-uline(151)&
    /: ENDIF
    The same i want  for rest of the pages.....but the remaining pages will have 17 records per a page..
    Could you pls suggest me on this...
    Thanks,
    Sridhar.

    Hi Sridhar,
    I am assuming that $GV_FLAG& is for 7 records, so take another falg like this for second page $GV_FLAG2& and count it for 17 records.
    [code]/: IF $GV_FLAG& = 'X' AND &PAGE& = '1'
    /: ELSE
    UN &sy-uline(151)&
    /: ENDIF
    /: IF $GV_FLAG2& = 'X' AND &PAGE& <> '1'
    /: ELSE
    UN &sy-uline(151)&
    /: ENDIF[/code]
    Regards
    Sudheer

  • How to find the standard smartform,sap scripts and theur driver programs

    Hi friends,
    can any one tell me how to find the standard smartforms and their driver programs and same for scripts also.
    bye
    sasi

    Hi sasidhar,
    1. Either standard or Y sapscript layouts,
       we can check their standard programs
       in this manner also.
    2. goto se71
       open the layout in DISPLAY mode.
    3.  FORM------> CHECK -
    > TEXTS
    4.  a small window will come.
        click ok (tick button)
    5. Again a new window will come
      which will list out all the DRIVER programs,
      which use this layout.
    regards,
    amit m.

  • How to find request number of SAP Script's Form

    Hi All,
    Can anyone tell me how to find out request number of scipt's form
    Regards
    Shashikant

    Hi,
    Se03->Search for Object in Requesta/Tasks--->Right Click ->Execute->Add a new entry with check box ticked,FORM,& Form name on the right side-->F8  It will display all the requests pertaining the form you have keyed in.
    Regards
    Raju Chitale

  • Regarding line feed in sap script

    hi
    i had a long if statement.
    it is extending more than one line.
    IF &REGUH-RZAWE& = '2' AND ( &REGUH-LAUFI0(1)& EQ 'E' OR &REGUH-LAUFI0(1)& EQ 'G' )
    IF i use '=' Extended line  the statement in that line is printing as it is.
    If i use '/:' this command even for the next line it works fine
    what i s the correct procedure

    Hi Guys!
    I've tested it (it is really better then giving just assumptions). Only solution is the one from KK: use SHIFT+F8 - it will give You one extra line to continue Your command (but only one).
    If You try to use next line SAPScript will interpret only first line of Your command, no mater which line type will You select for second line. Example:
    /: IF &VBDKA-VKORG& EQ '0001'
    /: AND &NAST-SPRAS& EQ 'DE'
    In this case SAPScript will omit what is in second line and it will do whatever is inside this IF for every language. Whats more: If second line type is ' ' or '=', then You will get a printout of fixed text >> AND &NAST-SPRAS& EQ 'DE' <<
    BR, Michał

  • Problem in printing SAP Script Page Numbering

    Hi All,
    Am facing a problem like : Page Numbering in one of my form is getting printed from 0 (I mean initializing from 0).
    Eg : Page 000 of 003
           Page 001 of 003
           Page 002 of 003
    I want to get printed as :
          Page  001 of 003
           Page 002 of 003
           Page 003 of 003
    Could you pls help me in this regard.
    Thanks In Advance.
    Thanks,
    Madhu.

    Hi,
    You can solve this problem by setting the page counter mode to "start" and the numbering type as "Arabic", in the page attributes.
    Regards,
    Ajith V

Maybe you are looking for

  • I can't get Time Machine to recognize my external hard drive.

    I bought a new hard drive when we moved last September and it backed up my files once or twice.  Now I cannot get Time Machine to recognize it at all. I have tried to format it with Disc Utility and only get an error message:  Error: Unable to unmoun

  • Insufficient perms/long filename errors

    I formatted a WD external HDD to have an HFS+(for backup using SuperDuper) and 2 FAT partitions. I had been using the hard drive without any errors, and did a reformat of OS X recently. Then, I wiped the three partitions on external HDD. When trying

  • Oracle WebLogic 11g - WLST issues

    Hi, I have created a template for weblogic 10g using template builder using existing weblogic 92 template and it worked fine. After that I noticed that 11g out there so we would like to use that instead of 10g. I have created the template using templ

  • What will happen when Zen7 is removed from eDir?

    We are migrating to ZENworks 10. We are almost finished, but there are a handful of workstations that have not got the update, due to individual computer issues or laptops that aren't plugged in frequently. The E directory administrators would like t

  • PreparedStatement strange error

    Hi. When I use Prepared statement like this: first, in the constructor I create it: PS = con.prepareStatement("SELECT text FROM arts WHERE title = ? LIMIT 1;");and use it: PS.setString(1, title); // title is a String - I'm sure ResultSet rs = PS.exec