How to print dynamic text in a window
Hi All,
My requirement is to print the payement in a window and which will be dynamic and will span across multiple number of pages and there is a main window which i already using to display line item details. Please suggest if there is any possible way to do this.
Regards,
Ashwin.
Hi,
Just fill one internal table with the payment details & in the main window of ur smartform.Create one table node in the main window of ur smartform & loop ur table in it.
I hope this will help u.
regards,
rajesh.
Similar Messages
-
I need to print the text in secondary window in script
hi all,
how to print the text of purchase order (me22n) in script.
plzz explain with steps
thanks in adv
vidyaGood that you know how to use read_text...
In SAP script used it as shown below, in your script window call subroutine as shown below
Go through this example
Ex.
/: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>
/:USING &<field name>&
/:CHANGING &<field name1&
/:ENDPERFORM
Display &<FIELD NAME1>&
Then create subroutine pool program and you have to write the code.
FORM ><subroutine name> tables int_cond structure itcsy
outt_cond structure itcsy.
data : value(20), value1(20). "do your own declarations
Read int_cond table index 1.
value = int_cond-value.
***Use FM Read text and store the text in value1 and pass it back to SAPscript as shown below
Read outt_cond table index 1.
outt_cond-value = value1.
Modify outt_cond index 1.
ENDFORM.
Just rough idea given above.
Close the thread if your question is answered and reward points to all useful answers.
Regards,
SaiRam -
How to print long text in scripts
plzzzzzzzzz answer this qestion
how to print long text in scriptsHi Kranthi,
You can create Text Id and include that in your script.
For example:
/E TEXT
/: INCLUDE ZTEXT OBJECT TEXT ID ST
Hope this helps.
Please reward if useful.
Thanks,
Srinivasa -
How to print the text in points wise in sap script
hi friends,
how to print the text in points wise in sap script.
ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
1. hai how ru.
2. what r u doing.
3.where r u.
like this i want numbering.. waiting for ur replys.
thanks,
kirandeclare a counter
data : cnt type char 4.
print :
cnt = cnt + 1.
&cnt& &text&
cnt = cnt + 1. and so on.
or.
if the data is in an internal table
loop at internal_table.
cnt = cnt + 1.
write form.
in script -&cnt& &text&
endloop.
Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM -
How to print the text in only last but one page in sapscripts
hiiiiiiiiiii,
explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?Hello,
The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
So u can handle the situation in ur form like this
/: if &PAGE& = &SAPSCRIPT-FORMPAGES&
p1 TEXT
/: endif
Try in this way it may help u.
Regards -
How to Print a text in bold format in a classic report ??
How to Print a text in bold format in a classic report ??
hi
u can use
<b>FORMAT INTENSIFIED ON.</b>
regards
ravish
reward if useful -
How to print a text in java?
How to print a text in java?
of corse, i have JTextField in my frame that i want to extract the text and print it on a paper with a printer.
-
How to print the texts retrived by using READ_TEXT fun module in Smartform
Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
I have coded all things in the program lines and in that i am retriveing the long texts.
I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text.
I have to print the trouble ticket. in that the notes log I have to pass.
its urgent. Points will be rewarded for any type of clue. whether it will work or not.There are a few ways to do it. If you need to take all of the text in the text type, in your SF text element choose "Include Text".
Populate the fields with the data that corresponds to the text type. It is similar to the interface to the FM "Read_Text.
Text Name
Text Obje
Text ID
Language
Encase any variables with the "&" symbol.
If you have already coded the call to the FM "READ_TEXT" and loaded the text into an internal table, create a loop and loop through the itab. Inside of the loop create a text element and add a variable in the text element for the field you are looking to output. -
How to print Arabic text along with the English in smartform ( ECC6 version
Hi All,
our is ECC6 version, Non unicode, ABAP stack ( not dual stack )
is it possible to print in Arabic language in the above version ?
if yes, then please let me know how to print Arabic text and English text in the same smartfrom.
i tried in the following procedures :
1) i created standard text (SO10) in arabic language.
i called in the smartform ( include text - i )
langage AR
but system throws error message saying, required language is not installed.
2) if i use READ_TEXT function module.
text getting printed in diff format but not in arabic.
waiting for your replies..ECC6 and Non-Unicode? I think you'll need multiple code pages, I doubt there's a mixed Arabic/Latin1 available. And I don't think SAP supports new MDMP systems any more. If you need to support multiple languages you really need to go Unicode. It's probably easier to do the Unicode conversion than to try to support multiple code pages and you have to make the switch eventually.
-
How to output particular text in main window only in first page
Hi experts how to ouput particular text in main window only in first page after that actual transaction data will be continued.....any ideas....Answers will be rewarded.....
Hi,
Try this.
/: IF &PAGE& = '1'
/: ENDIF
Thanks,
Naren -
I need to know how to print a text meassage to my printer?
I would like to know if anyone knows how to print a text message from your phone or from the pc?
1. Another option is using the "Google Cloud Printer" App. Yes there are times were I send myself a text message, in order to print it, and store it on my computer. Then there times are times that I use the Google Cloud Printer App.
2. You have the option to set-up the "Google Cloud Printer" App to use a classic printer or an e-printer. I do not have an e-printer, but I have used the classic printer method okay. -
Anybody know how you print off texts that have been sent to my iphone 4s,thankyou
anybody know how you print off texts that have been sent to my iphone 4s,thankyou.
Easiest way is to use something like this to import to your computer, then print them:
http://www.wideanglesoftware.com/touchcopy/index.php
Otherwise, you can take screen shots & print those. -
How to show dynamic text in WAD-Template
Dear BW-Community,
We are von BW 3.5.
can someone guide me, how to display a dynamic text (depends on the comparision between two entered variables) in a WAD-Template?
example: if var1 = var2 then the text should be text1 otherwise text text2.
Hope this is quite simple as it sounds.
regards
JürgenHi,
I embedded my CSS code in a dynamic page. I use pl/sql to test if the user is public and print my urls for the menu accordingly. Something like:
<oracle>
Begin
if portal.wwctx_api.get_user='PUBLIC' then
htp.p('MenuPage Title');
end if;
End;
</oracle> -
How to print a text file using Java
How can I print a text file using Java without converting the output to an image format. Is there anyway I can send the characters in the text file as it is for a print job? I did get a listing doing this ... but that converted the text to an image format before printing....
THanks,.Hi I had to write a print api from scratch, and I did not convert the output to image. Go and read up on the following code. I know there is a Tutorial on Sun about the differant sections of the snippet.
private void printReport()
Frame tempFrame = new Frame(getName());
PrintJob printerJob = Toolkit.getDefaultToolkit().getPrintJob(tempFrame, "Liesltext", null);
Graphics g = printerJob.getGraphics();
//I wrote the method below for calculations
printBasics(g);
g.dispose();
printerJob.end();
}This alone wont print it you have to do all the calculations in the printBasics method. And as I said I wrote this from scratch and all I did was research first the tutorial and the white papers
Ciao -
How to print a text file with long lines?
I am trying to print a text file which contains many long lines. I find that the long lines are truncated on the printouts. How do I wrap up these long lines? Could you give me some examples?
Thank you very much!Here's an example. The "\n" makes anything after it go to the next line. I hope this helps. Look at the Private void getTable() section.
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
public class LabNine extends Frame implements ActionListener, WindowListener {
private TextField txtInfo;
private List lstInfo;
private Button btnAddInfo;
private BorderLayout borderlayout;
private Connection databaseConnection;
Statement statement;
ResultSet resultSet;
public LabNine( ) {
super("Lab Nine");
// addWindowListener to close application
addWindowListener(this);
// create layout
borderlayout = new BorderLayout();
setLayout(borderlayout);
// create text field so the file input that is selected will be seen in here
txtInfo = new TextField();
txtInfo.setEnabled(false);
Color color = new Color(255, 136, 183);
txtInfo.setBackground(color);
add(txtInfo, BorderLayout.NORTH);
// create list so the file input can be populated in here
lstInfo = new List();
add(lstInfo, BorderLayout.CENTER);
// create button to add selected input file in the text field
btnAddInfo = new Button("Add Info");
btnAddInfo.setBackground(Color.cyan);
btnAddInfo.setFont(new Font("TimesRoman", Font.BOLD, 16));
btnAddInfo.addActionListener( this );
add(btnAddInfo, BorderLayout.SOUTH);
// set frame attributes
setSize(450, 250);
setResizable( false );
show();
// get the table/ get the query
loadConnection();
getTable();
public void actionPerformed(java.awt.event.ActionEvent e) {
// if add button is pushed then it will check to see if an item was selected.
// if not, then an error message will be displayed else the selected item will be in the text box
if ( e.getSource() == btnAddInfo ) {
if ( lstInfo.getSelectedIndex() == -1 ) {
System.out.print( "You have not selected an item" );
else {
txtInfo.setText(( lstInfo.getSelectedItem() ));
private void getTable() {
try {
String query = "SELECT FIRST, LAST, EMAIL FROM Names";
statement = databaseConnection.createStatement();
resultSet = statement.executeQuery( query );
while ( resultSet.next() ) {
lstInfo.add( resultSet.getString( "FIRST" ) + " " + resultSet.getString( "LAST") + " " +
resultSet.getString( "EMAIL" ) + "\n" );
statement.close();
catch ( Exception e ) {
System.err.println( e );
private void loadConnection() {
// define the data source for the driver
String sourceURL = "jdbc:odbc:people";
String username = "";
String password = "";
// load the driver
try {
// load the drive class
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
// create a connection through the drivermanager
databaseConnection = DriverManager.getConnection( sourceURL , username, password );
catch( ClassNotFoundException cnfe ) {
System.err.println( cnfe );
catch( SQLException sqle ) {
System.err.println( sqle );
public static void main(java.lang.String[] args) {
LabNine aLabNine = new LabNine( );
public void windowActivated(java.awt.event.WindowEvent e) {
public void windowClosed(java.awt.event.WindowEvent e) {
// closes the application
System.exit( 0 );
public void windowClosing(java.awt.event.WindowEvent e) {
// closes the application
System.exit( 0 );
Maybe you are looking for
-
BIS activation troublesho​oting and service books
I have a verizon BB8830(unlocked) am on Airtel and BIS worked fine some 6 months back.But now BIS has stopped working when activated,I wiped then device and tried OS update still nothing and it can no longer receive service books fro my carrier inclu
-
Screen still ON when sleeping?!?
This is the first time this has happened to me. If I leave my Powerbook for a few minutes (adjustable time) the screen will dim (or put itself to sleep). The screen is actually STILL ON and if I look really closely, I can still make out the desktop.
-
Where is the rmic in the JDeveloper?
Do I need to rmic my RMI program from the command line? I can't find the rmi compile feature in the JDeveloper. Thanks.
-
New Gl Scenario FIN_CONS & EC-CS Configuration
Hi All, I am planning to implement for the first time EC-CS in a new gl activated, no document split, 6.0 environment. I need to know whether it is mandatory (or extremely useful) to activate FIN_CONS scenario. How do I benefit from it in EC-CS? If
-
Updating a table through a manually created tabular form does not work.
Hi Friends, I don't know why the "On submit - After computations and validations" process does not update the referenced table. May I miss something. Here is my source : select apex_item.hidden(1,eqp_id) id, apex_item.hidden(2,tcs_tcs_id) tcs, apex_i