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:Siva
Hi 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
Similar Messages
-
WRITE_FORM_LINES. Need to change the style when printing in the SAP Script
Hi Experts,
I am using the WRITE_FORM_LINES function module to write a list of numbers.
But I need to change the font of the numbers when printing it.
I have changed it_header-tdstyle = 'S_DOCUS1'...SAP standard one but I need to create my own style.
I have created using SE72 and has given my own defined Character and Paragraph formats.
when I pass through the function module there is no change in it.
I think I need to create a text object is .. Can any one explain me hw to create a text object
http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db827494511d182b70000e829fbfe/frameset.htm
CALL FUNCTION 'WRITE_FORM_LINES'
EXPORTING
function = 'APPEND'
header = it_header
window = 'MAIN'
TABLES
lines = it_serial
EXCEPTIONS
function = 1
type = 2
unopened = 3
unstarted = 4
window = 5
bad_pageformat_for_print = 6
spool_error = 7
codepage = 8
OTHERS = 9.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Waiting for u r replies...
Thanks,
Chaithanya KIn se75. go in change mode and click create button in application tool bar.
Now text object is something to which a text is attached, like, a material or a Purchase order etc.
Text format is like rich text format or plain text depending upon which an editor is invoked
Specify Editor application. SAP provides standard Editor application choose from one of them(TA or TN)
Line width
This attribute determines the line width to be used for this text in the text editor. A SAPscript text line may consist of up to 132 characters.
Save mode specifies how a text is saved in
dialogue task
When calling the corresponding save function, the system immediately writes the text module to the text database.
in update task
All changes to the text modules of a transaction are stored intermediately in a buffer. Only when the application object is updated does the system write the texts to the log file and, in the update task, stores them in the text file.
For not in text file
You can use SAPscript to edit texts that are not stored in the text database. In this case, SAPscript only returns the changed text table to the application program, which is itself responsible for storing the text -
I'm trying to print a poster I created and posted on my website, it was created in power point, saved as pdf, and uploaded using wordpress. It looks good online but is missing data when printed. It contains almost all the information except for about 6 lines, which happen to be important. Any thought are appreciated.
No its weird, everything was the same. I sort of resolved it, since he can view the PDF fine on his comupter but also wanted to print it, I just exported all the slides as JPEGS and made a new InDesign book with those on the pages and exported that as a PDF. Seemed to work for him, I just don't know what happened!
-
Print data at new line in SAP Scripts
Hi,
Is there any way that i can print data at new line in sap scripts. I am looping my data and its printing in the same line but i need to print it at new line. Is there any formating options or any command to do that.
ThanksThan you must take all the values from the internal table into the different variables and than print them.
In program:
READ TABLE ITAB INTO WA_TAB INDEX 1.
IF SY-SUBRC = 0.
VAR1 = WA_TAB-FIELD1.
ENDIF.
* read all the lines and fill the VAR variables
In SAPScript:
/E LINE_VAR
/P &VAR1&
/P &VAR2&
/P &VAR3&
/P &VAR4&
Regards,
Naimesh Patel -
How to print u0080 in SAP Script
Hi Experts,
I have one small issue, i want to print symbol in sap script. If i puts this an hardcode vallue, but its not accepting this symbol.
Plz anyone guide this, how to display and print the above symbel in script.
This symbol is not available in displayable charactor area also.
Point will be sure.
Regards,
MohanaForm to translate unicode symbol to superscript
you can use this in subroutine i think this may be usefull to you before that you need to select the radio button of super script in charecter format for that perticular format
FORM FORM_NAME TABLES inttab STRUCTURE itcsy
outtab STRUCTURE itcsy.
*Data Declaration.
DATA : V_TEXT1(320).
DATA: BEGIN OF ITAB OCCURS 0,
WORD(40),
END OF ITAB.
READ TABLE inttab INDEX 1.
V_TEXT1 = inttab-value.
REPLACE ALL OCCURRENCES OF '' IN V_TEXT1 WITH '<SP></>'.
READ TABLE outtab INDEX 1.
IF SY-SUBRC = 0.
MOVE V_TEXT1 TO outtab-value.
MODIFY outtab INDEX 1.
ENDIF.
ENDFORM -
Data passing from abap to SAP Scripts
Hi all,
I am facing a problem while passing the data from abap progrm to sap scripts.
I have designed asap script which contains the main window and the text elements.
I have to print the line item in the text element 'LINE_ITEM'
the following :
&wa_bseg-belnr& ,, &wa_bseg-wrbtr&.
In the abap code :
I have data in my internal table,
I have used the write_form
ELEMENT = 'ITEM_LINE'
FUNCTION = 'APPEND'
TYPE = 'BODY'
WINDOW = 'MAIN'
But When i execute the pgm my data is not disaplyed in the print.
What could be the reason,.
Please help me soon
Regards,
Priyahi can u check once the text element name in abap code and script main window 's text element name.it must be same
in script u have to give like this
\E LINE_ITEM
in program
u have to pass the parameters
ELEMENT = 'LINE_ITEM'
FUNCTION = 'APPEND'
TYPE = 'BODY'
WINDOW = 'MAIN'
reward points if useful.
Thanks,
Usha -
How to Hide Print Privew Option (Sap Script)
hi friends,
i dont want print privew option (SAP SCRIPT) after executing the program the report shows output directly insted of showing print privew option.
please reply.
thanks in advance.
regards,
bhaskarHello,
When using the OPEN_FORM
Set the field of the <b>
ITCPO-TDNOPREV = 'X'
</b>
VAsanth -
How to use print control in Sap script
I would like to use print control in Sap script.Actualy my problem I have security font Troy ECF. Using this font I would like to print amount field in Check printing.
we count download this font with sap .we talked to customer care they told we should hard code in sapscript. pls can any1 help on this how to do and how to use print control for this fonts.call this funcation. crate_text.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID =
FLANGUAGE =
FNAME =
FOBJECT =
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES =
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Printing checkboxes in SAP script
Hi,
I have a requirement where I need to print checkboxes for all the items displayed in SAP Script output.
Is there any way to print checkboxes in the output document?
Regards,
Rajesh BhogiHi Rajesh,
Below link can be useful for you:
How to print u0080 in SAP Script
Hope this will help.
Regards,
Nitin. -
Search print program and sap script
hii , how can i find trigring print program and sap script for a particular purchase order.
regards Aditya
Edited by: aditya shrivastaba on Apr 14, 2008 9:59 AMHey,
First go with Me22 or 23 with po that you had, and then check with output type for that in the transaction. After that go to TNAPR table and check the corresponding form and print program.
Or else, go with NAST table in that put PO num in 123456 and put in OBJKY field in nast table. It will give you the output type of it, so that u can find the print program and lay out in TNAPR
Many thanks,
Raghu. -
How to know print program for SAP Script
Hi friends,
how to know print program for SAP Script form name ?Hi ,
You can use the following code changes in the layout & see..
You have to create a program Z_BC460_EX4_HF for that..
/:PERFORM GET_NAME IN PROGRAM Z_BC460_EX4_HF
/: USING &CUST&
/: CHANGING &NAME&
/:ENDPERFORM.
Dear &NAME&
The ABAP routine could be defined as follows:
IMPORTANT: The structure itcsy must be used for the parameters.
REPORT Z_HENRIKF_SCRIPT_FORM .
tables scustom.
form get_name tables in_tab structure itcsy
out_tab structure itcsy.
read table in_tab index 1.
select single * from scustom
where id = in_tab-value.
if sy-subrc = 0.
read table out_tab index 1.
move scustom-name to out_tab-value.
modify out_tab index sy-tabix.
else.
read table out_tab index 1.
move 'No name' to out_tab-value.
modify out_tab index sy-tabix.
endif.
You could also fill the ouput parameter table this way
READ TABLE out_par WITH KEY 'NAME1'.
out_par-value = l_name1.
MODIFY out_par INDEX sy-tabix.
endform. -
Is any request number generates when i create a sap script??
hi Gurus
I want to know Is any request number generates when i create a sap script??
if it is generates then how to find that request number???Hello,
A simple solution to find out the request number if thisis not released is, logon to SAP system with diffrent user ID other then the request owner's ID, a pop up message appears informing whether to create a new task under the xisting TR number.
If the TR i already released, then go to table E071 table and pass the object name. you can find all the related Tr's for the object. -
What is print program for sap script?
some of the print program of sap script.
and also guide me to use that programfor which sapscript ?
you can use table TNAPR to find the print program and layoutset for output types. Maybe it will help you.
regards,
Hans -
Sending Userid when printing job from SAP
Is there a way to send a userid when printing from SAP? In order to control printing costs we are requiring user codes to be input to the printer before a job will print. The windows operating system is capable of sending the codes needed to the printer., Can the SAP application send a user codes ?
I don't think so directly unless you use LOCL and capture the Windows user ID, though I'm no printer expert. You may need to generate reports in SAP but then you're never guaranteed that the spool that was released to Windows was actually output. We have Equitrac boxes on all of our shared corporate printers. When the print comes out directly from SAP, the only identification as to where the print came from, other than the name of the Windows print queue, is the generic underlying SAP system user (not the SAP user ID). We can't track the cost unless the user actually logs into the box to use the printer/copier.
For our high volume color and black/white printers in our data center, we chargeback the print costs based on the Windows queue that the print came from. As you probably know, you can have many SAP print queues/devices that point to the same physical printer. We name all of our queues such that the using company/department/application is easily identified and our operators track the costs in that manner. -
How to deal with Print Controls in SAP SCRIPT
Hello All...
I have two requirement in SAP SCRIPT for which I will need to use PRINT CONTROLS.
1) To print a window with 90 degree rotation
2) In the same window I wanted to have black background and white text printed on it.
For rotating the text,
Primary basis I created two Z print controls using SPAD.
One to rotate with 90 and another to rotate with 0.
In SPAD I assigned \e&a90P and \e&a0P respectivaly in device type.
Now in sap script window I specified below commands...
/: PRINT-CONTROL Z90
= TEST
/: PRINT-CONTROL Z00
but in the SP01 the text is still printing Horizontally...
Also Is there any standard print controls which set backgroud to black for specific window.
and how to use that?
Please help me to resolve this issue.
Thanks in advance,
ShwetaHi,
Occassionally, when you make frequent changes to your SAPScript, the system can get out of sync.
When you view the form, the old data get display without your changes.
This can be fixed by deleting the SAPScript LOAD with program RSTXDELL.
Hope it helps.
Reward if helpful.
Regards,
Sipra
Maybe you are looking for
-
ITunes 9 install issues, now iTunes won't install at all. (Vista 64-bit)
I tried to upgrade to iTunes 9 today but it failed to install using the auto-update tool, so as the tool suggested, I tried going manual. It installed, but gave me the "iTunes requires a newer version of Apple Mobile Device Support." error every time
-
Transactional entry processors?
Does the new "full XA support" also makes it possible to roll back changes performed using entry processors or is it still only "put/putAll" operations that are possible to perform transactionally ? /Magnus
-
Bonded warehouse moement capture
Hi friends I am not from MM, and hence i need some basic inputs... The requirement is to records all the materials movement in an out of a warehouse. Is the a way that could be done. I don't wont to reocrd movemnet whichh would happen within the war
-
Manage my alerts and reminders not showing in personal settings in project server 2013
I as an administrator can see the Manage my alerts and reminders in personal setting in the server setting page. Other than administrators, no body else can view this option. For example, a user who is assigned to the team members group with the My t
-
I would like to get the password for Marley 11 guest
Please can I get the password for Marley 11 guest