cancel
Showing results for 
Search instead for 
Did you mean: 

MAIN WINDOW IN SAP SCRIPT

Former Member
0 Kudos

HOW MANY MAIN WINDOW WE CAN CREATE IN SAP SCRIPT , I THINK ONLY ONE , SO HOW THE FLOW OF DATA TAKE PLACE??

THE DATA ON MAIN WINDOW IS CONTINOUS TEXT AND THE DATA ON OTHER WINDOW IS CONSTANT ???

WHAT VARIABLE WINDOW DO ???

AND CAN WE DEFINE TEXT ELEMENT OTHER THAN MAIN WINDOW??

PLS RESOVE ASAP..

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

In main window i have created the text elements two in main window

/E7 MAterial Desc matnr like that

E8

Line item tables

how to call this in main window

When i making calll

loop at it_final into wa_final

   CALL FUNCTION 'WRITE_FORM'

   EXPORTING

      ELEMENT                        = 'E7'

      WINDOW                         = 'MAIN'

ENdloop.



material  desc  is getting repeated

with that line item how to resolve this


Message was edited by: Florian Henninger Open a new discussion please. This is now locked.

Former Member
0 Kudos

Hi Ankesh,

We can have more than 1 main window in a page of script.

We can have 99 main windows in a script.

For more queruesin script,

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_SAPS...

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-sub...

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

http://www.sappoint.com/abap/ssintro.pdf

http://www.sappoint.com/abap/sscript.pdf

http://www.sappoint.com/abap/sscript.pdf

http://www.sappoint.com/abap/lsetssap.pdf

http://www.sappoint.com/abap/sscrtpex1.pdf

http://www.sap-img.com/sapscripts.htm

http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp

http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf

http://www.sappoint.com/abap/sscrtpex1.pdf

http://www.sap-img.com/sapscripts.htm

http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf

Other Links

http://www.virtuosollc.com/PDF/Get_Reporter.pdf

http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm

http://www.virtuosollc.com/PDF/Get_Reporter.pdf

http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm

http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp

http://www.allsaplinks.com/dialog_programming.html

http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm

http://www.allsaplinks.com/files/using_table_in_screen.pdf

http://www.geocities.com/ZSAPcHAT

Regards,

Pritha.

Reward if helpful.

Former Member
0 Kudos

can i hve guyz n galz ur personal email id so that i can mail u directly ..

pls mail me at "deleted by moderator

Message was edited by: Florian Henninger Don't share private information in posts you do! There are enough ways to contact you provided by the community

former_member187457
Active Contributor
0 Kudos

Hi AJ

you can have only one main window under WINDOW tab but 99 submain windows under PAGE WINDOWS tab....

so u can have 99 submain windows in one page....

regarding text elements you have to write text in one of the submain window and it ill be reflected automatically in all the submain windows....

this ll show the continuity in the data flow....

u can change the hight of each submain window but cant change the width.....

if still have doubts plz reply...

thnx

Rohit

former_member196280
Active Contributor
0 Kudos

You can have maximum of 99 main windows in one page of SAP script.

Edit--> create element.

Regards,

Sairam

Former Member
0 Kudos

Hi Ankesh,

Please refer to the below link for ur query:

http://abapprogramming.blogspot.com/2007/11/setting-header-text-in-main-window-top.html

VAR Window :

It is a window with variable contents. The text can vary on each page in which the window is positioned. Variable windows are formatted for each page.

You can define text elements (window texts) for each window. The print program accesses these text elements by name, formats them and prints them in the respective windows.

Reward if helpful.

Regards,

Esha

Edited by: Esha Raj on Jan 21, 2008 9:02 AM

Edited by: Esha Raj on Jan 21, 2008 9:04 AM

Former Member
0 Kudos

We can have 99 Main windows.

Former Member
0 Kudos

IN ONE PAGE OR IN ONE FORM ??? MEANS CAN WE CREATE MORE THAN ONE MAIN WINDOW IN ONE PAGE??

Former Member
0 Kudos

Hi Ankesh,

We can have more than one main window.We can create main windows in any number of pages,but the code that is present in the first main window will b automatically copied into other main windows.So after creating main window in the second page,if u do some modifications in the code,that will b replicated in the first main window also.

So Virtually we can have so many main windows,but the functionality is same in all.I think u understood this,otherwise just reply me.

Regarding Text Elements:

The Text elements will b better used when u call the Write_Form in a loop.So if the main window in first page is overflown,automatically the data will b printed in the main window of second page i.e for the second time only the code written under the text element will b executed,but not the entire code.

Dont forget to reward points if useful.....

Former Member
0 Kudos

Hi Naga Pavan Kumar Sripada and other friendz.

Thanks for ur reply and for ur satisfactory reply , now i want to know that if the same code get replicated in the other main window then

1. what r the use of making 99 main window ???

2. what is the diff between variable and constant window ..

3. how can we use or what is the flow of using text element in main window

4. can we define text element other main window if no , then how can we use variables in other window than main window..

waiting.Ankesh

former_member187457
Active Contributor
0 Kudos

the use of 99 submain windows are ...e.g. u have to print list of MATNR in two main windows in the same page......

second one below the first one.....

and in between there is some text....

and u want a continuation in the data flow....like u want to print 10 line in first window and next 5 line in second window...

thts too in continuation ,without data loss....

then u have to use two main windows....

i m forwarding u the screen shot of one of my script.....