Print labels row*column wise
Hi Gurus,
We have a requirement to create a report which will print labels (RTF layout using XML publisher). Our client wants supplier information (labels, single label of 8 lines) to be printed on a single page i.e. on A4 size paper, 3*8 = 24 labels should get printed like- (Below Lxy is a single label with 8 lines, x and y denotes numbers below)
L01 L02 L03
L04 L05 L06
L07 L08 L09
L10 L11 L12
L13 L14 L15
L16 L17 L18
L19 L20 L21
L22 L23 L24
This will be a nightly job and once client will come in the morning all the labels will get printed on the A4 size papers. These number of labels in a single request may vary as well eg- it can be either 4 during one night or 29 during another, so this has to be taken care while printing.
I can not call it as a matrix report as number of rows and columns may both get changed dynamically.
Is anybody came across the same requirement? Please provide your valuable inputs.
Thanks in advance.
Rgds,
Sumir
HI,
Here you go good program links
<a href="http://www.sapfans.com/forums/viewtopic.php?t=52107">How to Set Color to a Cell in AVL</a>
<a href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_color.htm">ALV Grid Coloring</a>
Thanks
Mahesh
Similar Messages
-
How to print the row ,column,and particular cell in separate color
how to print the row ,column,and particular cell in separate color IN ALV GRID
HI,
Here you go good program links
<a href="http://www.sapfans.com/forums/viewtopic.php?t=52107">How to Set Color to a Cell in AVL</a>
<a href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_color.htm">ALV Grid Coloring</a>
Thanks
Mahesh -
How to print data in h:dataTable by column wise
I've Arraylist holding of Item objects, in that again one more Arraylist containing Item parameters
My problem is i want to display ItemParams side by side(column wise) not row by row(normal procedure)
Table looks like
ItemNo ItemName ItemDesc Change
234 Colgate toothpaste checkbox
123 Pepsodent toothpaste checkbox
In above table ItemName having different params
colgate have 3params
peopsodent have 2 params
ItemParameters class(bean) containing fields of parameterValue(textBox in UI) and parameterDescription(textArea in UI)
So the total ItemName column looks like
ItemName
Colgate
parameterValue parameterDescription,parameterValue parameterDescription,parameterValue parameterDescription
Pepsodent
parameterValue parameterDescription,parameterValue parameterDescription
Cibaca
parameterValue parameterDescription,parameterValue parameterDescription,parameterValue parameterDescription,parameterValue parameterDescription
Please help me
Thanks in advanceHi,
Try with this piece of code
Declaration of local constants
CONSTANTS : lc_paart LIKE sy-paart VALUE 'X_65_132', " Paper Format
lc_locl TYPE sypdest VALUE 'LOCL'. " Destination
MOVE 'X' TO v_print.
Setup the Print Parmaters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
authority = space
immediately = v_print
new_list_id = c_x
no_dialog = c_x
user = sy-uname
IMPORTING
out_parameters = v_print_parms
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0.
CLEAR : v_print_parms.
ENDIF.
The printer destination has to be set up
IF v_print_parms-pdest = space.
v_print_parms-pdest = lc_locl.
ENDIF.
Explicitly set line width, and output format so that
the PDF conversion comes out OK
v_print_parms-linsz = c_linsz.
v_print_parms-paart = lc_paart.
Regards,
nagaraj -
How to print column wise records
Hi,
I am very sorry.
Actually i have searched many pages but i didn't find my solution.
plez any body halp me out from this problem..
Actually my table structure is this..
Employe_payroll:-
Empid|Salary|Month|Year
So record stores in row wise in each month salary processing..
so i can easly get these each month records in row wise.
but i need to get these records like this.
Empid should be constant and it will print each month records in column wise..
plez kindely help me..just a concept. You may need to fine tune the query as per your columns
SELECT empid,
SUM(jan) "jan", SUM(feb) "feb", SUM(mar) "mar"
FROM
(SELECT empid,
DECODE(month,'01',sal,0) jan,
DECODE(month,'02',sal,0) feb,
DECODE(month,'03',sal,0) mar
FROM emp
GROUP BY empid;Edited by: hard_stone on Mar 1, 2010 12:13 PM -
Grab the first rows and put it to column wise
Below are two dump, i want to grab the first 2 rows in ascending order by from_date and put to column wise, the first row label first_charge and second row as second_charge. AND throw away rows from 3 are not needed.
1st dump 5 columns are my input,
2nd dump 3 columnS ARE my desired output.
I have tried the rank function but can someone please confirm this is correct way to do this for all the accounts in the table
Script (table and data) for 1st dump is at bottom of post.
Can anyone help resolve this issue - thanks.
--FIRST DUMP
ACCOUNT_ID CHARGE_AMT CHARGE_DATE FROM_DATE THRU_DATE
212855740 14.52 5/04/2012 14/03/2012 31/03/2012
212855740 25 5/04/2012 1/04/2012 30/04/2012
212855740 25 5/05/2012 1/05/2012 31/05/2012
212855740 25 5/06/2012 1/06/2012 30/06/2012
212855740 25 5/07/2012 1/07/2012 31/07/2012
212855740 25 5/08/2012 1/08/2012 31/08/2012
212855740 25 5/09/2012 1/09/2012 30/09/2012
212855740 25 5/10/2012 1/10/2012 31/10/2012
212855740 25 5/11/2012 1/11/2012 30/11/2012
--DESIRED DUMP
ACCOUNT_ID PRO_CHARGE MONTHLY_CHARGE
212855740 14.52 25
WITH CHARGE_TABLE_QUERY
AS (SELECT account_id,
charge_amt,
charge_date,
from_date,
thru_date,
ROW_NUMBER ()
OVER (PARTITION BY account_id ORDER BY from_Date)
row_num
FROM my_tbl)
SELECT account_id,
MAX (CASE WHEN ROW_NUM = 1 THEN CHARGE_AMT ELSE 0 END) PRO_CHARGE,
MAX (CASE WHEN ROW_NUM = 2 THEN CHARGE_AMT ELSE 0 END) MONTHLY_CHARGE
FROM CHARGE_TABLE_QUERY q
WHERE row_num IN (1, 2)
GROUP BY account_id;ricard888 wrote:
what happens if a new account where there is no second charge yet. can i have either null or 0 in the monthly_charge.You could test it easily. Anyhow, it will work without any change in the code
insert into my_table
select 1,50,CHARGE_DATE,FROM_DATE,THRU_DATE
from my_table
where rownum = 1;
1 rows inserted.
with CHARGE_TABLE_QUERY as
select account_id,charge_amt,
ROW_NUMBER ()
OVER (PARTITION BY account_id ORDER BY from_Date) rn,
lead(charge_amt)
OVER (PARTITION BY account_id ORDER BY from_Date) MONTHLY_CHARGE
from my_table
select account_id,charge_amt pro_charge,monthly_charge
from CHARGE_TABLE_QUERY
where rn = 1;
ACCOUNT_ID PRO_CHARGE MONTHLY_CHARGE
1 50
212855740 14.52 25 -
How 2 Change of column wise o/p to row wise output in ABAP?
Hi all,
I am getting the output in column wise as normally but how can I get the ouput in row wise.in ABAP.
its urgent. can any one help me how to change the output layout?
thanks in advance,
Sakthi.Cif it is normal report .then
go through the write statents . one of that is below
Loop at itab .
write : itab .
endloop.
if it is ALV then you have to define an internal table which are the fieldds you want palce in the Row .
so that
data c type i value '1'.
loop at itab .
fieldcatalog-fieldname = itab-field.
fieldcatalog-col_pos = c.
append fieldcatalog to fieldcatalog.
clear fieldcatalog
c = c + 1.
endloop.
so that the Col_pos will be increased and the Column data will be moved into Row .
reward points if it is usefull...
Girish -
When using Appleworks database for printing labels can I have columns of different widths?
When using Appleworks database for printing labels can I have a column of different width?
Case in point, the supplied avery labels in Appleworks does not have 8195. When I build one using custom design I need a small column between column 2 and 3 to line up the info in columns 3 and 4. All the labels are 1.3/4 inch wide but I need to insert a column 1/4 wide to match up with the avery page....
Any ideas???
Thanks......
---warrenWell, the issue is that when you creat a custom width of 1.3/4 from the edge of the first label to the edge of label 2 all is good. The right and left margins were also set correct in AW. The Avery page, for some reason, has a small 1/4 inch column between the columns of label 2 and 3 therefore making the distance between the left edge of the label in column 2 and the right edge of the label in column 3 - a width of 2 inches and not 1.3/4.
I guess Avery wanted the page to look even.
I did this work around.....
I created a custom lay out of 2 columns (not 4) with the correct width of 1.3/4 from label edge to label edge and the correct left side margin. After printing the first page I just turned the sheet 180 degress and printed the 2nd page to use all the labels on the Avery sheet. Since the upper and lower margin were the same it worked great....
"Great minds think alike"... thanks for your suggetion -
How can we export graphs row and column wise in pdf
Hi Experts,
can some body tell, i have graphs in rows and columnswise in output(means side by side) after export to pdf graphs shows in rows only not like in output. but i need graphs rows and columns wise in pdf. how can i achive my requirement.please let me know steps.
regards,
krisHi Kris,
This is a limitation with Export to PDF. Plz. go thru' below link.
Re: WAD Application export to PDF
--Priya -
Printing labels with no address
this is driving me mad.
anyone any idea how to print a load of address labels for people who don't have addresses?
ie people who i will actually see and can actually give them their christmas cards.
i thought i was being organised by creating a little christmas card group in address book. but it only wants to print out the ones of people whose addresses i know. this is very annoying. why can't i do it?
i suppose i could just write xxxx in the address field and then i guess it would print. but do people want to be given a card that says, "sally smith, xxxx" ???!!!?
maybe i'll just put "happy christmas" in the address field. will that work?
ok, maybe i've solved my own problem here. but there must be a better way of doing it ...
any ideas.
thanks.I've found no way to do this from address book. Printing labels from address book is just simple list style printing ** fill the sheet with names and print. I see no way to insert blank information like I use to do in Clairworks in order to skip rows and columns. If you need to repeat names or print only certain columns and rows, then you would need to do that from another program. I have no recomendations since I haven't used any, but I'm sure there are many out there and probably a lot that are free to download.
What I do is print out full sheets of mailing labels on the ones I used repeatedly, such as my return address, electric bill, water bill, etc. I used appleworks in the past, but now it no longer works under Lion, so I will have to make new sheets, probably from Word.
For all others addresses that are not used frequently, I've resorted to just running my envelopes throught the printer. -
Display data as rowwise (horizontally ) instead of column wise ( verticaly)
I am displaying the data from milti select prompt of BI Answers in BIP report.
The data from the table is displayed as
Table structure :
Company. Unit name f_company_._unit_e
output :
unit1
unit2
unit3
I want output as unit1, unit2, unit3
Thanks
Aj
Edited by: user9031011 on May 11, 2010 7:35 AM
Edited by: user9031011 on May 11, 2010 7:46 AMHi Aj,
First of all, correct me my previous solution.
1. If you want to print the units in column wise i.e. if the for loop is in a table and you want each unit to be displayed in a separate columns side by side then in one of the table cell (i.e. in the for-each field of the cell) keep below code,
<?for-each@column:ROW?> <?EMPNO?> <?end for-each?>
2. If you want to print as a normal text (with out table) then use
<?for-each@inlines:ROW?> <?EMPNO?> <?end for-each?>
Second, to modify the form field,
Select the for-each form field, go to to Add-Ins -> Tools -> Field Browser , then double click the for-each and in the edit box change the text according to your requirement, then click 'Update' button.
You can also place that for-each condition out side(i mean with out form field) -
Problem printing labels on dot-matrix printer
I am currently using Oracle Reports v 3.0 on an NT network. I need to print labels on an Epson LQ-570+ printer. The user will run a number of reports which will create a file for each location we need to send to. The user will then send 10 - 20 files to the printer at a time. The problem I am having is that since we went to Reports 3.0 on NT if a file has only one label, it will print that label then page forward spitting out 10 blank labels. It then prints the next file. We are using continuous feed labels and are wasting a LOT of labels. I have tried to reset the page size in the properties page of the report but no luck. Any help would be greatly appreciated!
hello, I could not write English, but I will help you
You could see it in SYSTEM PARAMETERS of reports, in the MODE option, putting the to initial value Character type
You also have to see the Dflt.prt file, that this located in the C:\ ORAWIN95\ REPORT60\ PRINTERS, the who you control the margins of
impression in manner [caracter]. They for [default] are 80 Columns and 66 Lines, the
who you could publish and change the courages
You count me if I operate you.
Greeting -
Printing labels in using standard report
Hi everyone,
can anyone help me in creating a report, which has the output as standard AVERY 8160 Labels format of MS Word.
The main purpose of this report is to print Labels.
regards
Ajay Nuduruapti
SAP - Technical ConsultantHi,
The Best method is use the Forms.
In standard report format, use the subroutine to print the one label using the write statement , the same function is used till the last row.
Match the no. of rows reached with the Page row count. Increment the row line dynamically and reset if the new page starts.
Hope it will help u.
Shankar -
How to Fetch Data into internal table column wise?
The internal table contains huge set of data. Normally we fetch the data row wise using insert and select statements in work area.
But, the requirement is on fetching the data column wise for each field from the database.
So,can anyone help me on this issue for fetching the data column wise?Welcome to SDN.
What you want to do(if I understand correctly) is not possible with the statements available to us. You could do it, but I think it would be a lot of code and I don't think that its worth it. Why exactly do you want to do this?
Regards,
Rich Heilman -
Printing Infinite # of Columns in Append Table to Report
I am in need of a bit of help here in regards to dealing with the Append Table to Report.vi
With this VI I can print up to a certain # of columns before the VI starts to wrap columns (& subsequent data under each column) downward in vertical manner.
I am looking for a way to do the following:
1) center the text in all columns
2) set a pre-set # of columns per page, and then print the remaining columns to a separate page thereafter
3) avoid column header & data from being folded beneath to the subsequent row
See the attached code and print-outs.
Thanks!
Solved!
Go to Solution.
Attachments:
Example Test Report.vi 36 KB
Too many columns!.pdf 12 KBUsing the "Append Table to Report" VI, you can't specify center alignment, through if you enable gridlines, it makes the tables more readable. If you were to generate an Excel report, you would have more control and be able to specify cell alignment.
In the Report Generation Toolkit, using Standard Report, there is no way to get or automatically print the page number. You can do it manually by keeping track of how many pages have been printed if your using the "New Report Page" VI.
Using the VI script you posted, I modified it to illustrate how to selectively add columns to the report. Its usually not standard practice for us to write code for customers, but this example seemed good for the Community Example Page (http://www.ni.com/code/), and with your permission I'd like to post it there as well.
Product Support Engineer
National Instruments
Attachments:
Example_Test_Report_Done.vi 43 KB -
Colors in ALV report - column wise
Hi,
I have a ALV report. I want color in my report like Column Wise.
ex.
Document No........Date.........Amount......Document No......Date........Amount........Document Nov........Date.............Amount....
2008000123...10.07.2009....2000.00......2008000133....10.07.2009....2000.00.....2008000143.......10.07.2009.......2000.00
2008000124...10.07.2009....2000.00......2008000134....10.07.2009....2000.00.....2008000144.......10.07.2009.......2000.00
2008000125...10.07.2009....2000.00......2008000135....10.07.2009....2000.00.....2008000145.......10.07.2009.......2000.00
Please see, there is 3 times Document No, Date and Amount. I want that there should come diff. colors for diff. document numbers.
It is possible or not. If yes, then how...
Thanks...Hi,
go though this link....
i hope this will help u
TABLES:
SPFLI.
TYPE-POOLS:
SLIS.
PARAMETERS:
P_COL TYPE I ,
P_ROW TYPE I,
P_COLOR(4) TYPE C .
DATA:
T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
FS_FIELDCAT LIKE LINE OF T_FIELDCAT,
FS_LAYOUT TYPE SLIS_LAYOUT_ALV ,
W_COLOR(4) ,
W_ROW TYPE I,
W_FIELDNAME(20),
W_PROG TYPE SY-REPID.
DATA:
BEGIN OF T_SPFLI OCCURS 0,
COLOR(4),
CHECKBOX ,
CELL TYPE SLIS_T_SPECIALCOL_ALV,
CARRID TYPE SPFLI-CARRID,
CONNID TYPE SPFLI-CONNID,
CITYFROM TYPE SPFLI-CITYFROM,
CITYTO TYPE SPFLI-CITYTO,
DISTANCE TYPE SPFLI-DISTANCE,
END OF T_SPFLI.
DATA:
FS_CELL LIKE LINE OF T_SPFLI-CELL.
SELECT *
FROM SPFLI
INTO CORRESPONDING FIELDS OF TABLE T_SPFLI.
W_COLOR = P_COLOR.
T_SPFLI-COLOR = P_COLOR.
IF P_COL IS INITIAL AND P_ROW GT 0.
MODIFY T_SPFLI INDEX P_ROW TRANSPORTING COLOR.
ENDIF.
FS_FIELDCAT-FIELDNAME = 'CARRID'.
FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
FS_FIELDCAT-COL_POS = 1.
FS_FIELDCAT-KEY = 'X'.
FS_FIELDCAT-HOTSPOT = 'X'.
APPEND FS_FIELDCAT TO T_FIELDCAT.
CLEAR FS_FIELDCAT .
FS_FIELDCAT-FIELDNAME = 'CONNID'.
FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
FS_FIELDCAT-COL_POS = 2.
FS_FIELDCAT-KEY = 'X'.
FS_FIELDCAT-HOTSPOT = 'X'.
APPEND FS_FIELDCAT TO T_FIELDCAT.
CLEAR FS_FIELDCAT .
FS_FIELDCAT-FIELDNAME = 'DISTANCE'.
FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
FS_FIELDCAT-COL_POS = 3.
FS_FIELDCAT-KEY = ' '.
FS_FIELDCAT-EDIT = 'X'.
APPEND FS_FIELDCAT TO T_FIELDCAT.
CLEAR FS_FIELDCAT.
FS_FIELDCAT-FIELDNAME = 'CITYFROM'.
FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
FS_FIELDCAT-COL_POS = 4.
FS_FIELDCAT-KEY = ' '.
APPEND FS_FIELDCAT TO T_FIELDCAT.
LOOP AT T_FIELDCAT INTO FS_FIELDCAT.
IF FS_FIELDCAT-COL_POS EQ P_COL.
FS_FIELDCAT-EMPHASIZE = P_COLOR.
W_FIELDNAME = FS_FIELDCAT-FIELDNAME.
IF P_ROW IS INITIAL AND P_COL GT 0.
MODIFY T_FIELDCAT FROM FS_FIELDCAT TRANSPORTING EMPHASIZE.
ENDIF.
ENDIF.
ENDLOOP.
FS_CELL-FIELDNAME = W_FIELDNAME .
FS_CELL-COLOR-COL = 6.
FS_CELL-NOKEYCOL = 'X'.
APPEND FS_CELL TO T_SPFLI-CELL.
IF P_ROW IS NOT INITIAL AND P_COL IS NOT INITIAL.
MODIFY T_SPFLI INDEX P_ROW TRANSPORTING CELL.
ENDIF.
FS_LAYOUT-INFO_FIELDNAME = 'COLOR'.
FS_LAYOUT-BOX_FIELDNAME = 'CHECKBOX'.
FS_LAYOUT-COLTAB_FIELDNAME = 'CELL'.
FS_LAYOUT-F2CODE = '&ETA'.
W_PROG = SY-REPID.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_PROG
IS_LAYOUT = FS_LAYOUT
IT_FIELDCAT = T_FIELDCAT
TABLES
T_OUTTAB = T_SPFLI
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
NOTE
Column and Row are colored with a coded color u2018Cxyzu2019.
Where C: Color (coding must begin with C)
X: Color Number
Y: Bold
Z: Inverse.
Thanks
Ashu
Maybe you are looking for
-
Do I need a new Hard Drive?
Last week my PowerBook G4 froze. I tried to reboot, with no success, I just kept getting a grey screen, and that's it. The machine did boot from the install disc, and I did run disc utility, which gave me a message of bad segments, that it could no
-
How to use optional prompts with stored procedure universe?
Hi Experts, Iu2019m working on stored procedure universe in BO XI 3.0 SP2 FP2.5 with oracle at back end. My requirement is that I have to pass 5 optional prompts in the report and we have to pass these prompts through open document link. Please tell
-
How to display a spreedsheet as a wiki page in stbeehive teamcollab wiki
I would like to display a spreadsheet as a wiki in stbeehive teamcollab wiki. thx in advance
-
Tabs or Collapsable view in Workflow Email
Hi all, We have a requirement to have Tabs in mail sent by WF or to have collapsable view. Collapsable : Click on a word or so and it opens a section . On clicking again, it should close. We are using HTML language to send the Workflow Email. The mai
-
How to View Album as Only THumbnails and Enlarged Image
I hope I can explain this right... When I click an album on my page, it takes me to a page of smaller thumbnails of all of the images in that album and the thumbnails are scattered around the page. When I click on any of the images, it takes me to a