BSEG table contents download
Hi,
My requirement is to download the contents of the BSEG table for a given company code, account type. We have huge data in BSEG table and when I tried to use SE16 for just one month, it is getting timed out. Is there any way to acheive this? Like executing in background or something. It is OK if it is downloaded to application server.
Thanks in advance.
Kishore
One way to do this is to use you date selection criteria and select data from BKPF first. There are indexes for posting date and document date. So that will go releatively quickly. Then use the document numbers and other keyfields to go directly to BSEG to get the data.
I had a similar requirement a couple of years ago and this is how I did it.
You can download to either application or presentation server. It's up to you.
Rob
Similar Messages
-
we want to download BSEG table for one year, but it is huge, how can we slice the data, I can't find the period selection
and we have huge document number ranges (over 200 number range for one company code)Hi,
You can divide the data based on other criterias like Document Type, Posting Key. Depending on the line items you can go for the multiple selection of parameter values.
Regards,
Amit -
RFC to Download table Contents
Hi All,
I am looking for an RFC function module through which I can select all the contents of a given table and subsequently download the table contents to a flat file.
Regards
MartinHi Martin,
Try This:
Get the data for Userid(l_user) & password(l_pwd) & host string(l_host).
DATA: l_slen TYPE i,
l_error,
l_pwd(30) TYPE c.
CONSTANTS: c_dest TYPE rfcdes-rfcdest VALUE 'SAPFTP',
c_key TYPE i VALUE 26101957.
connect to ftp server
l_slen = STRLEN( l_pwd ).
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = l_pwd
sourcelen = l_slen
key = c_key
IMPORTING
destination = l_pwd.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
text = 'Connect to FTP Server'.
To Connect to the Server using FTP
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = l_user
password = l_pwd
host = l_host
rfc_destination = c_dest
IMPORTING
handle = w_hdl
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Get the path to which the data file needs to be moved (w_outfile).
PERFORM download_to_ftp TABLES it_coacode USING w_outfile.
FORM download_to_ftp TABLES it_tab
USING l_string TYPE char64.
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
handle = w_hdl
fname = l_string
character_mode = 'X'
TABLES
text = it_tab[]
EXCEPTIONS
tcpip_error = 1
command_error = 2
data_error = 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
RAISING invalid_output_file.
ENDIF.
ENDFORM. " download_to_ftp
Asvhen -
Hi All,
How do i download a table contents i tried se16 with which maximum we can download is of 96 coumns
How do i download complete table contents including field names like MARA.
Thanks
Martin.Hi Thanks for ur reply.
I tried this using se16. I tried using se16N suggested by
Rich Heilman the maximum i can download is only 96 fields i mean columns in the oputput list.
The actual output list has 170 fixed columns. how do i download all of them with data?
Is there any way to download all of the 170 columns.
Thanks
Martin -
Program to upload and download table content
Hi,
I need to create a program which should upload and download table content from PC and to PC.
How can i develop this program..Should i use BDC or any function module?
Ezhil.The 2 program requested.....
Program to Download
REPORT ztable_download.
PARAMETERS: table LIKE dd02d-tabname,
file(50) LOWER CASE.
DATA: code(72) OCCURS 10,
w_code(72),
prog(8),
msg(120),
lin(3),
wrd(10),
off(3).
DATA: BEGIN OF rectest,
tprec(1) VALUE '0',
nometab(16),
utente(20),
data(10),
ora(8),
END OF rectest.
DATA: BEGIN OF recdett,
tprec(1) VALUE '1',
tab LIKE table,
END OF recdett.
DATA: BEGIN OF rectot,
tprec(1) VALUE '2',
tot(9),
END OF rectot.
OPEN DATASET file FOR OUTPUT IN TEXT MODE.
rectest-nometab = table.
rectest-utente = sy-uname.
rectest-data = sy-datum.
rectest-ora = sy-uzeit.
TRANSFER rectest TO file.
APPEND 'PROGRAM SUBPOOL.' TO code.
CONCATENATE 'TABLES ' table '.' INTO w_code SEPARATED BY space.
APPEND w_code TO code.
APPEND 'FORM DYN1 USING FILE.' TO code.
CONCATENATE 'SELECT * FROM ' table '.'
INTO w_code SEPARATED BY space.
APPEND w_code TO code.
CONCATENATE 'TRANSFER ' table ' TO FILE.'
INTO w_code SEPARATED BY space.
APPEND w_code TO code.
APPEND 'ENDSELECT.' TO code.
APPEND 'ENDFORM.' TO code.
GENERATE SUBROUTINE POOL code NAME prog
MESSAGE msg LINE lin WORD wrd OFFSET off.
IF sy-subrc <> 0.
WRITE: / 'Error during generation in line', lin,
/ msg,
/ 'Word:', wrd, 'at offset', off.
ELSE.
PERFORM dyn1 IN PROGRAM (prog) USING file.
WRITE: / 'Esportati ',sy-dbcnt,' records.'.
ENDIF.
Program to upload
REPORT Ztable_upload.
PARAMETERS: FILE(50) lower case,
TEST AS CHECKBOX.
DATA: CODE(72) OCCURS 10,
W_CODE(72),
PROG(8),
MSG(120),
LIN(3),
WRD(10),
OFF(3).
DATA: BEGIN OF RECTEST,
TPREC(1) VALUE '0',
NOMETAB(16),
UTENTE(20),
DATA TYPE D,
ORA TYPE T,
END OF RECTEST.
DATA: BEGIN OF RECTOT,
TPREC(1) VALUE '2',
TOT(9),
END OF RECTOT.
OPEN DATASET FILE FOR INPUT IN TEXT MODE.
READ DATASET FILE INTO RECTEST.
WRITE:/ 'Tabella..:',RECTEST-NOMETAB.
WRITE:/ 'Utente...:',RECTEST-UTENTE.
WRITE:/ 'Data.....:',RECTEST-DATA,RECTEST-ORA.
IF TEST = 'X'.
APPEND 'PROGRAM SUBPOOL.' TO CODE.
CONCATENATE 'TABLES ' RECTEST-NOMETAB '.'
INTO W_CODE SEPARATED BY SPACE.
APPEND W_CODE TO CODE.
APPEND 'FORM DYN1 USING FILE.' TO CODE.
APPEND 'DATA W_COUNT TYPE P.' TO CODE.
CONCATENATE 'SELECT * FROM' RECTEST-NOMETAB '.'
INTO W_CODE SEPARATED BY SPACE.
APPEND W_CODE TO CODE.
CONCATENATE 'DELETE' RECTEST-NOMETAB '.'
INTO W_CODE SEPARATED BY SPACE.
APPEND W_CODE TO CODE.
APPEND 'ENDSELECT.' TO CODE.
APPEND ' DO.' TO CODE.
CONCATENATE 'READ DATASET FILE INTO' RECTEST-NOMETAB '.'
INTO W_CODE SEPARATED BY SPACE.
APPEND W_CODE TO CODE.
APPEND ' IF SY-SUBRC NE 0.' TO CODE.
APPEND ' EXIT.' TO CODE.
APPEND ' ENDIF.' TO CODE.
CONCATENATE ' INSERT ' RECTEST-NOMETAB '.'
INTO W_CODE SEPARATED BY SPACE.
APPEND W_CODE TO CODE.
APPEND 'ADD 1 TO W_COUNT.' TO CODE.
APPEND 'ENDDO.' TO CODE.
APPEND ' write: / ''Importati'' ,W_COUNT, ''records''.' TO CODE.
APPEND 'ENDFORM.' TO CODE.
GENERATE SUBROUTINE POOL CODE NAME PROG
MESSAGE MSG LINE LIN WORD WRD OFFSET OFF.
IF SY-SUBRC <> 0.
WRITE: / 'Error during generation in line', LIN,
/ MSG,
/ 'Word:', WRD, 'at offset', OFF.
ELSE.
PERFORM DYN1 IN PROGRAM (PROG) USING FILE.
ENDIF.
ENDIF.
Edited by: robcom69 on Feb 23, 2010 2:35 PM -
Download database table content into internal table using Function Module?
HI,
Experts,
I need a function module which can download ddic table content into internal table.
Thank u ,
Shabeer Ahmed.>
shabeer ahmed wrote:
> HI,
> Experts,
>
> I need a function module which can download ddic table content into internal table.
>
> Thank u ,
> Shabeer Ahmed.
Hi Shabeer,
We don't require a function module to download ddic table content to an internal table. We can use the SELECT statement for the same. Example would be:-
DATA: <INTERNAL TABLE> type table of <DATABASE>.
SELECT * FROM <DATABASE> into corresponding fields of <INTERNAL TABLE>.
Also, function module might be required when you need the data from a remote system, but then it is the developer's task create this function module and the function module should be remote enabled function module.
This remote enable function module should have the above SELECT query as its code.
Many Regards,
Ravi. -
Hi
Friends
we have around 50 millions records in the Bseg table.
i need to down load only 5 fields .
one our friend suggested using ABAP code we can down load.
But i would like to know from you is there any Transcation code to down load only 4 or 5 fields from bseg fro all the company codes since we have around 50 million Records inthe table.
Thanks in advance.Hi Ravindra,
Good afternoon and greetings,
In SE16 itself you can down only the selected field by choosing the User Parameters...Alternatively, you can create a query using SQVI and select only those fields for displaying and downloading.
If you require any assistance on SQVI, please let me know.
Points awarded is highly appreciated, if the above mentioned solution meets your requirement.
Thanking you
With kindest regards
Ramesh Padmanabhan
Consultant -
Tranfer table content in to excel file format
HI
I have Created one table .and I want to download this table in to excel file format.how can i do this.Hi Vijay
1) Type the t-code SE16
2) Type the table name, for example USR02
3) Press F7 to view the table contents
4) If you need filter the data in the next screen you could do it.
5) Press F8 or press the execute bottom.
In the next screen you will find the result.
In the menu, follow the options:
System->List->Save->Local File->Spreadsheet
Type the excel name, and click generate
Hope it helps, and please reward points if helpful
Regards -
How to extract HTML table contents
Does someone know how to extract HTML table contents? I want to download a html file which contains table from internet and extract the table contents. Finally, insert the table contents into database.
To do this you have to user a Parser to parse your html file and retrieve the information you want.
Please have a look at the following classes:
HTMLEditorKit.ParserCallback
ParserDelegator()
Here is an example which retrives the FRAMSET src of an html file. The purpose here is to find if the html file describes a multi-frame page or not. If so it add the frame src name to a Vector
HTMLEditorKit.ParserCallback callback =
new HTMLEditorKit.ParserCallback() { public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)
if (t.equals(HTML.Tag.FRAME))
{ Logger.debug(this, "Frame tag found in "+f.getURL()); Enumeration e = a.getAttributeNames();
while (e.hasMoreElements())
Object name = e.nextElement();
if (name.toString().equals("src"))
Object ob = a.getAttribute(name);
Logger.debug("found an src "+ob);
currentFrameSrc.add(new String(ob.toString()));
Reader reader = new FileReader(aFile);
new ParserDelegator().parse(reader, callback, false);
It's not clean but I hope it will help :-)
Stephane -
Extracting table contents to PC
Hi
I would like to know how to download or extract any table contents to an excel work sheet and also in any other format?
For eg: SE16n, we go to any table (ZTEST); I am unable to download the contents.
Or for Eg: TABLE USR40, how to extract the list?Hello KRP,
Some of the system doesnot have SE16n and however I have used the same t-code in 4.6c, 4.7 based system and now its not showing in systems based on 7.0 atleast I dont have in CRM ..
All you can do it goto SE16 >> Enter the table name >> Click on Table Contents >> Click on Settings >> Fields for Selections >> Choose whatever field you need for your output.
Now You need to click on run and you have your table contents on your screen >> Now from top menu click System >> List >> Save >>Local File >> Here you need choose Spreadsheet >> Choose the directory from you would like to save the file (desktop) >> Give the filename SIDCLNT100.xls >> Generate
Second Option Simple one... > Once you have your contents displayed on screen >> instead of clicking System >> List >> save >> Local file .. just issue the command %pc (you will directly get the option to save the file...
Hope this will clear any doubts ... -
Hi,
I am new to BIW.Please can you guide how i can see the table entries of BSEG Table of ECC in BIW.
In BIW,what are the series of steps i have to follow.Like creating info cube and all.Please can you help me in providing the tcodes and steps sequentially.
Thanks
KiranmayiSearch in the forum, you will find many threads on InfoCube creation...see below for a sample of information you can find.
Uploading of master data
Log on to your SAP
Transaction code RSA1LEADS YOU TO MODELLING
1. Creation of Info Objects
In left panel select info object
Create info area
Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
Create new characteristics and key figures under respective catalogs according to the project requirement
Create required info objects and Activate.
2. Creation of Data Source
In the left panel select data sources
Create application component(AC)
Right click AC and create datasource
Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
In general tab give short, medium, and long description.
In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
In proposal tab load example data and verify it.
In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
Activate data source and read preview data under preview tab.
Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
3. Creation of data targets
In left panel select info provider
Select created info area and right click to select Insert Characteristics as info provider
Select required info object ( Ex : Employee ID)
Under that info object select attributes
Right click on attributes and select create transformation.
In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
Activate created transformation
Create Data transfer process (DTP) by right clicking the master data attributes
In extraction tab specify extraction mode ( full)
In update tab specify error handling ( request green)
Activate DTP and in execute tab click execute button to load data in data targets.
4. Monitor
Right Click data targets and select manage and in contents tab select contents to view the loaded data. Alternatively monitor icon can be used.
BW 7.0
Uploading of Transaction data
Log on to your SAP
Transaction code RSA1LEAD YOU TO MODELLING
5. Creation of Info Objects
In left panel select info object
Create info area
Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
Create new characteristics and key figures under respective catalogs according to the project requirement
Create required info objects and Activate.
6. Creation of Data Source
In the left panel select data sources
Create application component(AC)
Right click AC and create datasource
Specify data source name, source system, and data type ( Transaction data )
In general tab give short, medium, and long description.
In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
In proposal tab load example data and verify it.
In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
Activate data source and read preview data under preview tab.
Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
7. Creation of data targets
In left panel select info provider
Select created info area and right click to create ODS( Data store object ) or Cube.
Specify name fro the ODS or cube and click create
From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
Click Activate.
Right click on ODS or Cube and select create transformation.
In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
Activate created transformation
Create Data transfer process (DTP) by right clicking the master data attributes
In extraction tab specify extraction mode ( full)
In update tab specify error handling ( request green)
Activate DTP and in execute tab click execute button to load data in data targets.
8. Monitor
Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used
Edited by: Anita Savant on May 14, 2008 4:32 AM -
How to export table contents in xml file format through SQL queries
hi,
i need to export the table data in to xml file format. i got it through the GUI what they given.
i'm using Oracle 10g XE.
but i need to send the table name from Java programs. so, how to call the export commands from programming languages through. is there any sql commands to export the table contents in xml format.
and one more problem is i created each transaction in two tables. for example if we have a transaction 'sales' , that will be saved in db as
sales1 table and sales2 table. here i maintained and ID field in sales1 as PK. and id as FK in sales2.
i get the combined data with this query,
select * from sales1 s1, sales2 s2 where s1.id=s2.id order by s1.id;
it given all the records, but i'm getting two ID fields (one from each table). how to avoid this. here i dont know how many fields will be there in each table. that will be known at runtime only.
the static information is sales1 have one ID field with PK and sales2 will have one ID filed with FK.
i need ur valuable suggestions.
regards
pavan.You can use DBMS_XMLGEN.getXML('your Query') for generating data in tables to XML format and you can use DBMS_XMLGEN.SETROWSETTAG to change the parent element name other wise it will give rowset as well as DBMS_XMLGEN.SETROWTAG for row name.
Check this otherwise XMLELEMENT and XMLFOREST function are also there to convert data in XML format. -
F110 - Grouping the vendor invoices by BSEG table fields
Hi,
I want to group the vendor invoices while making the payment through F110, based on a BSEG table field. The settings in Grouping Key configuration (OBAP) only allows me to choose the fileds from BSIK table and not possible to select the fields from BSEG table. Is there any other way to group the vendor invoices based on BSEG fileds? How can we achieve this requirement in SAP?
Thanks and Regards
Koteswararao padartiHi,
I created the substitution and also grouping key based on the BSIK-KIDNO filed. But the system is not able to group the vendor invoices by payment reference. I already tried the following options
Seperate Payments for each Ref in FBZP settings
Can anyone let me know what is missing in the configuration to group the invoices for payment by payment reference.
Regards
Koteswararao Padarti -
XREF3 field not getting populated in BSEG table while posting MIRO
Hi,
I have one query in MIRO tcode.I have activated xref3 field in MIRO tcode using enhancement LMR1MF6Q.Now when i try to post document with some values in xref3 field on screen ,value is not getting populated in BSEG table.Please tell me what else needs to be done to achieve this ?
any hint on this?
Thanks & Regards,
Soniya S.Hi,
1.- According to SAP Note 904652 - MIRO: Different from FB60
https://service.sap.com/sap/support/notes/904652
MIRO is an independent Materials Management (MM) transaction that does not
claim to be the same as the accounting transactions (such as FB60 or FB01).
MIRO was developed to allow users to process vendor invoices within the
context of the MM procurement processes as simply as possible.
For this reason, among other differences, the field selection was limited
to the absolutely necessary. For example, the following fields from the
accounting document are not available in Transaction MIRO (this list is not
complete):
Reference key (BSEG-XREF1, -XREF 2, -XREF 3)
2.- SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment
https://service.sap.com/sap/support/notes/1156325
Have a look at badi MRM_ITEM_CUSTFIELDS.
This badi will create a new tab at item level in order to display the new fields.
I haven´t used this badi so i cannot talk from experience here.
Think twice before deciding.
Best regards. -
Error while activating the BSEG table
hi guys ,
today i joined SAP SCN . I have this error
First i appended a structure of 5 fields in BSEG table .Then i tried to delete this append structure.
But while deletiing it took nearly 20-25 minutes to process and timed out.So the structure is deleted
from BSEG table but those 5 fields are still present in view V_QCMBSEG .Because of this BSEG table
is now partially active .what should i do other than access key .Dear Deepak,
welcome to SCN.
How did you append structure in BSEG without access key, if you had appended you must have done it will access key as it is a standard table.
secondly, the time out error is because BSEG is a cluster table, and the data volume in Bseg is very large as all the accounting document from various module is stored in this table, hence while deleting it system will check each line item wise before activating the table.
Now the workaround is to check with your basis team to increase the memory index so that time out dump is eradicted and BSG becomes Active.
Best practice: Don't append structure to standard table unless it is very crucial. if you are doing it for some report, kindly do a table join ( BSEG cannot be used as it is a cluster), you will get the same data in various secondary index table, by doing this the performance of the report will be better.
Regards,
M S Lokesh
Maybe you are looking for
-
I am getting the following error while adding record into the table CM_RECIPE_ITEM : <h4> Error </h4> ORA-20505: Error in DML: p_rowid=626, p_alt_rowid=CRI_ID, p_rowid2=, p_alt_rowid2=. ORA-01410: invalid ROWID ORA-06512: at "COSTMAN.CM_RECIPE_ITEM_T
-
I recently upgraded to the iOS 6 on my iPhone 4 and my iMessage and FaceTime was working now yesterday it stopped and still is not working I've tried everything that people are suggesting and everything I thought of and still doesnt work. HELP
-
"1 Video" - what does this mean?
I have a credit in ITMS for "1 Video" - where does this count? Can this be used for anything that is a video, i.e. either a TV show or a movie, or is it only good for a TV show? This was issued to me by Apple after I had problems with a TV show I dow
-
OWB 10.2: MOLAP deployment for existing Relational Dimension
Hi all, I am experimenting with MOLAP cubes and I need to redeploy an existing Dimension that I have deployed relationally to a MOLAP dimension. If I redeploy the existing dimension to MOLAP, will OWB lose track of the relational version of the dimen
-
Hi, May I know what's the best way to select between date? I just want to ask If this is the right way to search between dates using date formate 'mm/dd/yyy'. This is my query, SELECT TO_CHAR("PmntDate",'mm/dd/yyyy') FROM "OCHO" WHERE TO_CHAR("PmntDa