Regarding field extracts
Hi to all,
What are the field extracts and conversion exit in ABAP.
Thanks..
Hi,
You are asking about the EXTRACT statement in ABAP.
it is used in the context of Field Groups: when the data is huge, internal tables are not useful
so we use field groups and use the commands like HEADER, EXTRACT, GET etc.
see the sample code:
REPORT demo_extract.
NODES: spfli, sflight.
FIELD-GROUPS: header, flight_info, flight_date.
START-OF-SELECTION.
INSERT: spfli-carrid spfli-connid sflight-fldate
INTO header,
spfli-cityfrom spfli-cityto
INTO flight_info.
GET spfli.
EXTRACT flight_info.
GET sflight.
EXTRACT flight_date.
END-OF-SELECTION.
SORT STABLE.
LOOP.
AT FIRST.
WRITE / 'Flight list'.
ULINE.
ENDAT.
AT flight_info WITH flight_date.
WRITE: / spfli-carrid , spfli-connid, sflight-fldate,
spfli-cityfrom, spfli-cityto.
ENDAT.
AT flight_date.
WRITE: / spfli-carrid , spfli-connid, sflight-fldate.
ENDAT.
AT LAST.
ULINE.
WRITE: cnt(spfli-carrid), 'Airlines'.
ULINE.
ENDAT.
ENDLOOP.
Conversion exits are used to pass the values correctly to the fun modules, for ex:
Kunnr field value is '64564', but the fun module wont take as it is: you have to pass '0000064564', to convert this we use conversion exits for the fields.
reward if useful
regards,
ANJI
Similar Messages
-
Hi Experts,
I m new to SAP BW, I need a information regarding Generic Extraction as the senario is follows.
I created a table with fields,
Customer Id (PK), name, age ***, address
and i maintained five records in it.
i created a generic master data attributes data source using above table
i replicated the data source in bw and run the full update and it is succussful.
Now my requirement is to add 5 more records in the above table and i hav to get those records in bw using delta update.
So, can any one can explain how to maintain delta for that generic datasource and how to run delta update in step-by-step process
regards,
RamakrishnaCheck the PDF doc..on how to create generic delta..
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
Check this doc for more
http://www.ko-india.com/content/weblogs/generic_delta_explained.pdf
Regards,
R.Ravi
Assigning Points is the way of saying Thanks in SDN! -
Hi All,
This is regarding LO Extraction.
The steps that I am following are first installation of Business Content InfoCube. Next identified the data sources in LBWG I deleted the data from setup tables for that particular application.
In a broad way how to extract the deltas from now on.
We will do the time setup in 0LI*BW. Next we set the time in Job Control and then again in BW side we can set the time in InfoPackage.
What is the best practice to follow to extract deltas?
I am having all the materials and Links regarding LO.
But I am not clear on this point. Someone please guide me regarding this issue.
Regards
YJJayanth
Check this sequence. Hope this helps. Also check these weblogs.
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/21406 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
Also refer this link:
http://www.sap-img.com/business/lo-cockpit-step-by-step.htm
Thnaks
Sat
LO EXTRACTION
- Go to Transaction LBWE (LO Customizing Cockpit)
1). Select Logistics Application
SD Sales BW
Extract Structures
2). Select the desired Extract Structure and deactivate it first.
3). Give the Transport Request number and continue
4). Click on `Maintenance' to maintain such Extract Structure
Select the fields of your choice and continue
Maintain DataSource if needed
5). Activate the extract structure
6). Give the Transport Request number and continue
- Next step is to Delete the setup tables
7). Go to T-Code SBIW
8). Select Business Information Warehouse
i. Setting for Application-Specific Datasources
ii. Logistics
iii. Managing Extract Structures
iv. Initialization
v. Delete the content of Setup tables (T-Code LBWG)
vi. Select the application (01 Sales & Distribution) and Execute
- Now, Fill the Setup tables
9). Select Business Information Warehouse
i. Setting for Application-Specific Datasources
ii. Logistics
iii. Managing Extract Structures
iv. Initialization
v. Filling the Setup tables
vi. Application-Specific Setup of statistical data
vii. SD Sales Orders Perform Setup (T-Code OLI7BW)
Specify a Run Name and time and Date (put future date)
Execute
- Check the data in Setup tables at RSA3
- Replicate the DataSource
Use of setup tables:
You should fill the setup table in the R/3 system and extract the data to BW - the setup tables is in SBIW - after that you can do delta extractions by initialize the extractor.
Full loads are always taken from the setup tables
The Lo-cockpit procedure is go with LBWE Transaction
so that you can get Applications 02,03,...etc
Under that you have
Extract structures
select your data source here Be sure that First you InActive that Then go with LBWG "Delete setup data"
here you can give the application No example 02(if your application is Purchages)
then once again LBWE go with Maintanace Tab select your Fields then your Datasource is Active position then You have to Fill the Data
go with OLI*BW for example if your application is Purchages then OLI3BW
then go with Extractor Checker RSA3 -
Help Regarding Generic Extraction
Hi Experts,
I m new to SAP BW, I need a information regarding Generic Extraction as the senario is follows.
I created a table with fields,
Customer Id (PK), name, age ***, address
and i maintained five records in it.
i created a generic master data attributes data source using above table
i replicated the data source in bw and run the full update and it is succussful.
Now my requirement is to add 5 more records in the above table and i hav to get those records in bw using delta update.
So, can any one can explain how to maintain delta for that generic datasource and how to run delta update in step-by-step process
regards,
RamakrishnaHi Ramakrishna,
For doing a delta on a generic extractor you will have to set up any one of the following type of the field as delta attribute and on the basis of this delta records will be extracted.
- Time Stamp
- Calendar day
- Numerical Pointer (i.e. Document Number)
You can monitor your delta queue via RSA7 transaction.
Also For delta you will have to do Init load first.
Hope that helps.
Regards. -
Filter the Regarding field on Activity
Can we use addCustomFilter method on Regarding control on Activity form? I would like to filter the cases listed under Regarding field based on the role of logged in user.
Regards,
YogeshPlease Refer below link :
http://blogs.msdn.com/b/shraddha_dhingra/archive/2013/12/21/addpresearch-and-addcustomfilter-in-crm-2013.aspx
http://mscrmshop.blogspot.in/2013/10/addcustomfilter-method-for-lookup.html -
Regarding CRM extraction.....
Hi Gurus,
I have few questions regarding CRM extraction.
Q1: If we enhance a CRM transactional Datasource, do we have to write the ABAP logic in SE19 or CMOD or both?
Q2: If we enhance a CRM MasterData Datasource, do we have to write the ABAP logic in SE19 or CMOD or both?
Q3: What is the significance of the T-CODES BWA1, BWA5, BWA7 ?
Q4: When do you implement the BADI CRM_BWA_MFLOW and when do we implement the BADI CRM_BWA_SFLOW and when do we implement both of them?
Q5: What is the significance of the function module CRM_BADI_GET_BDOC? Is there any other function module which is used in CRM extraction that has to be implemented in coding?
Please throw some light on my questions.
Thanks
Nice day
Regards
SamHI,
For Delta Extraction of CRM to BI pelase follwo the below steps
Go to transaction GNRWB
Select BUS_TRANS_MSG
Select (on the right, the services): BWA_DELTA3, BWA_FILL, BWA_queue
Press Generate.
Also check for the following:
1. The delta should have been initialized successfully.
2. Confirm that all Bdocs of type BUS_TRANS_MSG
are processed with success in SMW01.
3. If there are queues in SMQ1 with erroneous status then activate
these queues.
In Transaction SMQ1 if there are Queues existing with
names beginning with CRM_BWAn (n is number) then
activate these queues in the same transaction.
4.a)If required activate the datasource
Go to transaction BWA5 > select the required datasource and
activate.
4 b) The Delta may not be active ,activate the delta in BWA7 by
selecting the name of the datsource and pressing the candle icon for
'activate delta'.
5. In BW system
Go to transaction RSA1 > modeling > infosources > select the
info source > right mouse click on the selected
infosource > choose option replicate datasource
Activate the infosource.
6. Go to the scheduler for the infosource > select delta in the
update >choose the option PSA only (in the Processing tab)
start immediately
Check the entry in the RSA7 in the OLTP(CRM system)
Hope It helps You.
Regards,
Nagaraju.V -
OSS note regarding 0EC_PCA_3 extraction optimization
hello Frnds,
We are facing severe Data load issues with a load from 0EC_PCA_3 in production,
Could any one suggest OSS note regarding 0EC_PCA_3 extraction optimization
Thanks in Advance
rakyRakesh
Also check this for General BW related Performance issues
Business Intelligence Performance Tuning [original link is broken]
Thnaks
Sat -
Query regarding data extraction
Hello All,
I am new to ABAP development. I have been assigned to work on a report, where I have to fetch data for a SC, which will be extracted into an flat file.
Now my requirement is as below:
Each shopping cart will have a number of different records. The records are of the following types
Header – Marked with record type = “HEAD”
Line item – Marked with record type = ”ITEM”
Accounting line – Marked with record type = ”ACC”
Approval record – Marked with record type = ”APP”
Now in this manner I have to fetch the data in an single flat file. Now I am really confused how I am going to do it. I have the tables for header, item, accounting line, approval records. Now my question is am I have to 1st fetch data for header then line then accounts and approval then join this into my final internal table?? Is this the correct approach?
I am a beginner and your help will be highly appreciated.
I have attached a flat file for your reference.
Regards,
SarnavaSo long as you have some unique identifier between each of these tables this shouldn't be a problem. I of course can't see what data you have in the tables but lets say for example you have an account number, then you can create your flat file something like this:
head,account123,headfield1,headfield2... etc
item,account123,itemfld1,itemdfld2,....etc
item,account123,itemfld1,itemdfld2,....etc
then the same logic of course for the other two lines i.e. the first part of the line is a field which contains "head" or "item" or "acc" or "app", then the unique identifier and then the rest of the records. And you can make it comma seperated or whatever you want. The user picking this up can then also sort it. -
Hi All,
We have created a datasource for COPA(Account Based), used generic InfoCube, replicated DataSources and created TR and UR.
The data is available in R/3. But when we are checking the data in RSA3. Obviously, we are unable to extract the data to BW. Can anybody provide us with a solution for this situation.
Regards
YJHi PRK,
First of all thank you for your interest.
Let me explain you clearly:
When I am extracting the data using Extractor Checker, first I am receiving the following error:
'Make an entry into all the required fields'
Next I entered the values for 'Controlling Area', 'Company Code' and 'Period/year'(I had entered the correct date format).
Next I am receiving the following error:
'Errors occured during extraction'
I will be thankful for your help.
Regards
YJ -
Regarding LIS Extract Structure and Delta Queues
Hi All,
We are extracting data using 2LIS_01_S001. But we are unable to pull Delta loads. When we verified we found that the structure (Fields)of the Delta queues are not in same order as S001 table. So, we modified the structures of delta queues using the access key. Now the order of fields in S001, S001BIW1 and S001BIW1 are all same. Till now I was unable to load the deltas for the data source. Now my doubt is should I have to do the LIS setups again (Statistical Information Setup)or can I do a Full Load and do deltas directly???Hi,
You have to setup the tables once again.If your requirement is to load the customer data donot depend on LIS because there are lot of problems with this LIS.SAP is not recommending this LIS.Simply load customer attribute data and load transaction LOS also.
This is a better option.
Hope this helps.
Assign points if useful.
Regards,
venkat -
Regarding Field Missing in Dso Transformation
Hi
Folks
I am facing the issue like
In Datasouce to DSO transformation i can see the 55 objects in DSO table, and in DSO to Cube Transformation i can see 54 fields in DSO table, one field is missing , the object 0TXTSH(short discription) is mapped to field 0TXZ01in DS to DSO transformation.
so How can i get the field in DSO to Cube transformation.??
any settings have to be change???
waiting for yours Valuable answers
Regards
AnandHi,
Please identify the object and check it whether it is an attribute or a characteristic, if it is attribute only disable that option then check it.
Regards,
Srinivas -
AFS Elementary Field Extraction (Category Fields)
Hello Guru's,
I have a problem of extracting category fields. The problem is in the mapping of Characteristics (Category) to the Elementary fields in the R3 AFS BW interface. For an example if you take the category characteristic 'Quality" it has two elementary fields,
Stock(J_3ABWEL_QUAL ) & Requirement(J_3ABWEL_QUAL_R). But the problem in R3 is, there is only ONE Characteristic available for "Quality". In the AFS BW interface it is not possible to map one Characteristic into two Elementary Fields.
Please let me know how to handle this.
Any thoughts will be greatly appreciated.
Thanks
RJHi AFS Gurus,
Could you please help me out?
Cheers,
DM -
Re: URGENT: - REGARDING FIELD IN TABLES
HI
I am using transaction code MB5B and i am getting d data but i want to search d field among d tables where amount in currency field(dmbtr) present in bsim or bseg table ,but i want to have dat field which use to display d calculation of d field (dbmtr),plz hel me out its urgent... he or sh will be rewarded...Hi,
Please verify these internal tables in the program.
DATA: BEGIN OF MAT_SUM OCCURS 100,
DMBTR(09) type p decimals 3,
DATA: BEGIN OF MAT_SUM_BUK OCCURS 100,
DMBTR(09) type p decimals 3,
DATA: BEGIN OF MAT_WEG OCCURS 100,
DMBTR(09) type p decimals 3,
DATA: BEGIN OF MAT_WEG_BUK OCCURS 100,
DMBTR(09) type p decimals 3,
types : begin of stype_bsim_lean,
dmbtr like bsim-dmbtr,
TYPES : BEGIN OF STYPE_MSEG_LEAN,
DMBTR LIKE MSEG-DMBTR,
DATA: BEGIN OF IMSWEG OCCURS 1000,
DMBTR LIKE MSEG-DMBTR,
I think these are the tables used to sum up the dmbtr.
I think dmbtr is taken from bsim and mseg.Dmbtr id taken from bsim because of the adjustments in finance module..
<b>Reward points if helpful,</b>
Regards,
jinesh. -
Question regarding fields triggering delta on ECC side
Hi gurus
I wonder does any field change on ECC side triggers delta queue? If not how can I know what fields do trigger deltas?
For example I use FI_AR_4 extractor, one of the extraction structure fields comes from BSEG.SGTXT. It is long text field. Then it is being changed it doesn't impact any amounts or other key information. Will BSEG.SGTXT field change trigger the delta queue if any other field of the record wasn't changed?But this timestamp field is posted then some fields have been changed, i guess...
-
Re: URGENT: - REGARDING FIELD
HI
I am using transaction code MB5B and i am getting d data but i want to search d field among d tables where amount in currency field(dmbtr) present in bsim or bseg table ,but i want to have dat field which use to display d calculation of d field (dbmtr),plz hel me out its urgent... he or sh will be rewarded...Hi,
Please verify these internal tables in the program.
DATA: BEGIN OF MAT_SUM OCCURS 100,
DMBTR(09) type p decimals 3,
DATA: BEGIN OF MAT_SUM_BUK OCCURS 100,
DMBTR(09) type p decimals 3,
DATA: BEGIN OF MAT_WEG OCCURS 100,
DMBTR(09) type p decimals 3,
DATA: BEGIN OF MAT_WEG_BUK OCCURS 100,
DMBTR(09) type p decimals 3,
types : begin of stype_bsim_lean,
dmbtr like bsim-dmbtr,
TYPES : BEGIN OF STYPE_MSEG_LEAN,
DMBTR LIKE MSEG-DMBTR,
DATA: BEGIN OF IMSWEG OCCURS 1000,
DMBTR LIKE MSEG-DMBTR,
I think these are the tables used to sum up the dmbtr.
I think dmbtr is taken from bsim and mseg.Dmbtr id taken from bsim because of the adjustments in finance module..
<b>Reward points if helpful,</b>
Regards,
jinesh.
Maybe you are looking for
-
Error 1620 when creating packages in creative cloud packager
I'm getting Error 1620 when trying to package Flash Premium, Muse, and Premiere, all 64 bit. I've tried packaging these multiple times, all with the same result. On this computer I've been able to package other adobe products, as well as create a pac
-
Just changed outgoing mail server now unable to Send to old contacts
Please see error message below: "This message could not be delivered and will remain in your Outbox until it can be delivered. The server "smtp.snet.net" did not recognize the following recipients:" These however are all address that I have previousl
-
Changing data structure in the receiver SOAP adapter
I was wondering whether it is possible to have changing data structure in terms of one receiver SOAP adapter so I could sent data type 1 and 2 to a single XI web service enabled URL and make conditional parsing in terms of the received message ? I ha
-
Dear All We have an issue in which, a cheque payment dishonoured, could also be a cash sale transaction. Now the requirement is to trace the Original Invoice in the system. How can the same be traced? Regards Monica
-
Hi i am extracting data fromECC 6.0 to BI 7.0 i created 3 infopackages full delta initialization delta so i need 1 dtp is enough at dtp i need select delta only. what scenerio we use full dtp only?