Smartform: Loop to display data in window :
Dear experts,
I m facing a strange problem. its reagrding smartform.
i hv passed a internal table to smart form (having one header record only).
I want to display data into a window not a table.
but its displaying nothing. and if i use loop as we use to display data into table,
then its displaying data.
According to my knowledge abt smartform, we do not put internal table into loop if datais to be displayed into window.
if i insert a break-point into form and check internal table, data is there.
Can anyone helpin this.
Thanks in advance
Regards
Hi Maverick
Please check if the following links give you some valid info:
http://www.erpgenie.com/sap-technical/abap/introduction-to-sap-smartforms
and
http://www.sap-img.com/smartforms/display-a-contents-of-a-table-on-smartform-with-loop.htm
Regards
Chen
Similar Messages
-
Samrtform: table line should be displayed whole main window.
Hi All,
I have a requirement, the table lines in smartform should be displayed in whole window.
The above should be like,
Note: the table control height gets dynamically changed, in my case there is only one item in table so the table control lines are not filled the main window.
Appreciate your help.
Thanks.Hello Alexander,
You need to create a TEMPLATE with extact width and height of your main window. This Template should contains the line type with the borders.
Remove the borders from the table line in the main window.
Regards,
Naimesh Patel -
Want to display data in receipt form in Smartforms
Hi friends,
I want to display data in receipt form in smartforms....Format is given below:
Name : [fieldname1]
number : [fieldname2] country code : [fieldname3]
n so on....It should display 1 record on one page and so on.......how can i go about it....
Regards,
VijayaHi Vijaya,
First, you need to design the lay-out for your pages.
Say for example in your case you take a window XYZ (variable type) to print:-
Name : fieldname1
number : fieldname2 country code : fieldname3
Now you have some amount of data for this detail.
Say you print this data in a table.
After the last node for printing data, insert a command line under the last node (in main area of the table control).
And on the next page use the same MAIN window (or use next page of PAGE1 as PAGE1).
In other way, if you are printing a single record on a page.
Then this can be done by simply taking a loop statement in the main window of the page followed by text-fields (from internal_table into work_area).
Under the loop statement, in these text-fields you can simply print your data (using the work area) :-
Detail 1 : &wa-field_name&
and so on....
After the last detail (node), insert a command line and write 'NEW-PAGE'.
This will break your control on to next page and eventually one records will be printed on a single page.
Hope this solves your problem.
Thanks & Regards.
Tarun Gambhir. -
Display data in smartforms using report
hi,
i want to display data from smartform using report.
i have a preview buttons in report when i select preview buttons displays in smarts
regards
amitdesign the smartform as per ur need and get the function module generated by smartform and pass it to ur report programas below..
case sy-ucomm.
when 'smartform'.
pass the f.m that is generated by system in smartforms
CALL FUNCTION '/1BCDWB/SF00000265'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
DATE_L = s_fkdat-low
DATE_H = s_fkdat-high
PLANT_L = s_werks-low
PLANT_H = s_werks-high
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
IFINAL = ifinal1[]
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endcase. -
In Smartform How to display footer & some secndry window after Main window?
Hi,
My requirement in Smartform is to display footer and and secondary window after the Main window.
also if item goes to 2nd & 3rd Page then also after main window footer and some secondary window should appear.
Do i have to maintain footer and sec. window in Main Window itself
Plz tell me in detail.
Regards
VivekHi Vivek,
In smartform, specific legth is allocated to each window, that you create for a page.
So, if you want to display secondary window on each page, create 1 secondary window with the required length and it will be displayed on each page.
And you have written that you want to display the footer of main window also on all pages. It won't happen when you display your footer in main window. you will have to create a new window for your footer as well. Main window footer will always get displayed at the end of the main window.
e.g. If your main window flows on second page, main window footer will be displayed on second page only.
I hope this helps.
Thanks,
Archana -
Error in displaying date time value in Thai Windows OS browser.
Hi,
I have a problem displaying date time in the browser which is installed with Thai Windows OS. The time portion (the subset of datetime) does seemed to show correctly. Initially i am suspecting the virtual machine problem but i tried on bith java and microsoft vm, the result seemed the same. I tried to look in the source of the page and the character is just the same as the incorrect character displayed in the browser. The html source is -->
<tr class="TableData">
<td width="76">14/01/04 12:17:06 H-@5H"</td>
the time is displaying incorrectly. I am not sure its due to any setting in the BEA weblogic server. FYI i am now using WLS6.1(SP2) version. Hope and appreaciate a prompt reply. Thanks a zillion in advance.
Regards,
Sunnyhttps://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=noclassdeffounderrorIWDAbstractTableColumn&adv=false&sortby=cm_rnd_rankvalue
java.lang.NoClassDefFoundError
Error while binding node attribute to a UI element (table)
Problem with NWDS 7
class def error? -
Walkthrough: Displaying Data from Oracle database in a Windows application.
This article is intended to illustrate one of the most common business scenarios such as displaying data from Oracle database on a form in a Windows application using DataSet objects and .NET Framework Data Provider for Oracle.
You can read more at http://www.c-sharpcorner.com/UploadFile/john_charles/WalkthroughDisplayingDataOracleWindowsapplication05242007142059PM/WalkthroughDisplayingDataOracleWindowsapplication.aspx
Enjoy my article.hi,
this is the code :
public class TableBean {
Connection con ;
Statement ps;
ResultSet rs;
private List perInfoAll = new ArrayList();
public List getperInfoAll() {
int i = 0;
try
con = DriverManager.getConnection("url","root","root");
ps = con.createStatement();
rs = ps.executeQuery("select * from user");
while(rs.next()){
System.out.println(rs.getString(1));
perInfoAll.add(i,new perInfo(rs.getString(1),rs.getString(2),rs.getString(3)));
i++;
catch (Exception e)
System.out.println("Error Data : " + e.getMessage());
return perInfoAll;
public class perInfo {
String uname;
String firstName;
String lastName;
public perInfo(String firstName,String lastName,String uname) {
this.uname = uname;
this.firstName = firstName;
this.lastName = lastName;
public String getUname() {
return uname;
public String getFirstName() {
return firstName;
public String getLastName() {
return lastName;
ADF table code:
<af:table value="#{tableBean.perInfoAll}" var="row"
binding="#{backing_Display.table1}" id="table1">
<af:column sortable="false" headerText=""
align="start">
<af:outputText value="#{row.firstName"/>//---> Jdeveloper 11g doesn't allow me to use this.. it says firstName is an unknown property..
</af:column>
</af:table>
Please tell me is this the way to do it.. or is it a must to use the DataCollection from the data controls panel...
Thanks... -
Can I connect an iPad in such a manner to a Windows based PC so that all that I write on the iPad, is immediately displayed on the Windows PC and on a screen by using a data projector?
In technical support, sometimes you have to make educated guesses. I'm sorry that you were offended.
iTunes does prompt when it is going to erase a device, and the message is clear.
She said in her message that she was able to successfully sync the old ipad. This indicated to me that itunes wiping the data was not an issue, because either it had been setup at the apple store (in which case it doesn't actually wipe the ipad despite saying it will*) (*based on a single case I saw), or because the itunes media folder was migrated.
Furthermore, my solution was to tell her how to backup her ipad (by either doing it manually, or as a last resort, by deleting the corrupt backup -- that she couldn't access anyway.)
I got that last part of the instructions from the "Taking Control of your iphone" book which I found samples of when I did a google search for "corrupted backup itunes".
She marked this as a solution, so it worked for her. -
Display data in pop-up graph window
I am trying to display data continuously in a pop up chart. When I press a button the chart should pop up and show all the previous values as well as those being continuously generated. If possible I want to do this without using local or global variables. This question was asked before too at http://forums.ni.com/ni/board/message?board.id=170&message.id=315949&query.id=9049787#M315949 but I was unable to understand the proposed solution. I am a civil engineer, meaning it will be difficult for me to understand advanced concepts and at times even simple concepts related to computer programming. I have attached two VIs just to illustrate what I am trying to do.
Thanks
Solved!
Go to Solution.
Attachments:
Popupgraph_main.vi 19 KB
Popupgraph_subvi.vi 18 KBSorry, those uploaded VIs were just for a demonstration of my problem.
As for the Untitled06, when I was trying them in my computer I had named it "Untitled06" but when uploading to this
forum I changed the name. Forgot about the invoke node.
What I was asking is, if it was possible to
acquire data using one VI and show any temporary graph/chart in a
separate subvi. I did it like attached. Seems like it will work for me.
smercurio_fc Thanks regarding the t0. I changed that in this version. Shipped LV examples haven't been a lot of help to me. Most of the time I cannot relate them to what I want to do. I generally prefer to use this forum.
Any other (obviously better) solutions? then please do let me know. The only requirement is that chart should appear in a separate VI, it is just a temporary chart and I do not want it to take up space in my main VI front panel.
Thanks
Attachments:
Popupgraph_mainv02.vi 24 KB
Popupgraph_subviv02.vi 18 KB -
Drawing Table & Displaying Data in SAP Script : Data Alignment probelm
Hi Experts,
I am Developing An SAP Script in Which Had to Display Data in a Table with Three column & multiple rows, i had created the Table using BOX Command in SAP SCRIPT & assigned a TEXT Element to it & calling this text element while Looping in WRITE_FORM FM.but while displaying DATA in One column the data in another columns shift to the right & if the data in 1st column is less the data in the second column shift to the left. i know these issues had been covered in the past but i am not getting any concrete results from searching in the forum.
Also On more problem when ever i am declaring a text element in some other window & also giving the Command BOX inside it to draw outline the BOX is not drawn.
This seem to be an alignment issue . Experts Please provide me with some alternative.
Thanks & Regards
Priyesh ShahHi ,
To stop columns going left and right.Use number of position in the variable .Like fix the lenght &name(10)&.Here name can print 10 characters.
For box not appearing in other window check the box command parameters .It will draw.Not a alignment problum. -
Smartform - Loop issue not printing correctly
Hi,
In smartforms -Main Window - I created like this
1.Loop Statement - This will loop - ITAB1
TEXT statement - ITAB1-ADRNR - (prints the address)
within the loop
ITEM_DATA (item data) table. - This will Loop ITAB2 - where ADRNR = ITAB1-ADRNR
This supposed to put line items which are having ADRNR from ITAB1
But my program is printing in wrong way..
it is printing
ADDRESS1 - ITAB1-ADRNR - correct
ITEM DATA - from ITAB2- related to ADRNR (if it has only 1 record) - correct
ADDRESS2-ITAB1-ADRNR - correct
ITEM DATA - from ITAB2 - where ADRNR = ITAB1ADRNR - if this condition satisfies more than 1 record
supposed to print all the records - but instead it is printing always the first record - wrong
Ex- if 3 records has the same ADRNR of ITAB1 in ITAB2 - it is actually printing 3 times the first satisfying record - Wrong
Can anyone please tell me what is the issue?
Thanks for your time.
KevinHi,
I created like this..
ITAB1 - complete data
ITAB2 - unique records based on ADRNR
1. LOOP ITAB2
Print Address - ITAB2-ADRNR
ITEM DATA(header and line items)
I have given table name in DATA loop section
- loop ITAB1 - where ADRNR = ITAB2-ADRNR
But in item data it is printing the same line item repetedly .
Any comments?
Thanks for ur time. -
Problems to display a 2nd window using multithreading
I would like to know how is it possible to display a second window where I can enter a text while the main window continue to display on a graph acquired data - Thank you very much in advance
> I would like to know how is it possible to display a second window
> where I can enter a text while the main window continue to display on
> a graph acquired data - Thank you very much in advance
There are two ways to get parallel execution. You can use the VI
Server's Run method to pretty much push the Run button of the VI. This
isn't the same as a subVI call because it runs in parallel and doesn't
need to complete before the Run method node returns.
Another way of doing this is to put the code in parallel and don't put
them in a loop that has to wait for both to finish.
Greg McKaskle -
I am trying to display data from database into the JTable swing component. I can see the table and the heading coming from the vector. I cannot see why the data from the databse table is not loaded on to the Jtable. I just get a table with 6 rows blank.
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import java.io.*;
import java.sql.*;
import java.util.*;
public class dataTable extends JApplet
String dbdriver="jdbc:oracle:thin:@ds1.ctateu.edu:1521:wpac";
String dbuser="system";
String dbpass="pass";
Container c;
JScrollPane jsp;
JTable table;
int v,h;
Connection connection;
Statement stmt;
ResultSet rs;
String param_start,param_end, param_disp_start, param_disp_end,param_shortdesc, param_longdesc;
public void init()
c= getContentPane();
c.setLayout (new BorderLayout());
v=ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
Vector heading = new Vector();
heading.addElement("Event Start Date");
heading.addElement("Event End Date");
heading.addElement("Display Start Date");
heading.addElement("Display End Date");
heading.addElement("Short Description");
heading.addElement("Long Description");
Vector data = new Vector();
try
Class.forName("oracle.jdbc.driver.OracleDriver");
connection=DriverManager.getConnection(dbdriver,dbuser,dbpass);
stmt=connection.createStatement();
rs= stmt.executeQuery("select * from univevents");
while(rs.next())
param_start = rs.getString("start_date");
param_end = rs.getString("end_date");
param_disp_start = rs.getString("display_start");
param_disp_end =rs.getString("display_end");
param_shortdesc = rs.getString("short_desc");
param_longdesc = rs.getString("long_desc");
catch (Exception e)
//JOptionPane.showMessageDialogue("Exception: "+e.getMessage());
data.addElement(param_start);
data.addElement(param_end);
data.addElement(param_disp_start);
data.addElement(param_disp_end);
data.addElement(param_shortdesc);
data.addElement(param_longdesc);
table = new JTable(data, heading);
jsp = new JScrollPane(table,v,h);
//Add scrollpane to container
c.add("Center",jsp);
}//init
}//JAppletYour data vector should be a Vector of Vectors.
I think you need to change your loop to look something like this:
while(rs.next())
Vector row = new Vector();
row.addElement( rs.getString("start_date") );
row.addElement( rs.getString("end_date") );
row.addElement( rs.getString("display_start") );
row.addElement( rs.getString("display_end") );
row.addElement( rs.getString("short_desc") );
row.addElement( rs.getString("long_desc") );
data.addElement( row );
} Then remove your data.addElement() statements found outside the loop. -
Can't display data that exist in cupe
Hi All,
I get a problem which is thar even i entered data in the cube i cant display with charecteristics. When i go to bw and display data if i say select charecteristics i can see any data but if i dont select charecteristics i can display data. Also when i enter data and sen data it say succesful but i loose data on view. Have anyone get any problem like that thanks for your interest.
KasimHi,
The code you sent appears to be the Audio Talkthrough example with several modifications. Here's the first thing I noticed that appears to be incorrect: You're using the BF AD1871 Wait on Data Ready Flag VI to fill the sub-buffer, then you go into a loop and get the contents of that buffer 256 times. You should be filling the buffer each time before you get the buffer instead of only filling it once. You also aren't resetting the data ready flag by using the BF AD1871 Clear Data Ready Flag VI.
Message Edited by Michael P on 07-28-2006 09:55 AM
Michael P
National Instruments -
Display data from diferent tables
My requirement is to display data from diferent tables supose tables likeVBAK and VBAP.it will allow for all entries concept oops abap?.
how to write code for display data from diferent tables .
method WDDOINIT.
data:
node_sflight type ref to if_wd_context_node,
Itab_sflight type standard table of SFLIGHT.
select * from SFLIGHT into table Itab_sflight.
node_sflight = wd_context->get_child_node( name = 'SFLIGHT_NODE' ).
node_sflight->bind_table( itab_sflight ).
endmethod.
Thanks,
RamaHI,
IS IT CORRECT WAY OF DONIG CODING?
IF I AM WORNG PLEASE SUGEST ME.
method WDDOINIT.
data:
node_sflight type ref to if_wd_context_node,
final type standard table of vbap.
types: begin of t_vbak,
vbeln type vbak-vbeln,
end of t_vbak.
endmethod.
data wa_vbak type t_vbak.
data i_vbak type standard table of t_vbak.
types: begin of t_vbap,
vbeln type vbap-vbeln,
posnr type vbap-posnr,
matnr type vbap-matnr,
end of t_vbap.
data wa_vbap type t_vbap.
data i_vbap type standard table of t_vbap.
select vbeln from vbak into table I_vbak.
select vbeln posnr matnr from vbap into table I_vbap
for all entries in I_vbak
where vbeln = i_vbak-vbeln.
loop at I_vbak.
read table i_vbap with key vbeln = I_vbak-vbeln.
final-vbeln = I_vbap-vbeln.
final-posnr = I_vbap-posnr .
final-matnr = I_vbap-matnr .
append final.
clear final.
endloop.
node_sflight = wd_context->get_child_node( name = 'NODE_VBAP' ).
node_sflight->bind_table( final ).
endmethod.
Thanks,
rama
Maybe you are looking for
-
Creating a Cascading LOV in an Interactive Report
version 4.1.1.00.23 Hello, Would someone help me with creating a Cascading LOV in an Interactive Report? I'm not finding much help searching Google or the forum. Thanks, Joe
-
I am downloading from a Canon 650d TO Photoshop CS5.1 and Adobe Bridge CS5.1 Do i need to download a DNG convertor? if so how do i get the images from the camera to the convertor?
-
File content converision -Header data in Target
Here is my input file structure . I need to split each record as a message for each suplierno,ponumber and receiptdetails File structure SupplierNo -1st record PONumber Receiptdetails SupplierNo - 2nd message PONumber Receiptdetails PONumber -3r
-
Hello all! I am attempting to use iTunes as music on hold system on my phone system. I currently have a playlist created with just an internet radio station added to it. My first question is, can I set this playlist to run continuously? At the mom
-
Regarding GL ACCOUNTS -- Jyothsna
Dear Friends, When i am opening GL accounts I am getting an error message saying that -- "No PTCOAL statement account type is defined in Chart of Accounts ". It is not accepting the retained earnings account as it is telling that your account n