Aligning data in sap script
hi guyz,
how can i align data in sap script with spaces between..
regards
Hi,
you have to create paragraph formats for this, in paragraph format you can define tab sapces.
use that paragraph format in command box of ur window editor, where ever you want the space just use ',,' which will apply tab space (the sapce you have declared).
reward if useful,
Thanks,
Sreeram.
Similar Messages
-
Drawing Table & Displaying Data in SAP Script : Data Alignment probelm
Hi Experts,
I am Developing An SAP Script in Which Had to Display Data in a Table with Three column & multiple rows, i had created the Table using BOX Command in SAP SCRIPT & assigned a TEXT Element to it & calling this text element while Looping in WRITE_FORM FM.but while displaying DATA in One column the data in another columns shift to the right & if the data in 1st column is less the data in the second column shift to the left. i know these issues had been covered in the past but i am not getting any concrete results from searching in the forum.
Also On more problem when ever i am declaring a text element in some other window & also giving the Command BOX inside it to draw outline the BOX is not drawn.
This seem to be an alignment issue . Experts Please provide me with some alternative.
Thanks & Regards
Priyesh ShahHi ,
To stop columns going left and right.Use number of position in the variable .Like fix the lenght &name(10)&.Here name can print 10 characters.
For box not appearing in other window check the box command parameters .It will draw.Not a alignment problum. -
HI, Alignment Problem in SAP Script
Hi Friends
I am working on SAP Script, I have the problem alignment, in the first row I need to show 8 values,
among them all the times length is not same, so my script is not displaying in proper alignment,
I have tried with all the ways which I known, specifying the length, and using (*), but still it is not
coming properly, is there any method to specify the position exactly like as in reposrting.
Please help me in this, this is very urgent.
Thanks and Regards
PraveebHi Nagesh
Thanks for your reply,
I am displaying in the first row, here I am mentioning the filed and lenght of the field
1) Date(10)
2) Reference No(16), .
3) Fiscal Year(4),
4) Internal Reference(3),
5) Item Text (50)
6) Due Date (10)
7) Original Currency(3)
8) Amount (18).
In the field item text length is vary from each entry, it wont be static all the times, if one customer having having 10 records, all ten line items are not coming in the proper order, after displaying the item text, remaining fields are running out from the alignment. I am using tab space as 2 characters, I kept even so many conditions on the item text lenght, but still there are problems. I tried with specifying the length in
the script for the symbols also no use and I passed (*), this is also not working properly. Here I am sending the code of my script. Please have a look and give me a suggestion please.
bold Heading bold
Date,,,, ACR Ref No,,,, UW- Inst- Cedant,,,,,,,,,,
,,,,,,,,,,,,Due Date,,,, Original-,,,,Amount
&wa_final-date(10)&,,&wa_final-xblnr(16)&,,&w_year(4)&,,
&wa_final-xref1(3)&,,&wa_final-sgtxt(50)&
,,,,,,,,&wa_final-zfbdt(10)&,,,,&wa_final-waers(6)&,,,,&w_amt3(18)&
&wa_final-date(*)&,,&wa_final-xblnr(*)&,,&w_year(4)&,,
&wa_final-xref1(3)&,,&wa_final-sgtxt(*)&
,,,,,,,,&wa_final-zfbdt(*)&,,,,&wa_final-waers(*)&,,,,&w_amt3(*)& -
Passing data to SAP script from print program-VF03
Hi All,
I have a stand alone print program which ahs the invoice number in its selection screen which when entered displays the layout of invoice by using a sap script.
Now since I have to get this layout displayed from VF03, I have added the program, sap script name and a subroutine which contains the code which was initially there under the start-of-selection event in the stand alone program, in NACE. I have replaced the selection screen parameter for invoice number in my program with nast-objky which contains the invoice entered in vf03.
But when I am entering the invoice in vf03 and selecting print preview, the data is getting captured in the internal table defined in my program but the same is not getting reflected in the layout displayed. So I am always getting the blank values in the output though I did not modify the original sap script at all. Pls help.Keep a breakpoint in your print program and see if your program is being triggered indeed. Do not forget to start Update debugging, otherwise it will not stop in your print program.
Regards,
Ravi -
Alignment problem in SAp Script
Hi All,
I am quite new to ABAP. I was working in .net for two years. I am developing an
SAP script which includes table layout. No my problem is that certain texts in certain columns is so longer that the alignment get distorted. Is there any way in sap script by which we can bring down the text to next line if the text length exceeds certain limit. In web development it is possible to display like that and i hope it is possible in sap script also. Could any one please help me?Hi,
First you need to consider the of the maximum possible length of each program symbol you are giving in the table layout. Depending upon that you need to create Tab spaces in "Paragraph formats" option.
Each tabspace will allocate certain length of space to each program symbol.
Plz reward if helpful.
Thanks,
Nagendra -
How to pass tables data from SAP script to the routine.
Hi,
I have standard program RPCTEAL0_01 which calls a SAP script form(Custom) to print the form.
Now I have to add some additional functionality to change the values in the form. Since it is custom form I can add ROUTINE and then pass the values to the custom program to modify the variables.
My concern here, I would like to pass the tables like RT,CRT to the custom program via form.
Is this possible? RT and CRT filled by standard progam.
Regarsd
Eswar
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Jan 20, 2009 9:06 AMHi, The suggested option is not working.
Actually I am using the below code in SCRIPT
/: PERFORM CAL_2008 IN PROGRAM ZHR_TEST1
/: USING &PER_NO&
/: CHANGING &W12&
/: ENDPERFORM
and calling form in ZHR_TEST1. But this will pass only variables. Now my requirement is to pass tables also. -
Hello Friends,
I have a report which prints Normal Tax invoice & Returns Tax, I modified this report just by adding one extra "delivery channel". The report call one more program which dose the printing job based on the delivery no.
The issue, I can able to see the header data in th the print preview of the tax invoice, and not able to see item level data.
Please help me how to resolve this issue.
Regards,
ShreekantHi,
You need to pass the line item data to the smartform/script. Please check in debug mode whether the data is passed correctly.
Best regards,
Prashant -
Dear All,
As per current layout already printing / display below information .
Name Already Printing
Street/House Already Printing
District Already Printing
City Already Printing
Region Already Printing
Post Code Already Printing
now I want
Name Already Printing
Street/House Already Printing
Street2 Need To Print
Street3 Need To Print
District Already Printing
City Already Printing
Region Already Printing
Post Code Already Printing
I have selected the data from adrc table.and it is selecting properly.
Now I have wrote in adress window is
street2 &adrc-str_suppl1&
street3 &adrc-str_suppl2&
but it is not printing in form.
when i debugg it. It shows ;TEXT command street2 stree3 is not defined.
please tell me what should i do?Hi
In SAP address details can be set in the minutest way but everything is not displayed while useing ADDRESS and ENDADDRESS because it gives priorities to fields. e.g. it will not display street or ther things if POBOX is given. These setting can be changed where you maintain the address. One method to solve your peoblem if you are using ADDESS and ENDADDRESS is to use LOCATION just before STREET field.
where you can assign Street to LOCATION and street2 to STREET.
Try if it solves your problem.
regards
Vijai -
Can we get back the SAP Script data
Hi friends,
I would like to know can we can get the data of SAP Script Forms ?i want to show it in PDF.
I did in same way for SMART FORMS, can i do with SAP SCRIPT FORMS also?Hell Shiva,
yes you can.
In OPEN_FORM you must set TDGETOTF='X' in the Options(Structure ITCPO).
Then you get OFTDATA in CLOSE_FORM.
CALL FUNCTION 'CLOSE_FORM'
TABLES
OTFDATA = itab.
After that you can do the OTF->PDF Conversion as you know it from smartforms.
Regards
Frank -
Same set of data should print twice on same page in SAP SCRIPT
Hi Experts,
I come across a requirement where I need same set of data in sap script should print twice as it is on same page.
and if first page overflow, then same scenario should continue till complete data is printed. Basically main window data should print twice in two blocks on same page.
E.g.
If I have 10 line item which is to be printed on top window on first page. Now I want that same 10 lines should be printed in a block below the first block. Data should flow similarly across multiple pages.
Hope my question is pretty clear. I am expecting suitable answers from experts.
Thanks in advance.
Regards,
VijayHi
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 -
SAP script printout alignment issue
Hi Experts,
I have facing one Script Printout Alignment issue.
SAP Script Form printing some Values in Table format.
While debugging( in debug mode ), I am getting the correct Alignment ( Proper table format with values ).
But in printout the Alignment( The vertical and horizontal lines are not printed properly ) is not correct.
Thanks in Advance.HI Glen Anthony,
I am not using any printer details.
from the Spol (SP01) I am checking the print priview.
Success in debug mode but not in Print.
Please suggest.
Thanks -
How to display in sap-script the data which is input in selection screen by the user.
Hii,
I want to display the data in sap-script that has been input by the user in selection screen.
Suppose the the user has done input for posting date from 25.1.2001 to 25.1.2005,what i want is to display this date in sap script.
How can i do it.
please help asap.
Regards.Hi,
If select-option name is s_erdat.
then from value will be s_erdat-low and to value will be s_erdat-high.
Arivazhagan S -
Hi Experts,
We have a requirement to download a SAP script output to MS Excel, we have tried the other possible formats i.e. PDF and RTF. But we have some drawbacks:
1. In <b>RTF </b>, we dont get the window borders and alignment is also missed.
2. In <b>PDF </b>we get the data exactly as the script output but the user wants to edit the downloaded output, which is not possible in PDF unless we use a 3rd part tool.
If any of you worked on <b>SAP Script to excel</b> download or have any suggestions on this issue, please post a reply.
Regards,
Hemanth G.Hi Hemanth,
Pls check out the following thread.
To transfer data from sap script to excel sheet
Award points if found useful.
Regards
Indrajit -
Problem in SAP Script Printing
Hi All,
We are having a very strange problem while passing the data in SAP Script.Actually we are doing the Script of Payment Advice(FI/CO),but while calling the Function Module 'RSPO_RID_SPOOLREQ_LIST' in the driver program the values are lost.I have debugged it but right after the execution of 'RSPO_RID_SPOOLREQ_LIST' when the spool is generated, the variables are lost with the data they contain!!!As a result nothing are coming in Payment Advice Script.
Can anyone plz help me out!!!
Thx in advance.
Regds.
Atrai.Hi,
You have to ensure that its called only in case of print and not otherwise and may be this piece of code helps:
check tab_ausgabe-spoolnr ne space.
refresh up_list.
up_list-id = tab_ausgabe-spoolnr.
append up_list.
call function 'RSPO_RID_SPOOLREQ_LIST'
exporting
id_list = up_list[]
exceptions
others = 0.
Regards,
Satya -
Issue in alignment of PE51 data when printing it in SAP Script
Hi Experts
I have a SAP Script which is used to print Check at the top and Re-numeration Statement at the second half via RFFOUS_C program. The re-numeration statement is designed in PE51. The Check is designed in SAP Script and the PE51 form is printing inside the script using Main window/ Text Element : 525-HR.
The FM RP_IMPORT_PAY_STATEMENT is used inside the RFFOUS_C program which returns the table PFORM and the contents of the PFORM is exactly the re-numeration statement data and are getting printed one by one in the script using the variable REGUD-TXTHR. My object is fine with all the above said things. Only issue is with the alignment which is weird in SAP Script for the re-numeration part. But when I look into PC00_M10_CEDT (TCODE to view re-numeration statement) the output of designed PE51 form is good with proper alignment.When it is printed via script the alignment is not good at all.
There is some differences in the formats of printing between PE51 and SE71. Do not know what exactly it is. How I can resolve this issue?
Thanks
Siva
Message:SivaHi Madhu,
Sorry for the delayed response.See the below screen shot.This is how it prints now.The amounts are not aligned.Increasing the line spacing will increase only the space between the lines and i am using same character format for the variable REGUD-TXTHR.I would like to align them.
Thanks
Siva
Maybe you are looking for
-
my iphone 4 says activation required and then connect to itunes and when i try to connect it wont what do i do (i cant use it at all) :'(
-
Gathering statistics manually in 10g !!
Hi, all. The database is 2 node RAC 10.2.0.2.0. By default, 'GATHER_STATS_JOB' job is enabled and it takes statistics of "ALL objects in a database" every 22:00 on a daily basis. (objects that have changes more than 10% of the rows). I found that the
-
What software can I put on my iPhone so no one can hack into my phone
I think my iPhone has been hacked. Can anyone tell me what software I can put on my iPhone so I know my phone will be safe and no hackers will get into my phone? There has been weird stuff happening on my phone for example, my phone shuts off, my ph
-
Hi, in my current project I need to distribute CRM businesspartner information using XI. The business partner data in CRM has been enhanced with customer specific fields which obviously also need to be sent. I'm planning on creating my own SWCV which
-
HttpProxyServlet need run-tim NOT deploy-time configuration
HI, I've looked through a lot of the traffic and haven't seen anything along the lines of this question. I have a system which we compile and build and then start up in a specific mode (i.e. production, development etc). All of the config is done at