Regarding Table data display
Hi experts,
I have one ztable having some fields, the end user will not have authorize for (SE11 and SE16) . I want to make program for display that table data. And also want put filter options( Select-options) for all fields, User wants select some fields based on that fields want display all data from that table. How can i do this?
Please help me? Any coding?
Thanks and Regards,
Linganathan.K
Moderator message : Not enough re-search before posting, discussion locked.
Message was edited by: Vinod Kumar
Dear Linganathan,
It is purely based on your requirement.
1. If the users are strictly restricted for SE11 and SE16 then table generator would be a probable option
2. However, when you restrict SE11 and Se16 I do not think so you will give SM30 also...
3. Are you allow user to maintain/edit the table?
3. Do you want to provide selection parameter...
Based on this, probably you should go for a small report program that displays data in the ALV format accepting the input parameters as selection range.
Regards,
Venkat
Similar Messages
-
SAP R/3 table data display
Hello All,
In SAP R/3 in tcode SE11 when I display data for table EKBE, for few currencies amount is different in tabular layout and display mode of individual record. Let me expalin it in detail.
In table EKBE when I display data for any particular purchase order then following values are displayed in tabular layout.
DMBTR 100.05
WRBTR 100.05
But when I select this record and click on display button(F2 function key)
DMBTR 100.05
WRBTR 10005
When I extract this data in BW I get
DMBTR 100.05
WRBTR 100.05
Can anybody please help me to understand
which value is correct ?
why is there a difference in amount in tabular layout and display mode ?
why only WRBTR is different as both are of CURR datatype and created using same Domain.
In ME80FN Amount is displayed as 10005 and user is expecting this in BW output, when I checked in R/3 table I found discrepancy. Your help is greatly appreciated.
Thanks for your help.
Regards
ShilpaHi Simon,
Thanks for your inputs.
Why the amount is changed in display mode only for WRBTR and not for DMBTR as both are of CURR datatype and created using same domain. I fail to understand any logic behind this.
I have even created a ABAP report on this table which displys fields DMBTR and WRBTR, and in the report output following values are displayed.
DMBTR 100.05
WRBTR 100.05
If anybody else has come across this before and has any clue please help.
Thanks and Regards
Shilpa -
Hi Friends,
I am executing an RFC and getting data. I am displaying the data on table as below shown. but I do not want to show this way:
Employee Value
Name1 23
Name1 21
Name1 20
Total 64
Name2 10
Name2 11
Name2 9
Total 30
Name3 11
Name3 10
Total 21
I would like to show as below , Basically I do not want to display multiple times as it is common Name for that chunck or block , example I have 3 Name1 , i do not want to show three times , I want to show only once for that chunck How would I achieve this, Please help. I am expecting to see the OUTPUT as below:
Employee Value
Name1 23
21
20
Total 64
Name2 10
11
9
Total 30
Name3 11
10
Total 21HI Friend,
As i think there is no such standard feature for this. But in our case we have used the following approach.
First you can filter the values and store it in a different node. for this purpose you can use following code
ArrayList uniqueVals = new ArrayList();
for (Object x : myList)
if (!uniqueVals.contains(x))
uniqueVals.add(x);
for(int i =0;i<uniqueVals.size();i++){
wdContext.currentContextElement().setValue(uniqueVals.get(i).toString());
After that you can use the table column's grouping value property to avoid the duplicate column values.
You can use table cell variant feature to enhance the appearance.
Hope it will help.
Regards
Jeetendra -
R4 EA - Table Data Display bug
In version 3.2, when opening a table (via the right click menu option from the Connections Navigator), one of the tabs is Data. When clicked on for a large table, the grid displays after a short wait.
In R4 EA, the same functionality exists, but the user must wait a long time for the "Select * From XXX" to complete. The limit on number of rows returned seems to be either missing or set very high.Hi Steve
Still no response?
I am having same issue when querying a table with XMLTYPE.
How is your XMLTYPE stored in the DB, as a CLOB or as a BINARY XML?
Regards,
Shaun -
Multiple table data displayed on 1 form
Hi,
i have search the forum for a solution but cannot find anything relevent. please help.
I am trying to display fields from two tables on 1 form. I have currently an interactive report using a query of 2 tables and this works fine. When i click on a record to view details on the report it shows data from 1 table and not both.
I have created 2 After Header process 'Automated Row Fetch Conditional' ; 1 for each table but only 1 seems to work at a time.
Hope this makes sense.
AishaHi Aisha,
A VIEW is a SQL object that you would need to create through SQL Workshop. You can create it manually in SQL Commands or go to Object Browser and click the Create button then follow the prompts.
As well as the VIEW you will also need an INSTEAD OF trigger as SQL can not directly update a VIEW's underlying tables.
Have a look at: Re: How to update view resp. table (search for my post that starts "I've detailed a few INSTEAD OF triggers over time" as this explains what you should do)
Once you have a VIEW and a TRIGGER created, using the VIEW for a form is exactly the same as if you were using a simple table.
Andy -
When navigating to a table with a lot of data, it appears no screen refresh is being done when I switch to another app and then back to sql developer. I switched to this table like 10 minutes ago and sql developer is still not responding. The app is not taking up any cpu time, fortunately, it's just taking forever to show me some data.
Perhaps something can be done to refresh the app while it's retrieving data so I don't get a blank sql developer screen when I switch back from another app. Also, I hope this data retrieval hang doesn't prevent me from being able to browse other tabs in the IDE. I'll have to try that one out.I added the plugin but am still seeing the problem I described. I can't make it happen when displaying the particular table's data anymore, but it happens when I execute a count on a large table.
Also, somehow I managed to lose the popup window where you click to apply the query to get the count of rows. -
Reg: Data getting repeated in the table and displayed in the Smartorm.
Hello Experts,
Requirement is to display header data from kna1table and item data from two tables faglflexa and bsid.
Layout is something like this.
Name and Address is capture from KNA1.
Item Details from faglflexa and BSID based on one condition, UMSKZ ne 'X' and 'Y' for the respective KUNNR from KNA1. First Item table.I have taken a separate internal table from print program
Item Details from BSID only based on one condition, UMSKZ eq 'X' and 'Y' for the respective KUNNR from KNA1. Second Item table. I have taken a separate internal table from print program
Calculation based on faglflexa and BSID table on one condition,UMSKZ ne 'X' and 'Y' for the respective KUNNR from KNA1. Third t Item table. Data from the first internal table
The complete thing should be displayed on Smartform for one Customer (kunnr). Then should go to the next customer.
I have a written a code like this, For Example.
loop at kna1 into w_kna1.
Used Table1 in smartform and give a loop to display the item details based on first internal table.
display itemdetails
Used Table2 in smartform and give a loop to display the item details based on second internal table.
display itemdetails.
Used Template to display the item details to display the item details based on first internal table.
endloop.
Now my problem is table 1 is coming fine. table 2 data is getting repeated for all the customers based on 1st customer data, how should i clear the workarea after every customer.
Similar pbm for the template which i'm using.
Please help me on this.
Thanks in advance.
Abdur RafiqueHi Vishnu,
Thanks for replying. I cant use one single table to display the output. There are several conditions in two tables.
I have corrected the error of repetition data. Logic i will mention it below.
loop at kna1 into wa_kna1.
for header data " this is main table
loop at item_1 into wa_item_1. " for first item table
Data displayed.
loop at item_2 into wa_item_2. " for 2nd item table
Data displayed.
endloop. " for 2nd item table
data calculation based on first item table.
endloop. " this is for first item table
endloop." this is for 2nd item table.
The data which is there in the 2nd item table should display data based on the kna1 loop. Data is displaying properly but not in 1 table, say for example.
kunnr- 1000010
there are 9 items.
All the 9 items should be in 1 table. But here it is displaying 1 item in 1 table till 9 items in 9 tables.
I need to club all the 9 items in 1 table.
One more doubt is 2 items have same belnr (document number) i need to club this and add the wmbtr field and then display as 1 record.
So final records in 2nd item table should be 8 not 9.
Can you please help me on this.
Thanks in advance.
Abdur Rafique -
Unable to display table data in Review View
Hi Experts,
I have one main view and one review View .In my main view i have one table (Normal Table) and several other input feilds and text views....
If i click on review button in my main view, am able to see all the data in review view except table data.
How can i get the table data which i have entered in main view.. the same should display in review view.
I binded the same node in both main and review. and node is defined under component controller.
Any ideas?
Regards
Farooq.Hi,
I think you already binded in review view also with same node. right? So data will move automatically and display in
review view also. In WDDOINIT of review veiw read data from that node and use bind_Table.
Cheers,
Kris. -
How to display a table data on Screen having a Table control
Hi ,
I am new to ABAP.I would like to display a table data (Eg: ZDemo) on a screen at run time.I have defined a Table control in screen. Now I want to populate data from ZDemo to table control.How can I do that?Please help moving forward in this regard.Hi Gayatri,
After creating table control do the following steps.
1. In the flow logic section write the following code:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0200.
LOOP AT I_LIKP WITH CONTROL LIKP_DATA CURSOR LIKP_DATA-CURRENT_LINE.
MODULE ASSIGN_DATA.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0200.
LOOP AT I_LIKP.
ENDLOOP.
I_LIKP is the internal table which is used to display table data in the table control.
2. In Process Before Output, in the module STATUS_0200 write the following code:
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
In Process After Input, in the module USER_COMMAND_0200 write the following code:
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
In Process Before Output and in the module ASSIGN_DATA which is there inside the loop write the following code:
MOVE-CORRESPONDING I_LIKP TO LIKP.
So, Totally your flow logic code should be like this.
TABLES: LIKP, LIPS.
DATA: BEGIN OF I_LIKP OCCURS 0,
VBELN LIKE LIKP-VBELN,
ERNAM LIKE LIKP-ERNAM,
ERZET LIKE LIKP-ERZET,
ERDAT LIKE LIKP-ERDAT,
MARK TYPE C VALUE 'X',
END OF I_LIKP,
BEGIN OF I_LIPS OCCURS 0,
VBELN LIKE LIPS-VBELN,
POSNR LIKE LIPS-POSNR,
WERKS LIKE LIPS-WERKS,
LGORT LIKE LIPS-LGORT,
END OF I_LIPS,
FILL TYPE I.
CONTROLS: LIKP_DATA TYPE TABLEVIEW USING SCREEN 200,
LIPS_DATA TYPE TABLEVIEW USING SCREEN 300.
DATA: COLS LIKE LINE OF LIKP_DATA-COLS.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'LIKP'.
SELECT VBELN
ERNAM
ERZET
ERDAT
FROM LIKP
INTO TABLE I_LIKP
WHERE VBELN = LIKP-VBELN.
IF I_LIKP[] IS INITIAL.
CALL SCREEN 200.
ENDIF.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module assign_data OUTPUT
text
MODULE ASSIGN_DATA OUTPUT.
MOVE-CORRESPONDING I_LIKP TO LIKP.
ENDMODULE. " assign_data OUTPUT
*& Module STATUS_0200 OUTPUT
text
MODULE STATUS_0200 OUTPUT.
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE USER_COMMAND_0200 INPUT.
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
Save and Activate the program along with the screen in which you have included table control.
Hope this will help you.
Regards
Haritha. -
Accessing sap tables data and display in webi
Hi all,
i installed business objects edge series.
i want to access SAP tables data and display in webi for adhoc reporting.
Is there any process to achieve this.Hi
currently (April 2010) you have the following options:
1. You load your R/3 data into an SAP BW and use universes based on BEx queries to create WebI reports
2. You can use SAP rapid marts. They contain Data integrator mappings (you need an installation of the DI for this) to extract and load your SAP R/3 data into a relational database. Additionally they provide universes (based on a relational schema) hich ill allo you to build WebI reports.
3. You can use the R/3 connector for the Data Federator (You need a DF installation for this). Please note that the R/3 connector is not yet a product rather just a PROTOTYPE. Take a look here: SAP BusinessObjects Web Intelligence Reporting for SAP ERP [original link is broken]
4. You can try to access the underlying database directly using the appropriate DB drivers. Please note that this is NOT RECOMMENDED. This way you cannot leverage security defined on the R/3 side in your WebI reports and you will not be able to access all data as available in R/3 since some of them are stored encoded/compressed in the underlying tables.
5. Instead of WebI you can use Crystal Reports and the R/3 drivers (eg. SAP Tables, Functions, Cluster) provided when installing the integration kit for SAP.
Regards,
Stratos -
By default In a table Data should be Displayed.before clicking the search b
Hi All,
I m using adf11g.I have taken adf query with panel(thrgh Drag&drop in named Criteria).after that i have taken table(Drag Drop in a form ) from Data Control.
So My Requirement is By default In a table Data should be Displayed.after that clicking the search button *then thrgh criteria then data should be displayed.So plz any body help me this question to the answer.I m waiting for ur reply.
Thanks&Regards
Anup
Cell-9987984070
Edited by: user13098384 on May 10, 2010 12:32 AM
Edited by: user13098384 on May 10, 2010 12:44 AMHi All,
Same problem i m getting.By default Data is not comming bfr search button,if search button then data is comming.Plz give me reply.
Thanks
Anup -
Craete a simple abap object to select data from a table and display
Hi,
I know the concept of abap objects but i never worked on it,
can any one give me simple example of how to create an abap object to display data from mara table.also please send me documents or info regd ABAP OBJECTS.
I want to write a simple report in terms of abap object
Regards,
Sowjanyahi,
Here is hte sample program in se38.
REPORT ZFGLI00003
*-- Include for data declarations and performs
include ZFGLI00003_f01.
*--Include for Classes and their Implementation
include ZFGLI00003_cl.
* selection-screen *
*-- Selection Values : Block1
selection-screen begin of block b1 with frame title text-001.
*-- Ledger
parameters: p_rldnr like zzprodnt-rldnr default 'NP'.
*-- Fiscal year
parameters: p_ryear like zzprodnt-ryear.
*-- Period(month)
parameters: p_rpmax like zzprodnt-rpmax.
selection-screen end of block b1.
*-- Selection Values : Block2
selection-screen begin of block b2 with frame title text-002.
*-- Company ID's
select-options : s_glcomp for ZZPRODNT-ROBUKRS .
*-- Profit Center
select-options : s_prctr for ZZPRODNT-RPRCTR .
*-- Product Assignment
select-options : s_prasn for ZZPRODNT-RZZWWZ01 .
*-- Corporate Brand
select-options : s_crpbd for ZZPRODNT-RZZWWZ05 .
selection-screen end of block b2.
*-- Selection Values : Block3 Download Options
selection-screen begin of block b3 with frame title text-003.
parameters : p_local radiobutton group 1,
p_unix radiobutton group 1,
p_path like rlgrap-filename obligatory
default 'C:P20Z_Formatted.txt'(009).
selection-screen end of block b3.
* At Selection-Selection on value-request for file path *
at selection-screen on value-request for p_path.
if p_unix <> 'X'.
*-- Getting F4 help for output file
perform get_filename changing p_path.
else.
message i999(zi) with
'Sorry !! Function not available for UNIX file.'(i01).
endif.
*-- At selection screen validations
at selection-screen on p_path.
if p_unix <> 'X'.
*-- Validate local file
if p_path+1(2) <> ':'.
message e999(zi) with 'Invalid file path'(006).
endif.
else.
*-- Validate unix file
if p_path+0(1) <> '/'.
message e999(zi) with 'Invalid file path'(006).
endif.
endif.
* Initialization *
initialization.
*-- Initialize the period
perform init_period changing p_rpmax p_ryear.
* start-of-selection *
start-of-selection.
data : o_tm1_intf type ref to lcl_tm1_intf.
create object o_tm1_intf.
*-- Extract the data from ZZPRODNT
call method o_tm1_intf->get_data exporting e_rldnr = p_rldnr
e_ryear = p_ryear
e_rpmax = p_rpmax
e_glcomp = s_glcomp[]
e_prctr = s_prctr[]
e_prasn = s_prasn[]
e_crpbd = s_crpbd[]
importing i_subrc = v_subrc.
* INCLUDE ZFGLI00003_CL *
* CLASS lcl_tm1_intf IMPLEMENTATION
class lcl_tm1_intf definition.
public section.
*-- Data Declaration
data : lv_date type sy-datum, "Date
lv_time type sy-uzeit, "Time
lv_count type i, "Count for total records
lv_acsline type zfgl014-acsline,"ACS line code
lv_amt_curr type zzprodnt-kslvt, "current month amount
lv_amt_ytd type zzprodnt-kslvt, "YTD Amount
lv_check, "check if any record is
"downloaded
lv_msg(100), "message
lv_count_s(5) , "Count for total(char)
lv_amt_curr_s(23), "Current month amount(char)
lv_amt_ytd_s(23), "YTD Amount(char)
lv_ksl_pd(17), "KSLxx
lv_period(2) type n. "month(period)
*-- Types Declaration
types : ty_rldnr type zzprodnt-rldnr, "Type for Ledger
ty_ryear type zzprodnt-ryear, "Type for Fiscal Year
ty_rpmax type zzprodnt-rpmax, "Type for Period
ty_glcomp type range of char4, "Type for company selection
ty_prctr type range of char10, "Type for profit center sel
ty_prasn type range of char6, "Type for prod assignmt sel
ty_crpbd type range of char4, "Type for Corp Brand sel
begin of ty_file, "Type for File
line(150),
end of ty_file,
begin of ty_ZZPRODNT, "Type-ledger summary table
company type OBUKR, "Company
gl_acct type RACCT, "GL Account
cst_ctr type KOSTL, "Cost Center
prt_ctr type PRCTR, "Profit Center
rfarea type FKBER, "Functional Area
wbs_ele type PS_POSID, "WBS Element
prd_*** type RKEG_WWZ01, "Product Assignment
corp_bd type RKEG_WWZ05, "Corporate Brand
ksl01 type KSLXX9, "Total of transactions - 01
ksl02 type KSLXX9, "Total of transactions - 02
ksl03 type KSLXX9, "Total of transactions - 03
ksl04 type KSLXX9, "Total of transactions - 04
ksl05 type KSLXX9, "Total of transactions - 05
ksl06 type KSLXX9, "Total of transactions - 06
ksl07 type KSLXX9, "Total of transactions - 07
ksl08 type KSLXX9, "Total of transactions - 08
ksl09 type KSLXX9, "Total of transactions - 09
ksl10 type KSLXX9, "Total of transactions - 10
ksl11 type KSLXX9, "Total of transactions - 11
ksl12 type KSLXX9, "Total of transactions - 12
ksl13 type KSLXX9, "Total of transactions - 13
ksl14 type KSLXX9, "Total of transactions - 14
ksl15 type KSLXX9, "Total of transactions - 15
ksl16 type KSLXX9, "Total of transactions - 16
end of ty_ZZPRODNT.
*-- Structure Declaration
* Structure for final file
data : x_file type ty_file,
* Structure for Product Ledger Summary table
x_ZZPRODNT type ty_ZZPRODNT,
* Structure for Functional Area to ACS line mapping
x_zfgl014 type zfgl014.
*-- Internal Table Declaration
* Table for records of Product Ledger Summary table
data : it_ZZPRODNT type table of ty_ZZPRODNT,
* Table for final file
it_file type table of ty_file,
* Table for Functional Area to ACS line mapping
it_zfgl014 type table of zfgl014.
*-- Method Declaration.
methods : get_data importing e_rldnr type ty_rldnr
e_ryear type ty_ryear
e_rpmax type ty_rpmax
e_glcomp type ty_glcomp
e_prctr type ty_prctr
e_prasn type ty_prasn
e_crpbd type ty_crpbd
exporting i_subrc type sy-subrc.
endclass. "lcl_tm1_intf DEFINITION
* CLASS lcl_tm1_intf IMPLEMENTATION
class lcl_tm1_intf implementation.
*-- Method get_data selects the North American Product Ledger Summary
* table data and then maps the Functional Area to ACS line to get
* the ACS line code
method get_data.
*-- Local Variable
DATA: L_ZZPRODNT TYPE TY_ZZPRODNT.
*-- Get the data from North American Product Ledger Summary table
select robukrs
racct
rcntr
rprctr
rfarea
rzzwbs_el
rzzwwz01
rzzwwz05
ksl01
ksl02
ksl03
ksl04
ksl05
ksl06
ksl07
ksl08
ksl09
ksl10
ksl11
ksl12
ksl13
ksl14
ksl15
ksl16
from zzprodnt
into table it_ZZPRODNT
where rldnr = e_rldnr
and ryear = e_ryear
and rpmax = e_rpmax
and ROBUKRS in e_glcomp
and RPRCTR in e_prctr
and RZZWWZ01 in e_prasn
and RZZWWZ05 in e_crpbd.
if sy-subrc = 0.
loop at it_ZZPRODNT into l_zzprodnt.
condense l_ZZPRODNT-rfarea no-gaps.
if l_ZZPRODNT-rfarea is initial.
delete it_ZZPRODNT.
endif.
endloop.
*-- Get the Functional Area to ACS line code mapping data
select *
from zfgl014
into table it_zfgl014
for all entries in it_ZZPRODNT
where fkber = it_ZZPRODNT-rfarea .
if sy-subrc = 0.
endif.
endif.
i_subrc = sy-subrc.
endmethod. "get_data
endclass. "lcl_tm1_intf IMPLEMENTATION
* INCLUDE ZFGLI00003_F01 *
* Table
tables : zzprodnt.
* Data Declaration
data : v_subrc type sy-subrc.
*& Form get_filename
* Description : This subroutine is used for F4 Prompting
form get_filename changing p_path like rlgrap-filename.
*-- Local variables
data : lv_file like ibipparms-path, "Local file for upload/download
lv_repid like syst-cprog, "ABAP program, caller in external
"procedures
lv_dynnr type syst-dynnr. "Current screen No
lv_repid = syst-cprog.
lv_dynnr = syst-dynnr.
*-- Function module used for F4 help
call function 'F4_FILENAME'
exporting
program_name = lv_repid
dynpro_number = lv_dynnr
importing
file_name = lv_file.
move lv_file to p_path.
endform. " get_filename
*& Form init_period
FORM init_period changing p_rpmax p_ryear.
if sy-datum+4(2) = 01.
p_rpmax = 12.
p_ryear = sy-datum+0(4) - 1.
else.
p_rpmax = sy-datum+4(2) - 1.
p_ryear = sy-datum+0(4).
endif.
ENDFORM. " init_period
Hope this helps.
Regards,
Richa -
How to display table data without using ALV and table element.
Hi,
Its possible to display table data without using ALV and table element.
Every time i am fetching data based on (customer,status) fields and displaying these data in my output using alv
(every time i am fetching single row data ),
But problem is alv occupying more space in the output , i want to display data part only i dont want field names,
settings and header data etc..things.
Give solution to display data part..
Regards,
Rakhi.Hi,
Does you mean that you need ALV without default Function Toolbar...? If this is the case, the easy solution would have been to use Table Element rather. But, if you need to use ALV only without Function Toolbar, you can do away with that as well.
In that case, after calling GET_MODEL, you need to add few more lines of codes to achieve your goal. Those lines are --
DATA LV_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
LV_VALUE = LO_INTERFACECONTROLLER->GET_MODEL(
* Standard Filter Function setting to FALSE
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_COMPLEX_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_COMPLEX_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_DISPLAY_SETTINGS_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_VIEW_LIST_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_HEADERCLICK_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_HIERARCHY_ALLOWED( ABAP_FALSE ).
* Standard Filter Function setting to FALSE Ends
Here as you can easily notice that LV_VALUE is instantiated on CL_SALV_WD_CONFIG_TABLE. Now, using this LV_VALUE, you set standard functions as False to dis-allow their display.
Hope this answers your query.
Thanks.
Kumar Saurav. -
New page in smart form when displaying internal table data in table
Hi ,
My requirement in smartform is like
I'm using the tables to display the internal table data in main window .
based on SORTF field in the internal table ,when SORTF field value changes all the related to that SORTF value should be displayind in the new page.
Please anybody tell me that , how to do this?
Thanks
NaveenHi Navi,
Try this Logic.
1) Go to Smartform,
2) Declare a flag variable w_flag type c
3)Go to Main Window
a) Go to table
b) Create one more Table Line
c) Create a CODE Line in that.
write inside CODE as Below:-
CLEAR: w_flag.
ON CHANGE OF w_final-sortf.
w_flag = 'X'.
ENDON.
d) Create one COMMAND Under CODE line created above.
click on check Box "Go to New Page" ( Page1 or Page2 or give as reqd ).
click on conditions tabe of COMMAND
write: w_flag = 'X'.
Hope this will work
Reward Points if Useful
regards
Avi............. -
Need a POP-UP which can display internal table data in ALV format
HI All,
I need to display INTERNAL TABLE values through a POP-UP. Only condition is that the window with the internal table data should be in ALV format and not in TEXT only format.
To clarify, I used FM 'POPUP_WITH_TABLE_DISPLAY_OK' and 'POPUP_WITH_TABLE_DISPLAY', but both display the data in TEXT format and there is no provision to put the FIELD names there. Everthing needs to be put into internal table and it displays it in text format.
So I want a FM where I can display internal tabel data in ALV format( same format that would appear if you creata search help for a filed and output window would have all the ALV features like SORT buttons etc.
Hope there is some FM to achieve this ALV format data thing.
Thanks in advance for all your help.
Regards
FX3check this
REPORT y_demo_alv_3.
TYPE-POOLS: slis.
DATA: BEGIN OF i_outtab OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA: w_chk TYPE c. "For multiple selection
DATA: END OF i_outtab.
* I_OUTTAB TYPE SFLIGHT OCCURS 0,
DATA: i_private TYPE slis_data_caller_exit,
i_selfield TYPE slis_selfield,
W_exit(1) TYPE c.
PARAMETERS: p_title TYPE sy-title.
START-OF-SELECTION.
SELECT * FROM sflight INTO TABLE i_outtab.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = p_title
i_selection = 'X'
i_zebra = 'X'
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
i_checkbox_fieldname = 'W_CHK'
* I_LINEMARK_FIELDNAME =
* I_SCROLL_TO_SEL_LINE = 'X'
i_tabname = 'I_OUTTAB'
i_structure_name = 'SFLIGHT'
* IT_FIELDCAT =
* IT_EXCLUDING =
* I_CALLBACK_PROGRAM =
* I_CALLBACK_USER_COMMAND =
* IS_PRIVATE = I_PRIVATE
IMPORTING
es_selfield = i_selfield
e_exit = w_exit
TABLES
t_outtab = i_outtab
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE i000(0k) WITH sy-subrc.
ENDIF.
*****the internal table is modified with a cross sign for marking the
***rows selected
LOOP AT i_outtab WHERE w_chk = 'X'.
WRITE: / i_outtab-carrid, i_outtab-price.
ENDLOOP.
Maybe you are looking for
-
Error in Adobe Document Services on Sneak Preview Java 2004s
Hi, I installed Sneak Preview NW2004s and installed the credentials for Adobe Document Services as per the configuration guide. When i test the Web Service, i get the version info and the response Required stream: "PDFDocument" not found In the logs
-
Where can I buy a certain Macbook A1278 case?
I recently picked up a mid-2010 Macbook Pro, 13.3 inches. It's an A1278 model, and I'm wanting to buy a good case for it. I've seen on multiple occasions people with matte black cases which will cause the apple to change color, and I'd prefer somethi
-
Which forum would be best for this question?
We have an application written in VB6 that utilizes ADO and Microsoft Jet and Replication, specifically Microsoft ActiveX Data Objects 2.5 Library and Microsoft Jet and Replication Objects 2.5 Library. The application has been in daily use in hundred
-
New retina MacBook Pro - WiFi connectivity problems
Dear all, I've recently purchased the new Haswell 13" retina MBP, and I'm having exactly the same WiFi connectivity problems the 2013 Airs had. I have a solid connection for a short time, and at irregular intervals it just drops out. All of my other
-
I can't download games that bigger than 100 mb and if it been downloaded can't be installed
I can't download games that bigger than 100 mb and if it been downloaded can't be installed