PROTECT command in script
hi all,
I am developing reservation sheet, when i print the reservation the line items are printing different page.
I used the PROTECT command like this but still it is printing different page.
/E ELE1
/: PROTECT
/M1 itab-rspos,,itab-matnr,,itab-erfmg
/: ENDPROTECT
can any one plese tell me what was the wrong.
Kind Regards,
Kiran
Hi Kiran,
To allow you to define the areas to be protected against a page break on an individual basis, SAPscript provides the PROTECT.. ENDPROTECT command pair. If you enclose the text to be protected in these commands, then SAPscript will ensure that each line of this text is printed together on the same page. If the complete text fits in the space remaining on the current page, then it is printed on this page just as it would be if no PROTECT command had been used. If, however, the remaining space is not sufficient for the text, then the PROTECT command has the same effect as a NEW-PAGE command and text is printed on a new page.
Thus the PROTECT/ENDPROTECT commands may be regarded as a kind of conditional NEW-PAGE command, the condition being whether or not the lines enclosed between the two commands fit in the space remaining in the current main window.
Syntax:
/: PROTECT
/: ENDPROTECT
The text lines to be protected are enclosed between the two commands.
An ENDPROTECT command without a preceding PROTECT command has no effect.
If the terminating ENDPROTECT is missing, SAPscript assumes it at the end of the text.
PROTECT.. ENDPROTECT command pairs cannot be nested. If a second PROTECT command occurs before the first one has been terminated by an ENDPROTECT, it is ignored.
If the text enclosed by a PROTECT.. ENDPROTECT pair is itself too long for a single page, then a page break is generated immediately before the text and the text is printed in the normal way. It is then unavoidable that a page break will occur at some point within the text.
Hope dis helps.
kindly reward if found helpful.
cheers,
Hema.
Similar Messages
-
About control commands in scripts
hi abapers
can u plz tell about control commands in scripts uses of control commandsHi,
Control Command Purpose:
The purpose of these is to allow control of the output formatting. These commands are not interpreted by the SAPscript editor, but are passed through to the SAPscript Composer for processing. The Composer is the program that converts text from the form displayed in the editor to the form used for printing. This includes, for example, line and page formatting, the replacement of symbols with their current values and the formatting of text according to the paragraph and character formats specified.
The SAPscript control commands are described in the following sections.
<b>Syntax of Control Commands</b>
Explicit Page Break: NEW-PAGE
Preventing Page Breaks: PROTECT
Next Main Window: NEW-WINDOW
Assigning a Value to a Text Symbol: DEFINE
Formatting Date Fields: SET DATE MASK
Formatting Time Fields: SET TIME MASK
Country-Dependent Formatting: SET COUNTRY
Position of the Leading Sign: SET SIGN
Initializing Numbered Paragraphs: RESET
Including Other Texts: INCLUDE
Changing the Style: STYLE
Formatting Addresses: ADDRESS
Setting a Header Text in the Main Window: TOP
Setting a Footer Text in the Main Window: BOTTOM
Conditional Text: IF
Finding a Match: CASE
Calling ABAP Subroutines: PERFORM
Inserting Print Controls: PRINT-CONTROL
Boxes, Lines, Shading: BOX, POSITION, SIZE
Hexadecimal Data: HEX, ENDHEX
Summing a Program Symbol: SUMMING
Br,
Laxmi -
Cannot load Exchange Online Protection commands in Remote PowerShell
My colleagues and I cannot load the Exchange Online Protection commands in Remote PowerShell.
It just loads the Exchange Online cmdlets.
Where are we going wrong?
PS C:\Users\jmorrison> $UserCredential = Get-Credential
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
PS C:\Users\jmorrison> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.protection.outlook.com/powershell-liveid/
-Credential $UserCredential -Authentication Basic -AllowRedirection
WARNING: Your connection has been redirected to the following URI: "https://outlook.office
365.com/powershell-liveid?PSVersion=4.0&realm={I've removed my domain name for security reasons}.co.uk "
PS C:\Users\jmorrison> Import-PSSession $Session
ModuleType Version
Name
ExportedCommands
Script
1.0 tmp_4fnmyflw.she
{Add-AvailabilityAddressSpac...
PS C:\Users\jmorrison> Get-TransportRule
Get-TransportRule : The term 'Get-TransportRule' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-TransportRule
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo
: ObjectNotFound: (Get-TransportRule:String) [], CommandNotF
oundException
+ FullyQualifiedErrorId : CommandNotFoundExceptionI've moved MX records to EOP and seems to be fine all domain expect few.<o:p></o:p>
I can see that problematic domain has "-" between domain names.<o:p></o:p>
mydomain.com<o:p></o:p>
mydomain-com.mail.protection.outlook.com --> has no problem, however<o:p></o:p>
mydomain.usa.com<o:p></o:p>
mydomain-usa-com.mail.protection.outlook.com having issue <o:p></o:p>
when i checked in mx lookup it says MX record has NO A Record.<o:p></o:p>
any suggestions<o:p></o:p> -
Different parameters for different sheets- Command Line Script
Hi,
I am using command line script to run my discoverer report.
I have 5 sheets in the workbook out of which, 2 has a PeriodID parameter, and the other 3 sheets does not have parameters.
Is it possible to execute this scenario.
This is the script i use:
string8 = "C:\oracle\BIToolsHome_1\bin\dis51usr.exe /connect uname/pwd@instance /apps_gwyuid APPLSYSPUB/PUB /apps_fndnam APPS /apps_user /apps_responsibility Resp_Name /opendb workbook /sheet sheet1 /sheet sheet2 /sheet sheet3 /parameter PeriodID 2008004 /sheet sheet4 /parameter PeriodID 2008004 /sheet sheet5 /export XLS file_name /batch"
Your inputs are highly appreciated.
Thanks.Hi
No, you cannot do this. You have to supply the parameters to each worksheet separately, even though different worksheets may use the same parameter(s).
Best wishes
Michael -
Command Line Scripts in File Adapter
Hi,
In the file adapter, does the command line script support "PERL" Scripts.
thanks.
KrishnanYES It will support.
For clarification check below one.
/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
FTP channel - not processing files, coz one of the files is wrong, -
Best command for script backup?
hello,
i always use robocopy for file backup , but with powershell and the new technologies is still the easiest and best choice?Your initial question was "Best command for script backup?". For this you received an answer. If you now need support on the subject of your script then you should start a new thread. Note also that you must test your robocopy command from a
command line before trying to embed it in a PowerShell script. -
Using Address..End Address Command in Script ?
Using Address........End Address Command in Script , Is it possible to print without Name filed ? I have tried but w/o name field it is not printing ..
I liket to print like this
Address paragraph Z3
Street ...........................
PoBox.........................
City........................
End Address
can any1 suggest me?Hi,
If you want to print country specific then use
/: ADDRESS PARAGRAPH AS
/: ADDRESSNUMBER &EKKO-ADRNR(K)&
/: FROMCOUNTRY &T001-LAND1&
/: ENDADDRESS
Reward if useful.
Regards,
Nageswar -
hi experts,
anybody knows how to use summing command in script.
pl explain with an example.
Thanks!
Edited by: Ranganayahi Chandirasekaran on Mar 6, 2008 12:58 PMHi Chandirasekaran,
Try the following link,
Link: [http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb3d07455611d189710000e8322d00/frameset.htm]
Reward if helpful. -
Close_Form('XXE_F501_SCRIPTING_START'); this is a command in IESCLPKG.PLL WHEN I AM USING THIS COMMAND MY SCRIPTING WINDOW IS GETTING CLOSED BUT THEN ONE ERROR IS COMMING ,KINDLY GIVE ME IDEA TO DEBUG THAT ERROR
if (param_value = 'CLOSE_SCRIPTING_WINDOW') then
--go_block('VIEW_IB');
-- SET_WINDOW_PROPERTY('SCRIPTING_WINDOW', WINDOW_STATE, MINIMIZE);
--Set_Window_Property('SCRIPTING_WINDOW', VISIBLE, PROPERTY_OFF);
--hide_window('SCRIPTING_WINDOW');
-- GO_BLOCK('CTRL');
fnd_message.set_string('1');--nimish
fnd_message.show;--nimish
--Close_Form('XXE_F501_SCRIPTING_START'); -- Commented for Nova
fnd_message.set_string('2');--nimish
fnd_message.show;--nimish
Scripting_Util.EndScript;
end if;
THIS IS THE PLL CODE KINDLY GIVE ME A CLEAR SOLUTION.First: you should get a new keyboard. Seems your shift-key is stuck.
Second: A header of a post is a header and not for a summary of your question
Third: This is the forum for the tool SQL Developer. Please mark this question as answered and post again in Forms
Forth: When you expect an answer, the least would be to include the errormessage and your forms version.
Regards
Marcus -
Command or script to identify and delete the bitlocker partition
I am looking for some command or script to identify the bitlocker partition and delete it. Please let me know if anybody has any suggestions.
Hi,
I just want to know why you want to delete the BitLocker partition? If you mean the system reserved partition, it is not recommended to do like this, this partition contains not only the BitLocker component, but also the boot files. Deleting it would lead
into system startup failure.
Alex Zhao
TechNet Community Support -
[solved]Command line script to equalise volume levels of all mp3 files
Hello guys,
I have a bunch of mp3 files within a folder. Unfortunately they have unequal volume levels. Some of them are far too low, others too loud.
Is there a simple command line script to equalise all of them?
Regards
Robert
Last edited by orschiro (2012-12-30 17:44:59)I remember I found such a script a long time ago. I suppose it still works, here it is http://codepad.org/MLu1iscD. Please tell me if it works for you. By the way, it depends on mp3gain and python2-eyed3.
ps: As far as I can see, this script doesn't change the mp3 files itself, but stores the new volume in the id3 tag. This means, that you won't corrupt your files in any way, but the player needs to be able to get the volume information and adjust it. The script measures both the album and the track gain. Which one is used can be configured in the player.
Last edited by Army (2012-12-30 16:39:27) -
Firmware bug: SF220 "switchport protected" command missing
Hello!
We have SF220-48 switches and there are no "switchport protected" command:
sw-u1(config)#interface fa1
sw-u1(config-if)#switchport
access VLAN unaware port
default-vlan default vlan
dot1q-tunnel 802.1Q tunnel port
forbidden forbidden
general Configure switchport in general mode
mode port mode
port-security Configure an interface to be a secure port
trunk VLAN aware port
vlan VLAN
sw-u1(config-if)#
But show interfaces protected-ports command available.Hi Tim,
I saw this problem in 1.4 while not in 1.3.5.
Now there is a solution for this issue, which is to add the trunk native vlan setting to the user defined macro so that it will finally be recovered after reboot.
no macro auto user smartport macro ip_phone_desktop
# disassociated the user macro
macro name u_ip_phone_desktop
#macro keywords $u_native_vlan $u_voice_vlan
#macro key description: $u_native_vlan: The native VLAN for trunk
# $u_voice_vlan: The voice VLAN ID
#Default Values are
#$u_native_vlan = 10
#$u_voice_vlan = 30
#the default mode is trunk
smartport switchport trunk allowed vlan add $u_voice_vlan
smartport switchport trunk native vlan $u_native_vlan
no macro description
spanning-tree portfast
macro name no_u_ip_phone_desktop
#macro keywords $u_voice_vlan
#macro key description: $u_voice_vlan: The voice VLAN ID
#Default Values are
#$u_voice_vlan = 30
smartport switchport trunk allowed vlan remove $u_voice_vlan
no macro description
spanning-tree portfast auto
macro auto user smartport macro ip_phone_desktop u_ip_phone_desktop $u_native_vlan 10 $u_voice_vlan 30 -
Linux command/shell script to find Memory consumed by JVM in EBS,SOA
Hi All,
Could anyone please let me know the following:
a)Linux command/shell script to find Memory consumed by JVM for every 1 minute frequency interval in EBS R12, SOA suite
b)Percentage of the Heap memory usage by the JVM for every 1 minute frequency interval in EBS R12, SOA suite
Thanks for your time!
Regards,user10088255 wrote:
Hi All,
Could anyone please let me know the following:
a)Linux command/shell script to find Memory consumed by JVM for every 1 minute frequency interval in EBS R12, SOA suite
b)Percentage of the Heap memory usage by the JVM for every 1 minute frequency interval in EBS R12, SOA suite
Thanks for your time!
Regards,Please see these docs.
JVM: Guidelines to setup the Java Virtual Machine in Apps Ebusiness Suite 11i and R12 [ID 362851.1]
Generate JVM heap dump in E-Business suite 11i and R12 [ID 462550.1]
11i: How To Use Jconsole to Monitor JVM with Oracle E-Business Suite 11i [ID 415455.1]
Configuring various JVM tuning parameters for Oracle E-Business suite 11i and R12 [ID 567551.1]
Script to find Apache, Java, Jinitiator, Forms version and JVM details for Oracle E-Business Suite 11i [ID 466890.1]
JVM Memory Monitoring, Tuning, Garbage Collection, Out of Memory, and Heap Dump Analysis For SOA Suite Integration 11g [ID 1358719.1]
How to Perform Memory and Thread Analysis on SOA [ID 1450293.1]
Thanks,
Hussein -
Any good Power Shell command or script to see connected users in real time for Lync 2013
Are there any good Power Shell commands or scripts that can tell you how many users are connected to a pool in real time so you can evaluate the current load. I have 3 FE servers in a single pool. We just started deploying the lync client to the users and
were curious as to how many are actually connected. I saw a number of home made scripts but really didn't care for any of them. I just want to find out how many users that are actually connected to the pool at a particular moment so we can see how many users
are really using the product.Have you looked at Pat Richard's get-csconnections script?: http://www.ehloworld.com/269
Please mark posts as answers/helpful if it answers your question.
Blog
Lync Validator - Used to assist in the validation and documentation of Lync Server 2013. -
Re: using SEND command in script
Here is part of my login script.
Thanks,
Larry
IF "%LOGIN_NAME" = "SHIP2" THEN BEGIN
#Capture q=SHIPq NFF NB ti=10 nt l=1
END
SEND /A=N
EXIT
rem IF "%OS_VERSION" = "V7.00" THEN BEGIN
rem #capture /Endcap
rem END
rem IF "%OS_VERSION" = "V7.00" THEN BEGIN
REM EXIT
END
IF MEMBER OF "ACCOUNTG" THEN BEGIN
rem MAP INS S1:=C:\PVSW\BIN
END
MAP INS S2:=c:\windows
MAP INS S3:=c:\windows\command
EXIT ""
END
"Edison Ortiz" <[email protected]> wrote in message
news:[email protected]..
>
> Can you post your login script ?
> It could be an error with the syntax.
>
> --
> Edison Ortiz
> Novell Support Connection SysOp
> (No Email Support, Thanks !)The line "@ SEND /A=N" shouldn't serve any function.
SEND "Message" [TO] <user|group|server> [/B] [/A=N]
/B bindery mode (allows some additional options)
/A=N exclude yourself from the broadcast
SEND.exe stems from NetWare 1.x/2.x/3.x/4.x and has been replaced by the
Client32 broadcast functionality.
There are a couple of 3rd party replacements from the command line.
Wolfgang
"DareG" <[email protected]> wrote in message
news:[email protected]..
>
> I was wondering I can find information on the "SEND" command and the
> Switches? I have tried just about everywhere I can think of. It's not
> in the 6.5 Book I have either. The reason I ask is because we have it
> in our login script but no one seems to give a definitive answer to what
> it does.
>
> the line is "@ SEND /A=N" Yes, I know what the "@" is for! :)
>
>
> --
> DareG
> ------------------------------------------------------------------------
> DareG's Profile: http://forums.novell.com/member.php?userid=68413
> View this thread: http://forums.novell.com/showthread.php?t=177935
>
Maybe you are looking for
-
Need pointers on how to use SQLite in ADF Mobile applications
Hey, I am trying to develop an ADF mobile App. I am new to ADF mobile. I went through some of the tutorials but still need some clarification on how to use SQLite inside the application. Can i get a Data control out of it? Or is it just to read and w
-
Cannot see Networked computers and problems with WEP sign in
I recently installed a new HD (SAMSUNG HM500LI) into my 2.16GHz MacbookPro running 10.5.5 and transferred all my files using Apple's Migration Assistant. Everything seems to have been working fine until I tried to log in to a friend's wireless networ
-
Report output getting truncated in email attachment
Hello Gurus, My requirement is to send a report output as an email attachment. I have done the coding for this but have a small problem. In the attachment the report is getting truncated after certain length. Can you advise wats the problem ? Regards
-
Emails not displaying in full on iphone 4
My iphone 4 is not displaying any 'body text' or 'subject text' in email message - there is a 2-5 line preview on the inbox but when I open the message there is nothing to read Attachments are slow to come - or the emails they are on do not arrive at
-
Message Ordering with Message Listeners
We have three Message Listeners listeners listening to JMS Queue for processing messages sent to the queue. Let us assume the listeners as L1,L2 and L3. And lets says there are three messages that have been sub