Script - Main window Formatting issue

Dear Experts,
i am developing  shipping note. used standard program and script, in main window contains many text elements. what ever not required text elements i commented. But problem is my text element is printing in last page, first pages are printing blank. i want to display the text element in my first page.
For understanding purpose i am giving the below details.
/E   GENERAL_HEADER_DATA_TITLE
/E   GENERAL_HEADER_DATA_TYPES
like this all text elements have.
/E SHIPPING_UNIT
/E  SHIPPING_UNIT_DELIVERY_ITEM
i want to display shipping details in main window first page it self. i am getting data but it's not in first page.
if i delete unnessary text elements i am getting info messages while executing the transaction.
Thanks,
Satheesh.

Hi,
Dont delete the text elements, Instead comments the lines below the text element.
/E SHIPMENT_HEADER
/E SHIPMENT_DET
Regards
Praveen

Similar Messages

  • Problem with sap script main window

    Hi,
    I am modifying the existed sap script. I added a box and some line items to the sap script main window.
    Now i want to increase the size of the mainwindow.
    Please guide me how to increase the lines of main window . I am unable to edit the standard attributes of the main window ,because all are in disable mode.
    Please guide me how to increase the size of the main window.
    Thanks in advance
    Regards
    Sudhakar

    Hi,
    You might be trying to edit the script in non original language. You can change the layout only in the original language.
    Check the attributes of the script to see the original language.
    Thanks,
    Vinod.

  • Read header text from vf01 and print in script main window

    Hi Gurus,
               I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but  one line only  fetched. i declare variable like  data : NEXRSP LIKE TLINE-TDLINE and read_text function module. pls provide solution for this.
    Regards
    G.Vendhan

    HI GURUS,
    Thank u for reply i declare like
        ID = '0002'.
        PERFORM READTEXT USING EN NAME OBJECT ID TEXT_OUTPUT.
        NEXRSP = TEXT_OUTPUT . CLEAR TEXT_OUTPUT.
    FORM READTEXT  USING    P_EN
                            P_NAME
                            P_OBJECT
                            P_ID
                            P_TEXT_OUTPUT.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                      = P_ID
          LANGUAGE                = P_EN
          NAME                    = P_NAME
          OBJECT                  = P_OBJECT
        TABLES
          LINES                   = LINES
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
       LOOP AT LINES.
        P_TEXT_OUTPUT =  LINES-TDLINE.
        EXIT.
       ENDLOOP.
      FREE LINES. CLEAR LINES.
      ENDFORM.                    " READTEXT

  • Sap script main window related question

    hi
    i have a requirement to add a new column to sap script main window picking information from some table
    this new column is C2 and it takes reference from C1
    i ahve below queries
    1) is is better to add a new column to main window and increase and decrease alsl columns width of all columns
    or create a new window below the main window in which this new field will apear
    ie C1 and C2 to appear in this new window
    c1 is already coming in main window it needs to reaper with the new C2 in new window
    my concern is that since main window is only one and it it being called again and again to polultate the data
    how this new window will work will it be able to display the corect data
    whcih is better approach
    2) ASLO the requriement is that the new field should appear only when Reprint is done for the transfer order
    can anyone tell how to catch the reprint option or code from teh program what is defined for reprint option in program and how to catch it and put condtion?
    regards
    Arora

    If you would like to have vertical lines as well inside the frame....
    /:   BOX FRAME 10 TW                                                
    /:   BOX XPOS '1.2'  CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW     
    /:   BOX XPOS '11.00' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW    
    /:   BOX XPOS '15.5' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW     
    /:   BOX XPOS '18.4' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW     
    Regards,
    Rich Heilman

  • 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

  • Script Main window Width Adjustment Problem

    Hi All,
    I'm working on an existing Z script. In that I cant able to change the width of the Main window. It shows in Display mode.
    Help me to solve this.
    Points assured.
    Regards,
    Viji.

    The probelm for this is you original language is different from the language which you key in in your script.
    To modify the main window, follow the below steps.
    1) Go to SE71, give your form name, Display. Goto Header details, administrative Data and find out the original language, Ex, DE.
    2) Go back to SE71, give form name and Language i.e., original language name identified in step 1 and click change. Now change your main window dimensions and adjust the width according to your requirment,save activate..now it will automatically reflects the changes for all languages.
    3) Go back to SE71, give form name and language, now you will see the main window width is adjusted.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Drawing Boxes in Script - main window

    hi,
    In script, in main window <u>after table line item datas</u>, i want to draw a box in which i will place some text. On drawing box, it appears on top of that window which i dont want, since it should be placed after item details.
    kapil.

    I do not know this is still relevant for You or not but here is the solution what I did:
    First of all I have to mention this requires SAP standard object modification. !!!
    1.Start SE80 and get into STXC function group.
    2.Select COP_RELATIVE_NUMBER subroutines and double click on that.
    3.Click on Edit button and Get SSCR  Object number from SAP.
    4.Change interface of the COP_RELATIVE_NUMBER subroutines extending it with TYPE parameters
    5.Change the first if Statement.
    6.Extend the Relative case section with a new WHEN '#'.
    7. Cange All COP_RELATIVE_NUMBER calls with new input parameter in CO_BOX, In CO_POSITION, In CO_SIZE.
    From now in Your SAP script You can call BOX statement like this:
    BOX XPOS ‘#10’ TW YPOS ‘#10’ TW  …..
    Will start drowing BOX from cursor current position plus 10 twip.
    Numbers after the # sign are optional.
    Solution works only with TW.
    form co_box.
    data: begin of bx,
            x    type i,
            y    type i,
            w    type i,
            h    type i,
            f    type i,
            i(3) type n,
          end of bx,
          next(10),
          xpos         type i,
          ypos         type i,
          is_relative like boolean.
      bx-x = ft-wpx.
      bx-y = ft-wpy.
      bx-w = ft-wpw.
      bx-h = ft-wph.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'XPOS'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using is_relative xpos.
            perform cop_relative_number using is_relative xpos 'X'.
    *}   REPLACE
            add xpos to bx-x.
          when 'YPOS'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using is_relative ypos.
            perform cop_relative_number using is_relative ypos 'Y'.
    *}   REPLACE
            add ypos to bx-y.
          when 'WIDTH'.
            perform cop_number_value using bx-w.
          when 'HEIGHT'.
            perform cop_number_value using bx-h.
          when 'FRAME'.
            perform cop_number_value using bx-f.
          when 'INTENSITY'.
            perform cop_next using next 3.
            bx-i = next.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      perform pc_box using bx-x bx-y bx-w bx-h bx-f bx-i.
    endform.
    form co_position.
    data: begin of pos,
            x type i,
            y type i,
          end of pos,
          next(10),
          relative like boolean,
          xpos     type i,
          ypos     type i.
      pos-x = ft-wpx.
      pos-y = ft-wpy.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'XORIGIN'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using relative xpos.
            perform cop_relative_number using relative xpos 'X'.
    *}   REPLACE
            if relative = true.
              add xpos to pos-x.
            else.
              pos-x = xpos.
            endif.
          when 'YORIGIN'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using relative ypos.
            perform cop_relative_number using relative ypos 'Y'.
    *}   REPLACE
            if relative = true.
              add ypos to pos-y.
            else.
              pos-y = ypos.
            endif.
          when 'WINDOW'.
            pos-x = ft-tdwlefts.
            pos-y = ft-tdwtops.
          when 'PAGE'.
            pos-x = 0.
            pos-y = 0.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      ft-wpx = pos-x.
      ft-wpy = pos-y.
    endform.
    form co_size.
    data: begin of dim,
            w type i,
            h type i,
          end of dim,
          next(10),
          relative     like boolean,
          width        type i,
          height       type i.
      dim-w = ft-wpw.
      dim-h = ft-wph.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'WIDTH'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using relative width.
            perform cop_relative_number using relative width 'X'.
    *}   REPLACE
            if relative = true.
              add width to dim-w.
            else.
              dim-w = width.
            endif.
          when 'HEIGHT'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using relative height.
            perform cop_relative_number using relative height 'Y'.
    *}   REPLACE
            if relative = true.
              add height to dim-h.
            else.
              dim-h = height.
            endif.
          when 'WINDOW'.
            dim-w = ft-tdwwidths.
            dim-h = ft-tdwheights.
          when 'PAGE'.
            dim-w = form_header-tdpagwidth.
            dim-h = form_header-tdpagheigh.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      ft-wpw = dim-w.
      ft-wph = dim-h.
    endform.
    *{   REPLACE        ED1K902054                                        3
    *form cop_relative_number using is_relative like boolean
    *                               val         type i.
    form cop_relative_number using is_relative like boolean
                                   val         type i
                                   type        type c.
    *}   REPLACE
    data: num type f,
          next(10).
      clear is_relative.
      perform cop_next using next 10.
    *{   REPLACE        ED1K902054                                        1
    *  if next(1) cn '+-.0123456789 '.
      if next(1) cn '#+-.0123456789 '.
    *}   REPLACE
        perform cop_warning using subrc_param_unknown next.
        clear: is_relative, val.
        exit.
      else.
        if next+1(9) cn '.0123456789 '.
          perform cop_warning using subrc_param_unknown next.
          clear: is_relative, val.
          exit.
        else.
          case next(1).
            when '+'.
              is_relative = true.
              num = next+1(9).
            when '-'.
              is_relative = true.
              num = next+1(9).
              num = -1 * num.
    *{   INSERT         ED1K902054                                        2
            when '#'.
              is_relative = true.
              num = next+1(9).
              case type.
                when 'X'.
                  num = ( ft-line_width  - ft-rem_width ) + num.
                when 'Y'.
                  num = ( ft-fill_height - ft-rem_height ) + num.
              endcase.
    *}   INSERT
            when others.
              num = next.
          endcase.
        endif.
      endif.
      perform cop_num_val using num.
      val = num.
    endform.

  • Problem with line items print in Script MAIN window.

    Dear Friends,
    I am facing a problem with display the line items in main window.
    Here i have created my form with 2 pages,
    in first page i have created header window(my header information is full length of page), in second page i have created 2 windows, one for MAIN window and second for FOOTER window,
    i am having the Footer information about to off the page.
    and in my main window total 3 line items are coming, if i am having 3 line items then it is displaying properly (first 3 line items then immediately footer information on same page) but if am having more then 3 line items say four, then in my second page first it is printing 3 line items then it is switching into another page. After that footer is coming but. in previous page after printing 3 line items the remaining page is empty..
    my client want me to remove that place also. he wants to display continue..
    i think so u people r understand what is my problem...pls advice me what i want to do to solve this problem.
    Thanks
    Sridhar.

    Hi Sridher,
    If you want to display the footer information only on the last page why dont you use a table to display your details and place the footer details in the table footer instead of a seperate footer window.
    Regards,
    Vidya.

  • Steam main window font issue

    hello everyone,i have some problem with steam,in steam main window ,the Chinese fonts does not display correctly,i have install all the microsoft-fonts and the wqy-zenhei font as the wiki said.
    but it still not work for me.
    here is the image:
    http://ww2.sinaimg.cn/large/6d31b5b4gw1 … 0icjum.jpg
    moderator edit: Welcome to the forums. The image is too large. Please use thumbnails. See Forum Etiquette: Pasting Pictures and Code. Thanks. --fsckd
    Last edited by fsckd (2014-01-29 13:49:11)

    Hi,
    Dont delete the text elements, Instead comments the lines below the text element.
    /E SHIPMENT_HEADER
    /E SHIPMENT_DET
    Regards
    Praveen

  • Cheque Script Main window question

    Hi,
    in Main window of F110_PRENUM_CHCK there are numbers in bold like 510-1 512 etc. Can you explain me what do they mean?
    Thank you,
    Vitaly

    They are the ELEMENTs within the Main window.
    The driver program calls the Combination of the WINDOW and ELEMENT (e.g. MAIN and 520) and it will generate the output which in there under the ELEMENT.
    Check this help:
    http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db400494511d182b70000e829fbfe/frameset.htm
    Regards,
    Naimesh Patel

  • Box inside Main window issue in Scripts

    I have issue in placing a box inside the main window. I would like to display text with a box frame at end of the line items.
    I tried creating seperate FOOTER window in the Last page, but it dint work as expected, since if the line items ended in the first page then the LAST page did not trigger and one more complication was if there were 4 pages, then there was blank window (FOOTER) in 2 pages and it looks ugly.
    I tried putting the box frame by using text element, calling after the end of the line items. The text displayed as needed, but the frame was misaligned.
    Kindly help me. Thanks in advance.
    Have a great weekend.

    Raj,
    Try to find out which text element is trigerring after the line items text element while debuging the script  and then place the box code in that text element.
    regards.

  • First Record is repeated twice in main window of script

    Dear All,
    I am developing a Script form, which contains 3 windows Header,Main and Footer. My Problem is that in Main window
    the first record is repeated twice and the remaining all records
    are ok. I am unable to solve this issue of stopping the duplicate
    first record. Your response might be helpfull to me.
    Regards,

    I came across this prob today too.
    I did some digging, maybe it is something with the window type, this prob only occurs when the type of the window is continuious, and it is only possible for the main window to be set to the continuious type.
    The only way, as far as I know, is that you can put those your wanna print in a text element. And by doing so, the prob is gone. But, do pay attention to those are not continuious type windows, and remember that they are variable. The content of the windows like those, are only kept until the next write_form is called to repaint the window content and any content of the ex-window would vanish without a trace. And if you also put the content of the variable windows in a text element, there will be some format confusion getting in the way.
    That is all I got, But I still have no idea about the course.

  • SAP Script: Include text in MAIN window prints outside MAIN window margins

    Hi,
    We're facing a peculiar issue. We call a text element in the MAIN window of an SAP Script form using FM WRITE_FORM.
    The element has 2 includes.
    The problem is that when the content of any of the 2 includes is large enough, the include text prints overflows outside the MAIN window margins on the first page and into the area of the footer window of the same page. It does not automatically flow to the next page MAIN window.
    We have checked that the MAIN window and FOOTER window margins do not overlap. Infact they are quite far from each other.
    We have tried stuff like using a forced PROTECT, change the para format etc, but nothing solves the problem.
    Does anyone have any idea?

    You do not need to use the subroutine READ_ORDER_TEXT to get another text name because you already have it: TMP_TXNAM2 .
    Pass this value back to your SAPscript, and it is okay.
    Or you can even check the text object is empty or not, if no text is found, print 2 empty lines:
    still use your subroutine to read the text, if no line is found, set TMP_TXNAM2  to empty, otherwise, no change,
    In SAPscript, check the value is empty or not, then print 2 empty line or the text object...

  • How to use Two main windows with in a page in script ?

    Hi any body explain me...
    How to use Two main windows with in a page in script ?
    with  header data in one main window,
    & Item data in other main window.

    HI..,
    u need to go for <b>SPLITTING THE MAIN WINDOW</b> !!!
    Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
    Here is the procedure !!
    -->Create a page window and assign it to a page.
    Choose <b>Edit --> Main windows</b>.
    A dialog box appears.
    -->Enter values in the fields <b>Area width</b> and A<b>rea height</b> in accordance with the input guidelines for main windows.
    -->Enter values in the fields <b>Spacing</b> and Number in the <b>Horizontal group</b> if you want to use multiple columns. You can ignore the fields in the Vertical group.
    Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the <b>Horizontal and Vertical groups</b>.
    -->The value in the field Left margin varies from main window to main window if multiple columns are used. The following applies:
    <b>
    Left margin of current column + Window width + Horizontal spacing = Left margin of next column</b>
    In label printing, the field Upper margin also varies from main window to main window:
    <b>
      Upper margin of current main window +  Window height + Vertical spacing = Upper margin of next main window</b>
    -->Enter a value in the field Start position.
    This is a counter. Enter a starting value which is equal to or greater than 1.
    -->The main windows are added to the list.
    -->Save your form.
    reward if it helps u...
    sai ramesh

  • Unable to print BSEG-SGTXT in Main window - SAP Script

    Hi
    I have an issue in Scripts.
    I want to print BSEG-SGTXT in my Main Window and below is my code but i am unable to print the text. while debugging, i am getting value in zsgtxt field, but i am unable to get/print in script.
    can any one help me why it's not printing? and plese suggest where it's wrong.
    In Main window:
    /:   PERFORM TEXT IN PROGRAM ZFIGS_CHECK_PRINTING     
    /:   USING &REGUP-BELNR&                              
    /:   CHANGING &ZSGTXT&                                
    /:   ENDPERFORM                                       
    CH   &ZSGTXT&           
    In Subroutine pool:
    FORM text TABLES intab STRUCTURE itcsy
                             outtab STRUCTURE itcsy.
      DATA: zbelnr(10),
            zsgtxt LIKE bseg-sgtxt.
      READ TABLE intab WITH KEY name = 'REGUP-BELNR' .
      IF sy-subrc = 0.
        MOVE intab-value TO zbelnr.
        SELECT SINGLE sgtxt INTO zsgtxt FROM bseg
              WHERE bukrs = '8140' AND
                    belnr = zbelnr.
        IF sy-subrc = 0.
          MOVE zsgtxt TO outtab-value.
          MODIFY outtab INDEX sy-tabix.
        ENDIF.
      ENDIF.
    ENDFORM.
    Thanks,
    Siva

    Hi,
    Can any one tell how to write loop statement in Main window to display BSEG-SGTXT. As i am getting text (BSEG-SGTXT) from subroutine pool and calling into Main window using Perform statement and printing duplicate text in multiple times insted of different text.
    Thanks,
    Siva

