Problem in OOPs ALV using the BOX_FNAME property in LAYOUT
Hello Guys,
I am trying to use the property BOX_FNAME property in the LAYOUT of OOPs ALV, as a CHECKBOX for selecting the records and then processing the selected records.
Also i need to implement the functionality of SELECT/DESELECT ALL.
Below is the code i am using:-
DATA : w_layo TYPE lvc_s_layo. " Layout
w_layo-box_fname = 'MARKE'.
MARKE is a field used in internal table as CHAR01 field.
But know when i select record on display, the internal table field MARKE is not reflected back with the values.
Please suggest if i am missing something.
Thanks in advance.
Regards,
Tarun Gambhir
Solved by own, using method GET_SELECTED_ROWS of class CL_GUI_ALV_GRID.
Regards,
Tarun
Similar Messages
-
Displaying subtotal text in alv using the fm reuse_alv_grid_display
Hi,
Can someone help me with this, I am having some problem in displaying the subtotal text in subtotal field in alv. I tried populating the layout of the alv with the text that will be displayed on the output but nothing happens. Is is possible to display the subtotal text in alv using the fm reuse_alv_grid_display? If so, what are the things that I must consider to display the subtotal text in alv output.
Please help me with this. I promise to give you points if you resolve this problem.
Thanks,
GieHi ,
Make it use in your code and let me know if u have any concerns...
Use "Subtotal_text" in events table.
here GTOTAL is field in itab on which we sortindf data, and use your own field on which field u want to sort...
refresh gt_event.
clear gw_event.
call function 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = gt_event.
Subtotal
read table gt_event with key name = slis_ev_subtotal_text into gw_event.
if sy-subrc = 0.
move 'SUBTOTAL_TEXT' to gw_event-form.
append gw_event to gt_event.
endif.
form subtotal_text using uw_subtot_line type ty_main
uv_subtottxt type slis_subtot_text. "#EC CALLED
if uv_subtottxt-criteria = 'GTOTAL'.
uv_subtottxt-display_text_for_subtotal = 'TOTAL'.
endif.
*FORM build_sort .
refresh gt_sort.
gw_sort-spos = 1.
gw_sort-fieldname = 'GTOTAL'.
gw_sort-tabname = 'GT_MAIN'.
gw_sort-up = 'X'.
gw_sort-subtot = 'X'.
APPEND gw_sort TO gt_sort.
CLEAR gw_sort.
Reward points once its useful.. -
We bought an iphone 4s for our daughter. We transfered it to straight talk. She can make calls and text no problem. She can use the WiFi but is unable to use the internet or mms. How do we update the APN?
To clarify for anyone who is still having any problems doing this.
1. Unlock your phone with the carrier ( I know the process will work if it is jail broken but I am assuming you dont want to void the warranty on your phone) NOTE: even if you purchased the phone outright at Wal-Mart it is still locked to ATT so you will have to unlock the phone. If it's already unlocked skip to step 2. This works and will work even if you update the phone.
1a Here is the link to unlock a ATT iphone. Simply follow the instructions https://www.att.com/deviceunlock/client/en_US/
2. Get a T- mobile SIM. Even if you don't want the service, if you feign interest, they will send you one for free or 99cents. If you need it now you can get one at a T-mobile store too.
3. Once you have both your Straight talk SIM and your T-mobile SIM follow these instructions:http://www.youtube.com/watch?v=mFFf5uqk18M
4. If you have any remaining questions look at all the responses posted previously on this thread or check out the Howard Forums Wiki: http://wiki.howardforums.com/index.php/Straight_Talk_iPhone
Everything should work flawlessly at this point. If not let me know and I'm happy to help when I can. I hope this makes doing this very easy for everyone in the future. God Bless -J -
View dimension hierarchy using the filter property of data form
Hi,
I created a data form where I want to show the dimension hierarchy. But when I am filtering the form using attribute dimension then the hierarchy is not being shown in the form.Is their any way so that I can use the filter property also and make the dimension hierarchy visible in the data form?
Thanks.847833 wrote:
Hi Endy,
Thanks for your reply. I have used the "equal" function as to set that specific attribute as I am choosing the descendants function against the attribute dimension,it's showing error.Hi,
What's the error ? You have to use a function, otherwise it will only display the member you picked.
Actually in our dimension structure we have a 3 generation hierarchy and the attribute is only associated with the 3rd generation member. So we want to display the 3rd generation having the specific attribute "xx" wit the entire hierarchical structure in our data form.
Can you please tell me if I have missed anything?
Thanks.If you want to display the attribute value in the form, edit the form, go to the "Layout" tab, and click on your row. On the right side of the screen, you have a section called Display Properties. Check the box called Enable custom attributes, then check your attribute name. Save the form and you will have the attribute value displayed at the right of the member name. -
So here's my problem. I just used the "reset all settings" option, and accidentaly restored an old backup. It deleted all my photos and contacts, but for some reason I still have all the apps from after the backup date,and it also kept the notes from after the backup. The "reset all settings" option clearly says no loss of data or media, so I don't understand why some stuff got deleted. My question is, is there a way to get it back?
If you still can find a recent backup listed in iTunes/Edit/Preferences/Devices, use this one to restore from.
If there are no recent backups listed, your data is gone. Only if you included the iTunes backup folder into your computer backup routine, you could be able to restore this folder and find one of your latest backups listed again.
iTunes: About iOS backups -
actually i am use iphone5 in bangladesh. But i am facing some problem , when i am useing the internet over cellular data network. when i am open the cellular data on but no icon E display but when Enable 3G on-of then E is aviable.its a device problem or Carrier ?
Hafizur Rahman wrote:
when i am open the cellular data on but no icon E display but when Enable 3G on-of then E is aviable.its a device problem or Carrier ?
Problem? I'm not even sure what your problem is, much less whether it's a problem with the phone or the carrier. -
Using the Suspensibility property of a Webdynpro application
Hello Experts,
I have around 10 WDJ applications.All these applications are hosted on different iviews on portal.
I use the portal navigation to navigate between these applications.I want to use the Suspensibility property of the applications so that i dont have to reload them everytime they are called by other applications.
My Question is : The Suspensibility property stores the state of the application as it is. This will be done for multiple applications. Does anyone know where is this temporary storage done and how much of an effect will it have on the performance of the applications overall.
Regards,
ViragHi Virag,
You can use Suspend & Resume plugs for the same. Refer below SAP NetWeaver Library link & asoociated links.
http://help.sap.com/saphelp_nw04s/helpdata/en/68/3aee42c4257176e10000000a1550b0/frameset.htm
Hope this helps you.
Kind Regards,
Nitin -
DatabaseLogOnList - Use the LogOnInfos property to specify logon infos
Hi,
I use CRYSTAL REPORT 2008 to develop reports and view these reports using crystalreportsviewers in web application on dot net framework.
when I run this application the report displayed the messege "DatabaseLogOnList - Use the LogOnInfos property to specify logon infos".
could you tell me why and soluction please?
The code is:
ParameterField parametro;
ParameterDiscreteValue parametroVal;
DataTable dt;
ReportDocument crReportDocument;
FormulaFieldDefinition crFormulaDefinition;
string db = System.Configuration.ConfigurationManager.AppSettings["Database"].ToString();
string user = System.Configuration.ConfigurationManager.AppSettings["Username"].ToString();
string pwd = System.Configuration.ConfigurationManager.AppSettings["Password"].ToString();
string server = System.Configuration.ConfigurationManager.AppSettings["Server"].ToString();
string RPTtemplatePath;
//--inizializzazione report--
crReportDocument = new ReportDocument();
crReportDocument.Load(RPTtemplatePath);
//--inizializzazione report--
ConnectionInfo crConnInfo = new ConnectionInfo();
crConnInfo.DatabaseName = db;
crConnInfo.UserID = user;
crConnInfo.Password = pwd;
crConnInfo.ServerName = server;
crConnInfo.IntegratedSecurity = false;
//autentico il mio report principale
SetDBLogonForReport(crConnInfo, crReportDocument);
//autentico tutti i sottoreport richiamati dal report principale
SetDBLogonForSubreports(crConnInfo, crReportDocument);
//--istanza ODS per report (DATATABLE)--
dt = new DataTable();
it.cdlan.gestionale.bll.objectManager.report.Report_Mgr MGR = new it.cdlan.gestionale.bll.objectManager.report.Report_Mgr();
dt = MGR.GetDTInterventiFatturazione(idAnagrafica, idServizio, dataFatturazione);
crReportDocument.SetDataSource(dt);
//--istanza ODS per report (DATATABLE)--
//--parametri per report--
parametro = new ParameterField();
parametroVal = new ParameterDiscreteValue();
parametro.Name = "idAnagrafica";
parametroVal.Value = idAnagrafica;
crReportDocument.SetParameterValue("idAnagrafica", parametroVal.Value);
parametro = new ParameterField();
parametroVal = new ParameterDiscreteValue();
parametro.Name = "idServizio";
parametroVal.Value = idServizio;
crReportDocument.SetParameterValue("idServizio", parametroVal.Value);
parametro = new ParameterField();
parametroVal = new ParameterDiscreteValue();
parametro.Name = "dataFatturazione";
parametroVal.Value = dataFatturazione;
crReportDocument.SetParameterValue("dataFatturazione", parametroVal.Value);
//--parametri per report--
//--parametri Per Intestazione Titolo Report--
crFormulaDefinition = crReportDocument.DataDefinition.FormulaFields["Intestazione"];
crFormulaDefinition.Text = "\" " + DateTime.Parse(dataFatturazione.ToString()).ToString("dd/MM/yyyy") + "\"";
//--parametri Per Intestazione Titolo Report--
CrystalReportViewer1.ReportSource = crReportDocument;
private void SetDBLogonForSubreports(ConnectionInfo crConnInfo, ReportDocument crReportDocument)
Sections sections = crReportDocument.ReportDefinition.Sections;
foreach (Section section in sections)
ReportObjects crReportObjects = section.ReportObjects;
foreach (ReportObject crReportObject in crReportObjects)
if (crReportObject.Kind == ReportObjectKind.SubreportObject)
SubreportObject subReport = (SubreportObject)crReportObject;
ReportDocument subReportDocument = subReport.OpenSubreport(subReport.SubreportName);
SetDBLogonForReport(crConnInfo, subReportDocument);
private void SetDBLogonForReport(ConnectionInfo crConnInfo, ReportDocument crReportDocument)
Tables tabelle = crReportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table tabella in tabelle)
TableLogOnInfo myTableLogonInfo = tabella.LogOnInfo;
myTableLogonInfo.ConnectionInfo = crConnInfo;
tabella.ApplyLogOnInfo(myTableLogonInfo);
Thanks
TeresaWithout trying to parse through all of your code line by line, you seem to be trying to set the database by connecting to the database directly and then you pass it a datatabe. You should pick one or the other and try it.
-
Problem with OOPS ALv-field editable
hi experts,
I am displaying one report using OOPS ALV. Now i am inserting a line in the output, so some mandatory fields are automatically filled up in the new line, and i am trying to fill new values for the remaining empty fields, So initially they are non-editable in the fieldcatalog.if i click on the 'INSERT LINE' button then only the fields shud be input enabled, how to do this.
Thanks in advance,maybe sample report BCALV_EDIT_04 might help you there.
-
OOPS ALV using Docking container
Hi,
I am trying to use ALV using oops concept, but the report is not displaying the ALV grid.
{please let me know if there are any error.
Edited by: Arunsri on Jun 3, 2010 5:42 PM
Edited by: Rob Burbank on Jun 3, 2010 11:57 AMdata : alv_container type ref to cl_gui_docking_container.
data : alv_grid type ref to cl_gui_alv_grid.
data : layout type lvc_s_layo.
data : variant type disvariant.
check alv_container is initial.
CREATE OBJECT alv_container
EXPORTING
* parent =
repid = sy-repid
dynnr = sy-dynnr
side = alv_container->dock_at_left
* extension = 1550
* style =
* lifetime = lifetime_default
* caption =
* metric = 0
* ratio = '95'
* no_autodef_progid_dynnr =
* name =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*- Make the docking container as parent to the grid
CREATE OBJECT alv_grid
EXPORTING
i_parent = alv_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 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.
* layout-zebra = 'X'.
PERFORM build_fieldcat.
variant-report = sy-repid.
*- Call grid for display
CALL METHOD alv_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'WT_TEST'
is_variant = variant
i_save = 'A'
* is_layout = layout
CHANGING
it_outtab = WT_TEST
it_fieldcatalog = wt_fcat_log
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
Problem in oops ALV top_of_page
Hi all,
Iam using oops ALV to display by using custom controls.
We need to display selection screen parameters on top of page.
Iam using the method top_of_page and creating the instance in PBO module of the screen as shown.
MODULE status_0600 OUTPUT.
SET PF-STATUS 'PF-001'.
SET TITLEBAR 'ZTITLEBAR_836'.
*Create object of the event class and setting handler for double click
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_double_click FOR cl_alv_grid.
*Create object of the event class and setting handler for top of page
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_top_of_page FOR cl_alv_grid.
*display top of the page
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->display_top_of_page FOR cl_alv_grid.
ENDMODULE. " STATUS_0600 OUTPUT
in method iam writing required details by 'REUSE_ALV_COMMENTARY_WRITE'
it is not showing any affect on the output screen.
Regards,
Anil.
A suggestion can make a difference.Hi,
To print top of page in oo alv, you can use class cl_dd_document, when you use method TOP_OF_PAGE in class CL_GUI_ALV_GRID
Refer:
Top Of Page in OO ALV
Hope this helps you.
Regards,
Tarun -
Problem in OOP ALV-ALV not displaying.
Hi Gurus,
Can we use OOP alv concept in normal executable program or we need to do it in module pool ?
I did an example alv program..but it is not exectuing .
Can anybody tell me the answer ?
Thanks.Hello,
To use OO ALV you need to create a container in module pool. But you can still call it from an executable program. Just create an executable program and use call screen 0100. Now double click on 0100 and create a screen which has a container on it then in the PBO module just caal the methods for the custom container and alv. Upon execution of the program, the alv will be displayed.
Regards,
Sachin -
Using the click property in a SWFLoader
I'm using a SWFLoader to load a flash made button. I thought
I would've no problem navigating from one screen to another by
clicking on the SWFLoader, but the click property just doesn't seem
to work, eventhough I'm using a model locator and methods that I've
used several times before for navigation with no problem at all.
Is there anything special that needs to be done in this
case?I tried with a sample and it seems to work.
Some points which might be worth checking....
1. Have you tried a sample app and found it working ?
2. Is the Flash SWF being loaded into a different
SecuritySandbox ?
3. If answer for 2 is YES, have you called
Security.allowDomain() for the domain of the loaded SWF?
More explanation here under the Event security section
http://livedocs.adobe.com/flex/3/html/05B_Security_08.html#129093 -
Problems while uploading files using the FileReference API
I've built an image uploader module in Flex using the FileReference API and PHP.
While this works perfect for images upto 1 MB, What I'm noticing is that for images greater that 1 MB even after the Event.COMPLETE has triggered, the file hasn't yet been uploaded into the folder.. its only after a couple of seconds or minutes after the Event.COMPLETE, that the image actually shows up in the FTP folder. Morever I also noticed that for such files the DataEvent.UPLOAD_COMPLETE_DATA that we are using to get feedback from PHP never gets called.
I thought it would be related to the PHP script getting timed out... but the PHP script does get executed and the images do show up in the folder but thats way after the Event.Complete has been triggered and more importantly DataEvent.UPLOAD_COMPLETE_DATA doesnt get called.
Everything seems to work fine as long as the file size is under 1 MB
Did others too face similar problems and any ideas on how to fix it?
Thanks in advanceI don't believe there is, as the browse button renders out as an html input type file component, and this has no ability to get native file size from the client. The only way to do it is to check the file size server side, but that kind of defeats the purpose to some extent, as the file is required to be uploaded before the file size can be checked.
There is no way to do this on the client short of using a third party client side component - ie. java, flash or some other active component that gets file system level access.
Ben -
Problem with HowTo guide - Use the BI Java SDK in a Web Dynpro Application
Hello,
I am following the HowTo guide - Use the BI Java SDK in a Web Dynpro Application
at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e49be590-0201-0010-0c83-fc20e5da124f">this link</a>.
I have configured the connector on the WAS as needed.
The problem is that when I run the application I receive an Unauthorized error on the connector URL.
If I open this URL on a browser I receive a pop-up for UID and PWD and when I enter the same UID and PWD I used to configure the connector I am able to login and see the WSDL.
Any ideas?I've never tried using BI in WebDynpro !!!
But i foond one posting on the connection problem https://forums.sdn.sap.com/click.jspa?searchID=955524&messageID=2133396
Regards,Anilkumar
Maybe you are looking for
-
IPod mini seen on desktop, not in iTunes
The iPod is fully charged, I have reset it about 4 times, I've restarted my computer, and I've done everything else detailed here: https://discussions.apple.com/thread/695939?start=0&tstart=0 (though one of the messages is for a Windows computer) I a
-
File transfer protocol supported by Cisco infrastructure
We are having issues uploading new endpoint firmware updates to TMS and firmware updates to our VCS-C and VCS-E. Talking with our network team, FTP is not supported between the network segments I am traversing. They can create some SFTP exceptions,
-
When I install OS 10.6 -Snow Leopard-will iMovie 6 still be compatible along with the 3rd party plug ins? Also, Firefox says Apple no longer supports OS 10.5 as far as security goes. Now what do I do? I like to use both Safari and firefox.
-
Ingest Issue ... Never getting passed the first file
Sorry to bore you all with a dreary ingest issue but even after a very laborious uninstall, reinstall, I still have the issue. In short, I want to upload a load batchs of 100 .mov and mpg files. I do not want any transcoding for the moment. I use the
-
URGENT HELP PLEASE!!! iweb is refusing to publish my site to my FTP server
HELP!!! iweb is refusing to publish my site to my FTP server. I've tried Filezilla, Panic Tramsmit to upload my iweb created site to my ftp server - hosted by Uk-Cheapest - server.microlite5.com. I've also saved the files to both my hard disc and my