SAp SCRIPT Multiple lines in MYWINDOW
hello friends,
can i print internal table data(Multiple lines) in a window ither than MAIN window?
Ex.
Loop at itab into wa,
call function 'write_form'
exporting
element = 'MULTIPLE'
window = MYWINDOW (VAR).
endloop.
Please suggest.
Thanks,
Mohammed.
Hi
You can print Multiple lines but if the content is exceeding the window size then it is truncated that means it is not displayed and we cannot have flow data with secondary windows .
Regards
PAvan
Similar Messages
-
Hi Experts,
In a classical ABAP report we make use of
write:/20 'Text'.
to print text from the 20th column. Can we do something similar in a SAP Script Page Window. I have a box and lines drawn. Now I want the text to start exactly after the vertical line(column). Is there a way to do in SAP Script.
Regards
Abdullah.You can use Paragraph format in SE71 Transaction,
here you can able to see Tab position ,give first tab would be 20 char alignment would be Left or right.
If you need design the box ,then i am giving simple example below :
POSITION WINDOW
BOX WIDTH '74' CH HEIGHT '36.5' LN FRAME 10 TW
POSITION WINDOW
BOX WIDTH '74' CH HEIGHT '3.1' LN FRAME 10 TW INTENSITY 10
POSITION XORIGIN '0.9' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '3.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '5.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '7.2' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '8.3' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '9.5' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '12.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '14.5' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '17.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '19.7' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
Thanks
Seshu -
Dear All
I want to print two tables data in two columns using sap script .
how to print the data in multiline in a column.
Thanks and Regards
SureshHi,
This how i used Main window for my requirement, you can modify Margins according to your use.
Window Meaning Left Upper Width Hght
MAIN 00 Main window 7,00 CH 30,00 LN 70,87 CH 2,00 LN
MAIN 01 Main window 7,00 CH 32,00 LN 70,87 CH 2,00 LN
MAIN 02 Main window 7,00 CH 34,00 LN 70,87 CH 2,00 LN
MAIN 03 Main window 7,00 CH 36,00 LN 70,87 CH 2,00 LN
MAIN 04 Main window 7,00 CH 38,00 LN 70,87 CH 2,00 LN
MAIN 05 Main window 7,00 CH 40,00 LN 70,87 CH 2,00 LN
MAIN 06 Main window 7,00 CH 42,00 LN 70,87 CH 2,00 LN
MAIN 07 Main window 7,00 CH 44,00 LN 70,87 CH 2,00 LN
ADDRESS Addressee 43,31 CH 10,00 LN 35,04 CH 7,80 LN
CONSGNEE Consignee/ship-to address 7,00 CH 64,00 LN 34,65 CH 4,96 LN
FOOTER Footer lines 7,00 CH 58,00 LN 71,00 CH 4,00 LN
HEADER Header lines/logo 168,00 MM 10,00 MM 2,98 CM 2,00 CM
INFO General information - right 7,00 CH 11,81 LN 31,50 CH 5,91 LN
Regards
Bala Krishna -
SAP Scripts : Multiple Performs in same program
dear All,
I am working on SAP Script. I had user a perform statement and written a Code in Sub-routine. that works well, Now I have to use other perform to a carry other operation, Can I use same program, and Add new code to it or Create other program.
I will try to explain more clearly ..
PERFORM <b>GET_TEXT</b> IN <b>PROGRAM ZGET_STEXT</b>
Using var1
using Var2
Changing Var3.
Now if I tooo Add other perform to my Script.
Can I use
PERFORM <b>GET_STtext</b> IN PROGRAM <b>ZGET_STEXT</b>
Using var4
using Var5
Changing Var6.
and Add extra code to do extra operation for same ZGET_Stext program,
Please advice me.
Thanking you.
With kind regards
VenkatThanks Rich & Sandip,
I will get back if I have some problems,
As I am worried about Int_cond Value.
In first form I have assigned
text = Sgtext.
So I guess I have to clear int_cond and assign new value for second form .
Am I right ??
Thanks & Regards
Venkat -
hi
i need to insert 2,3 blank lines after a test element,plz tel me how to do?
i am placing / but its not showing any balnk line,plz tell any way?hi,
Refer to the link.
http://help.sap.com/saphelp_40b/helpdata/fr/7e/c81a5352c511d182c50000e829fbfe/content.htm
This May help.
Regards
Sumit Agarwal -
SAP Scripts: reserve lines
Hi
How do one reserve lines in a layoutsetEnter Default paragraph in the command line and dont write any thing in that line.
-
Unable to print multiple line items in Z-SAP SCRIPT
Hi ALL,
We have a scenario where in we are calling the Driver program (RFKORD50) for Document Extract(F.64), Where in we have attached the Z-Script to the program(RFKORD50),
Unable to print multiple items.
1) Checked with all the elements in STD program for printing multiple items in main window but unable to get all the items we are able to fetch only 1 item .
(&BSEG-BUZEI&,, &BSEG-SGTXT&,,,,&BSEG-DMBTR&)
2) I have also tried with external subroutine but it also didnot work.it is fetching the latest value.
Ex: if we have 3 items say 1,2,3 first 2 items are not getting fetched it is taking 3rd item and printing it straight away(Problem is it is not going to script for fetching the first item).
see the perform which i have used
/: PERFORM ITEMS IN PROGRAM ZTFI_ZNV20296
/:USING &BSEG-BUKRS&
/:USING &BKPF-BELNR&
/:USING &BSEG-GJAHR&
/:CHANGING &V_BUZEI&
/:CHANGING &V_SGTXT&
/:CHANGING &V_DMBTR&
/: ENDPERFORM
IL &V_BUZEI&,, &V_SGTXT&,,,,&V_DMBTR&
Please suggest me whetther we can call write_form from external subroutine. or is there any loop commands in SAP SCRIPT Form.
Regards,
JanaHi!
The LOOP is always within the printer program. In this case also.
Just check out the RFKORI35 include, the LOOP begins in the 215th line (in 4.6C).
SORT HBSEG BY BUKRS SORTP1 SORTP2 SORTP3 SORTP4 SORTP5
BELNR GJAHR BUZEI.
LOOP AT HBSEG.
* WHERE BUKRS = SAVE_BUKRS.
SAVE_BUKRS = HBSEG-BUKRS.
IF ( HBSEG-KUNNR = SAVE_KUNNR
AND NOT SAVE_KUNNR IS INITIAL )
OR ( HBSEG-LIFNR = SAVE_LIFNR
AND NOT SAVE_LIFNR IS INITIAL ).
CLEAR RF140-ELEMENT.
RF140-ELEMENT = '521'.
CALL FUNCTION 'WRITE_FORM'
EXPORTING WINDOW = 'MAIN'
ELEMENT = '521'
EXCEPTIONS WINDOW = 1
ELEMENT = 2.
You might try out to write your code within the 521 elemnt in the sapscript.
Regards
Tamás
Edited by: Tamás Nyisztor on Jun 12, 2008 3:34 PM -
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
PavanHi
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 -
Create ecatt script for one sales order creation with multiple line items
Hi ,
I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
This selection of data will be from an external file/ variants which will have only one row of data in it.
Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
Second: I have to create sales order for those many line items having same PO Number.
Best Regard
TaranumHi Micky
Firstl you should upload the Line items for a particular sales Order in an Internal table
and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
In case of any issues pls revert back
Reward points if helpful
Regards
Hitesh -
Maintianing multiple line items in main window in scripts
Hi folks,
i want to print multiple line items in main window of script for eg 50 line items then my main window should continue in second page also. how to maintain this.
can u provide me sample code for this..
Thx in advance,
Neelima.NYou have an internal table with 50 lines, is it correct?
Let's say, there's a MATNR field in your internal table.
First do, what I wrote in my previous comment.
The create an element in yout main window, like this:
/E LINE_ITEMS
/ &GS_MAIN-MATNR&
In your printer program you have to code the following:
LOOP AT gt_main INTO gs_main.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
ELEMENT = 'LINE_ITEMS'.
ENDLOOP.
This code will loop all 50 of your table entries.
In the MAIN window will fit 30 entries.
When the LOOP is reaching the 30th entry, SAP will automatically create a new page (because of the NEXT PAGE statement you set in the page settings in the SAPScript) and will continue the printing.
Regards
Tamá -
Regarding Multiple pages in SAP Script Output
Hi All,
I have a requirement in SAP Script where i need to print data in multiple pages. I had created 1 page - FIRST with properties <b>Next Page</b> as FIRST , <b>Mode</b> as INC.
In the output i have multiple line items, the data will carry upto 3 pages.
Now In the output First page data is printing correctly.
In the second page all the windows are carried forward to print all the data correctly except in MAIN WINDOW.
In Second page in MAIN Window i have ITEM HEADER which i want to print on every page as it is printing in First page of output, but i am not been able print ITEM HEADER though i am able to print all the ITEM DETAILS correctly on every page.
Can anybody tell how can i print ITEM HEADER on every page which is in MAIN Window.
Thanks in advance.
Thanks & Regards,
Rayeezuddin.Hi Shaik,
If you are only printing Item Details in the Main Window, why don't you create a saperate window just above your main window for Item Headers.
Hope this should solve your problem or Please elobarate your query.
Thanks,
Vinod. -
Dyanamic table is SAP Script with horizontal and vertical lines
Hi,
I need to display the data of the table in the SAP script which is having both horiziontal and vertival lines.
the out put needs to looks as it in Excel...where there are multiple records with 5 fixed coulmns each seprated from one another by horizonalt and vertical lines..
I thinking about useing the Box with XPOS and YPOS who value changes dynamicaaly..
But again as the number of pages might be more than one..i think there will issues,
Can you let me know how to proceed in SCRIPT ,,,, where the number of records might vary ..and also ..it might continue to second page..
Regards
Senthilwell it is possible but quite tricky.
All you got in SAP-SCRIPT to achieve this is the BOX-Statement.
The BOX statement works with variables for XPOS, YPOS, WIDTH and HEIGHT. what you need to do is:
- calculate those variables during runtime
- add box-statements with those variables.
to calculate those variables you need to count used lines and so on. i hope i showed you a way, rest is a lil brainwork then.
regards -
SAP Personas - multiple selection of lines in table
Hello,
i am trying to figure out if it is possible to get/process all selected lines in SAP Personas for table with multiple line selection enabled. i found only posts where actual selected line can be identified in script - e.g. in this post: SAP Personas - dynamic selection of line from report .
I am currently working with SAP Personas 2.0, but I am interested also in Personas 3.0 functionality.
Thank you in advance,
Jan WeissensteinerIn Personas 2.0, it depends on how do you want to process the marked table entries.
Since the Personas 2.0 scripting engine doesn't support looping, you can only read the entire content of the table into an array using a JavaScript step and then evaluate this and determine which lines have been selected. Then you could process the result, for instance you could add field values from the selected rows or something like this, since it is possible to perform looping in JavaScript. However you cannot do certain actions like pressing a script button for each selected row, for instance.
In Personas 3.0, you can pretty much do anything you want since the scripting engine uses JavaScript and you can rely on JS functionality to have much more freedom, including pressing buttons. -
How to display line items twice in a single page in sap script
HI,
I am working on check printing. I copied the standard driver program and form to Zprogram and ZForm. Which are RFFOUS_C(print program) and F110_PRENUM_CHECK(Form Name).
I want to display the line items twice in the same page and sub sequent pages.
Currently I am able to display line items only once.
Example:
PAGE1.
line item1
line item2
line item3
line item4
line item5
line item1
line item2
line item3
line item4
line item5
line items 1 to 5 which are in main window.
How to achive this problem.
Regards,
vinodHi
I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more.
Best regards
JD -
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
Thankshi ,
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.
Maybe you are looking for
-
I'm not sure where to post this, so here is as good as any when you're indecisive I hope ;) The problem I'm having is that I don't have TOC links in the PDF when outputting from Word using 1-Step RoboPDF (Save as PDF) or printing to Adobe PDF. I'm su
-
Preloader not working !!!
Hi All, I used 2 preloaders code, but both are not working !!!, what problem with this code ? script 1 stop(); this.addEventListener(Event.ENTER_FRAME, loading); function loading(e:Event):void var total:Number = this.stage.loaderInfo.bytesT
-
How to view performance in Oracle10gAS Portal
hi to all I need your help out there. Do anyone noe how to view all the performance logs in Oracle10gAS Portal? It means in Oracle10gAS how can i see all the no. of hit counter for per page, the most popular website/portlet at the end of the day, por
-
Want list of incoming emails to be larger not just email itself
Hi: I just reconfigured my email onto Thunderbird on my new mac (used it just fine on my old computer). I can barely see the list of emails in my inbox. I have figured out using the advanced setting how to increase the font size of each email when it
-
Can I disable "inspect sqlnet?"
In a recent Cisco Security Advisory (Advisory ID: cisco-sa-20131009-asa) there is a "SQL*Net Inspection Engine Denial of Service Vulnerability" identified. I plan to follow the upgrade process to resolve this, however, I will not be able to perform