ABAP List Viewver
How can we set Check Box in ALV
Hi,
1) Add an CHAR1 field in the output table that needs to be displayed in the ALV--- For Check box use(For eg: CHK type CHAR1)
2) Set the fieldcatalog for the checkbox field(CHAR1) with the value X
LS_FIELDCAT-fieldname = CHK (in our case field in output table)
LS_FIELDCAT-checkbox = 'X'
This will display the check box in ALV when called using Reuse_alv_grid_display.
Also make sure you use the layout parameter in the ALV FM.
Regards
Shiva
Similar Messages
-
ABAP list report, multiple selections - select-options
I have written a very simple ABAP list report, that contains a single select-option. On the selection screen, I have the option of entering multiple values, with each new value being displayed directly underneath the old, but I am only getting the first value entered on the screen displayed. Does anyone have any sample code for me?
Hi Daniel,
Select_Options consists of 4 parameters, in with the range consists in eg...
Select-options s_vbeln for vbak-vbeln.
then s_vbeln-low, s_vbeln-high are the range values...
So whne you write select query.
write vbeln in s_vbeln
instead of vbeln eq s_vbeln
Hope this solves your problem.
Thanks & Regards,
Dileep .C -
ABAP list report wont print on Z device type with Z format
Our developer have created a report which outputs data in ABAP list format and the standard format would not fit. We have since created a custom format and copied a device type in to custom device type. So we now have a custom format and custom device type. However when we print, it spools correctly and shows as green but the report wont print. The only thing that gets printed is
"Sort criteria AscdgDescndSubtotalGRAND TOTAL : X X PROJ" "
The abap list format is Z_100_500. Basically the report has 450 columns and hence we created this format.
I am not sure what this means. I have been advised by SAP to follow instruction on note 17895 - Adapting print list formats for customers however i cant fully comprehend point 5 of the note and I believe this is why it wont print. Has anyone adapted ABAP list using this note. Can you please let me know how i should go about printer initialisation mentioned in the noted.
We have checked everything however dont seem to get around the issue. Any ideas will be appreciatedNo comments
-
Hi Experts,
I have a requirement to print: "Page XX of XX" in my ABAP List report (this report is meant to be printed).
For Current Page, I know that the system field is SY-PAGNO. But I can't find the field for Total Page. Is there anyway to print this (Total Page) since it means that we have to predict how long the report will be before we WRITE anything?
Thanks a lot,
SamIn the first statement of ur report u'll have to reserve some lines for footer as follows:
REPORT <prg name> LINE-COUNT 25(2).
here ur list will display 23 lines of data and then 2 lines are reserved for footer.
This means that in each page u can display 23 lines of text. Now depending on number of entries in your internal table which contains data to be displayed, we can calculate the number of pages required to print the total output.
E.g: I have 62 records in my internal table, so to get the total number of pages use the following logic:
(U can find out the number of recs in internal table dynamically using DESCRIBE stmt)
62/23 = 2.69
Round the result to the next integer using CEIL , so the next interger is 3.
So ur total number of pages is 3. And u now the current page number by sy-pagno.
Hope this solves ur problem. -
Inactivate the print button is the ABAP list
How can I inactivate the print button in the report program (ABAP list)?
I can inactive the print button on selection screen by using 'RS_SET_SELSCREEN_STATUS'. But can't achieve the same effect after the program jumped to the list output screen.
Thanks!hi,
To achieve this you need to create your own custom pf-status. The tcode for creating new pf-status is se41. Goto SE41, enter the program name and click create.
Enter the menu bar buttons, application tool bar button and Function key as per your requirement. Active the pf-status. Once the pf-status is created, use this in your program using the statement.
set pf-status 'ZPF'.
Regards,
Richa. -
Print preview in abap list format (OMLV) - Need preview in graphical format
Dear All
I am facing a problem with the print preview. (transaction code OMLV)
When i am clicking on print preview button the system is displaying the output in a ABAP list format.
and also the printout shows only the ABAP content.
Pl. advise on how to view the print preview in a graphical format and not in the ABAP list format and pl. let me know the setting to print the spool in the graphical format.
Thanks,
MaxxHi,
this problem is not only related to warehouse. even the print preview spool for GR/GI slip in t-code SP01 shows as ABAP list and not as graphical screen.
my question is why does the system shows the print preview for spool as an ABAP list instead of graphical view.
pl. advise
Thanks,
Maxx -
Trying to print ABAP List in Unix
I am new to SAP and I am trying to print using unix as my host spooler. I am printing to a Xerox machine connected to a print server. I am just trying to print the test ABAP list you get when you go into SPAD and select Utilities/ouput devices then select ABAP List. When I print this I get nothing but ABCD and a bunch of numbers. I am trying to figure if the ABAP list is supposed to be that way or if something is wrong with my driver.
Hello Rodney,
What device type did you specify in the SPAD Output Device definition? You need to make sure you select a device type which is compatible with the printer. If the printer supports postscript printer language, then you need to select the 'Post2' or 'postscpt' device types. If the printer support PCL, then test with 'hplj4' device type. Most likely the currently selected device type is not compatible with the printer and therefore creates a print file which the printer cannot interpret.
Regards,
Nathan -
Printing a simple abap-list in panel-format (DIN A4)
Hallo Ladies and Gentlemen,
i have a simple abap-list. when i print it, the list will be printed in landscape-format. how can i change it? i have to print it in panel-format.
Thanks a lot,
MarcelHi Marcel,
I think you have to click on the "Full Administration" button t see the option for "Page Formats"...
Also go to transaction SPAD,
in Devices / Servers tab press Output devices button
Double click on the device type of your printer
Press button Formats
and here you get a list of all formats for your printer
Regards,
Abhy -
Put logo in ABAP list/smallest font when sending to spool
Hi Gurus,
I have a requirement. I did a ABAP list, not ALV, classic one, I also send it to spool and then convert to pdf and download to pc.
Now our customer wants a logo for it, also as the report is long, when print it or downloading it to pdf, some of parts are missing. So they say that can't we take it in smallest fonts??
So is it possible to place logo for a classic ABAP list and is it possible to send it in smallest fonts when sending to spool or downloading to pdf??
I will be pleased for your replies.
Thanks.Hi,
ABAP lists are simple reports with just rows and columns with text only. it is not possible to put a graphic into an ABAP list. For graphics, you need to use a sapscript form or smartform to create the spool.
Regards,
Aidan -
Print preview in abap list format
Dear All
I am facing a problem with the print preview.
When i am clicking on print preview button the system is displaying the output in a abap list format.
but when i m taking the print it is coming correctly.
The out put format is different in the print preview where as when i am taking the output it is coming correctly.
Pls help me out on this.Please check this answered link:
Invoice print preview defaults to ABAP List View -
Hi ,
I want to know how to change font size in ABAP list report.
I want to enlarge the font size.
I have tried print control but it doesn't work.
I have also tried line size and line count
but it can only reduce the font size .
Thanks.
JohnHi Kong,
Try with following example:
REPORT ZFONT NO STANDARD PAGE HEADING LINE-SIZE 80 LINE-COUNT 65.
NEW-PAGE PRINT ON.
PRINT-CONTROL FUNCTION 'SF000'.
WRITE: / 'This is CPI 20'.
PRINT-CONTROL FUNCTION 'SF020'.
WRITE: / 'This is CPI 6'.
PRINT-CONTROL FUNCTION 'SF008'.
WRITE: / 'This is CPI 12'.
PRINT-CONTROL FONT 1 LPI 6.
WRITE: / 'font 1 lpi 6'.
PRINT-CONTROL FONT 2 LPI 6.
WRITE: / 'font 2 lpi 6'.
PRINT-CONTROL FONT 3 LPI 6.
WRITE: / 'font 3 lpi 6'.
End of print-control
NEW-PAGE PRINT OFF.
End of Program
thnks
Anurodh -
How to debug Abap List in New Debugger?
Hi All
How can we debug the ABAP list in the new debugger? I know that it can be done by switching to old debugger.
Or
Did SAP by any chance missed this option?
Regards,
RupeshYou can just look for this variable (SAPMSSY0)%_LIST
it is an internal table of the current list; double_click on it and you will get a look at the contents of the table
slide your horizontal scroll bar to the right till you get the field LINE . Here we go !
18.08.2011 Progr. ZIPPO_FOR_ALL_SERVICE 1#1########`
##########R
##########R
LH 0400 DE FRANKFURT FRA US NEW YORK JFK 6.162,0000 KM ##########R
LH 0400 DE FRANKFURT FRA US NEW YORK JFK 6.162,0000 KM ##########R
LH 0401 US NEW YORK JFK DE FRANKFURT FRA 6.162,0000 KM ##########R
LH 0401 US NEW YORK JFK DE FRANKFURT FRA 6.162,0000 KM ##########R
Edited by: luciano puppo on Aug 18, 2011 11:36 AM -
Hi Experts,
I am facing an issue in priniting. Print Preview of form is coming in ABAP list format and there is no option to change in OTF format.
RahulHi,
Pl follow the below steps,
1. If you print via access methods U/S and use SAPlpd, replace SAPlpd with SAPSprint (note 894444).
2. If you print via access methods 'F', switch to access method 'G'.
3. Download device type THSWINU that is attached to this note.
4. Import the device type using report RSTXSCRP and assign it to package SPOO.
5. Assign the device type to your output devices that formerly used THSAPWIN.
Hope this helps,
Thanks,
Naga -
Hi expert ,
How to edit font and size in ABAP list ?
Currently, I'm writing code as below but not effect in my ABAP list.
PRINT-CONTROL SIZE 50 COLOR BLUE FONT 20 LPI 10.
WRITE: / ' test font and size'.
pls help me . Thank you so much all.
Edited by: kishan P on Oct 12, 2010 3:32 PMTry with this copied from SAP IMG website
REPORT ZFONT NO STANDARD PAGE HEADING LINE-SIZE 80 LINE-COUNT 65.
Start of print-control
NEW-PAGE PRINT ON.
PRINT-CONTROL FUNCTION 'SF000'.
WRITE: / 'This is CPI 20'.
SKIP.
PRINT-CONTROL FUNCTION 'SF020'.
WRITE: / 'This is CPI 6'.
SKIP.
PRINT-CONTROL FUNCTION 'SF008'.
WRITE: / 'This is CPI 12'.
Depending on your SAP printer device, this may also work
PRINT-CONTROL FONT 1 LPI 6.
you can try to change font and LPI numbers
WRITE: / 'font 1 lpi 6'.
PRINT-CONTROL FONT 2 LPI 6.
WRITE: / 'font 2 lpi 6'.
PRINT-CONTROL FONT 3 LPI 6.
WRITE: / 'font 3 lpi 6'.
End of print-control
NEW-PAGE PRINT OFF.
*--- End of Program -
Printing ABAP list in fontsize
Hi,
Could we set perticular font-size for printing ABAP list ?
Regards,
Amit RHi Amit
Check the link below , it will be useful to u.
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a95e351ea11d189570000e829fbbd/content.htm
http://www.oce.com/NR/rdonlyres/eihvvkydvfbuf4txsdbwcufqggviov54zgwkxx4yaxlozj5ajs4bcijjakhg3x573vznycykih2bop3yxtklzumddue/SAPimplementation.pdf
The FORMAT statement and associated COL<xx> print controls supersede color setting with PRINT-CONTROL and CO00<n>.
The R/3 standard includes these COL<xx> print controls:
COL0H: Color off, font intensified
COL0N: Color off, normal font
COL0V: Color off, inverse font
COL1H: Title color, font intensified
COL1N: Title color, normal font
COL1V: Title color, inverse font
COL2H: Standard color, font intensified
COL2N: Standard color, normal font
COL2V: Standard color, inverse font
COL3H: Total color, font intensified
COL3N: Total color, normal font
COL3V: Total color, inverse font
COL4H: Key color, font intensified
COL4N: Key color, normal font
COL4V: Key color, inverse font
COL5H: Positive color, intensified font
COL5N: Positive color, normal font
COL5V: Positive color, inverse font
COL6H: Negative color, font intensified
COL6N: Negative color, normal font
COL6V: Negative color, inverse font
COL7H: Group color, font intensified
COL7N: Group color, normal font
COL7V: Group color, inverse font
Message was edited by: sreekanth reddy
Maybe you are looking for
-
Return of Goods from Customer to a Manufacturing Plant
Hi, This is a scenario of Return of Goods from Customer to a Manufacturing Plant and Excise Registers RG23A Part 1 and RG23A Part 2 need to be updated. As the material is finished goods so its material type in J1ID is RG1 in the manufacturing plant.
-
Can't make start up items disappearing
Hi, Everytime i start leopard there are two things starting automatically. I can't figure out how to make them not starting: 1 Finder opens some path on idisk, always the same path, though it wasn't there at last shut down 2 Automator want me to crea
-
Embedded LDAP on Weblogic Server
Hi Everyone i'm currently using the embedded LDAP available in Weblogic for Security for SOA 11g The users are getting updated on the system-jazn.xml file.But i dont know where the email information is getting stored. Does anyone know where it is sto
-
No Handoff on iPad 3rd Gen.
Updated my iPad 3rd gen to 8.1 and trying to use the new continuity feature,but I realized that in settings / general under spotlight search that Handoff and suggested apps aren't even their. I was almost certain that handoff worked with iPad 3? so
-
The plugin says that Firefox does not allow it.