Function Module showing Transparent Table access??
Hi Guys,
I'm in the process of writing some programs that will archive some of our Custom tables (they are getting very full!).
Now, instead of going through ALL the custom tables we created, I'm trying to write a small program that will bring me tables that have certain criteria...
One of the criteria is Tables Access. I'm trying to see when last a table has been accessed (by a program, for example). Im not talking about the last Change Date (as per table DD02L entries) as I presume this actually indicates technical changes to the table??
Im looking for a Function Module that can actually give me the last date any given transparent table's data has been accessed...
Does anyone know of such a Function Module/Class?
tks
C
POINTS WILL BE REWARDED FOR USEFULL AWNSERS
Hello Christian,
To answer your question, it is normally obtained through ST04 (DB Performance Monitor).
However, the inherent information pertinent to Table Access made by application programs depends on the underlying Database involved. In case of DB server being ORACLE...you may use the program RSORASCC.
Also, I would like to make a further recommendation about your methodology to identify custom transparent tables. Besides studying the table accesses, it is very important to consider the current size and the growth rate over a period of time. For doing this, use DB02 (Space Statistics for Tables and indexes) and workout the list of tables which you have to concentrate from archiving perspective.
Hope this info helps you and resolves your query.
With Regards
Vijay Gajavalli
Similar Messages
-
Crystal Reports Based on SAP Function Module and Transperant Tables
Hi,
I need to develop reports based on SAP trasperant tables and to filter the records I require to use one of the function module in SAP.
I have created parameters in Crystal reports that are required for the function to execute and are included in the where clause of the query. This helped the fuction to get those parameters and execute it.
The thing is that the fuction works fine with one set of parameters and gives accurate results both in SAP and Crystal Reports.
But fails for other set of parameters.
It works fine when we directly execute function in SAP produces a record set. But, when we pass those parameters from Crystal Reports it fetches no data.
Can anybody tell me the exact procedure to use function module and transperent tables together in Crystal Reports ?
Thanks in Advance.
Niwas JoshiHi,
This is going to be hard to explain, however you need to recognize that the function has input and possibly output (export) parameters. Crystal Reports is able to work with these parameters. However it is up to you to figure out how these parameters are used effectively to give you the correct results when joining the function with other data sources such as transparent tables.
If you're using transparent tables and functions in a Crystal Report, then you need to link these objects in such a way so that a left outer join for example is using the function's output parameters to join to the transparent table equivalent fields. However if the table is the starting point then the joins from the table should join the Input parameters of your function.
you can set these joins in the Database menu | Database Expert | Links of Crystal Reports. -
Function module to get table description
Is there any function module to get table description on passing table name
Hi,
We need to use : 'G_RW_TABLE_DESCRIPTION_GET' function module.
we pass the table name and the language.
call function 'G_RW_TABLE_DESCRIPTION_GET'
exporting
rw_table = p_table
langu = sy-langu
importing
tab_text = l_tabtext
exceptions
others = 1.
thanx. -
Attach function module to a table field
Hi guys,
I need to add a function module to a table field as a F4 help.
The function module i like to attach is K_GROUP_SELECT.
Like it works in the transaction KS13
Function module--> K_GROUP_SELECT
Please reply urgent will be rewarded with full points.Use the TCode SE11 & create a <b>search help</b> for the Table field in question.
~Suresh -
How to create ENQUEUE function module for s567 table
Hi Experts,
Anyone Plz tell the steps how to create a ENQUEUE function module for the table s567.
Its somewht urgent, plz help me.
<REMOVED BY MODERATOR>
Mohana
Edited by: Alvaro Tejada Galindo on Mar 10, 2008 4:21 PMHi,
You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
Technicaly:
When you create a lock object System automatically creat two function module.
1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
You have to use these function module in your program.
Hope this will give a basic idea.
Regards
Sudheer -
How to find the function module for standard tables.
Hi
Could any one please tell me how to find the standard function module to update the standard tables
Thanks & Regards
SowmyaHi sowmya,
To find the function modules for standard tables you go for a where used list of that particular table and check only function module interfaces checkbox...
and more over you can go for DB_UPDATE_TABLE will be the function module for updating database table..
Hope this information would help you
Regards
Narin Nandivada -
Function Module with RFC for accessing tables
Hello All
I am programming using ABAP in Solution Manager system. I have to take data from tables(T001W and T001K) from a R/3 Server. Is there a function module which extracts data from tables via RFC ?
Thanks
Tharani.Hi,
Check thes FM's:
RFC_GET_TABLE_ENTRIES
TABLE_ENTRIES_GET_VIA_RFC
GET_TABLE_RFC
or develop a RFC enabled FM to get the required data in R/3 and call it from your program
example :
data: wtab type BDSEL_STAT occurs 0 with header line.
data: tab type BDI_ENTRY occurs 0 with header line.
name = T001W.
CALL FUNCTION 'TABLE_ENTRIES_GET_VIA_RFC'
destination dest
EXPORTING
LANGU = SY-LANGU
TABNAME = name
TABLES
SEL_TAB = wtab
NAMETAB =
TABENTRY = tab
EXCEPTIONS
INTERNAL_ERROR = 1
TABLE_HAS_NO_FIELDS = 2
TABLE_NOT_ACTIV = 3
NOT_AUTHORIZED = 4
OTHERS = 5 .
Regards
Laxman
Message was edited by: Laxmana Kumar -
Function module for BSEG table
Hi Guru's,
SELECT bukrs
belnr
gjahr
budat
monat
waers
awkey
FROM bkpf
INTO TABLE i_bkpf_data
WHERE bukrs EQ pa_bukrs AND
budat IN so_budat.
SORT i_bkpf_data BY bukrs belnr gjahr.
IF i_bkpf_data[] IS NOT INITIAL.
SELECT bukrs belnr gjahr koart dmbtr wrbtr pswsl
kokrs kostl hkont aufnr lifnr ebeln buzei shkzg
FROM bseg
INTO TABLE i_bseg_data
FOR ALL ENTRIES IN i_bkpf_data
WHERE
bukrs EQ pa_bukrs AND
belnr EQ i_bkpf_data-belnr AND
gjahr EQ i_bkpf_data-gjahr AND
kostl IN so_kostl AND
lifnr IN so_lifnr AND
hkont IN so_hkont.
ENDIF.
I got performance issue on this Query..while accessing the data from BSEG table,its makes performance issue in my program so i want to improve performance of the program.i was analysed that BSEG table makes performance issue..
Hi..Anybody give the solution imporving this Query or give some function module for accessing BSEG table..
Note..I want to pass my selection inputs also into function module..i was seen some function module for BSEG,those are not satisfying the my inputs so those also making performance issue..
Regards
P.Senthil KumarHi Everybody,
About how to use this function Does anyone have an idea?
I've found it.
call function 'FI_DOCUMENT_READ'
exporting
i_awtyp = 'VBRK'
i_awref = vbfa_tab-vbeln
i_awsys = vbrk-logsys
i_bukrs = vbrk-bukrs
i_gjahr = vbrk-gjahr
tables
t_bkpf = xbkpf
t_bseg = xbseg
exceptions
wrong_input = 1
not_found = 2.
But this is not enough.
Best Regards Rasim. -
SM21 Messages stored in function modules or database tables.
Hi Everyone,
Can anyone please inform me where the messages from SM21 are stored, i.e in which function modules or through which data base tables. And how can I retrieve those messages in my ABAP program for a specific error.
Please respond the earlier the better.
Thanks,
Prashant.Check with the table.
T100 Messages
Regards,
Maha -
Function module for VBFA table
Hi Gurus,
Please Help me on this Issue..
I want to retrieve data from vbfa table..while making query to retrieve data from vbfa tabl,its making performance issue on production server.
SELECT vbelv
vbeln
INTO TABLE i_ref_data
FROM vbfa FOR ALL ENTRIES IN i_billing_main
WHERE
vbelv EQ i_billing_main-vbeln AND
vbtyp_n EQ c_vbtyp_n.
so i have tried to retrieve data using functiom module "RV_ORDER_FLOW_INFORMATION" .in this function i was not able to pass multiple document no to this function module so put this function module inside the loop but this option also making performance issue..
LOOP AT i_billing_main_temp INTO wa_billing_main.
CLEAR : wa_comwa,wa_vbfa.
REFRESH i_vbfa.
wa_comwa-vbeln = wa_billing_main-vbeln.
This function module used for retrieving document flow data from VBFA
CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
EXPORTING
comwa = wa_comwa
TABLES
vbfa_tab = i_vbfa.
SORT i_vbfa BY vbelv vbeln vbtyp_n.
DELETE ADJACENT DUPLICATES FROM i_vbfa COMPARING vbelv vbeln vbtyp_n.
SORT i_vbfa BY vbtyp_n.
READ TABLE i_vbfa
INTO wa_vbfa
WITH KEY vbtyp_n = c_vbtyp_n
BINARY SEARCH.
IF sy-subrc EQ 0.
wa_ref_data-vbeln = wa_vbfa-vbeln.
wa_ref_data-vbelv = wa_billing_main-vbeln.
APPEND wa_ref_data TO i_ref_data.
ENDIF.
ENDLOOP.
so kindly give me the solution for improving performance of this issue.
Is it having any function module to pass multiple inputs to the function module.?
Regards
P.Senthil Kumar
Edited by: senthil kumar on Mar 23, 2009 12:23 PMPlease add check condition to check internal table is blank.
if not i_billing_main[] is initial.
SELECT vbelv
vbeln
INTO TABLE i_ref_data
FROM vbfa FOR ALL ENTRIES IN i_billing_main
WHERE
vbelv EQ i_billing_main-vbeln AND
vbtyp_n EQ c_vbtyp_n.
endif.
This is the best possible way to retrive data from VBFA table.
Other method you adopted will take more time since you are calling the FM in loop.
Please check ST05 trace for your above query to see if primary index is being used. Else contact Basis to help you out. -
ALV object in function module shows old data
Hello,
I create a function module with import parameter matnr.
This function module calls a screen that displays an ALV with the whole info of matnr out of table mara.
I include this in a program where a material can be selected. This is then input for the function module. Everything looks good for the first material. However when the function module is called for a second material I still see the ALV with the data of the previous material.
When I debug the code I see that new data is selected and put on the alv (with method set_table_for_first_display) but still I see the old ALV (which I free by the way in the exit of my function module...). It drives me crazy, what's the problem?
<b>My function module:
</b>
FUNCTION ZJVB_TEST.
*"*"Lokale interface:
*" IMPORTING
*" REFERENCE(I_MATNR) TYPE MATNR
g_matnr = i_matnr.
call SCREEN 1979.
ENDFUNCTION.
<b>TOP include:</b>
FUNCTION-POOL ZJVB_TEST. "MESSAGE-ID ..
data: ok_code type sy-ucomm,
container type ref to cl_gui_custom_container,
alv type ref to cl_gui_alv_grid,
g_matnr type matnr.
*& Module STATUS_1979 OUTPUT
* text
MODULE STATUS_1979 OUTPUT.
SET PF-STATUS 'FMAIN'.
* SET TITLEBAR 'xxx'.
if container is INITIAL.
CREATE OBJECT CONTAINER
EXPORTING
CONTAINER_NAME = 'CONTAINER' .
CREATE OBJECT ALV
EXPORTING
I_PARENT = container.
data: itab type TABLE OF mara.
select *
from mara
into TABLE itab
where matnr = g_matnr.
CALL METHOD ALV->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'MARA'
CHANGING
IT_OUTTAB = itab.
endif.
ENDMODULE. " STATUS_1979 OUTPUT
*& Module USER_COMMAND_1979 INPUT
* text
MODULE USER_COMMAND_1979 INPUT.
case ok_code.
when 'BACK'.
free container.
free alv.
LEAVE to SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_1979 INPUT
<b>My program:</b>
*& Report ZJEROEN_ALV_FM
REPORT ZJEROEN_ALV_FM.
data: ok_code type sy-ucomm,
l_matnr type matnr.
call SCREEN 1979.
*& Module STATUS_1979 OUTPUT
* text
MODULE STATUS_1979 OUTPUT.
SET PF-STATUS 'MAIN'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_1979 OUTPUT
*& Module USER_COMMAND_1979 INPUT
* text
MODULE USER_COMMAND_1979 INPUT.
case ok_code.
when 'BACK'.
leave to screen 0.
when 'CALL'.
CALL FUNCTION 'ZJVB_TEST'
EXPORTING
i_matnr = l_matnr.
endcase.
ENDMODULE. " USER_COMMAND_1979 INPUT
Thx for helping,
jeroenHello,
I found out that the container lifetime was the problem... When you create a container to put the ALV in the lifetime is set to default. Normally you never change this, I didn't mention it before I had the problem. But you have to change the lifetime to <your_instance_name>->lifetime_dynpro for instance my_container->lifetime_dynpro.
Also check this helplink: http://help.sap.com/saphelp_nw04/helpdata/en/9b/d080b79fc111d2bd68080009b4534c/frameset.htm -
How to use function module together with tables in Crystal Report?
Dear all expert,
I have the following situation where I need to use a function module in my crystal report, But how can I link the FM with the tables so that I can pass out some value from the FM to the report?
Thank You.Hi,
Hope the following helps..
1)
LOOP AT IT_OUTPUT.
Call the function module to get the tracking number and store the output in the
variable V_TRACKINGNO.
IT_OUTPUT-TRACKING_NO = V_TRACKINGNO.
MODIFY IT_OUTPUT TRANSPORTING TRACKING_NO.
ENDLOOP.
2) Date conversion
DATA: V_CHAR(10) VALUE '2006.11.17'.
DATA: V_DATE TYPE SYDATUM.
CONCATENATE V_CHAR(4) V_CHAR5(2) V_CHAR8(2) INTO V_DATE.
WRITE: V_DATE TO V_CHAR MM/DD/YYYY.
WRITE: / 'MM/DD/YYY Format - ', V_CHAR.
Please make sure to reward points for helpful answers..
Thanks,
Naren -
SAP Functional Module for authorization tables
I would like to know are there any standard SAP Functional Modules which could update the Authorization Tables, like AGR_1251.
Thank youHi Prabhu,
Other than function modules with role, I had also tried to look for function modules with AuthObject*.
Because, I would like to update remove one of the authorization object from the system. For example, remove all data which AUTHORIZATION OBJECT = S_SCD0 and ACTIVITY = 06 in the system.
I got the list of functions from the search, but all of them are without proper documentations. So is very hard for me to understand their functionalities and purposes.
Kindly advice.
Thank you. -
How to find function module's and tables used for the particulat screen or TCODE?
Hello Nation,
I would like to know how to find the function modules and tables used for the particular screen or TCODE or program.
Example : I would like know the function module used in the program RDBGFT?
How can i find that?
Thanks in advance ,Awaiting your reply.Make use of Find function with the keyword "CALL FUNCTION".
Make use of the same find function with the keyword "Select" to know the database tables used.
Regards,
Philip. -
Function module to find table entries associated with transport request
Hi all,
I have requirement, like we have created a table and maintenance view for that table - and made entries in that table.
now we want to know all the entries made in the table are associated with transport request or not.
how to do it programmatically?? is there any function module which gives the result for transport object associated with the table entries ?????
Thanks
SathishHi,
Use the table <b>E071K</b>
in se16 give :
request number in TRKORR
Table name in OBJNAME
in the filed TABKEY u will get the <b>values of the key fields</b> in the table
by comparing the key fields u can find out the enrties related to the request number
Please let me know if i am not clear
---Patil
Message was edited by:
Santhosh Patil
null
Maybe you are looking for
-
Can I use Oralce9i database to depoly BC4J without using Ora9ias
Oralce9i database has so many components help you develop application, for example JSP,SERVLET,I want to know when I need oracle9ias for developing,in what case I only need oracle9i database for developing including its components?
-
I'm having Compaq Presario C500 series laptop with 1.6GHz Celeron processor, 512 MB RAM, 80GB Harddisk & using Windows XP SP2. Is this related to the matter?
-
My apple is talking to me, can you tell me how to get it to stop
I must have hit a key on the keyboard and now when I point my mouse at something it tells me what I am doing.
-
JDev TP4 DVT:Map Component: How to send a command to Mapviewer Server?
How to send a command to Mapviewer Server programmatically using a DVT:Map component? ( for example : To capture a Theme info when i clicking in the a map theme position? Juan C LLanes
-
My iPhone will not update from version 4.1
My iPhone will not update from version 4.1, everytime I try to update on the iTunes iPhone screen, the response says "your iTunes version is current"....I am not trying to update iTunes, I just want to update my iPhone. How do I fix this?