How to break columns in table..?
Hi All,
How to break table columns in xml pulisher report template.
i need only 5 colums in one line and 5 more in another line like that..?
how to get current date on template?
thanks & Regards,
Naresh
Skbi:
Using Word Feature will definitely work. Not sure what is the effect on performance if you use Sysdate. You do not need to use a Form field. Word does that. use the option "Date and Time", Under "Insert" menu.
Naresh:
Use "Draw Table" option in the "Tables and Borders" toolbar to draw the columns as you like.
Srini Ramanujam
Similar Messages
-
How to know columns and table name whose column size are modified
Hi guys
I want to know which all columns in the tables are modify
i.e. list of columns and table name whose column size are modified
Step1 :
CREATE TABLE employees
( employee_number number(5) ,
employee_name varchar2(50) ,
department_id number(10)
CREATE TABLE Supplier
( Supplier_number number(5) ,
Supplier_name varchar2(50) ,
CREATE TABLE customers
( customer_id number(10) not null,
customer_name varchar2(50),
address varchar2(50),
city varchar2(50),
state varchar2(25),
zip_code varchar2(10),
Step2 :
Alter table employees
MODIFY employee_number number(10)
ALTER TABLE supplier
MODIFY supplier_name varchar2(100)
step3
query to dispaly
columnname table name
employee_number employees
supplier_name supplier
How to know columns and table name whose column size are modified
could you please provide query
Thanks in Advance09:35:50 SQL> desc dba_objects
Name Null? Type
OWNER VARCHAR2(30)
OBJECT_NAME VARCHAR2(128)
SUBOBJECT_NAME VARCHAR2(30)
OBJECT_ID NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2(19)
CREATED DATE
LAST_DDL_TIME DATE
TIMESTAMP VARCHAR2(19)
STATUS VARCHAR2(7)
TEMPORARY VARCHAR2(1)
GENERATED VARCHAR2(1)
SECONDARY VARCHAR2(1)
NAMESPACE NUMBER
EDITION_NAME VARCHAR2(30)LAST_DDL_TIME can be utilized -
How to add column in table control for transaction APPCREATE
Hi All,
How can i add the additional column in table control for transaction APPCREATE.
There is structure PT1045_EXT present behind table control. But not found any customer exit or badi to display on screen.
Please help...You can add new columns
If you add new columns in tr. PHAP_CATALOG -
Parse SQL: How to extract column names, table names from a SQL query
Hi all,
I have a requirement wherein a SQL query will be given in a text file.
The text file has to be read (probably using text_io package), the SQL query needs to be parsed and the column names, table names and where clauses have to be extracted and inserted into separate tables.
Is there a way to do it using PL/SQL ?
Is there a PL/SQL script available to parse and extract column names, table names etc ?
Pls help.
Regards,
SamI think I jumped to conclusion too early saying it is completely possible and straight forward. But after reading through your post for one more time I realised you are not interested only in the column_names, also the table_names and the predicates .
>
SQL query needs to be parsed and the column names
>
The above is possible and straight forward using the dbms_sql package.
I am pasting the same information as I did in the other forum.
Check this link and search for Example 8 and .
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sql.htm#sthref6136
Also check the working example from asktom
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1035431863958
>
table names and where clauses have to be extracted
>
Now this is the tricky bit. You can extract the list of tables by getting the sql_id from v$sql and joining it with v$sql_plan. But sometimes you may not get all the results because the optimizer may choose to refine your query (check this link)
http://optimizermagic.blogspot.com/2008/06/why-are-some-of-tables-in-my-query.html
and you can get the predicate information from the same table v$sql_plan but I will leave that area for you to do some R&D.
Regards
Raj
Edited by: R.Subramanian on Dec 10, 2008 3:14 AM -
How to Breake Column in Classic report.
Dear Friends
i want to display Employee information so I have created classicreport using below sql query
select
EMP_ID,
FIRST_NAME,
MIDDLE_NAME,
LAST_NAME,
GENDER,
BLOOD_GROUP,
MARITAL_STATUS,
ADDRESS_1,
ADDRESS_2,
CITY_NAME,
PINCODE,
PHONE_NO,
MOBILE_NO,
FAX_NO,
OFFICE_NO,
EXT_CODE,
EMAIL_ID,
ANNIVERSARY,
BIRTHDAY,
QUALIFICATION,
DESIGNATION,
MGR_CODE,
DATE_OF_JOINING,
EMP_IMAGE,
PASSPORT_NO,
SKYPE_ID,
ACTIVE_FLAG
from DEMO_EMP where EMP_ID =:APP_USER
Problem is all coloumn display in report but i need to display 4 column and then 4 column in right side and then 4 column in right side.
I need breake after 4 column .How can i do this.
Thanksmodify your query and include ROW_NUMBER, move everything to an inline view and include a CASE statement to hide some of the values... wow, very cryptic.. there is an example here:
SQL*Plus or Report style Break Groups in SQL Query</title> //<title>AMIS Technology Blog &raquo; SQL*… -
How to delete columns in table control (tab Services) for transaction ME51
Hi, gurus!
We're facing this problem in our upgrade: we have a batch input (ME51) in order to create purchase requisitions, but we get an error with the dynpro data (program: SAPMM06B, dynpro: 0102).
We are sure we populate all the required fields in that screen.
The only possible reason we find for that error is the fact that we have two new entries in table control (in tab services=> Current settings there are 67 fixed columns)
We had to add in table T162V (which previously had only 65 columns for each variant): ESLL-SRVMAPKEY y ESLL-EXTERNALID, as described on note 1382685, so table control and table T162V could have same number of fields.
We guess we could solve the batch input error deleting those fields in both table control and T162V, but don't know how.
We really would appreciate any clue.
Thanks in advance.
Best regards,
J. MadariagaIt's an own batch input.
The error is: "Batch input information for dynpro SAPMM06B 0102 does not exist", but the fields in that screen are alright.
And that batch input works fine in another client with same patch level, but without fields ESLL-SRVMAPKEY and ESLL-EXTERNALID in table T162V, so I guess that could be the problem (not sure about it, of course).
Regards,
J Madariaga -
How to delete columns in table control
hi
1) I have creted a table control with five columns
now i want to delted the tow of the five coluent pls let me know how to delete it
1) also i am useing a module pool programming (code if needed i will paste)
in that the requirment is to select data from a ztable and aloow user to enter new ship to data only whne the corresponding records exists in kna1 table
and to populate the name1 value automatically from table kna1 whne user enters ship to number
pls suggest
regards
AroraHello,
Requirement 1
i believe you need to delete a row from the control table based on the user input...
if thats the case then definitely in the control table the multiple line selection will be activated .
in PAI of the control table screen...
if user has clicked delete.
loop at control table records..
if the selection code for the line is 'X'.
Delete from the internal table.
endif.
endloop.
endif.
Requirement 2..
i will give an outline on the checks
a)first let the user enter the data...in the PAI of the screen...write the code to do the checking....if your requirement is not satisfied provide a warning/error message or delete the record and give a message stating the reason for deletion...
in PAI.
for a control table...
loop at the table records
select from table and check if user record is O.K
if not delete the record and give message
endif.
endloop.
b)similarly inside the PBO write code to fetch the name1 from Kna1 table for the ship to number if that ship to number is not empty
in PBO of that screen
if ship_to is not initial.
select text for ship_to number to the display field
else.
clear the display field
endif.
reward if the suggestions were useful
Regards
Byju -
How to see column in table maintenance generator?
Hi All,
Can we write code in table maintenance generator ? where can we write code?
suppose I have created table maintenance generator but column is not visible what might be reason? How to deal with this?
Can any 1 help me in this regard?
Thanks in advance.Hi,
column is not visible
This may be because of additioni of a new field in the table after you have generated the TMG.
Delete and re-create the object in TMG again.
writing code in table maintenance generator
Yes, you can write.
SE54 --> Environmnt --> Events --> New Entry
Select the event ..eg.
01 for Before saving the data in the database
02 for After saving the data in the database
Press enter. Click on the editor button and start writing your codes in the routine.
Regards,
Firoz. -
HI,
It's rather a simple question for most of you but as I am new to Smartforms I am little confused ...
I had created a table in the main window with two columns and had also created two text elements and assigned to the table but my problem is the text elements are displaying the values in two different rows rather then in two columns...In templates we have the option of assigning the columna dn row in the output options of a text element but I do not find in tables..Am I missing something .Please help me out..
I had assigned the same default line type created with two columns to both the text elements.
Regards
PavanHi,
1. In the Table Main area you have the assign the Line Type which will give you the Rows of the Table.
[Table Layout|http://help.sap.com/saphelp_nw70/helpdata/EN/fa/0c1444d30111d3b568006094192fe3/content.htm]
2. For every row inside it there are Cells which are columns that you have defined in the table. (In your case the cells will be two if you have designed the table with 2 columns)
[How to draw columns in Tables|http://help.sap.com/saphelp_nw70/helpdata/EN/12/d4c6d62e9811d5b694006094192fe3/content.htm]
3. Now in each cell you need to define the text window and give the text element over there.
This is how we need to assign the text elements to the columns
Regards
Sarves -
Hi my name is vishal
For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.Diagnostics;
using System.IO;
namespace DRRS_CSharp
public partial class frmPDF : Form
public frmPDF()
InitializeComponent();
private void button1_Click(object sender, EventArgs e)
Document doc = new Document(PageSize.A4.Rotate());
var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
doc.SetMargins(50, 50, 50, 50);
doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
doc.Open();
PdfPTable table = new PdfPTable(6);
table.TotalWidth =530f;
table.LockedWidth = true;
PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
cell.Colspan = 6;
cell.HorizontalAlignment = 0;
table.AddCell(cell);
Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
para.Alignment = Element.ALIGN_CENTER;
iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
png.ScaleToFit(105f, 105f);
png.Alignment = Element.ALIGN_RIGHT;
SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
conn.Open();
SqlDataReader dr;
dr = cmd.ExecuteReader();
table.AddCell("Reprocessing Date");
table.AddCell("Patient Name");
table.AddCell("Dialyzer(Manufacturer,Size)");
table.AddCell("No.of Reuse");
table.AddCell("Verification");
table.AddCell("DialyzerID");
while (dr.Read())
table.AddCell(dr[2].ToString());
table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
table.AddCell("@count".ToString());
table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
table.AddCell(dr[0].ToString());
dr.Close();
table.SpacingBefore = 15f;
doc.Add(para);
doc.Add(png);
doc.Add(table);
doc.Close();
System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
this.Close();
The above code executes well with no problem at all!
As you can see the file to which i create and save and open my pdf report is
AssignedDialyzer.pdf.
The column headers of table in pdf report from c# windows forms using iTextSharp are
"Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
"DialyzerID".
However the problem i am facing is after execution and opening of document is my
column headers in table in pdf report from
c# and datas in it all appear in bold.
I have browsed through net regarding to solve this problem but with no success.
What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
vb6,adodb with ms access using iTextSharp?
I have approached Sound Forge.Net for help but with no success.
I hope anyone/someone truly understands what i am trying to ask!
I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
I hope i get a reply in terms of solving this problem.
vishalHi,
About iTextSharp component issue , I think this case is off-topic in here.
I suggest you consulting to compenent provider.
http://sourceforge.net/projects/itextsharp/
Regards,
Marvin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to Break this String and put into a Table
Hi all,
Currently i working on the Reading of Csv file.THe Csv file wil be stored as BLOB in one table.
The Format of the Csv file is
EMPCODE :DATEOFBIRTH
312089 ,12/01/1984
321456 ,03/05/1980
120212 ,04/08/1987
312456 ,23/12/1977
311110 ,12/04/1998
323232 ,20/06/1990
UPLOAD_BLOB
column Datatype
UploadId Number
File_details BLOB
And i reading the BLOB in one procedure and i m getting the String as like this ---->
"312089 ,12/01/1984
321456 ,03/05/1980
120212 ,04/08/1987
312456 ,23/12/1977
311110 ,12/04/1998
323232 ,20/06/1990"
I am Dont know how to Parse this String and put in table
While 1<STRING.LENGTH
LOOP
EMPCODE=SUBSTRING();
DATEOFBIRTH=SUBSTRING();
INSERT INTO TABLE VALID_EMPCODE(EMPCODE,DATEOFBIRTH)VALUES(......);END LOOP
VALID_EMPCODE
EMPCODE VARCHAR2(30)
DATEOFBIRTH VARCHAR2(15)
Can any one tell me how to parse this whole string and break themDuplicate post
How to Break this String and put into a Table -
Reg:How to delete the column in table control also from database table.
Hi Experts,
Once again thank u all for giving the responses.
one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
With Regards,
Saroja.P.Hi,
If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
"This portion of code inside the LOOP...ENDLOOP.
IF sy-ucomm eq 'F_DELETE'.
gt_itab2-check = mark. " Store the MARK field status into your internal table's correspoding field 'check'
MODIFY gt_itab INDEX tabcontrol-current_line.
ENDIF.
iF sy-ucomm eq 'DELETE1'.
DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
ENDIF.
Now you can modify your database table using the MODIFY statement.
MODIFY ZDB FROM TABLE gt_itab. -
How to find out the selected column in Table Control
Hi all,
How to find out the selected column in Table Control?
Thanks & Regards,
YJRHi,
Let your table control name in Screen painter be TC1.
READ TABLE TC1-COLS INTO WA_COLS (some wok area)
WITH KEY SELECTED = 'X'.
IF SY-SUBRC = 0.
CLEAR: W_DUMMY, W_COL_NAME.
SPLIT WA_COLS-SCREEN-NAME AT '-' INTO W_DUMMY
W_COL_NAME.
endif.
W_COL_NAME gives you the column name.
Hope it helps.
cheers
sharmistha -
How to add a column in table control
Hi ,
Can any one tell me how to add a column in table control? My requirement is to add two columns ( custom fields ) into table control ( It is a standard program). I have added the column in the table and also in the table control. But when I am running the standard program, The newly added column is not there. But I have added in the perticular screen. Change is not reflected.
Can anyone help me on this please.
Thanks in advance.
Regards,
Lakshmi.Hi,
Ensure the following :
1. After adjusting the database, you`ll have to use the database utility and activate the table.
2. If you have changed the standard screen, in tcode se80 -- right click on the program and click activate all. This activates all objects related to that program.
Now execute the program.
Reward if helpful.
Regards -
How do I create a table that breaks for new pages?
I'm running Pages 5.5.1 on OS X Yosemite 10.10.1 and am having difficulty understanding table behavior.
Scenario 1 - I create a new file and insert a table at the top of the first (blank) page. It automatically is selected for Object Placement>Move With Text. If I add rows to this table, Pages automatically adds a new page and breaks the table so that additional cells appear on the new page. All well and good. If I change the Object Placement to Stay on Page, the second page and those cells disappear.
Scenario 2 - I create a file and first add a few lines to the top of the first page. Then, I insert a table below those lines. It is also automatically selected for Object Placement>Move With Text. When I add rows, the table does not break for the second page, but the entire table jumps to the second page. If I change the Object Placement to Stay on Page, I can then slide the table back onto page one, but as in Scenario 1 the portion of the table which would continue onto page two disappears.
So, how do I create a table that I can add to a page which is not blank (as in Scenario 2) which will break automatically onto page 2 instead of jumping, and so the rows appear on page two (not disappear as I describe above)?
Thank you for your help.The inline table is supposed to break but like most things Pages 5 it is buggy and erratic in its behavior.
Use Pages '09.
Peter
Maybe you are looking for
-
Can we view HR DMS data via PA20/PA30
Dear SAP HR GuruS! We had a requirement wherein we stored HR Data scanned and stored on DMS server, we wish to link Employee DMS data to Employee master data i.e supervisor should be able to view Employee data via PA30/PA20. what is the way to view e
-
I am trying to sync my new iPod classic and "Sync" is grayed out
I have tried everything. Updated iTunes, verified my User id and password, nothing is recognizing the "new" used iPod. When I plug it in to the PC, iTunes is not automatically turning on. When I open iTunes, I go to Devcies, but "Sync" is grayed out.
-
Using DBLINK in ABAP to retreive data from externam system
Hi All, Please help me, if anyone knows the answer. The basis team has created a dblink 'DBL_TEST.YY.XXX.COM'. Now I have to fetch data from another non-sap external system using this dblink only. Cannot have any entry in DBCON. I know the procedure
-
Percentage calculation problem in ALV Grid
Hello All, I have a requirement like this : I have three columns in the grid named as A, B and C. In column A i have the values as 30 and 40. Here the subtotal is 70 through the fieldcatalog field DO_SUM = 'X' In column B i have the values as 50 and
-
Screen orientation locked despite correct settings in control panel and side switch
Screen orientation locked despite correct settings in control panel and side switch