Fm to get archived data from table bseg
hi ,
what is the FM to get archived data from table bseg
Hi Friend,
Here is the FM you need,
FAGL_GET_ARCH_ITEMS_BSEG.
Regards,
Lakshmanan
Similar Messages
-
Getting data from table BSEG taking too long ... any solutions.
Hello people I am currently trying to get data from table BSEG for one particular G/L Account Number With restrictions using For All Entries.
The problem is that even with such tight restrictions its causing my report program to run way too slow. I put an option where you dont have to access table bseg. And it runs just fine. (all of this is done during PRD Server).
My question is
1.) How come BSEG seems to make the report slow, even though I put some tight restrictions. <b>Im using For All Entries where Zuonr eq i_tab-zuonr</b>it seems to work fine in DEV and <b>hkont EQ '0020103101'</b>(Customer Deposits).
2.) Is there a way for me to do the same thing as what I mentioned in #1 but only much faster.
Thanks guys and take careHi
It should be better you don't read BSEG table if you haven't the keys BUKRS and BELNR, because the reading could take many times if there are many hits.
If you want to find out the records of G/L Account it's better read the index table BSIS (for open items) and BSAS (for cleared items), here the field HKONT is a key (and ZUONR too). So you can improve the performance:
DATA: T_ITEMS LIKE STANDARD TABLE OF BSIS.
SELECT * FROM BSAS INTO TABLE T_ITEMS
FOR ALL ENTRIES I_ITAB WHERE BUKRS = <BUKRS>
AND HKONT = '0020103101'
AND ZUONR = I_ITAB-ZUONR.
SELECT * FROM BSIS APPENDING TABLE T_ITEMS
FOR ALL ENTRIES I_ITAB WHERE BUKRS = <BUKRS>
AND HKONT = '0020103101'
AND ZUONR = I_ITAB-ZUONR.
Remember every kind of item has an own index tables:
- BSIS/BSAS for G/L Account
- BSIK/BSAK for Vendor
- BSID/BSAD for Customer
These table have the same informations you can find out from BSEG and BKPF.
Max -
Application process is not getting the data from table
I have created the following application process based on AJAX select value but using a pop up LOV
DECLARE
my_det VARCHAR2 (200);
BEGIN
SELECT DM_00010_CUST_NAME INTO my_det
FROM ODM_MD_00010
WHERE DM_00010_CUST_CODE = nvl(:P11_DT_00020_CUST_CODE,21);
exception when no_data_found then null;
HTP.prn (my_det);
END;
the process is getting no data found error ( hence the exception) so I am getting NULL in the name field on screen.
any help ?the javascript I have in the region header is:
<script language="JavaScript" type="text/javascript">
function f_getDet ()
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=getDet',0);
get.add('P11_DT_00020_CUST_CODE',html_GetElement('P11_DT_00020_CUST_CODE').value)
gReturn = get.get();
if(gReturn)
{ html_GetElement('P11_DT_00020_CUST_NAME').value = gReturn }
else
{ html_GetElement('P11_DT_00020_CUST_NAME').value = 'null' }
get = null;
</script> -
Unable to get the data from table controller
Dear All,
I am facing the following problem in BSP tableview,
I am having tableview on page as below
<htmlb:tableView id = "reportsTable2"
headerVisible = "true"
headerText = "Pending PANs:"
footerVisible = "true"
design = "standard"
visibleRowCount = "20"
width = "100%"
fillUpEmptyRows = "false"
columnWrapping = "false"
columnWidth = "200"
sort = "server"
keyColumn = "panid"
onRowSelection = "alternate()"
selectionMode = "SingleSelect"
iterator = "<%= tv_itr %>"
table = "<%=IT_DATE_RANGE_PAN %>" >
</htmlb:tableView>
I want collect the table view data in DO_REQUEST method, when i press the sort option on any column in table.
i used the code in DO_request,
if lv_button_id NE '0'.
tv ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'tableview'
id = 'reportsTable2' ).
tv_data = tv->data .
but , I found no table content in tv_table.
even i tried with export, import .. normally we will dod in ABAP. not wotking.
export IT_DATE_RANGE_PAN2 from IT_DATE_RANGE_PAN to memory id memid1.
import IT_DATE_RANGE_PAN2 to IT_DATE_RANGE_PAN from memory id memid1.
Can any body help me to solve the above issue.
Regards,
KishanHi,
Refer your earlier forum...
how to collet data from tableview in MVC
Thnx
suriya -
Getting specific dates from table
hi all, i have the following data in a table.
WITH monthends AS
SELECT 3333 cid, To_Date('1/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
SELECT 3333 cid, To_Date('2/1/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
SELECT 3333 cid, To_Date('2/2/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
SELECT 3333 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
SELECT 3333 cid, To_Date('2/4/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
SELECT 3333 cid, To_Date('3/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
SELECT 1111 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
SELECT 1111 cid, To_Date('3/1/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
SELECT 1111 cid, To_Date('3/2/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
SELECT 1111 cid, To_Date('4/30/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
SELECT 1111 cid, To_Date('3/4/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
SELECT 1111 cid, To_Date('5/31/2010','mm/dd/yyyy') dt, 11 pid FROM dual
my output should be as follow
CID DT PID
3333 1/31/2010 10
3333 2/28/2010 10
3333 3/31/2010 10
1111 2/28/2010 11
1111 4/30/2010 11
1111 5/31/2010 11basically i just want to display all the month end dates only from the table. can someone help write a query for this?
i tried using case and last_day function (case when dt=last_date(dt) but the case statement will display the rest of rows even if no else statement is specified.
i just want to output the months ends for specific cid,pid combinationThis...
WITH monthends AS
SELECT 3333 cid, To_Date('1/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
SELECT 3333 cid, To_Date('2/1/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
SELECT 3333 cid, To_Date('2/2/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
SELECT 3333 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
SELECT 3333 cid, To_Date('2/4/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
SELECT 3333 cid, To_Date('3/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
SELECT 1111 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
SELECT 1111 cid, To_Date('3/1/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
SELECT 1111 cid, To_Date('3/2/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
SELECT 1111 cid, To_Date('4/30/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
SELECT 1111 cid, To_Date('3/4/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
SELECT 1111 cid, To_Date('5/31/2010','mm/dd/yyyy') dt, 11 pid FROM dual
select cid, dt, last_day(dt) ldy, pid from monthends
where dt = last_day(dt)
3333 1/31/2010 1/31/2010 10
3333 2/28/2010 2/28/2010 10
3333 3/31/2010 3/31/2010 10
1111 2/28/2010 2/28/2010 11
1111 4/30/2010 4/30/2010 11
1111 5/31/2010 5/31/2010 11vr,
Sudhakar B.
Edited by: SudhakarB on May 13, 2010 1:46 PM
Added CID -
Hi,
I want to get all archived data and archived table.
Is there any function module or any program avilable to get archived data or table.
<< Removed >>
Best Regards,
BDP
Edited by: Rob Burbank on Jun 19, 2009 10:52 AMHi Vamsi,
This is 4.0B version. There is no READ tab appearing. Can go for Preparation or Analyse two extra buttons are appearing after entering Object name not READ tab.
<< Removed >>
BDP
Edited by: Rob Burbank on Jun 19, 2009 10:52 AM -
How to get the data from a cluster table to BW
Dear All,
I want to extract the data from R/3 to BW by using 2 tables and one Cluster B2.
Actually my report contains some fields from PA2001, PA2002 and one cluster table B2 (Table ZES). Can I create View by using these 3 tables? If it is not possible how can I get the data from the cluster? Can I create generic datasource by using cluster tables directly?
In SE11 Transaction the Cluster (table ZES) is showing invalid table.
I referred some Forums, but no use.
Can any body tell me procedure to get the data from a cluster (table ZES) ?
Waiting for you results.
Thanks and regards
RajeshHI Siggi,
Thank you for your reply..
I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
How can I use the Fields from the that table.?
What can I do now, can you please explain me about this point.
Waiting for your reply.
Thanks and Regards
Rajesh
Message was edited by:
rajesh -
How i can get only required data from table by using CKM
Hi...
i have done one scenerio i.e get required data from one table into another table on basis of some condition by using CKM.
Now i want same,but this time my target is file ,not RDBMS.
so plz tell me procedure how i can get required data from source table into File on basis of some condition using CKM.
thanksCKM checks for Constraints and Not Null condition. You can use IKM SQL to File and being that there is no option in IKM for CKM .
The other method is you can declare those Not null and other condition as Filter in the Source Datastore, that should filter out records that you are not willing to move to files. -
How to get the data from multiple nodes to one table
Hi All,
How to get the data from multiple nodes to one table.examples nodes are like A B C D E relation also maintained
Regards,
IndraHI Indra,
From Node A, get the values of the attributes as
lo_NodeA->GET_STATIC_ATTRIBUTES( IMPORTING STATIC_ATTRIBUTES = ls_attributesA ).
Similarily get all the node values from B, C, D and E.
Finally append all your ls records to the table.
Hope you are clear.
BR,
RAM. -
How to get the data from pcl2 cluster for TCRT table.
Hi frndz,
How to get the data from pcl2 cluster for tcrt table for us payroll.
Thanks in advance.
Harisumanth.ChPL take a look at the sample Program EXAMPLE_PNP_GET_PAYROLL in your system. There are numerous other ways to read payroll results.. Pl use the search forum option & you sure will get a lot of hits..
~Suresh -
How to get the data from Pooled Table T157E.
Hi Experts,
How to get the data from Pooled Table T157E.
Any help.
Thanks in Advance,
Ur's Harsha.create some internal table similar to T157E and pass all data as per SPRAS.
After that use internal table in your program as per the requirement.
Regds,
Anil -
How to get the data from the model node like a table ?
I want to get the data from the model node once a record ,and the node is bound to a internal table in the RFM which I called in the R/3 system. Who can give me some advice to achive it?Thank you!!
Hi,
To get the data from the node:
wdContext.node[your node name].current[node name]_InputElement().get[specific element in the node];
or you van use:
wdContext.current[your node]Element().get[your element in the node];
examples:
wdContext.nodeZ_Mepro_Po_Detail_Stock_Distri_Input().currentZ_Mepro_Po_Detail_Stock_Distri_InputElement().getUcpd_Flag();
wdContext.currentT_Delv_ReqsElement().getShelflife();
regards, -
In PL-SQL archive data from a table to a file
I am currently developing a vb app where I need to archive data from a table to a file. I was hoping to do this with a stored procedure. I will also need to be able to retrieve the data from the file for future use if necessary. What file types are available? Thanks in advance for any suggestions.
What about exporting in an oracle binary format? The export files cannot be modifiable. Is there a way to use the export and import utility in PL/SQL?
null -
Query OR Stored Proc to get data from Tables from All Schemas in the d/base
Hello Experts, (I appologize if i am not using the right way to ask questions)
I have a database, and it has around 400 schemas in it. I have designed a query which will fetch the data from three different table's from Schema1.
But it will be a tedious process of entering the 400 schemas names and pulling the information.
I would like to know as to what would be the best possible way to;
1) Look for all the schemas in the database
2) Look for those specific tables in the schema, which has the data in the tables.
3) If the tables are not present, than Ignore that schema and proceed further.
4) Load the data into a table
Any help, would appreciate it.
Thanks!
The query that i am using is as follows;
-- Query to select all the Schemas from the database
select username from all_users
order by username;
-- Sample Query to see if Tables exsist in the schema
SELECT DISTINCT OWNER, OBJECT_NAME
FROM ALL_OBJECTS
WHERE OBJECT_TYPE = 'TABLE'
AND OBJECT_NAME IN ('ENROLLMENT', 'PRDCT', 'L_P_L')
AND OWNER in ('Schema_1', 'Schema_2', Schema_3', Schema_4',Schema_5', Schema_6')
ORDER BY OWNER;
--Query to get the data from the tables in a Schema
select 'Schema_1@DATABASE_NAME' AS SCHEMA,
(SELECT MAX(LOAD_DT) FROM Schema_1.LOAD_STATUS) AS MAX_LOAD,
L_PROD_LINE.PROD_LINE,
COUNT(DISTINCT ENROLLMENT.MEM_NBR) AS MEMBERSHIP
FROM
Schema_1.ENROLLMENT,
Schema_1.PRDCT,
Schema_1.L_P_L
WHERE
ENROLLMENT.PRODUCT_ID = PRDCT.PRODUCT_ID AND
PRODUCT.PROD_LINE_ID = L_P_L.ID
GROUP BY
L_P_L.PROD_LINE;Hi,
999355 wrote:
Hello Experts, (I appologize if i am not using the right way to ask questions)See the froum FAQ {message:id=9360002}
I have a database, and it has around 400 schemas in it. I have designed a query which will fetch the data from three different table's from Schema1.
But it will be a tedious process of entering the 400 schemas names and pulling the information.
I would like to know as to what would be the best possible way to;
1) Look for all the schemas in the database
2) Look for those specific tables in the schema, which has the data in the tables.
3) If the tables are not present, than Ignore that schema and proceed further.
4) Load the data into a table
Any help, would appreciate it.
Thanks!
The query that i am using is as follows;
-- Query to select all the Schemas from the database
select username from all_users
order by username;
-- Sample Query to see if Tables exsist in the schema
SELECT DISTINCT OWNER, OBJECT_NAME
FROM ALL_OBJECTS
WHERE OBJECT_TYPE = 'TABLE'
AND OBJECT_NAME IN ('ENROLLMENT', 'PRDCT', 'L_P_L')
AND OWNER in ('Schema_1', 'Schema_2', Schema_3', Schema_4',Schema_5', Schema_6')
ORDER BY OWNER; Do you want to give a list of possible schemas (like the 6 above), or do you want to consider all schemas, however many and whatever they are called?
You can get the right information for ALL_OBJECTS, but, since you known all the objects of interest are tables, ALL_TABLES will be faster and simpler.
--Query to get the data from the tables in a Schema
select 'Schema_1@DATABASE_NAME' AS SCHEMA,
(SELECT MAX(LOAD_DT) FROM Schema_1.LOAD_STATUS) AS MAX_LOAD,
L_PROD_LINE.PROD_LINE,
COUNT(DISTINCT ENROLLMENT.MEM_NBR) AS MEMBERSHIP
FROM
Schema_1.ENROLLMENT,
Schema_1.PRDCT,
Schema_1.L_P_L
WHERE
ENROLLMENT.PRODUCT_ID = PRDCT.PRODUCT_ID AND
PRODUCT.PROD_LINE_ID = L_P_L.ID
GROUP BY
L_P_L.PROD_LINE;I take it that the tables in question are ENROLLMENT, PRDCT and L_P_L; they won't have different names in different schemas.
You can start this way:
BEGIN
FOR c IN (
SELECT owner
FROM all_tables
WHERE table_name IN ( 'ENROLLMENT'
, 'PRDCT'
, 'L_P_L'
GROUP BY owner
HAVING COUNT (*) = 3
LOOP
... -- Now get the results for tables in the c.owner schema
END LOOP;
END;
/This will find the schemas that have all 3 of those tables.
Inside the loop, write another dynamic query. All that will change is the value of c.owner
Sorry, I'm running out of time now. I hope this helps. -
How to get data from table to pass into alvgrid function module
i want to get some data from below table to pass into function module of alvgrid
how can i get data please help.
thanks in advanced.
form get_data.
select * into corresponding fields of table itab
from J_1IEXCHDR
inner join J_1IEXCDTL
on J_1IEXCDTLlifnr = J_1IEXCHDRlifnr
where J_1IEXCHDr~status = 'P'.
append itab.
endform.Pass your final table(internal table which you want to display) along with fieldcatalog to FM reuse_alv_grid_display.:\
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = i_repid
IT_SORT = gt_sort
it_fieldcat = lt_fieldcat[]
TABLES
t_outtab = lt_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Maybe you are looking for
-
Ok, so I transferred some songs using my USB cable. Then, I checked my iPod, and it had spaces where there would be songs (ones that I had transferred from my laptop when I first got my iPod, so not bought from iTunes) but they were blank, so I compl
-
Product Name and Number: HP Pavilion dv7 Notebook PC Serial Number {Removed for privacy} Product Number LM726V Operating System installed Windows 7 Built in Mic has never worked Has not work ever
-
Thunar won't update on Filesystem change
Hi everyone Is it intended that Thunar only displays changes on the Filesystem after i clicked "Refresh". For example if I delete a file via command line Thunar still displays it till i hit refresh.... this isn't really how a filemanger should work..
-
I'm guessing with iOS 8 there isn't a separate album for photos I took on my phone and what is on the cloud from other devices on my iCloud account? Is there a way to separate them?
-
How to move some photos to external drive?
I have the majority of my photos located on an external drive. Recently after upgrading to PSE 11 I noticed that when I import photos from my sd card that they are located on my c:\ drive. 1) How do I safely move the files located on c:\ to my extern