How can I read MCHBH table ?
Hi experts,
Regarding to note 193554...
I have a need to read/calculate some data from MCHBH table. The problem is that material was moved (101 -> MB51) at 10.2010 but in MCHBH table there are entries:
LFGJA LFMON CLABS CUMLM CINSM CEINM CSPEM CRETM
2010 09 0,000 0,000 0,000 0,000 0,000 0,000
2010 11 0,000 0,000 23,207 0,000 0,000 0,000
Moreover if between periods there are no entries its mean that the data is the same as the period before ? (In note 193554 there is information about n + 1 period but I don't understand it)
Really thanks.
Edited by: Daniel Duras on Dec 6, 2010 11:11 AM
MB51
3205 321 4914721810 1 03.12.2010
3205 321 4914721810 2 03.12.2010
3205 102 5004547324 1 01.12.2010
3205 101 5004486211 1 05.10.2010
MCHBH
MATNR WERKS LGORT CHARG LFGJA LFMON CLABS CUMLM CINSM CEINM
000000000004053794 1100 3205 0133880102 2010 09 0,000 0,000 0,000 0,000
000000000004053794 1100 3205 0133880102 2010 11 0,000 0,000 23,207 0,000
In MCHB should be entries about 12.2010 this is understood.
I think that in MCHBH first row should be from 10.2010 ...
Also how with this period is I mean how I should understand empty rows between existed ?
There is FM MCHB_EXTEND but with no information about previous period ...
Similar Messages
-
How can one read a Excel File and Upload into Table using Pl/SQL Code.
How can one read a Excel File and Upload into Table using Pl/SQL Code.
1. Excel File is on My PC.
2. And I want to write a Stored Procedure or Package to do that.
3. DataBase is on Other Server. Client-Server Environment.
4. I am Using Toad or PlSql developer tool.If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
1. Get your DBA to create directory object in oracle using the following command:
create directory TEST_DIR as ‘directory_path’;
Note: This directory is on the server.
2. Grant read,write on directory directory_object_name to username;
You can find out the directory_object_name value from dba_directories view if you are using the system user account.
3. Logon as the user as mentioned above.
Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
function getData(p_filename in varchar2,
p_filepath in varchar2
) RETURN VARCHAR2 is
input_file utl_file.file_type;
--declare a buffer to read text data
input_buffer varchar2(4000);
begin
--using the UTL_FILE in built package
input_file := utl_file.fopen(p_filepath, p_filename, 'R');
utl_file.get_line(input_file, input_buffer);
--debug
--dbms_output.put_line(input_buffer);
utl_file.fclose(input_file);
--return data
return input_buffer;
end;
Hope this helps. -
How can I read a file with ASCII Special Character into a SQL table using SSIS 2008?
I've tried everything to read this file and am getting no where. Help how can I read this file and load a SQL table?
RS - AscII - 30 (Record Separator)
GS - AscII - 29 (Group Separator)
Thank you for your assistance - Covi
Mark CovianWe can use script component as source/transformation to read the text file and assign the contains to a string. Split the string by chr(30) i.e RS and finally stored into an array or write to the output buffer of the script component.
For example on how to use script component refer this link
http://social.technet.microsoft.com/Forums/en-US/6ff2007d-d246-4107-b77c-624781baab38/how-to-use-substring-in-derived-column-in-ssis?forum=sqlintegrationservices
Regards, RSingh -
How can i read local excel file into internal table in webdynpro for abap a
Could someone tell me how How can i read local excel file into an internal table in webdynpro for abap application.
thank u for your replyDeep,
File manuplations...............................
1. At the presentation level:
->GUI_UPLOAD
->GUI_DOWNLOAD
->CL_GUI_FRONTEND
2. At the application server level:
->OPEN DATASET : open a file in the application server for reading or writing.
->READ DATASET : used to read from a file on the application server that has been opened for reading
-> TRANSFER DATASET : writing data to a file.
-> CLOSE DATASET : closes the file
-> DELETE DATASET : delete file
If file is on the local PC,use the function module GUI_UPLOAD to upload it into an internal table by passing the given parameters......
call function 'GUI_UPLOAD'
exporting
filename = p_file
filetype = 'ASC'
has_field_separator = '#'
tables
data_tab = t_data
p_file : excel file path.
t_data : internal table
<b>reward points if useful.</b>
regards,
Vinod Samuel. -
How can I make a table cell extend beyond a page? The text disappears when the cell becomes bigger than the page. I want the table to continue to the next page.
As a student, you might be able to get Office for Mac from the college bookstore at a substantial discount. Otherwise, I think your best option for documents that need to be shared with Office users is to get one of the free Office clones such as LibreOffice.
-
How can I fill a table of objects from cursor with select * bulk collect???
Hi All, I have a TYPE as OBJECT
create or replace type dept2_o as object (
deptno NUMBER(2),
dname VARCHAR2(14),
loc VARCHAR2(13));
I can fill a table of objects from cursor with out select * bulk collect...., row by row
declare
TYPE dept2_t IS TABLE of dept2_o;
dept_o_tab dept2_t:=dept2_t();
i integer;
begin
i:=0;
dept_o_tab.extend(20);
for rec in (select * from dept) loop
i:=i+1;
dept_o_tab(i):=dept2_o(
deptno => rec.deptno,
dname => rec.dname,
loc =>rec.loc
end loop;
for k IN 1..i loop
dbms_output.put_line(dept_o_tab(k).deptno||' '||dept_o_tab(k).dname||' '||dept_o_tab(k).loc);
end loop;
end;
RESULT
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
But I can't fill a table of objects from cursor with select * bulk collect construction ...
declare
TYPE dept2_t IS TABLE of dept2_o;
dept_o_tab dept2_t:=dept2_t();
begin
dept_o_tab.extend(20);
select * bulk collect into dept_o_tab from dept;
end;
RESULT
ORA-06550: line 6, column 39;
PL/SQL: ORA-00947: not enough values ....
How can I fill a table of objects from cursor with select * bulk collect???create or replace type dept_ot as object (
deptno NUMBER(2),
dname VARCHAR2(14),
loc VARCHAR2(13));
create table dept
(deptno number
,dname varchar2(14)
,loc varchar2(13)
insert into dept values (10, 'x', 'xx');
insert into dept values (20, 'y', 'yy');
insert into dept values (30, 'z', 'zz');
select dept_ot (deptno, dname, loc)
from dept
create type dept_nt is table of dept_ot
declare
l_depts dept_nt;
begin
select dept_ot (deptno, dname, loc)
bulk collect
into l_depts
from dept
for i in l_depts.first .. l_depts.last
loop
dbms_output.put_line (l_depts(i).deptno);
dbms_output.put_line (l_depts(i).dname);
dbms_output.put_line (l_depts(i).loc);
end loop;
end;
/ -
How can I insert a table in the header?
The question is easy: How can I insert a table of one row in the header.
Thanks in advance.
Jesús.There are multiple versions of Pages in circulation on Mavericks and Yosemite. Telling us which one helps with a more accurate answer.
If you are referring to Pages v5, then you cannot insert a table into the header or footer, because implicitly, these are table cells too. The discontinued Pages ’09 v4.3 would allow table insertion in the document header/footer fields. -
How can I generate a table of contents from bookmarks
How can I generate a Table of Contents from bookmarks in Adobe Acrobat XI?
Something to try.
Rick Bostein provided a "Create Bookmark Report" Acrobat Action.
With this report as a PDF you could insert it at the start of your PDF document to serve as a "TOC".
Go here:
https://acrobatusers.com/actions-exchange
Scroll down some.
Be well... -
How can I read color from frond-end PC
Hi Everybody,
I have en HTML- control in my GUI and I would like to adjust back ground color of my HTML page to actual client color scheme. Does anyone known how can I read the color settings from client pc?
Best regards
BogdanHi,
If you are using LOAD_HTML_DOCUMENT method to load the repository object, then pass a merge_table which contains an instruction to replace the background:
TYPE-POOLS SWWW.
DATA: l_merge_table TYPE swww_t_merge_table,
l_merge_item TYPE swww_t_merge_item,
l_html_table TYPE TABLE OF w3html,
l_html_line TYPE w3_html,
l_url LIKE me->url.
CLEAR l_html_table.
l_html_line = ' '. " No background color, use default
APPEND l_html_line TO l_html_table.
l_merge_item-name = '<!BACKGROUND!>'. " Tag to be replaced
l_merge_item-html = l_html_table.
l_merge_item-command = ' '. " blank means replace tag line
APPEND l_merge_item TO l_merge_table.
CALL METHOD html_view->load_html_document
EXPORTING
document_id = 'DOCID'
IMPORTING
assigned_url = l_url
CHANGING
merge_table = l_merge_table
EXCEPTIONS
OTHERS = 1.
I have not tried this code but hope it helps,
Rao A -
How can i find statistics tables in my database?
code{
Upgrade Statistics Tables Created by the DBMS_STATS Package
If you created statistics tables using the DBMS_STATS.CREATE_STAT_TABLE procedure, then upgrade these tables by executing the following procedure:
EXECUTE DBMS_STATS.UPGRADE_STAT_TABLE('SYS','dictstattab');
In the example, 'SYS' is the owner of the statistics table and 'dictstattab' is the name of the statistics table. Execute this procedure for each statistics table.
the above is one of the post upgrade step for 11gR2. How can i find statistics tables in my database?You need to read the complete context of this manual upgrade step:
Step 33
Upgrade Statistics Tables Created by the DBMS_STATS Package
If you created statistics tables using the DBMS_STATS.CREATE_STAT_TABLE procedure, then upgrade these tables by executing the following procedure:
EXECUTE DBMS_STATS.UPGRADE_STAT_TABLE('SYS','dictstattab');
In the example, 'SYS' is the owner of the statistics table and 'dictstattab' is the name of the statistics table. Execute this procedure for each statistics table.You need to do this step for any statistics table that you created manually with DBMS_STATS.CREATE_STAT_TABLE.
Marcus -
How can i read header text?
how can i read header text?
ie, i want to read two values that are stored as header text in purchase order.
how can i retrieve that values?Hi,
The long texts of a document are stored in a encrypted format in the STXH and STXL tables, where STXH stores the header information of the
long text like TDOBJECT, which indicates which text object the long text belongs to, TDID which indicates the Text ID and TDNAME which is
the actual name of the long text.
As these texts are stored in a encrypted format, the text cannot be read using a SELECT statement. You will have to use the function READ_TEXT. The easiest way of getting to know the parameter values is to go to a document, open the long text in a full screen mode. For example, when you wan to see the long text for a Purchase order, go to transaction ME23n. Assume, you want to see the parameters for the Header Text. In the first Tab Strip Control, click on the Texts tab and select the Header Text node on the left hand side, which will display the text on the right hand side. Now, double click on the text editor on the right hand side. This will open the text in the full screen mode. In the menu Go To --> Header, you should be able to see the values for all the three parameters we discussed above. We will have to do the same thing for whichever text parameters we want to see.
TREC-TDSPRAS = SY-LANGU.
TREC-TDID = 'ECCS'.
TREC-TDOBJECT = 'ZECCS'.
TREC-TDNAME = Z_ACCOUNT.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = TREC-TDID
LANGUAGE = TREC-TDSPRAS
NAME = TREC-TDNAME
OBJECT = TREC-TDOBJECT
TABLES
LINES = LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
Details:
Language DE
Text ID F01 Header text
Text Object EKKO Purchasing doc. header texts
Regards,
Shiva Kumar -
How can I tell what table(s) have the most transactions against them
Hello, in Oracle 11.2.0.3, RHEL 6 x86-64, how can I tell what tables have the highest transaction activity?
Picked "Objects" because I could not find a space related to performance tuning
Humbly,What version of Oracle are you running (standard or enterprise)?
Easist system is to run an AWR or statspack report. If you run either of these you will see sections on segments (so segments by logical reads, physical reads) which is easily digestible.
v$segment_statistics will also give you a breakdown on segment access. -
Dear Experts,
How Can I create plan Table.
How can i read it?run UTLXPLAN.SQL
under
$ORACLE_HOME/rdbms/admin/
check this link for detailed information
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm#i19260 -
We are upgrading from 8.3 to 9.2. How can i get the table(record) structure changes between these 2 versions. I am not able to find it in Oracle support.
My guess is you want to upgrade HR8.3 to 9.2 - and that is not one jump upgrade. You will need to go HRMS 83 to 90
(PeopleSoft Enterprise HRMS 8.3x to 9.0 Upgrade (Doc ID 747333.1) and then 90 to 92 (PeopleSoft Human Capital Management 9.0 to 9.2 Upgrade Home Page (Doc ID 1536087.1)
Each these MOS pages contains the Demo to Demo Compare Reports that show the data structures changes between the releases.
Hope it helps. -
How can i put below table into internalt table
how can i put below table into internalt table and want to add both internal table into 3rd internal table.
SELECT * FROM J_1IEXCHDR WHERE STATUS = 'P'.
WRITE: / J_1IEXCHDR-LIFNR,
J_1IEXCHDR-DOCNO,
J_1IEXCHDR-EXYEAR,
J_1IEXCHDR-BUDAT.
SELECT * FROM J_1IEXCDTL WHERE TRNTYP = J_1IEXCHDR-TRNTYP
AND DOCYR = J_1IEXCHDR-DOCYR
AND DOCNO = J_1IEXCHDR-DOCNO.
WRITE: / J_1IEXCDTL-EXBAS,
J_1IEXCDTL-EXBED,
J_1IEXCDTL-RDOC1,
J_1IEXCDTL-ECS.
ENDSELECT.
ENDSELECT.
please help
thanks in adavaced.hi laxman,
use for all entries and get the required data.
SELECT * FROM J_1IEXCHDR into table itab1 WHERE STATUS = 'P'.
if not itab1[] is initial.
SELECT * FROM J_1IEXCDTL into table itab2 for all entries in itab1 WHERE TRNTYP = itab1-TRNTYP
AND DOCYR = itab1-DOCYR
AND DOCNO = itab1-DOCNO.
endif.
so itab2 will have the common records...This will solve ur problem..
also u can do other method declare an final internal table with the common fields of the two internal table.
then after getting data in itab1 and itab2.
loop at itab1.
move-corresponding itab1 to itab3.
read table itab2 with key <give the fields> = ......
if sy-subrc eq 0.
move-corresponding itab2 to itab3.
endif.
append itab3.
endloop.
Regards,
nagaraj
Maybe you are looking for
-
Database Connector Error in Crystal Reports
Hi, I have a report which has two sub reports. One of the sub reports use a view to fetch data while the other uses a SP. Now the problem that i am facing is as follows- The sub-report using the stored procedure fails when i execute the main report b
-
Hi everyone, Owing to the pathetic hard drive in my Pismo, I've convinced myself to upgrade. I've got the original 6GB IBM TravelStar DARA-206000 drive, and I'm aiming for something around 30GB. I thought about the Hitachi TravelStar DK23CA-30, which
-
Java and daylight savings time
I just tricked my OS into thinking it is DST but setting the date ahead a bit. After checking, my OS DOES think it is currently DST (with a date of April 3). However, Java doesn't seem to get it! For example, take the following two lines of code:
-
I want to generate a rule, or an action, or a script, whatever it will take, to do the following: Get all new mail from several accounts Identify new mail that is Not Junk Forward these messages to another address Continue processing other rules I've
-
Modify BADI for Freight Cost Extension
SAP offers BADI /SAPFCX/RELV_PARMS to update user parameters in determining customer freight document relevancy. I am informed to use this BADI to code so that USER_UserParm1 can be populated. It is provided in function module /SAPFCX/CFI_RELEVANCE_C