How to extract data for this tcode
Hello BW Experts,
I have a transaction code in R/3. i observe that is a using a program P1 and structure S1 to generate the table display in the r/3 transaction.
i go to se38 and display the code, it seems to be a module pool.
Any suggestions for extraction of this data is highly appreciated.
Thanks,
BWer
Hi,
if you know ABAP, analyze the code, which tables are getting update with that. based on these tables either you can create generic extractor or you can search for business content.
you can use SQL Tracer also to find the tables.
go to ST05 --> SWITCH ON THE DEBUGGER(sql trace) > go to your custom transaction> create a entry> then come back to st05 deactivate the trace> then go with display trace.
there you will see what are the tables used for this.
Hope this helps.
All the best.
reagrds,
Nagesh Ganisetti.
Similar Messages
-
How to Extract Data for a Maintenance View, Structure and Cluster Table
I want to develop 3 Reports
1) in First Report
it consists only two Fields.
Table name : V_001_B
Field Name1: BUKRS
Table name : V_001_B
Field Name2: BUTXT
V_001_B is a Maintenance View
For this one I don't Find any Datasource
For this Maintenance View, How to Extract the Data.
2)
For the 2nd Report also it consists Two Fields
Table name : CSKSZ
Field Name1: KOSTL (cost center)
Table name : CSKSZ
Field Name2: KLTXT (Description)
CSKSZ is a Structure
For this one I don't Find any Datasource
For this Structure How to Extract the Data
3)
For the 3rd Report
in this Report all Fields are belonging to a Table BSEG
BSEG is a Cluster Table
For this one also I can't Find any Datasource,
I find very Few Objects in the Datasource.
For this One, How to Extract the Data.
Please provide me step by step procedure.
Thanks
PriyaHi sachin,
I don't get your point can you Explain me Briefly.
I have two Fields for the 1st Report
BUKRS
BUTXT
In the 2nd Report
KOSTL
KLTXT
If I use 0COSTCENTER_TEXT Data Source
I will get KOSTL Field only
what about KLTXT
Thanks
Priya -
How to extract data for 0FI_GL_50
hi guys,
we need to use datasource 0FI_GL_50, delta is not supported for this datasource, how can we extract data from ecc?Hi Ester,
If the datasource doesn't support delta load.....then you can't help this.
For ODS it will not be a problem if you keep the aggregation type as "Overwritten"....
But if you want Aggregation Type summation in the ODS level then you have to delete the content of the ODS before loading.....
For Infocube level duplicate records will be there......but you can avoid duplicate records in the following way...........
Use a Full DTP to load from ODS to cube and in the Process Chain you include the Process " Delete Overlapping Requests from infocube".....it will delete the previous request.......then there will be no duplication of records......
Actually what I feel is......there shoukd be three stage of loading.....
a) In the first level a ODS should be there with Aggregation Type Overwrite, so no need to delete the content..
b) 2nd level ODS with Aggregation type Summation, deleteion of the content required...
c) Then from ODS to cube.....include the step " Delete Overlapping Requests from infocube" at the end..
Regards,
Debjani..... -
How to extract data for particular two members of same dimension.
As per the requirement i need to export data for certain members of a dimension. Lets say we need data for two account members A and B which is in in Account dimension only but is not a direct children. I need the data for all the available years too. Please suggest me how my DATAEXPORT command should look like.
When i am using an AND statement it is not working accordingly. Say i am fixing for years 2007 and 2009 but the output file is coming for 2009 and 2010.
Something other is happening when i am fixing OPEX_31 and OPEX_32. The values are coming not only for OPEX_31 and OPEX_32 but for many more accounts too.
Here is my dataexport statement for your reference
SET DATAEXPORTOPTIONS
DataExportLevel "ALL";
DataExportColFormat ON;
DataExportDimHeader ON;
DataExportOverwriteFile ON;
FIX("LC","Total_Year","ESB1","2009","SIERRA","COSTCENTER_NA","CELLULAR_NA","OPEX_31",
"January","February","March","April","May","June","July","August","September","October","November","December");
DATAEXPORT "File" " " "D:\exports\feb.txt";
ENDFIX;
I need data for OPEX_31 and OPEX_32 for all the available years starting from 2001 to 2025.
Please suggest what are the modification needed to get the desired result.
Thanks in advanceHi,
There a few different options you can use for fixing on the months, years..
e.g. FIX(January:December)
or FIX(@CHILDREN(YearTotal)) < depends what the parent of the months is
sames goes for years
FIX(2009:2025)
or
FIX(@CHILDREN(Year)
If your period dimension is dense you can always use that as the column header e.g. DataExportColHeader "Period" and then fix on the accounts you require.
Cheers
John
http://john-goodwin.blogspot.com/ -
How to extract data from this namespace
Hi all,
Anyone knows how to extract the value ABC from the XML below namespace ?
HELP !!!!
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:CompanyCode xmlns:ns0="http://xidevt.sec.abc.net/common">ABC</ns0:CompanyCode>
Thanks in AdvanceHi,
I am trying to use this ABAP command to extract the value ABC from the below. It does not seems to retrieve it. Can anyone tell me what is wrong with it
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:CompanyCode xmlns:ns0="http://xidevt.sec.abc.net/common">ABC</ns0:CompanyCode>
My ABAP code is as follows.
a_ncoll1 = a_idocument->get_elements_by_tag_name_ns( name = 'CompanyCode' ).
a_node1 = a_ncoll1->get_item( 0 ).
elmt_value = a_node1->get_value( ). -
How to extract data for condition records with different valid periods
Dear Gurus,
There was an error in the recent condition records price upload. Now, i want to extract the data into excel file depending on different valid dates. Please let me know how can i do this... in the extracted file i would like to have fields like, valid on and valid to dates, condition type, price list type, material, condition record no. , last changed date, last changed user id etc., please suggest...thanks in advance..
rgds
surihi suresh
create a quick query (SQVI) and extract to excel table KONP
only thing you need to take care is table join for fields datab ( valid from) and tatbi (valid to) you need to take from right table which are present A-table,
Anil -
How to extract data from this Variant?
Hi All,
I hope someone could help me in solving this problem.
I have a VARIANT variable named "num". I know that it contains an array of strings. By using the command:
type = CA_VariantGetType(&num);
I obtain type=4211, that should correspond to an array of BSTR.
However, if I add "num" to "watch expression", I get "value={VT_BSTR | VT_ARRAY}" and the bitwise OR is 8200.
Now my questions are:
1- is it possible to see this array directly from the watch expression?
2- how can I extract this array of strings from the VARIANT?
This is really becoming challenging for me...
Regards and thanks for the attention
FrancescoYou're right, maybe it won't work with an array of BSTR.
In this case I think we have to options since in LabWindows/CVI we have the possibility to store an array of BSTR as a pointer using the function CA_VariantSetBSTRPtr () but we can also store it as an array using the function CA_VariantSet1DArray ().
You can know which of them was used to create your variant by using the function CA_VariantHasPtr () that returns TRUE only if the variant was created using CA_VariantSetBSTRPtr () and you can use CA_VariantHasArray () that returns TRUE if the variant was created using the CA_VariantSet1DArray ().
Once you know how your variant was created you can convert it to the array of BSTR using the function CA_VariantGetBSTRPtr() or CA_VariantGet1DArray().
I created a little project and tested this functions.
As you can see, the code creates an array of BSTR strings and store them in two different variants using both the ways I explained and then convert the variant back to two array of strings (they are pointers actually) and take the first string of both pointer that can be seen into the watch-expression window.
Here you have the code:
size_t numberOfElements;
BSTR *myNEWBSTRArray;
BSTR *myNEWBSTRPointer;
HRESULT variantHasPointer;
HRESULT variantHasArray;
unsigned int variantTypeBSTRPointer;
unsigned int variantTypeBSTRArray;
BSTR myBSTR[3];
VARIANT myVariantBSTRPointer;
VARIANT myVariantBSTRArray;
char *ptrString;
char *arrayString;
BSTR firstOfPtr, firstOfArray ;
//Allocate Variants
myVariantBSTRPointer = CA_VariantEmpty ();
myVariantBSTRArray = CA_VariantEmpty ();
//Create the array of BSTR strings
myBSTR[0] = SysAllocString(L"I am a happy BSTR");
myBSTR[1] = SysAllocString(L"I am another happy BSTR");
myBSTR[2] = SysAllocString(L"I am one more happy BSTR");
//FIRST WAY: Convert the BSTR array to a BSTR pointer variant
CA_VariantSetBSTRPtr (&myVariantBSTRPointer, myBSTR);
//Get the variant type
variantTypeBSTRPointer = CA_VariantGetType (&myVariantBSTRPointer);
//this is true since the variant was created as BSTRPtr
variantHasPointer = CA_VariantHasPtr (&myVariantBSTRPointer);
// Retrieve the BSTR array as a new BSTR pointer
CA_VariantGetBSTRPtr (&myVariantBSTRPointer, &myNEWBSTRPointer);
//Take the first BSTR string stored in this array
firstOfPtr = myNEWBSTRPointer[0];
//SECOND WAY: Convert the BSTR array to a 1D array of BSTR variant
CA_VariantSet1DArray (&myVariantBSTRArray, CAVT_BSTR, 3, myBSTR);
//Get the variant type
variantTypeBSTRArray = CA_VariantGetType (&myVariantBSTRArray);
//this is true because this second variant was created as 1DArray
variantHasArray = CA_VariantHasArray (&myVariantBSTRArray);
//Retrieve the BSTR array as 1DArray.
//NOTE: myNEWBSTRArray is a BSTR* just like myNEWBSTRPointer variable was.
CA_VariantGet1DArray (&myVariantBSTRArray, CAVT_BSTR, &myNEWBSTRArray, &numberOfElements);
//Take the first BSTR string stored in this array
firstOfArray = myNEWBSTRArray[0];
//Convert the two BSTR strings to C-Strings that can be seen into the watch-expression
CA_BSTRGetCString (firstOfArray, &arrayString);
CA_BSTRGetCString (firstOfPtr, &ptrString);
Let me know if it helps
Best Regards
Luca Gallo
Application Engineer
National Instruments Italy -
How to extract data for these fields from R/3 ?
Hi frnds,
My requirement is to extract the following fields which
are related to MM: Condition type, condition
value, Bill of lading, Qty in external delivery note,
Different invoicing party, Invoicing document from R/3 to
BI. But i found that they are not in any purchasing
datasources or inventory datasources ( Except different
invoicing party but the values are not picking up through
standard extractors ).
Anyone please tell me are there any standard datasources for extracting these fields ?
If not, if i want to enhance datasources for these fields
which datasource do i need to enhance i.e
2lis_02_itm,2lis_02_scl,2lis_02_s012 or 2lis_03_bf,
2lis_03_um ?
Full points will be assigned.
Regards,
Bhadri M.Hi.......
I think you have filled the set up table..........and you have replicate the datasource also.......and after replicating you have activated in the BI side........
Then it should extract the data............
Are you in BI 7.0...........
You try one thing...............
Replicate the datasource again............and then activate the transfer rules using program : RS_TRANSTRU_ACTIVATE_ALL...........
Also check the selection tab of your Infopackage........may be you are giving some selection.........also check if it is coming till PSA..........if it is coming till PSA.....then check your transformation and DTP.......
It may help you...........
Regards,
Debjani..........
Edited by: Debjani Mukherjee on Sep 21, 2008 11:18 AM -
hi there
i was trying to install latest itunes it gives error
the configuration data for this product is corrupt contact your personal support
how can i fix it and what is the reason for this error(1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
http://majorgeeks.com/download.php?det=4459
(2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
(3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
(4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
(5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time? -
How to extract data from MDTC table.
Hi all.
I want to fetch data from MDTC table. But in that table field CLUSTD contain compressed data. How can i extract that data.
Can i extract data for structure MDPSX.
is MDTC table is used in function module MD_STOCK_REQUIREMENTS_LIST_API .
Please help me and give the information.
thanks.Dear Sam,
I would suggest you to have a look at the function module CHANGEDOCUMENT_READ u2013 you can use this function module as a core in the developed function module for generic extractor. Unfortunately, the suggested function module can not handle import parameters for field names, so the strategy which can be applied here is to use this function module to fill the internal table based on restrictions on object class and table name and then go through filled internal table and delete records which are not relevant for fields KOFIZ or ABRSPERR.
As for delta implementation, would you please advise if delta relevant field based on timestamp generated on date and time of the change document is sufficient for your needs? If so then you can use fields UDATE and UTIME to generate timestamp on them including the field containing generated timestamp to the extract table. Next step here is to choose this field as delta relevant field in the Generic DataSource maintenance (TCode RSO2).
Please inform me if this solution suits you or if you have any questions or concerns regarding it.
My best regards,
Vadim -
How to extract TEXT for archived Purchase Orders ?
Hi Friends,
Can any one tell me how to extract TEXT for archived Purchase Orders ?
I have used READ_TEXT but that is not fetching texts for archived PO's. Whenever I am trying to fetch data from STXH against archived PO, no value is coming and resulting SY_SUBRC <> 0.
Any demo code will be highly appreciated.
Thanks in advance..
SivajiHi,
You can see that table STXH is linked to archiving object MM_EKKO (you can see it in tcode DB15).
My suggest is that you must get the data. See the demo object BC_SBOOK in tcode AOBJ. You can see the report to reload data. The object is get the data in an internal table. So for report SBOOKR you can see this function module:
* get data records from the data container
* SBOOK
CALL FUNCTION 'ARCHIVE_GET_TABLE'
EXPORTING
archive_handle = lv_handle
record_structure = 'SBOOK'
all_records_of_object = 'X'
TABLES
table = lt_sbook_tmp
EXCEPTIONS
end_of_object = 0. "not entries of this type
* check lt_sbook_tmp entries against selections. Delete not
* requested entries
LOOP AT lt_sbook_tmp ASSIGNING <ls_sbook>
WHERE carrid IN s_carrid
AND connid IN s_connid
AND fldate IN s_fldate.
APPEND <ls_sbook> TO lt_sbook.
ENDLOOP.
REFRESH lt_sbook_tmp.
The idea is that you get the same data that you handle in READ_TEXT (because you don't have the data in database) and recovery the text.
I hope this helps you
REgards
Eduardo -
Open Hub: How-to doc "How to Extract data with Open Hub to a Logical File"
Hi all,
We are using open hub to download transaction files from infocubes to application server, and would like to have filename which is dynamic based period and year, i.e. period and year of the transaction data to be downloaded.
I understand we could use logical file for this purpose. However we are not sure how to have the period and year to be dynamically derived in filename.
I have read in sdn a number of posted messages on a similar topic and many have suggested a 'How-to' paper titled "How to Extract data with Open Hub to a Logical Filename". However i could not seem to be able to get document from the link given.
Just wonder if anyone has the correct or latest link to the document, or would appreciate if you could share the document with all in sdn if you have a copy.
Many thanks and best regards,
VictoriaHi,
After creating open hub press F1 in Application server file name text box from the help window there u Click on Maintain 'Client independent file names and file paths' then u will be taken to the Implementation guide screen > click on Cross client maintanance of file name > create a logical file path by clicking on new entiries > after creating logical file path now go to Logical file name definition there give your Logical file , name , physical file (ur file name followed by month or year what ever is applicable (press f1 for more info)) , data format (ASC) , application area (BW) and logical path (choose from F4 selection which u have created first), now goto Assignment of physical path to logical path > give syntax group >physical path is the path u gave at logical file name definition.
however we have created a logical path file name to identify the file by sys date but ur requirement seems to be of dynamic date of tranaction data...may u can achieve this by creating a variable. U can see the help from F1 that would be of much help to u. All the above steps i have explained will help u create a dynamic logical file.
hope this helps u to some extent.
Regards -
How to extract data from planning book
nu t apo. need help regarding how to extract data from planning book givn the planning book name , view name & some key figures.
Total Demand (Key Figure DMDTO):
o Forecast
o Sales Order
o Distribution Demand (Planned)
o Distribution Demand (Confirmed)
o Distribution Demand (TLB-Confirmed)
o Dependent Demand
Total Receipts (Key Figure RECTO):
o Distribution Receipt (Planned)
o Distribution Receipt (Confirmed)
o Distribution Receipt (TLB-Confirmed)
o In-Transit
o Production (Planned)
o Production (Confirmed)
o Manufacture of Co-Products
Stock on Hand (Key Figure STOCK):
o Stock on Hand (Excluding Blocked stock)
o Stock on Hand (Including Blocked stock)
In-Transit Inventory (Cross-company stock transfers)
Work-in-progress (Planned orders / Process orders with start date in one period and finish date in another period)
Production (Planned), Production (Confirmed) and Distribution Receipt elements need to be converted based on Goods Receipt date for projected inventory calculation.Hello Debadrita,
Function Module BAPI_PBSRVAPS_GETDETAIL2 or BAPI_PBSRVAPS_GETDETAIL can help you.
For BAPI BAPI_PBSRVAPS_GETDETAIL, the parameters are:
1) PLANNINGBOOK - the name of your planning book
2) DATA_VIEW - name of your data view
3) KEY_FIGURE_SELECTION - list of key figures you want to read
4) SELECTION - selection parameters which describe the attributes of the data you want to read (e.g. the category or brand). This is basically a list of characteristics and characteristic values.
BAPI_PBSRVAPS_GETDETAIL2 is very similar to BAPI_PBSRVAPS_GETDETAI but is only available from SCM 4.1 onwards.
For the complete list of parameters, you can go to transaction SE37, enter the function module names above and check out the documentation.
Please post again if you have questions.
Hope this helps. -
How to extract data from ODS to non-SAP system
Hi,
Can anybody tell me, step by step, how to extract data from ODS to a non-SAP system?
Is it possible to do it without programming effort? And is there volume limits for this kind of extraction?
The non-SAP system is an unix system.
Thanks in advance
EllaElla,
You can look at it from the concept of a BADI / Infospoke
Extract the data from the ODS to a Flat file / RDBMS using an infospoke. I am not sure as to how the infospoke loads data into the RDBMS ( did it very long ago ) but then you can push it into an RDBMS and I am sure it will be system neutral.
Hope this helps...
Arun
Assign points if it helps -
How to extract data from custom made Idoc that is not sent
Hi experts,
Could you please advise if there is a way how to extract data from custom made idoc (it collects a lot of data from different SAP tables)? Please note that this idoc is not sent as target system is not fully maintained.
As by now, we would like to verify - what data is extracted now.
Any help, would be appreciated!Hi,
The fields that are given for each segment have their length given in EDSAPPL table. How you have to map is explained in below example.
Suppose for segment1, EDSAPPL has 3 fields so below are entries
SEGMENT FIELDNAME LENGTH
SEGMENT1 FIELD1 4
SEGMENT1 FIELD2 2
SEGMENT1 FIELD3 2
Data in EDID4 would be as follows
IDOC SEGMENT APPLICATION DATA
12345 SEGMENT1 XYZ R Y
When you are extracting data from these tables into your internal table, mapping has to be as follows:
FIELD1 = APPLICATIONDATA+0(4) to read first 4 characters of this field, because the first 4 characters in this field would belong to FIELD1
Similarly,
FIELD2 = APPLICATIONDATA+4(2).
FIELD3 = APPLICATIONDATA+6(2).
FIELD1 would have XYZ, FIELD2 = R, FIELD3 = Y
This would remain true in all cases. So all you need to do is identify which fields you want to extract, and simply code as above to extract the data from this table.
Hope this was helpful in explaining how to derive the data.
Maybe you are looking for
-
Creating and/or editing a TextEdit document invisibly
I have a script in which the text of a result is set to a new TextEdit document, but that text needs editing prior to displaying the document. As in the following example, I can do the editing invisibly, but creating the initial new document results
-
Load data from BW 7.0 DSO into a ECC 6.0 SD standard/Custom pricing table
Gurus, We have a scenario, where we need to load data from a BW DSO to SD standard/Custom pricing table in ECC 6.0. That data will be few thousand records. Per my knowledge, in BPS, retractors are available to update data from BW to ECC and OpenHub a
-
Is it mandatory to Restart all services after making Business Rule change?
Hi, I know it may be a easy one but wanted to know is it mandatory to restart all the Planning and Essbase services if we make any changes in the Business rule in 9.3.1 -KP
-
Is it safe for my daughter to lend her old iPod to a friend?
My daughter wants to lend her older ipod to a friend for the summer. Is this safe? What if he uses it unwisely? Will it come back to haunt my daughter?
-
Thinkpad W530 2438-2MU discontinued?
Hi All, The 2438-2MU model of the W530 is suddenly flagged as "Discontinued" or "Not available" at most distributors. Has anybody a clue on why this is? TIA. Nils G. Svedmyr Thinkpad W510 4318-CTO 15,6" 1920x1080 nVidia Quadro FX 880M Intel i7 CPU X9