Maybe you are looking for

  • Windows 7 Desktop won't run

    I have a palm centro and recently purchased a new dell laptop running Windows 7 64 bit.  Installed the Desktop 6.2.  Worked for a couple of days.  Suddenly would not load on startup with an error message.  Finally got through to a Palm tech through A

  • Flex 3 GA Designer doesn't work with my modules

    This is absolutely critical to our application. In Flex 3 Beta I had no issues doing this, in Flex 3 GA it does not work and I'm wondering if any of you have seen this issue. I have extended Module to MyModule and added code that I need. My Flex buil

  • SQl server to Oracle -- Replicat error command disallowed by current ..

    I am trying to set replication b/w sql serve *& oracle.. Source -- SQL server 2005 SP4. Target - Oracle 11.2.0.3 - using ASM ..single instance.. The error log is .... 2012-02-10 17:33:47 ERROR OGG-00664 Oracle GoldenGate Delivery for Oracle, rcatd1.p

  • PackageForPrint and Link Files

    Hi, For one of our clients we are using the above function to create an INDD file from an INX file.  It all works fine until the InDesign Server is on a different box geographically from the files in the link folder.  I appreciate the files have to b

  • Spotlight INDEXING is in a continuous loop....

    Hi My iMac (now 10 months old) started doing this for the first time a couple of days ago. Index, index, index, with the HD whirring away all the time, and a serious overhead on the CPU, slowing down my use of MS Windows, Entourage, Finder, you name