Dynamic list heading.
Hi,
Can some one send some sample code for displaying headings dynamically
and generating 2 lists at a time.It will be of great use to me..
Thanks,
place same dummy variable control the table heading
top-of-page.
if list = 'x'.
write:
else.
write
endif.
Similar Messages
-
Dynamic List filter not refreshing - suggestions?
Dynamic list filtering problems...
Any suggestions for how to begin trouble shooting this ussue?
(Apache, MySql, php) I have to click multiple times on the column header for a sort to occur and the filter text field drops any entered value when you click the filter button. If you click on the specific filtered column header later, the filter value re-appears and filtering occurs.
The dynamic lists I have been testing are created with the list wizard, with no modifications to any settings, made from recordset or straight from data table. In either case the lists and filtering work with one click in my testing server (same setup) but have these oddities if in the production server.
Any suggestions of what to look for to get it working in the production server for my client...filtering would be wonderful for them!
Thank you anyone for suggestions,
SteveThanks Günter Schenk for the reply however...
So you can see what's happening I created a seperate mysql database with one table and four fields. ID, date, and 2 varchar 50. I then created a dynamic list and form, both made without any hand coding using the wizards.
I made sure all relavent files from the includes folder are up-to-date with 1.0.0 version files.
You are welcome to go to http://www.sunkistkids.org/mmtest/listtest.php to test this.
Also you will find info.php in the root directory of the site just in case you spot any part of the general configuration that might be causing this.
Any further suggestions are very welcome and will be implemented quickly so I can make the filter feature work for the client.
Thank you very much for your time,
Steve -
Creating dynamic list of values
HI,
While I am trying to create dynamic list of values over a table(table1) having the columns h_id ,head_foot and header.I gave the query for creating the dynamic list of values as
select header d, header r
from g.fw_header_footer
order by 1
where d is the display value and r is return value am getting the error
"1 error has occurred
LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
Can any one please suggest me where am going wrong.
Thanks in advance911338 wrote:
HI,
While I am trying to create dynamic list of values over a table(table1) having the columns h_id ,head_foot and header.I gave the query for creating the dynamic list of values as
select header d, header r
from g.fw_header_footer
order by 1
where d is the display value and r is return value am getting the error
"1 error has occurred
LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
Can any one please suggest me where am going wrong.What data type is column <tt>header</tt>? -
Traffic lights in ALV list header
how do i display traffic lights as icons in ALV list header. for example, in the code below, i want to display a green icon at the end of closed items and a red icon at the end of the open items:
closed : 4 [green-icon]
open : 2 [red-icon]
CLEAR header_alv_wa-info.
header_alv_wa-key = 'closed:'.
header_alv_wa-info = gv_closed.
header_alv_wa-typ = 'S'.
APPEND header_alv_wa TO headeralv.
CLEAR header_alv_wa-info.
header_alv_wa-typ = 'S'.
header_alv_wa-key = 'open:'.
header_alv_wa-info = gv_open.
APPEND header_alv_wa TO headeralv.Hi,
http://www.sapfans.com/forums/viewtopic.php?t=79424
http://www.sapfans.com/forums/viewtopic.php?t=24512
the above links will give u the code for the same..
Regards,
Aparna -
S_ALR_87012168 List Header Issue
Dear Friends,
I Am facing problem to resolve the issue as in the standard FI Report S_ALR_87012168 need to hide the list header because if I am executing the report for multiple customers than its displying the all customers in list header so while I am scheduling background job or printing than its printing all the customers in each page than the report data..
Kindly suggest me how to hide the list header, is there any standard cutomizing or enhancement.
Thanks,
DTKHiya
Click on the Currency icon {Ctrl + Shift + F9} and select whatever currency you want it to be displayed on.
It gets converted. Then when you hit the green arrow back, it will sk you whether you want to save the data, if you click yes it gets saved.
Then everytime you execute this report, it will ask you, which layout you want to be displayed as the output - and you can select the one that you saved. And it aint user specfic either. The pop up Qs comes up for all users.
Rukshana -
Referencing a "checked record" from my ADDT Dynamic List using a SPRY Menu
I have just posted a Beta of my site to:
http://www.clearwave.biz/Beta/T1COElogin.cfm
- Username is: Beta
- Password is: 123
- Once you are logged in you should see the ADDT list w/one
order listed.
- Click on the Printer icon & the Order Agreement will
open in PDF. (this works fine)
- Click on the InfoSheet link & the Report will open in
PDF as well. (this works fine)
- Everything works fine if you use the links on the same line
as the record.
- But if you check the CheckBox on the left, then choose the
Spry Menu above, Reports/T1 Agreement the report will not work?
Question: What should the Link be to reference the checked
item below, pass the CustID value to the report & print the
PDF?
(Note: the CF report has the following line in the SQL:
(tblT1OrderProcessing2.T1CustID = #param.T1CustID#) and the report
prints fine in Report Builder if I pass it the T1CustID, as well as
if I click the links on the same line as mentioned above, so this
is just an issue of grabbing the CustID value from the checked line
& passing it to the report link in the Spry menu)
Here is a visual picture of my Dynamic List page:
http://cerberus.clearwave.com/jerry/Order_Management_Main_Page.jpg
Thanks in advance for the help,
jligHere is the Report URL that works perfectly when clicking the
Printer icon on the right of my List:
http://www.clearwave.biz/Beta/reports/T1_Service_Agreement.cfm?T1CustID=1508
and the link to the InfoSheet:
http://www.clearwave.biz/Beta/reports/T1_Information_Sheet.cfr?T1CustID=1508
Both of these work perfectly by grabbing the T1CustID value
of 1508 from the line. -
Dynamic list of values in CR 2008 - request of login to database
I am using CR2008 with VB2005. I created simple application which generate report on different SQL Server 2005 databases.
Report uses OLE.DB connection to SQL Server, I pass logon information in VB using "SA" username and password. The same simple report works great on different databases with one exception: if parameter (dynamic list of values) is used in report it runs correctly only on database it was created (connection to this database is saved in report and can be seen in Database->Set Datasource Location). Changing connection to other databases in VB during runtime causes CR to ask for username and password (in standard parameter window). It looks, like Crystal have one connection for report and the other for dynamic list of values parameter. I pass connection information to report using ConnectionInfo(). I loop through alll tables in report and apply connection:
For Each crTable In crTables
crTableLogOnInfo = crTable.LogOnInfo
crTableLogOnInfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogOnInfo)
Next
I tried to pass connection information also to parameter but I couldn't find such possibility.This is a known issue (Tracking number is ADAPT01333806.) and a note has been written, unfortunately it is not yet published. Below is the note content, including a work-around / resolution. You may also want to try FP 2.3, see that helps. (I'll break this post into two as I'll loose the formatting if I don't.
Reproducing the Issue
Use Crystal Reports 2008 SP2 to create a report with dynamic parameter(s)
Use the following code from the Crystal Reports SDK for VS .NET
Dim crDatabase As Database
Dim crTables As TablesDim crTable As Table
Dim crTableLogOnInfo As TableLogOnInfo
Dim crConnectionInfo As ConnectionInfo
crReportDocument.Load("<path>")
crReportDocument.Refresh()
crConnectionInfo = New ConnectionInfo()
With crConnectionInfo
.ServerName = "<New Server Name>"
.Password = "<password>"
End With
crDatabase = crReportDocument,Database
crTables = crDatabase.Tables
For Each crTable In crTables
crTableLogOnInfo = crTable.LogOnInfo
crTableLogOnInfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogOnInfo)
Next
CrystalReportViewer1.ReportSource = crReportDocument
The above code works with Crystal Reports 2008 SP 1 -
List header for alv grid using abap objects
Hai all,
I have displayed alv grid in container control using abap objects i.e. using method set_table_for_first_display.
now i need to display list header for this alv grid.
please help me how to create with a sample coding.
Thanks and regards,
Prabu S.Create a splitter using CL_GUI_EASY_SPLITTER_CONTAINER with a top and bottom half. Put the alv grid in the bottom half. Use cl_dd_document (documented in help.sap.com ) to build the header in the top half. Use events on CL_GUI_ALV_GRID to handle the top-of-list printing.
Or, if available, use CL_SALV_TABLE, and read the documentation on that. When I needed a header for my report, that's what I did. There's plenty of good documentation about if you'll search for it.
matt -
How to add a column to a list created with the Dynamic List Wizard to display the values of the fiel
Hi,
ADDT, Vista, WAMP5.0
We have 2 tables: clients_cli (id_cli, name_cli, tel_cli, and several more fields) and cases_cas (id_cas, idcli_cas, court_cas, and a lot of other fields).
Clients may have many cases, so table cases_cas have a foreign key named idcli_cas, just to determine which case belongs to which client.
We designed the lists of the two tables with the Dynamic List Wizard and the corresponding forms with Dynamic Form Wizard.
These two forms are linked with the Convert Dynamic List and Form Wizards, which added a button to clients list named "add case".
We add a client and then the system returns to the clients list displaying all clients, we look for the new client just added and then press "add case", which opens the Dynamic Form for cases, enter all case details and everything processes ok.
However, when we view the cases list it display all the details of the case, including the column and values for the foreign key idcli_cas. As you can image, it is quite difficult for a human to remember the clients ids.
So, in the cases list we added a another column, named it Name, to display the names of the clients along with cases details. We also created another recordset rsCli, selected the clients_cli table, displaying all columns, set filter id_cli = Form Variable = idcli_cas then press the Test button and everything displays perfect. Press ok.
Then, we position the cursor inside the corresponding cell of the new Name column, go to Bindings, click on name_cli and then click on insert. The dynamic field is inserted into the table cell as expected, Save the page, and test in browser.
The browser call the cases list but fails to display the values of the Name column. The Name column is simply empty.
This issue creates a huge problem that makes our application too difficult to use.
What are we doing wrong?
Please help.
Charles1. Start transaction PM01, Create Infotype, by entering the transaction code.
You access the Create Infotype screen.
2. Choose List Screen.
3. In the Infotype no. field, enter the four-digit number of the infotype you want to create.
When you specify the infotype number, please remember to enter any leading zeros.
4. In the Screen Number field, enter the screen number of the list screen you want to enhance.
5. Choose Create.
The Dictionary: Initial screen appears:
6. Create the list screen structure.
7. Choose Activate.
8. Return to the Enhance List Screen in the Enhance Infotypes transaction (PM01).
9. Choose Create All.
The additional fields are displayed on the list screen, however, they contain no data.
The fields can be filled in the FORM routine FILL-LISTSTRUCT in the generated program ZPnnnn00. The FORM routine is called for each data record in the list.
Structure ZPLIS is identified when it is generated with a TABLES statement in the program ZPnnnn00.
The fields can be filled from the Pnnnn structure or by reading text tables. -
Prevent Occurence of list header and page breaks in spool file of ALV Grid
Prevent Occurence of list header and page breaks in spool file of ALV Grid Display.
When we run the ALV in background and create spool request then:
Spool file output is coming like this.
Column1 Column2 Column3 Column4
data data data data
data data data data
data data data data
Column1 Column2 Column3 Column4
data data data data
data data data data
data data data data
But the required is like this
Column1 Column2 Column3 Column4
data data data data
data data data data
data data data data
data data data data
data data data data
data data data data
Please suggest a posible answerHello all,
if you have not yet solved this on your own, here is my solution: use a format type that has 60000 lines per page for your spool output device.
It all depends on the format type that was used for creating the spool output.
By default (in our system), we have 65 lines per page. And after each page the column headings of the ALV will appear.
What i did:
create a new format type via transaction SPAD->full administration->device types->format types (copy an existing one)
change"Number of Rows" to 60000 or something applicable
edit the device type of your output device (e.g. LOCL) to contain the newly created format type (via SPAD; Button "Formats" in device type maintenance).
That's it! Be sure to use this format type for your output device in the "Background Print Parameters" window (-> Button "Properties").
Regards
Daniel Klein
All other parameters you discussed before didn't do it. All ALV-Settings will be overwritten by the output device settings and its print properties. -
Reg: Adding spaces between texts in ALV list header
Hi All,
I was implementing a client requirement for ALV. The list header should contain something of this format.
Pgm Id: ZZZ01
After this list header it is ALV display.
I did this using the concatenate statement.
ex: Concatenate 'PgmID' sy-repid into listheader seperated by space.
But this is not showing spaces between text in ALV display. See I want a tabspace between the texts in headr. Any idea on how to mak it?
RakeshDepending on Fontsize the space might be so narrow that you believe its not there.
check in the debugger if there is really a space in the string, the clause "separated by space" will insert one for sure.
May be you'reshowing the ALV before you are modifying the listheader?
Another approach is using strings, blanks at the end of a string are not deleted
concatenate 'ABC ' 'XYZ' into s.
and
concatenate `ABC ` `XYZ` into s.
will give different results, be aware of the difference in the quots in both cases. Using the second example you can insert as many blanks as you want. -
Number formatting in ALV list header
Hi,
I am using an ALV with a list header. Code is as follows:
FORM ALV_SHOW.
DATA G_CALLBACK_PROG LIKE SY-REPID.
G_CALLBACK_PROG = SY-REPID.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_CALLBACK_PROG
I_SAVE = 'U'
IT_FIELDCAT = ITAB_FIELDCATALOG
IS_LAYOUT = GS_LAYOUT
I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'
TABLES
T_OUTTAB = ITAB_SUB_SEARCH.
ENDFORM. "alv_show.
FORM TOP-OF-PAGE.
ALV Header declarations
DATA: T_HEADER TYPE SLIS_T_LISTHEADER,
WA_HEADER TYPE SLIS_LISTHEADER,
T_LINE LIKE WA_HEADER-INFO,
LD_LINES TYPE I,
LD_LINESC(10) TYPE C.
DATA: SHHLDR_INFO LIKE ZSH_SHHLDR.
Title
WA_HEADER-TYP = 'H'.
WA_HEADER-INFO = 'Some Title'.
APPEND WA_HEADER TO T_HEADER.
CLEAR WA_HEADER.
CLEAR SHHLDR_INFO.
READ TABLE ITAB_SUB_SEARCH INDEX 1.
SELECT SINGLE * FROM ZSH_SHHLDR INTO SHHLDR_INFO WHERE FOLIO EQ
ITAB_SUB_SEARCH-FOLIO.
WA_HEADER-TYP = 'S'.
WA_HEADER-KEY = 'Holding '.
WA_HEADER-INFO = SHHLDR_INFO-SHHOL.
APPEND WA_HEADER TO T_HEADER.
CLEAR: WA_HEADER.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = T_HEADER.
ENDFORM. " top-of-page
The problem is that the number for 'Holding' is displayed in the ALV header without any formatting, i.e.
SOME TITLE
Holding 2375385
I want it to be displayed like:
SOME TITLE
Holding 2,375,385
Is there any way to achieve this? Help is appreciated, thanks.
RegardsHi
Use WRITE statament
WA_HEADER-TYP = 'S'.
WA_HEADER-KEY = 'Holding '.
*WA_HEADER-INFO = SHHLDR_INFO-SHHOL.
WRITE SHHLDR_INFO-SHHOL TO WA_HEADER-INFO.
APPEND WA_HEADER TO T_HEADER.
If SHHLDR_INFO-SHHOL is amout, it would be better you used CURRENCY option
WA_HEADER-TYP = 'S'.
WA_HEADER-KEY = 'Holding '.
*WA_HEADER-INFO = SHHLDR_INFO-SHHOL.
WRITE SHHLDR_INFO-SHHOL CURRENCY <currency> TO WA_HEADER-INFO.
APPEND WA_HEADER TO T_HEADER.
Max -
Writing selections in alv list header
Hi,
in alv list header i have to show the values entered in selection screen.
ex.
Current year : 2008
current period : 03
report ID : R_123
company code : I BT AA to BB
I BT CC to DD
I EQ FF
in the above example first three are parameters and company code is select-option, for parameters i can display what i want, but for company code( which is select option) it is showing only first line and not showing other lines.
at the time of filling list header table for select-option, i am looping the select-option, first i am filling with typ, key and info and for other i am filling only info, if i fill typ, key also for other recoreds also it is showing the company code in all lines as below ....
company code : I BT AA to BB
company code : I BT CC to DD
company code : I EQ FF
can any one suggest to get the list header as shown at the begining....
thanks,
bhushanHi,
Check this sample code. Here plant and date are selection screen paramters.
Plant
lwa_header-typ = 'S'.
lwa_header-key = text-t47.
If the select option for plant is 'EQ'
LOOP AT s_werks. "#EC *
IF s_werks-option = 'EQ'.
lwa_plant-werks = s_werks-low.
APPEND lwa_plant TO lt_plant.
CLEAR lwa_plant.
If the select option for plant is 'BT'
ELSEIF s_werks-option = 'BT'.
CONCATENATE s_werks-low
text-t50
s_werks-high
INTO lf_plant.
lwa_header-info = lf_plant.
APPEND lwa_header TO gt_header.
CLEAR lwa_header.
ENDIF.
ENDLOOP.
IF s_werks-option = 'EQ'.
READ TABLE lt_plant INTO lwa_plant INDEX 1.
lwa_header-info = lwa_plant-werks.
APPEND lwa_header TO gt_header.
CLEAR lwa_header.
LOOP AT lt_plant INTO lwa_plant FROM 2.
lwa_header-typ = 'S'.
lwa_header-key = ''.
lwa_header-info = lwa_plant-werks.
APPEND lwa_header TO gt_header.
CLEAR: lwa_header.
ENDLOOP.
ENDIF.
Post date Range
lwa_header-typ = 'S'.
lwa_header-key = text-t33.
If the select option for post date is 'EQ'
LOOP AT s_budat. "#EC *
IF s_budat-option = 'EQ'.
CONCATENATE s_budat-low+6(2) '.'
s_budat-low+4(2) '.'
s_budat-low(4) INTO lf_range.
For multiple values
IF lf_date_tmp IS INITIAL.
lwa_date-date = lf_range.
APPEND lwa_date TO lt_date.
ELSE.
lwa_date-date = lf_range.
APPEND lwa_date TO lt_date.
ENDIF.
If the select option for post date is 'BT'
ELSEIF s_budat-option = 'BT'.
CONCATENATE s_budat-low+6(2) '.'
s_budat-low+4(2) '.'
s_budat-low(4) text-t49
s_budat-high+6(2) '.'
s_budat-high+4(2) '.'
s_budat-high(4) INTO lf_range .
lwa_header-info = lf_range.
CLEAR lf_range.
ENDIF.
ENDLOOP.
IF s_budat-option = 'EQ'.
READ TABLE lt_date INTO lwa_date INDEX 1.
lwa_header-info = lwa_date-date.
APPEND lwa_header TO gt_header.
CLEAR: lwa_header.
LOOP AT lt_date INTO lwa_date FROM 2.
lwa_header-typ = 'S'.
lwa_header-key = ''.
lwa_header-info = lwa_date-date.
APPEND lwa_header TO gt_header.
CLEAR: lwa_header.
ENDLOOP.
ENDIF.
Appending work area to the header table
APPEND lwa_header TO gt_header.
CLEAR lwa_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_header.
<REMOVED BY MODERATOR>
Regards,
Ramya
Edited by: Alvaro Tejada Galindo on Apr 8, 2008 4:30 PM -
Hai Friends,
In my ALV List header..i am writing date , time and my program name.
but all are coming on left side.
can i get date on left side, program name on centered and time on write side.
my code is like this.
FORM list_headers.
lists-typ = 'H'.
lists-info = text-010.
APPEND lists.
CLEAR lists.
lists-typ = 'S'.
lists-key = text-011.
CONCATENATE sy-datum+6(2) '/'
sy-datum+4(2) '/'
sy-datum+0(4) INTO lists-info.
APPEND lists.
CLEAR lists.
lists-typ = 'S'.
lists-key = text-012.
CONCATENATE sy-uzeit+0(2) ':'
sy-uzeit+2(2) ':'
sy-uzeit+4(2) INTO lists-info.
APPEND lists.
CLEAR lists.
ENDFORM.Hi again,
1. first of all how are u writing / displaying
the alv header ?
2. using documentary write ?
then also, u can use one variable of
length 100 and use this concept.
3. If u are using top_of_page
event,
in this event, WE CAN use WRITE.
(i have used it, and it
works fantastic)
(not in case of alv grid)
4. My point is, what ever u are using,
use on variable of length 100.
WRITE value INTO variable.
using offset
and then proceed further.
regards,
amit m. -
Payment terms, Payment method, etc. blank in the Invoice Lists header.
Hello,
I am creating Invoice Lists - LR with F2 - Invoices but surprisingly the payment terms, payment method, VAT registeration no., etc. are not populated into the Invoice Lists header. I think it should have been populated from the 'Payer's' customer master.
I am using 'Copycontrol' routine no. 16; if it is relevant in any way.
Can someone help me with this, cause I need to use these field's data into the printout.
Thanks,
Nandish.Hi Sreedhar,
BBP_UPLOAD_PAYMENT_TERMS program does not work well.I tried using this and this ask for RFC destination(LOGSYS) while replicating the payment terms.
and when you try to see these payment terms in customzing it does not give you correct result and so result in SRM HTML screens.
What I did for this.
There are two tables involved in this
BBP_PAYTERM
BBP_PAYTERM_TEXT .
If you see entries in table BBP_PAYTERM ,it will have data with ERPCLNTXXX system while same kind of data will not be there for SRMCLNTXXX.
You have to copy ERPCNLTXXX data into SRMCLNTXXX data.
To do that copy all data with SRMCLNTXXX ,go to table Entry in Menu and delete all entries.
Then copy all ERPCLNTXXX data and go to Table Entry ,Create with template.
You can do this is SE11 or SE16 transactions.Do similarly with BBP_PAYTERM_TEXT.Please check entries before doing it for BBP_PAYTERM_TEXT table as this table may have similar entries for SRMCLNTXXX and then you will not require to copy all.
Actaully program recognise only Payment terms in SRM.
Once you have done this..You can see in customzing all correct payment terms replicated.
SPRO->SRM server->Cross application basic setting->Create payment conditions.
I hope this helps.
regards,nishant
please reward if this helps
Maybe you are looking for
-
How can i create a Step in OBBH
Hi. I want to use a exit with " exits-param = C_EXIT_PARAM_CLASS." in T-code "OBBH' to change the test of doc item. I create the form and append this form into exits. But now I find i can't create a step in "complete document". Message: You may not
-
Error while installing web tools.
I am currently trying to install E-Commerce and Web CRM on a Windows Vista desktop PC, that we are going to use as a Demo PC for potential customers. It is just a demo, so everything is being installed locally on the Demo PC. I run into an error wh
-
10.5.1 update and nested Smart Groups
After installing the 10.5.1 update, it seems that my address book smart groups no longer "nest" properly within regular address book groups. Example: I have several smart groups built with rules like "email contains company X", these smart groups hav
-
Change charset in Oracle 10g XE
How do I change the charset to WE8ISO8859P1 in Oracle 10g XE ? thanks in advanced
-
Af:clientListener and javascript confirm() dialog
Hi, a common requirement in most of our web apps is to include a warning dialog when a user tries to delete a record, ie. if someone presses on a link to delete a record they get a javascript dialog asking them "Are you sure you want to delete this r