Get no. of lines in sap script
I am using Command 'Address / End address' in sap script for printing address.
How do I get the Number of Lines we get from this command.
/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
/: ENDADDRESS
LINES
This specifies how many lines may be used for formatting the address.
If there are too few lines available to allow all the address data to be formatted,
then the data specified in the PRIORITY parameter are omitted.
If there is no LINES parameter and if this command is in a layout set window of
a type other than MAIN, then the number of lines available for formatting
the address are automatically calculated based on the current output position
and the size of the window.
Similar Messages
-
How to delete a line in SAP Script
Hi,
How to delete a line in SAP Script.
Cheers
S KumarOkay.if still you are looking the option of deleting line there is one solution.
Just delete the all contents of perticuler(which needs to deleted) line including the tag column(Where you are /*) and save.if you see again than line would not be seen as blank,you will found it has been deleted. -
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 -
I want to write data in 10th line or 20th line in sap scripts
i want to write data in 10th line or 20th line in sap scripts,how can write it
Give 10 line feeds in your Paragraph Formats
then write your Data there &DATA1&
again give 10 line feeds and write your data2 there
Reward Points if helpful .
Regards,
Ismail -
Dotted vertical line in sap script
Hi all,
Can anyone help me drawing dotted vertical line in sap script?
Thanks in advance.
bipenhi,
u can use
for a horizontal line---
&ULINE(71)&
for a vertical line---
&vline&
regards,
krishna -
BOX command does not print vertical/horizontal lines in SAP Script
Dear all,
in sap script we are using the BOX command to draw some boxes. DUring the print preview, all the boxes look
just fine including horizontal and vertial lines. But, when we print the output, I get the output minus
the vertical lines and some horizontal lines.
Regards,
rukku
Edited by: Rukmangada Reddy Ramala on Mar 23, 2010 2:23 PMHi rukku,
Which device type are you using?
Please have a look at SAP notes:
77976, 19807 and 183948.
Regards,
David -
Horizontal line in sap script o/p
how to get a horizontal
line at any desirep position in the output of sap scriptsuppose if my main window dimensions are
height 3cm
length 3 cm
width 3 cm
if i want horizonatl lin at xpos = o yposition= 2cm -
Blank line in SAP-Script Address
Hi all,
I'm desparatly seaching for a way to leave a blank line in a SAP-Script Address (sender Germany, address Germany) between the street (or PO-BOX) and the postcode - town line.
I'm using the SAP-Script address command:
/: ADDRESS
/: ENDADDRESS
In OY01 address-format for Germay is "015".
Everything I tried leaves to:
"Name
Straße
PLZ Ort"
but my customer wants:
"Name
Straße
PLZ Ort"
Help is appreciated.
Thanks.Hi Norman,
Ok. I got it . It is my mistake I though you need blank lines.
OK, in ADDRESS formating .
Please try command "/" or 'add a default paragraph Example : TD " between your entries.
Lanka -
Getting the error in the sap script
Hi,
I am running the Tcode f.26, which uses the standard sap script named F_DUZI_01. When running I am getting the error:
Element 0031 window INFO is not defined for
F_DUZI_01
Please suggest what should i do or what could be the reason behind the problem.Hi,
Check the Script whether that element is being used or not. Such errors raise when you called the elements in the program without delcaring in the script.
Please close the thread, if solved
Regards,
Aditya -
Hi,
I have a situation where I have to call a standard report from my custom report which is based on some condition.
This is fine. But the standard report which I am calling is print program of an SAP Script.
So, the requirement now is that my custom report should be able to send an email of the SAP Script output. For this I need to have the OTF data of the SAP Script in my custom report.
How to get this?
Your help will be highly appreciated.
Thanks,
-SandeepHi,
Go through these links,here they mentioned how to capture OTF data into internal table
http://scn.sap.com/thread/1083143 -
Hi Gurus,
Can someone help me count the number of lines in a sap script in a page.
Thanks in advance!Hi rajbans..
Try with this code....
/: DEFINE &COUNTER& = &Counter& + 1.
/: DEFINE &SAPSCRIPT-COUNTER_9& = 0
/: &SAPSCRIPT-COUNTER_9(+)&
I hope this will work but am not sure.
Thanks & Regards
Gopal.B -
How to break the command line in SAP scripts
Hi,
Can any one Please guide me how to continue the command line( /: ) of SAP SCPRIPT into multiple lines.
Regards
KiranHi Kiran,
U can continue in the same line itself by pressing SHIFT+F8
If u want it in the next line then u can give space in the tag column.
Thanks,
Vinod. -
Hi Experts,
can body let me know how can we underline for word or sentence in sap script out put?
Regardshi,
for undeline u can do it two ways.
1. create a character format and enable underline option and use it where u require
or
2. u can use keyword ULINE in coding part of script as
/: ULINE
IF HELPFUL REWARD SOME POINTS.
WITH REGARDS,
SURESH ALURI. -
How to avoid word cut when switching to next line in sap scripts
Hi,
i have long text in my sap transaction, i am fetching using READ_TXT, it contains 5 lines like below
Which is the output length of one line of text in the program
for theobject list print Text length equal to exactly 132 characters.
Which isthe output length of one line of text in the program for the object list print
Text length equal to exactly 132 characters.Which isthe output length of one line of text i
n the program for the object list print Text length equal to exactly 132 characters.
my script output line length is 132 chars., now i need to print in script without cutting the words when switching to new line.
how to achieve this functionality.
Thanks
SriniHi Srinivas,
You can use RKD_WORD_WRAP or TEXT_SPLIT FM to split the string into N character with out word break.
Regards,
Pavan -
Problem in changing the space between the lines in sap script
Hi,
I am working on a sapscript in which i have to decrease the widht of 2 columns but i am not able to understand how to do it. i go to the info part of script saw d coding like his:-
/E FINAL
C1 &i_final-count_c(3Z)& &i_final-text_c(24)& &i_final-result_c(8)&
&i_final-count_m(3)& &i_final-text_m(22)& &i_final-result_m(8)&
&i_final-nonconfirm_m(10)& &i_final-count_mi(3)& &i_final-text_mi(25)&
= &i_final-result_mi(8)& &i_final-nonconfirm_mi&
/* **** CHANGE THE NAME OF VARIABLE C, M AND MI RESPECTIVELY
/* FOR CRITICAL PROPERTIES
/: IF &I_FINAL-TEXT_C+24(16)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,,
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)&
/: ELSEIF &I_FINAL-RESULT_C+8(8)& NE ' '.
&temp(40)& &i_final-result_c+8(8)&,, &i_final-text_m+22(18)&
= ,, &i_final-result_m+8(8)&,,,,,,,, &i_final-text_mi+25(15)&,,
= &i_final-result_mi+8(8)&
/* FOR MAJOR
/: ELSEIF &I_FINAL-TEXT_M+22(18)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,,
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)&
/: ELSEIF &I_FINAL-RESULT_M+8(8)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,,
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)&
/: ELSEIF &I_FINAL-TEXT_MI+25(15)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,,
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)&
/: ELSEIF &I_FINAL-RESULT_MI+8(8)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,,
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)&
/: ENDIF.
/E BREAK
/: NEW-PAGE
Please provide me guidlines where i can make the changes to decrease the width of the lines.
Edited by: ricx .s on Apr 30, 2009 11:29 AMHi,
You can make changes in the offsets if it is not harming the display of the data...
for example
&i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,, " in this line you can reduce +24(16) to +24(10)
" or to something else where the display of data is not harmed
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,, " and also in this line +22(18) to +22(10 or 12) or
" something
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)& " in this line + 25(15) to +25(10 or 12)
" or something
and also in the line just after the final text element
&i_final-count_c(3Z)& &i_final-text_c(24)& &i_final-result_c(8)& " you can change the offsets
" which are there in the brackets where the display of the data is not harmed
&i_final-count_m(3)& &i_final-text_m(22)& &i_final-result_m(8)&
&i_final-nonconfirm_m(10)& &i_final-count_mi(3)& &i_final-text_mi(25)&
&i_final-result_mi(8)& &i_final-nonconfirm_mi&
Regards,
Siddarth
Maybe you are looking for
-
Adobe Product API for converting mulptiple formats into PDF and to Embed PDF into PDF ?
Hi Team, Is there any adobe product that allow us to convert multiple formats into .pdf format and also allow us to attach (embed) other pdf files object into a pdf, is there any .net API for that, I want to do this through programming. Regards Amit
-
How to save gifs in iPhoto?
Or something like that. I just got this computer yesterday, so it's all new and up to date. All of the questions on this that I have read have been from a few years ago and don't work with my computer. I love saving gifs, they're so fun! But I tried
-
I want to create a custom mask shape different from the ones supplied in FCP2. Ive been racking my brain on how to do this. I use CS3 Photoshop and Illustrator. In illustrator I created the shape I want, a tight round cornered rectangle in black then
-
I have a mid-2011 iMac running Mavericks. When I click restart the computer goes to a white screen with a spinning circle and does not go any further until I hold down the power button to turn it off. What do I do?
-
Can't install Acrobat Pro 10.0.0 with Standard 10.1.8
In my organization everyone is given Acrobat X Standard which has now been patched to 10.1.8, some users need the advanced features of Acrobat X Pro. I have used Adobe Customization Wizard to create a transform file that puts tells Acrobat to uninsta