How to display the page no in script
HI,
Can any one tell how to display the page no's as follows in Scripts.
current page/total no.of pages(ex:1/10)
Hi,
For Smartforms:
Just insert fields: &SFSY-PAGE& and &SFSY-FORMPAGES&.
Page: &SFSY-PAGE& of &SFSY-FORMPAGES&
For Sapscript:
Just add: &PAGE& and &SAPSCRIPT-FORMPAGES&
Page: &PAGE& of &SAPSCRIPT-FORMPAGES&
Regards,
Edited by: Jatra Riwayanto on Jun 4, 2008 9:33 AM
Edited by: Jatra Riwayanto on Jun 4, 2008 9:34 AM
Similar Messages
-
How to display the Page Numbers in AP Check Print Report
Hi
I am using <?for-each@section:G_CHECKS?> at form field. But It did not works for me.
Please guide me inthis regard.
Thanks
NamithaIn your case,
<?for-each@section:G_CHECKS?>
Table (A word table)
Put the Form-Fields that you want to display
Just type 1 of 1 where you want to display the page number.
End Table
<?end for-each?>
Now on Microsoft Word
Go to Insert -> Page Number -> Format
Select Number Format: 1,2,3.....
Under Page Numbering: select Continue from previous section
That should do it.
Thanks,
Shaf -
How to display the column headings in Script
Hi Experts,
I am getting the script output like as follows.
000001 aaaaaaa
000002 bbbbbbb
but I want to maintain the column headings for these like
Material description
000001 aaaaaaa
000002 bbbbbbb
Please tell me how to maintain the headings for script ouput.
Thanks & Regards,
Nagaraju C.In the main window,
/E Item Header
HD Material,, Description
/E Item Line
HD &ITAB-MATNR&,, &ITAB-MAKTX&
HD is the paragraph format for which you have to maintain the tabs, margins etc.,
Thanks,
Srinivas -
HOW TO DISPLAY ALTERNATIVE PAGE NO IN SCRIPT AND SMART FORM
HI, I HAVE TEN PAGES IN SCRIPT AND FORM, I HAVE TO DISPLAY PAGE-NO IN FIRST PAGE AND 2 PAGE NO NEED TO DISPLAY AGAIN 3RD PAGE HAVE TO DISPLAY. HOW TO DO THIS
hi......
In Smart forms u have use "ALTERNATIVE" option for printing alternative page numbers.
In Sapscript use coding to solve this problem,
if ( &page& mod 2 ) = 0
&page&
endif
Regards,
ARUN. -
HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS
HI,
HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS?in ur script main window
/: IF &TTXSY-PAGE& = 15.
ur text or standard text
/: ENDIF.
use this.
hope it helps if any issues revert back -
How to clear the page number in the Script
Hi Guys,
I have developed a Script, the same output I need to display with three times with different heading, right now I am able to display the three time with different heading, but the pages are displaying like 1,2,3,4,5,6.
I need to display the page number 1,2,1,2,1,2, once the heading changes, I need to display page number from I, but I could not able to clear the Page number, could any one please suggest how to create the page number in LAYOUT.
Thanks,
Gourisankar.Sloved
-
In sap scripts how to display the driver program
Hi,
I Want to know the sap scripts How to display the output to driver programHi,
Go to NACE Transaction.
Select application for ex: if sales V1.
Click on output types.
Select the output type for ex : BA00
Double click on Processing routines.
There you can find the Driver Program name and Script/smart form name.
Reward if useful.
Thanks,
Raju -
How to display the number of line items in sap-script report?
Hi friends,
I need a help regarding the SAP Script. In my script (report) I create two pages and created three windows (MAIN, HEADER, FOOTER) for each pages. Now the problem is while displaying the fewer line item which can come under the main window of the 1st page these line items are comming perfectly but for the remaining line items that comes on the second page the table headings and the boexs are not comming.
Also it is displaying the total and the amount in text in every pages that should be display in last page.
Here if I eleminate or comments the total and the amount in text for the first page the same is reflected in second page. Also I need to display the page-nor for each pages to displayed.
I am requesting all the people out there kindly help me to solve this issues.
Thanks and RegardsThere is no pre built solution for this. But we can show total pages in the report body.
one way is Create a other column in the report with code sum(count(1))/25. that gives you total number of pages. 25 here is no of rows in each page. The code you can write in narrative "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
If you are using pivot tables, you can try this.
http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
- Madan -
How to display the contents of a document set on a page?
I want to display the contents of a document set (that contains both folders and files) on a page (with the same structure as they are in the document set like folders and files). How to achieve this?
I tried content search webpart but it is of no use as it displays the flat list instead I need folders and files as they are present in the document set
I tried document set contents webpart but as it doesn't accept any connection, it is not of much use.
I will be glad if you have any pointers for me in this regard.
Regards
KesavaHi Kesava,
According to your description, you might want to display the content in a document set with its hierarchy.
How about using
Page Viewer Web Part to display the page of the corresponding document set? This would be a non-code solution I would recommend.
More information about Page Viewer Web Part:
https://support.office.com/en-nz/article/Page-Viewer-Web-Part-e364436c-0ec4-4819-acac-1982b3525531
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
contact [email protected]
Patrick Liang
TechNet Community Support -
How to display the content of a region on a different page
Hello,
Does anyone knows how to display the content of a region on an other page. I try to make page that displays content that resides somewhere else in my portal, so I can give a summarization of some hot topics. I really want to display the whole content of some regions (not a display with custom search).
Thanks a lot,
HansSet that page as portlet, include it in a region in another page and in the edit defaults decide which regions you want to display.
Mere. -
How to display the content of a BLOB column in a ADF/BC pages ?
How to display the content of a BLOB column in a ADF/BC pages ?
There is some image in database table blog column. And we want to display image on the screeen.
There is some example about upload and dowload blog columns.
(steve not yet document example page etc...)
But We want to display blog picture in a image component...
is there any basic way to do it ?
Thanks a lot...Ali,
You could just download the sample app... but... here is the servlet code from the demo (look at it just for technique - you'll obviously have to change it for your needs)...
John
package oracle.fodemo.storefront.servlet;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.servlet.*;
import javax.servlet.http.*;
import oracle.jbo.ApplicationModule;
import oracle.jbo.Key;
import oracle.jbo.Row;
import oracle.jbo.ViewObject;
import oracle.jbo.client.Configuration;
import oracle.jbo.domain.BlobDomain;
import oracle.jbo.domain.DBSequence;
import oracle.jbo.domain.Number;
import oracle.jbo.server.ViewObjectImpl;
public class ImageServlet
extends HttpServlet
private static final String CONTENT_TYPE =
"image/jpg; charset=windows-1252";
public void init(ServletConfig config)
throws ServletException
super.init(config);
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
response.setContentType(CONTENT_TYPE);
response.setContentType(CONTENT_TYPE);
String detailProductId = request.getParameter("detail");
String thumbnailProductId = request.getParameter("thumbnail");
boolean thumbnail = true;
String productId = null;
OutputStream os = response.getOutputStream();
String amDef = "oracle.fodemo.storefront.store.service.StoreServiceAM";
String config = "StoreServiceAMLocal";
ApplicationModule am =
Configuration.createRootApplicationModule(amDef, config);
ViewObjectImpl vo =
(ViewObjectImpl) am.findViewObject("ProductImages"); // get view object (the same as used in the table)
if (detailProductId != null)
productId = detailProductId;
thumbnail = false;
else
productId = thumbnailProductId;
vo.defineNamedWhereClauseParam("paramThumbnail", null, null);
vo.defineNamedWhereClauseParam("paramProductId", null, null);
vo.setWhereClause("DEFAULT_VIEW_FLAG = :paramThumbnail AND PRODUCT_ID = :paramProductId");
vo.setNamedWhereClauseParam("paramThumbnail", (thumbnail? "Y": "N"));
vo.setNamedWhereClauseParam("paramProductId", productId);
vo.executeQuery();
Row product = vo.first();
BlobDomain image = (BlobDomain) product.getAttribute("Image");
InputStream is = image.getInputStream();
// copy blob to output
byte[] buffer = new byte[10 * 1024];
int nread;
while ((nread = is.read(buffer)) != -1)
os.write(buffer, 0, nread);
os.close();
vo.setWhereClause(null);
vo.removeNamedWhereClauseParam("paramProductId");
vo.removeNamedWhereClauseParam("paramThumbnail");
Configuration.releaseRootApplicationModule(am, false);
} -
How to display the JSP output in the same page....
im new to JSP..... can anyone tell me how to display the output of a particular JSP page in the same page itself...... if anyone could send a small sample code it will be very useful for me....
thanks in advance
regds
Krish......Hi Robert -
When you say you are writing a template-based Renderer, do you mean that you are creating a custom look and feel and replacing the header Renderer? If so, I'd recommend instead simply creating your own template (not template-based Renderer), and reference your template directly from your uiXML pages where you want to insert the timestamp.
You'll probably want to write a method data provider which calls System.currentTime(), convert the result to a date, and then use Java's date formatting capabilities (see java.text.format.DateFormat) to produce a user presentable String that you can return from your data provider.
For more info (and samples) on templates and data binding, see the "Templates and Data Binding" section of the "Includes and Templating in ADF UIX" help topic:
http://tinyurl.com/5b7bf
Andy -
How to display the eror message in the iView
Hi
I want to check the user input in the client side and display an error message in the iView instead of displaying the error message as an alert
it is ok when I tried to do it as an alert
alert('ERROR MESSAGE');
but the problem is how to display the error message as a text in the iView ...
I wrote the below code..
any one can see it and has any sugestion?
Thanks
=============
<%@ taglib uri="tagLib" prefix="hbj" %>
<%
String compid = "";
String message = "";
%>
<hbj:content id="MyContent">
<hbj:page title = "Selection Screen">
<hbj:form id = "myForm">
<br>
<br>
<br>
<center>
<H3>Benefits Statement </H3>
<H4>Selection Screen</H4>
<hbj:gridLayout
id="FSSLayout"
debugMode="False"
width="40%"
cellSpacing="5"
>
<hbj:gridLayoutCell
rowIndex="1"
columnIndex="1"
width="10%"
horizontalAlignment="LEFT"
style="WildStyle"
>
<hbj:label
id="label_inputPernr"
required="TRUE"
text="Personal Number:"
design="LABEL"
labelFor="inputPernr"
/>
</hbj:gridLayoutCell>
<hbj:gridLayoutCell
rowIndex="1"
columnIndex="2"
width="40%"
horizontalAlignment="LEFT"
>
<hbj:inputField id = "inputPernr"
>
<%
compid=MyContent.getParamIdForComponent(inputPernr);
%>
</hbj:inputField>
</hbj:gridLayoutCell>
<hbj:gridLayoutCell
rowIndex="10"
columnIndex="1"
width="40%"
horizontalAlignment="CENTER"
colSpan="2"
>
<hbj:button id = "myButton" text="Submit.." design="EMPHASIZED"
tooltip="Click me to submit this form" onClick="ClickEvent" onClientClick="validRequired()">
</hbj:button>
</hbj:gridLayoutCell>
</hbj:gridLayout>
</center>
<p font="Arial" size=20><%= message%></p>
</hbj:form>
<SCRIPT LANGUAGE="Javascript">
function validRequired()
var myvar = document.getElementById('<%=compid%>').value;
var ivID='<%=componentRequest.getComponentContext().getContextName()%>';
if (myvar = " ")
message = "Enter Employee Number";
ivuRefresh(ivID);
htmlbevent.cancelSubmit=true;
</SCRIPT>
</hbj:page>
</hbj:content>No problem, here is an example of some html code and javascript that you can adapt to your needs. You can display this standalone to see how it works.
I hope this helps
<html>
<head>
<script language="JavaScript">
function validateForm(){
if(document.getElementById("nameField").value == "")
document.getElementById("errormessage").innerHTML = "Please enter the Name";
else if(document.getElementById("ageField").value == "")
document.getElementById("errormessage").innerHTML = "Please enter the Age";
else if(document.getElementById("idField").value == "")
document.getElementById("errormessage").innerHTML = "Please enter the id";
else
document.getElementById("errormessage").innerHTML = "";
</script>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Name</td>
<td><input type="input" id="nameField" name="nameField"></td>
</tr>
<tr>
<td>Age</td>
<td><input type="input" id="ageField" name="ageField"></td>
</tr>
<tr>
<td>Id</td>
<td><input type="input" id="idField" name="idField"></td>
</tr>
<tr><td><font color="red"><span id="errormessage"></span></font></td></tr>
<tr><td><input type="button" name="validate" onClick="validateForm()" value="Click to validate"/></td></tr>
</table>
</body>
</html> -
Dynamically display the page numbers on forms
Hi,
I have 10 pages in a form with the common footer section/fap in all pages. I used the common footer section to maintain the consistent left and right footer (having State specific footer information) on all ten pages. But I would like to display the page number dynamically based on page number as specified below:
For example, for page 1, it should display the footer as Page 1A,for page 2 it should display as Page 1B, for page 3 it should display as Page 1C etc.,
Can anyone help me on this issue how can I dynamically display the page number based on the current page as per the above requirement.
Thanks,
Srini.
Edited by: 943696 on Jul 9, 2012 4:39 PM
Edited by: 943696 on Jul 9, 2012 4:44 PMIgnoring the fact that you have 10 pages that you want to label all as "page 1", assuming you have version 11.4 (? or higher) you might be able to do this.
Somewhere around that version the concept of "Print time" fields was introduced where you can define a field that will make a call-out to generate the value at the point in time when it tries to print.
You would name the field something like: ~DAL MyPageValue
Yes, with the tilde next to DAL and a space between DAL and the name of a script you want to execute that would do your calculation. As the previous reply mentions, you would have to keep track of your own page counter to know whether to append the 'A', 'B', 'C', etc. to the "Page 1" description you intend. -
How to print last page in sap script in ladscape format?
Hi all,
can any 1 tell me How to print last page in sap script in ladscape format?
Thanks In advance.
PravinHi Pravin Sherkar,
we can do this in SAP Scripts.
we need to create two pages, one of landscape and another of potrait.
now after filling the data at last we need to call the page which is of format landscape using START_FORM function module.
You can use condition &PAGE& = &FORMPAGES&.
Please check this link
Printing Portrait/Landscape in sapscript
Re: Landscape and potrait in same layout?
http://www.sap-img.com/ts013.htm
Best regards,
raam
Maybe you are looking for
-
How to enforce a login screen when running a Web Dynpro app?
Hello, In Web Dynpro for Java there is a way to set authentication property to true and by that enforcing a login screen in case someone is browsing this application outside of an authenticated context (for example, the portal). My question is: How d
-
Problems connecting Classic to TV via AV cables no picture just sound which is through Audio cable. If I change colour squence ie Red cable into Green socket, Blue cable into Blue socket & Green cable into Red socket I will get a picture but only in
-
Windows Sharing causing 50% CPU usage
I have an iMac Core Duo running 10.4.6, and a few weeks ago the Activity Monitor started showing both CPUs running at about 50% all the time. About 40% of the graph is green (User mode) and 10% is red (System mode) on both CPUs. In addition, there se
-
Scrollbar doesn't show up on the panel while dynamically adding JTextFields
I have a dynamic user iterface, where the JTextFields are added dynamically to a JPanel within the JFrame upon the click of a JButton. How do I use the JScrollPane so that the Vertical Scroll bar shows up for the JPanel as soon added TextFields go ou
-
Ho dimenticato la pwd del mio Mac e non riesco ad istallare le App come posso fare? I forgot the pwd of my Mac and I can't install the app, what can I do?