Regarding Main Windowin scripts

Hi to all abap gurus
  iam new to abap and my querry is as follows pls dont try to give the links . and i feel so  happy if u give exact anwers ?
Querry1:
i have one page( named "page1" )in my  script with three windows(logo,adress,main windows) my requirement is to display some dynamic data in the script that is list of orders of the customer whn u give the customer number in selction-screen .then we can go for main window only to dispaly dynamic data ? or is there any other option ? then what should we give as apage number  in the next page attribute in the header information. suppose  if i dont give "page1" in the next page attribute as anext page what will happen ? i mean that dynamic data will be  displayed or not ?
Querry2:
one one more querry incase if we have two pages in my layout .in  page1 (3 windows as said above  ) and page2 ( only logo and address window  ) and no main window in page2. now if we give "page2" as next page in the next page attribute of page1  then that dynamic data will be displayed or not ?
Thanks in Advance
Sunil
Moderator message: please get some basic training on SAPScript, also try things yourself before asking and use correct forum when posting.
Edited by: Thomas Zloch on Jul 13, 2010 2:39 PM

Hi,
/* (s1p&XDIM&,&YDIM&,&MODHEIGHT&,0s24670T
is a commented line.
/* signifies comment.
Kindly reward points by clicking the star on the left of reply,if it helps.
Check this link for more about Barcodes.
http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm
Message was edited by: Jayanthi Jayaraman

Similar Messages

  • What are the main sap script events and their functionality and usage?

    what are the main sap script events and their functionality and usage?

    Hi,
    Inside the Script, there are events like Top of Page, End of page etc.
    Please elaborate about your requirement.
    Best regards,
    Prashant

  • Regarding translations in scripts

    Hi All,
    I am facing a problem while translating a script from EN lang to say FR lang in se76 T-code.
    In the main window, there are many elements to be translated and each element will have its own texts to be translated. During translation, we get the english text  in teh non editable mode and the text that is to be translated  into other lang in editable mode.
    All the elements are getting translated except one Element. I am not able to understnad why that particular element is not getting translated. The editable window for that particular element is not getting displayed even when i want to translate it.
    Can anybody help me out reg this problem. I want to translate the text presen tin taht particular element whichis not happening.. Pl let m e know what the problem might be and the solution to this as this is v important...
    Regards,
    Priya

    Hey bharath,
    Thanks for the reply. But,  can uplz help me out in doing the translation using se63 in ECC6.0? I had tried it out but as i could not know how to proceed with, i started translating it using se76.
    Can u plz let me know the same process using se63 in 6.0?
    Regards,
    Priya

  • Urgent Regarding the SAP Script

    Hi all,
    I am developing a SAP-Script in which there is table like
    Description Resuts Parameters
    uline
    values values values
    My doubt is using the driver program the values has to be printed. Can anybody provide the piece of code for these requirement.
    Another doubt is in this script there 2 pages . But in the print preview i can see only 1 page . In the page setting i have given the next page as page2 . But still i m facing the same problem. In page there is no main page only footer, page no, and some std descptn window is available.
    Depending on the 1 field i want to print the send field value i have change these things in the driver program so that the correct can be printed in the form.
    With Regards,
    Srinivas.

    hi,
    How to Upload graphics (IMAGE) to your Sapscript?
    Command in your Sapscript
    /: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E
    These are the steps to be followed for uploading graphics in R/3 system
    1. First save the file as BMP
    2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
    make it Zoom as 100% and save as *.TIFF
    3. Open SE38 and execute program RSTXLDMC
    4. Give your TIFF file path name
    5. Select Bcol (for Color)
    6. TEXT ID will be ZHEX-MACRO-*.
    7. Inplace of * write your own logo name (ZCOMPANYLOGO)
    8. Execute the program
    9. Now Goto SE71 create your ZFORM
    10. Create logo window
    11. Goto text element of logo window
    or
    In 4.6x :-
    1. Goto SE71 Change the mode to GRAPHICAL
    2. Choose the Graph Tabstrips
    3. Now type in some name for the LOGO WINDOW
    4. Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP
    5. The code will be written automatically. You just need to drag and drop wherever you want
    the graphics to be.
    /: INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN
    Message Edited By ,
    Vani

  • Regarding subroutine in script

    hi friends,
    i am calling suroutine in script i write in main window of script this
    /: PERFORM ZVEND IN PROGRAM ZRFI_CONF_SUB
    /: USING &BSIK-LIFNR&
      /:USING &BSIK-BUDAT&
    /:ENDPERFORM .
    i created subroutine pool ZRFI_CONF_SUB.
    but when i am debugging form it is not going in that subroutine
    where i am wrong plz reply me .
    regards,
    sonu

    hi anji,
    i am pesting my code plz plz help me plz go through the code .
    in script
    PERFORM ZVEND IN PROGRAM ZRFI_CONF_SUB
    USING &BSIK-LIFNR&
    USING &BSIK-BUDAT&
    ENDPERFORM
    *& Subroutine pool   ZRFI_CONF_SUB                                            *
    PROGRAM  ZRFI_CONF_SUB.
    DATA : BEGIN OF I_BSID OCCURS 0,
               KUNNR LIKE BSID-KUNNR,
               WRBTR LIKE BSID-WRBTR,
               BUDAT LIKE BSID-BUDAT,
               SHKZG like BSID-shkzg,
               BSTAT LIKE BSID-BSTAT,
           END OF I_BSID.
    DATA : BEGIN OF I_BSAD OCCURS 0,
               KUNNR LIKE BSAD-KUNNR,
               WRBTR LIKE BSAD-WRBTR,
               BUDAT LIKE BSAD-BUDAT,
               SHKZG like BSAD-SHKZG,
               BSTAT LIKE BSAD-BSTAT,
           END OF I_BSAD.
    DATA : BEGIN OF I_BSIK OCCURS 0,
               LIFNR LIKE BSIK-LIFNR,
               WRBTR LIKE BSIK-WRBTR,
               BUDAT LIKE BSIK-BUDAT,
               shkzg like bsik-shkzg,
               BSTAT LIKE BSIK-BSTAT,
           END OF I_BSIK.
    DATA : BEGIN OF I_BSAK OCCURS 0,
               LIFNR LIKE BSAK-LIFNR,
               WRBTR LIKE BSAK-WRBTR,
               BUDAT LIKE BSAK-BUDAT,
               shkzg like bsak-shkzg,
               BSTAT LIKE BSAK-BSTAT,
           END OF I_BSAK.
    *****This is form to get the total in Vendor Bal.ConformationForm*****
    FORM ZVEND TABLES IN_BSIK STRUCTURE ITCSY
                      OUT_BSIK STRUCTURE ITCSY.
      data : year(4),
             month(2),
             day(2),
             date(8).
      DATA : V_AMNT TYPE P DECIMALS 2,
             V_AMT  TYPE P DECIMALS 2,
             V_TOT  TYPE P DECIMALS 2,
             V_TOTAL(20),
             V_LIFNR(10) TYPE N,
             V_BUDAT(10),
             V_WRBTR LIKE BSID-WRBTR.
      READ TABLE IN_BSIK INDEX 1.
      V_LIFNR = IN_BSIK-VALUE.
      READ TABLE IN_BSIK INDEX 2.
      V_BUDAT = IN_BSIK-VALUE.
      year  = V_BUDAT+6(4).
      month = V_BUDAT+3(2).
      day   = V_BUDAT+0(2).
      CONCATENATE year month day into date.
      SELECT LIFNR WRBTR BUDAT SHKZG BSTAT FROM  BSIK
                                           INTO  table I_BSIK
                                           WHERE LIFNR = V_LIFNR.
      SELECT LIFNR WRBTR BUDAT SHKZG BSTAT FROM  BSAK
                                           INTO  table I_BSAK
                                           WHERE LIFNR = V_LIFNR.
      LOOP AT I_BSIK WHERE LIFNR = V_LIFNR.
        if i_bsik-BUDAT <= date and i_bsik-bstat ne 'S'.
          if i_bsik-shkzg = 'S' .
            V_AMNT = V_AMNT + I_BSIK-WRBTR .
          else.
            V_AMNT = V_AMNT - I_BSIK-WRBTR.
          endif.
        endif.
      ENDLOOP.
      LOOP AT I_BSAK WHERE LIFNR = V_LIFNR.
        if i_bsak-BUDAT <= date and i_bsak-bstat ne 'S'.
          if i_bsak-shkzg = 'S'.
            V_AMT = V_AMT + I_BSAK-WRBTR .
          else.
            V_AMT = V_AMT - I_BSAK-WRBTR.
          endif.
        endif.
      ENDLOOP.
      V_TOT = V_AMNT + V_AMT.
      V_TOTAL = V_TOT.
      READ TABLE OUT_BSIK INDEX 1.
      OUT_BSIK-VALUE = V_TOTAL.
      MODIFY  OUT_BSIK INDEX 1.
    ENDFORM.                    "ZVEND
    **This is form to get the total in Customer Bal.Conformation Form*****
    FORM ZCUST TABLES IN_BSID STRUCTURE ITCSY
                      OUT_BSID STRUCTURE ITCSY.
      data : year(4),
             month(2),
             day(2),
             date(8).
      DATA : V_AMNT TYPE P DECIMALS 2,
             V_AMT  TYPE P DECIMALS 2,
             V_TOT  TYPE P DECIMALS 2,
             V_TOTAL(20),
             V_KUNNR(10) type n,
             V_BUDAT(10),
             V_WRBTR LIKE BSID-WRBTR.
      READ TABLE IN_BSID INDEX 1.
      V_KUNNR = IN_BSID-VALUE.
      READ TABLE IN_BSID INDEX 2.
      V_BUDAT = IN_BSID-VALUE.
      year  = V_BUDAT+6(4).
      month = V_BUDAT+3(2).
      day   = V_BUDAT+0(2).
      CONCATENATE year month day into date.
      SELECT KUNNR WRBTR BUDAT SHKZG BSTAT FROM  BSID
                                     INTO  table I_BSID
                                     WHERE KUNNR =  V_KUNNR.
      SELECT KUNNR WRBTR BUDAT SHKZG BSTAT FROM  BSAD
                                     INTO  table I_BSAD
                                     WHERE KUNNR = V_KUNNR.
      LOOP AT I_BSID WHERE KUNNR = V_KUNNR.
        if i_bsid-BUDAT <= date and i_bsid-bstat ne 'S'.
          if i_bsid-shkzg = 'S' .
            V_AMNT = V_AMNT + I_BSID-WRBTR .
          else.
            V_AMNT = V_AMNT - I_BSID-WRBTR.
          endif.
        endif.
      ENDLOOP.
      LOOP AT I_BSAD WHERE KUNNR = V_KUNNR.
        if i_bsad-BUDAT <= date and i_bsad-bstat ne 'S'.
          if i_bsad-shkzg = 'S'.
            V_AMT = V_AMT + I_BSAD-WRBTR .
          else.
            V_AMT = V_AMT - I_BSAD-WRBTR.
          endif.
        endif.
      ENDLOOP.
      V_TOT   = V_AMNT + V_AMT.
      V_TOTAL = V_TOT.
      READ TABLE OUT_BSID INDEX 1.
      OUT_BSID-VALUE = V_TOTAL.
      MODIFY  OUT_BSID INDEX 1.
    ENDFORM.                    "ZCUST

  • Regarding Main Window issue

    hi all,
    I developed one Smartform Work Order.
    My Requirement is after Completion of Main Window some texts like Terms of Payment and Penalty Clause( These we maintained in texts in PO) needs to come.
    Suppose i am displaying 10 line items . after completion of 10 line items Terms of payment needs to come and next page should start from first line onwards with whatever ending in the first page. It should not start from middle(beacause we define main window from middle ) and also for every page back side terms & conditions needs to come.
    How can we achieve this.
    Please suggest.
    Regards
    Reddy

    Hi,
    check your previous post
    Regarding Page Back in Smartform
    You cannot see it in print preview... try to check it by taking print..
    Regarding printing of terms and conditions after the line items... you can create a text node after the loop node and print the terms and conditions.
    It should not start from middle(beacause we define main window from middle )
    I guess this would be difficult to achieve.. i would like to suggest you to trigger a new page with main window height increased not the width of the main window

  • Regarding Logo in Script

    Hi Abapers,
       Now i am doing a sapscript.In that script i uploaded one logo.That logo is appeared in spool request but not coming in actuval(paper) print out.Can you please give me the proper solution for this one.I uploaded that logo in tiff file formate.
    Thanks & Regards,
    Bujji.

    Hi,
    Check the window size that image is fitted or not.
    Check your include statement.
    If not do it again.create GRAPHIC window and include logo again.
    UP ur logo through SE78 into ur graphic window.
    make sure that ur image must be saved in .bmp or .tiff
    thats all.
    Thanks.
    If this helps u reward with points.

  • Regarding Main Window Height

    hi all,
        I am facing probelm that
      I am developing proforma invoice smartform .
    how can we adjust dynamically the height of smartform.
    Suppose i displayed 4 line items but height of main window is more.   it need to adjust to 4 line items.
    suppose i displayed 6 line items it needs to adjust 6 line items.
    like that.
    plz suggest solution.
    Regards
    Rami Reddy

    Ramireddy,
    In smartforms, in the main window U have to create the table and then display the line item data in the body of the table . this will solve ur problem as if the number of line item increase then the size of the table increases dynamically.....
    Regards...
    Edited by: Shakeel Irfan on Jun 25, 2008 8:56 AM
    Edited by: Shakeel Irfan on Jun 25, 2008 8:57 AM

  • Regarding main window in page2

    Hi,
    My requirement is i have to display basic rent header data in first page and their (Basic item details) in second page.So I am using one main window in page1 and other main window in page2.In page one am getting the main window data finely but am not getting main window in second page where i make a mistake.Please tell me.
    Waiting for ur reply........
    Regards,
    Ali

    Hi,
    Plz check out this thread;
    Main Window in 2nd Page is not displaying.
    Hope, it would help you.
    with regards,
    Mamta Kumari

  • CS5.5 Publish SWF including Main.AS script

    Hi,
    In Flash Pro CS5.5, I've created an Fla and scripted it (in AS3) using a separate AS file (package) which is linked. When I publish the SWF and both the SWF and AS files are in the same folder, it runs fine. If I separate out the SWF (without the AS file), and try to run it, it doesn't play (run the script).
    How do I include (embed) the AS file into the published SWF so that wherever the SWF is located, it is self-contained so that it plays using the script from the AS file?
    Regards,

    Hi Michael,
    Thank you for this explanation. After a lot of experimenting, I seem to be able to get the AS's script included in the published SWF, but 6 MP3's (although imported to library and/or stage) are still separated and, unless in the same folder as the SWF, will not work. With beginner skills, I think that maybe this is caused by these MP3's also being loaded in the separate AS file. Ithink that all of this could be solved if I could figure out how to put all the script in a single Fla, then maybe it could somehow  also "embed" the 6 MP3's in the final published SWF. I've tried to re-do the AS file's script, but since these are "public" class definitions, etc., keep getting error messages. Quite a "mess." Not sure how to fix it.
    Regards,

  • Regarding Barcodes in Scripts

    Hi All,
       I need to diplay one field in script to barcode.I got some code regarding this through some internet site.May i know the meaning of this code.Specially for
    (s1p&XDIM&,&YDIM&,&MODHEIGHT&,0s24670T
    (s1p40v10,30b10,30s24670T
    these two lines.what does this code do.
    Actual Code is:
    /:   DEFINE &XDIM& = 2
    /:   DEFINE &YDIM& = 3
    /:   DEFINE &MODHEIGHT& = 3
       <FS><32>
    /:   PRINT-CONTROL SESCP
    /*   (s1p&XDIM&,&YDIM&,&MODHEIGHT&,0s24670T
    =    (s1p40v10,30b10,30s24670T
       &VBLKK-VBELN&
    /:   PRINT-CONTROL SBS01
    HI   Delivery Number:,,&VBLKK-VBELN&
    Bye
    Bujji

    Hi,
    /* (s1p&XDIM&,&YDIM&,&MODHEIGHT&,0s24670T
    is a commented line.
    /* signifies comment.
    Kindly reward points by clicking the star on the left of reply,if it helps.
    Check this link for more about Barcodes.
    http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm
    Message was edited by: Jayanthi Jayaraman

  • Regarding main difference between  Enhancement point and section

    Hello,
    Actually Iam new to Abap ,I would like to know the main difference between Enhancement point and section, so can you please give a brief clarification.
    Thanks & regards,
    Raju.
    Moderator message: Welcome to SCN!
    Moderator message: please search for available information/documentation.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
    Edited by: Thomas Zloch on Feb 5, 2012 8:59 AM

    Hi Raju,
    Please see the article below. He will help you:
    [Introducing the Enhancement Framework: The Cool New Way to Enhance Your ABAP Systems|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/bb54c452-0801-0010-0e84-a653307fc6fc]
    Regards,
    Bruno Xavier.

  • Regarding Main Windows ?

    Hello,
    I have got the task to prepare a smartform which is of 2 pages , my doubt is will the second page must have main window or not.
    Thks

    Hi,
    Main window is not at all mandatory in SMARTFORMS, You may use it or not
    SO it depends upon your data.
    you can use a main window in as many pages as you want or dont use it at all.
    But same data will be printed  in all the pages you use MAIN WINDOW
    regards
    prasanth

  • Regarding ECATT Test Scripts

    Hi All,
    I would like to know abt how we assign <b>Transaction to ECATT test scripts</b>,once i can get transaction to run this i can improve the program with more conditions using selection-screen etc.
    Here i will execute the test script using <b>SECATT</b> Transaction.
    But now i want to put the this test script into one transaction.....
    Means i should be able to run the TEST SCRIPT from a Tranasaction.
    or i will run one Transaction and i have to provide option like enter test script name from there so that i can execute.
    Can body have the solution for the above.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi All,
    Can anybody give the solution to above issue.
    I want to run the Test Scripts that are being run from <b>SECATT</b> from Seperate[My Own] Transaction.
    Please provide the solution for above issue.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

  • Regarding Coment in Script

    hi,
    i'm commening few line in mail window,  after syntax check and activation if if revisited the main windw again then the commetns are deleted. i e changes to comments are not saved. can any one plzz let me know solution
    Thanks & Regards
    Munna

    /: DEFINE &LV_ARK& = &VBDPA-ARKTX&
    /*  &VBDPA-VRKME&,,&KOMVD-KBETR(I12)&,,&KOMVD-KOEIN&
    /: DEFINE &L_SER1& = &LV_SERNR1&
    /* &'Customer mat. no. 'VBDPA-IDNKD' '&&'Item 'VBDPA-POSEX&
    The above code which i have wirtten in main window, i am commented the anove lines  after define, after commenting i saved the form and activated. at that time i didnt find any errors but once i revised main window the changes made to as comment are not reflecting and the code chagnes to
    /:  &VBDPA-VRKME&,,&KOMVD-KBETR(I12)&,,&KOMVD-KOEIN&
    /:  &'Customer mat. no. 'VBDPA-IDNKD' '&&'Item 'VBDPA-POSEX&
    please let me know the problem.
    Thanks & Regards
    Munna Syed

Maybe you are looking for

  • What does the other mean on my itunes and how do you see what is in your other?

    When i was syncing my ipod its other category rose from around 1gb to 42gb in seconds and i do not know what the files are can anyone suggest something, because i have been on other chat things and they said it would be either album artwork or photos

  • Need to give file location in FTP Adapter at runtime

    Hi All, We r using FTP Adapter for fetching files from remote server, we have scenario where we need to give the location of file at runtime. Location may vary so the file location must be given at runtime. We r using SOA 11.1.1.3 Thanks, RR Edited b

  • SD card content video does not show in finder

    Last week I installed Mavericks - after some troubles with mail and excellent support from Apple Helpdesk which in the end made it possible to retrieve all old mails... I encountered another bug today. I inserted my SD card to transfer therapy sessio

  • Linux desktop enviroments with different way of doing things?

    I was just thinking that big DE:s like KDE or GNOME have basically same way of doing things. You have start button, quicklaunch icons, taskbar, clock etc in same panel, Control Pan.. err Control Center, Same OK Cancel dialogs etc. These things remind

  • IOS 5 iBooks Bookmarks not working

    Hi, Since I updated to IOS 5 I can't bookmark a page in iBooks. Is anybody else having this problem and has anybody found a fix for it? Thanks Steve