Data Selection in Info Package
Hi Gurus:
How to exclude say doc type 'ER' in a Info package...Where can I mention the <> operator in I.pKG..
Thanks & Regards
hi MK K,
or try with infopackage routine, there is button to choose type 'abap routine' and try following code
DELETE l_t_range
WHERE fieldname = '[doc type]'
AND LOW = 'ER'.
hope this helps.
sample code
routine as selection in infopackage
Similar Messages
-
Data selection in info package using ABAP routine.
Hi,
when we are scheduling the info package(Infp package name is like XYZ),we want to load past 6 months data from the current date(INFO OBJECT(0CREATEDON) BETWEEN (Sy-Datum - 6 months TO Sy-Datum),in the selection tab in schedule i want to write the abap routine (type 6).please can any one have this type of code please sedn to me asap.
this is very urgent.delivery is tomorrow.hi Lekha,
try following code.
seems you post the same question twice, one posting is sufficient. and please don't forget to reward helpful answers.
data: l_idx like sy-tabix.
read table l_t_range with key
iobjnm = '0CREATEDON'.
l_idx = sy-tabix.
DELETE l_t_range
WHERE iobjnm = '0CREATEDON'.
L_t_RANGE-SIGN = 'I'.
L_t_RANGE-OPTION = 'EQ'.
if not work, try
L_t_RANGE-OPTION = 'BT'.
BT = between
last 6 month
L_t_RANGE-LOW = sy-datum - 180.
current date
L_t_RANGE-HIGH = sy-datum.
append l_t_range.
modify l_t_range index l_idx.
p_subrc = 0.
$$ end of routine - insert your code only before this line -
endform. -
Example Code for Routine at Data Target in Info Package.
Hi,
Can any one send the example code for writing the routines at Data Target of Info Package for Deleting the Request from Info Cube after Update.
Thanks in Advance,
Regards,
srinivasHi All,
I want to know some examples for guidance in writing the Abap Routine at Data Target of Info Package for Deleting the Request from Info Cube after Update.
In the Data Targets of Info Package for Info Cubes we can delete the previous request based on the Conditions, exceptions and also based on the Abap Routine. I just want to know how do we write the Routine.
This option is adjacent to the Maintain to Data Target in Data Targets of Info Package and will available for Info cube only.
Thanks in Advance,
Regards,
srinivas -
ABAP Routine in selection of Info package in 3x
Hello Experts
We need to load distinct PO data in 3x server.
I have added this distinct po values in range table of info package abap routine.
However its not loading for range table values more than two selections/pos.
If I try to append more than 2 values,only last one is uploaded.
However after load, in monitor tab-header , selection paramenters I can see all PO values in selection.
Some how it works only for two inputs (rows) in range table of ABAP routine in infopackage.
Anybody has faced such issue? any help is appreciated!
Edited by: Kanchan Angalwar on Jan 30, 2010 9:59 AMHi,
Please post your ABAP code here -
How to control data load in Info-Package using ABAP?
Hello Gurus:
I am trying to resolve couple of issues.
1. I need to load data DAILY Full Load into a Planning cube. I have the 0NETDUEDATE for selection in the
Info-package. I am getting data from anothe base A/R cube. I want to Load Daily ONLY those records
for which the "0NETDUEDATE" is Greater than "System Date". I think the logic would be IF 0NETDUEDAT
.GT. SYS-DATUM, bruing the record. What should be the statement in 'Result' for keeping the record?
(I don't know ABAP, so need help here...!)
2. Similalry, before loading the data above, I want to delete all the existing records from Planning cube where
0NETDUEDATE is GT System date (records loaded the previosu day need to be deleted as the amounts may
have changed). How can I achieve this selective deletion automatically in PC??
Appreciate your feedback very much.
Thanks... SMaaHi Shruti,
1) If i understand your requirement correctly you need to load only data which has 0NETDATE greater then sydatum.
So you can do this in infopackage .Infopackage>Data selection->0NETDATE(field)-->type(colum).here you can selecy ABAP type(6).Now you create ABAP code in this.
Here in ABAP code you need to specify high and low range ,Also the relation character like GT or BT(between).
i guess some how ur code will look like this
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
$$ end of global - insert your declaration only before this line -
InfoObject = 0NETDUEDATE
Fieldname = NETDUEDATE
data type = NUMC
length = 0000010
convexit = PERI6
form compute_NETDUEDATE
tables l_t_range structure rssdlrange
changing p_subrc like sy-subrc.
Insert source code to current selection field
$$ begin of routine - insert your code only below this line -
data: l_idx like sy-tabix.
l_idx = sy-tabix.
l_t_range-low = sy-datum.
l_t_range-option = 'GT'.
modify l_t_range index l_idx.
p_subrc = 0.
$$ end of routine - insert your code only before this line -
endform.
i am not sure about coding but you can surely do it it is like specifying the ranges dynamically(you need to try it out)
(also as mentioned by others you can do this in traansformation routines)but infopackage routine you can directly write in PROD system.
2) And regarding the Selective deletion you donu2019t have nay process type in Process chain which does this
But there is function module u201C rsdri_infoprov_delete " which can be used to develop a program( I guess you must be having a existing ZProgram in ur system already available because this is used commonly.
Other wise you need to develop a ZProgram for this.
Thanks and Regards
Arun -
Hi,
Can any one help me in selecting the data through info package where
Key figure1<>0 <b>AND</b> key figure <> 0.
I.e I have the extractor which is pulling 50 millions of data and updating only 1 million.The reason I have a code in the start routine which says if Key figure1 = 0 AND keyfigure 2 =0 then delete the data. Instead of pulling 50 million and deleting the data at start routine .
I am trying to implement the same logic in info package by which I can select only 1 million through OlAP variable and ABAP routine.
Regards
SudheerHi,
is the extractor based on a standard BC extractor or on a generic datasource ? If it's based on a generic datasource then you can probably adn these selection in the view it's based on.
regards,
Raymond Baggen
Uphantis bv -
Hai all
what is the us of delta update in info package
I had intially loaded data from R/3 to psa using
(INFO PACKAGE->UPDATE-->Initilize delta process)
Then I had created to more records in r/3 side .
this time I scheduled using DELTA UPDATE I am getting 0 records
then what is the use of delta update
How can I get only delta records with out use of selection condition in DATA SELECTION of INFO PACKAGE
thanks
chaithanyaHi,
You must specify "1" (day) in the lower limit of the delta maintenance.
I could not post my previous reply so here a new try :
Hi Chaithanya,
Let me explain how the generic delta mechanism with "date"-field works on the R/3 side:
When doing a delta extraction, the current date is stored in table ROOSGENDLT or ROOSGENDLM (anyway not so important).
This date will serve as a "from" date for the next delta extraction, though excluding the current value.
This in order to prevent duplicate records to be extracted during a second delta run on the same day.
Without extra settings, it will thus not be possible to extract two different delta's on date the same day.
Solution :
1. If you do not care about duplicate data (e.g. only field assignments with overwrite functionality in the transformation) goto RSO2 in change mode for your extractor and go into the generic delta maintenance screen. In the settings, enter "1" as safety interval lower limit. Like this, the delta processing mechanism will always subtract 1 day from the day stored as 'low-value'.
In your example this means that the initialisation will transfer 4 records, the delta will transfer 6 (although only 2 were added).
2. Use timestamps to determine delta (timestamp should be updated on savetime of record)
I hope this helps.
regards,
Olav -
Data selection Fiscal year/period in info package
Hi Experts,
I loaded the data from application server to my data target and load completed with lot of records, but as per my requirment i need to load Fiscal year/period 001/2010 to 012/2010. I just giving selection in info package like 001/2010 to 012/2010 and i excute load it sowes no records, make sure in application server we have lot of records for this period.
CAn any one tell me how can i give format in infopackage.
Thanks in advance
DavidHi,
Select range in correct format. Instead of giving manually, You can select from system. This can be wrong format of selection.
Thanks,
SAC -
Problem while scheduling info package using HR datasource.
hi experts,
while scheduling the info package i am getting the following error.
Delete init. request
REQU_D340A67OSEQ9A6Q2B20X9SIOM before running
init. again with same selection
I think by deleting the setup it will work...
am i right or is there any other solution for this problem..
please reply soon.
its too urgent.
thanks n regards.
uday shankar.Hi,
You are correct there is no setup table concept in HR extractors.
But there is a cache. Usually HR extractions will be full load. But it also supports delta. There is no setup table concept in HR.Once you perform your init (with or without Data transfer your delta path is set and delta will follow else can go for Full loads alone. It will extract data from the relevant tables like generic extractors. The data will be filtered based on the selection parameters.
Except for payroll and time management rest all sub-functional areas supports only full load.
In case of full loads, old data needs to be deleted to avoid duplicated records in the target.
Auditing Information Technical name: 0HR_PY_PP_1
http://help.sap.com/saphelp_nw70/helpdata/EN/c7/532d7835db9a41b744aea58ed699ed/frameset.htm
Delta Update
This DataSource supports delta updates. The source system fills table HRMS_BIW_PPDELTA with the date and time of the first data transfer (initialization) and the date and time of all subsequent data transfers. This information enables the system to perform a delta transfer. It only selects posting runs with the above statuses whose last changed on date is after the date in table HRMS_BIW_PPDELTA.
If you use DataSources 0HR_PY_PP_2 (Posting Documents) and 0HR_PY_PP_1 (Auditing Information), you must transfer data to BW from both DataSources using the same selection criteria.
Also
http://help.sap.com/saphelp_nw04/helpdata/en/2a/77eb3cad744026e10000000a11405a/frameset.htm
https://websmp201.sap-ag.de/~sapdownload/011000358700004478862001E
/people/swapna.gollakota/blog/2008/01/14/one-stage-stop-to-know-all-about-bw-extractors-part1
step by step
https://websmp201.sap-ag.de/~sapdownload/011000358700004478862001E
HR extraction:
The HR module enables customers to effectively manage information about the people in their organization, and to integrate that information with other SAP modules and external systems
HR broadly has the following modules:
PA (Personnel Administration) and Organization Management
Personnel Development
Payroll Accounting
Time Management
Compensation
Benefits
Training and Events
The Personnel Administration (PA) sub module helps employers to track employee master data, work schedules, salary and benefits information. Personnel Development (PD) functionality focuses on employees' skills, qualifications and career plans. Finally, the Time Evaluation and Payroll sub modules process attendance and absences, gross salary and tax calculations, and payments to employees and third-party vendors
HR delivers a rich set of business content objects that covers all HR sub-functional areas.
How the data extraction happens:
Before getting into how the data gets populated into HR info cube
Let's understand the term info type
"An info type is a collection of logical and/or business-related characteristics of an object or person"
Here the data will be extracted from an info type (PA, PD, time management etc) and for few other applications it is from the cluster tables (Payroll, compensation etc.)
HR is basically master data centric because it is always related to people related Info Objects, such as Employee, Person. In most of the cases HR master data is defined as Time Dependent to enable historical evaluation. HR R/3 system records a specific period of validity for each Info type.
Procedure to extract the HR data:
Activate Data Sources in the Source system (R/3)
Replicate Data Sources in BW system:
Activate business contents in BW.
Populate HR cubes with data by scheduling info packages.
Note: Master Data should be loaded first
Except for payroll and time management rest all sub-functional areas supports only full load.
In case of full loads, old data needs to be deleted to avoid duplicated records in the target.
Check the below links for more information
Technical Considerations in Global SAP BW/HR Implementations
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/505351fe-ec8c-2910-c5b5-a43bbf53f6fc
BW/HR Implementation
https://websmp201.sap-ag.de/~sapdownload/011000358700004478862001E
Hope this helps.
Thanks,
JituK -
Initialize Delta Load in Info Package
Hi,
I want to create 2 info packages for my load from datasource.
One with setting " Initialize Delta load with data transfer " in info package for my first load.
Second info package should be with " Delta Lad " which i am not finding in the second info package i am creating. Can you please tell me how can i get this setting as i am getting only Full or Intialize delta load only.
Regards
SyedMake sure the following:
1) DataSource is Delta Enabled
2) An Init (or an Early Init) has already been done successfully. You should see the entry in RSA7 of the Source ERP
You should then be able to get the Delta option in the InfoPackage -
Info package is inactive in BW production
I have imported transfer structure, info source, data mart data source and info package. All are in active but info package is inactive. It says that no transfer structure is active. When I open transfer rules everything is active.
Is there any special methods to folllow when we work with data marts?
Thanks in advancePlease Replicate the data source activate the infosource .go to abap editor (SE38) and execute rs_transtruct_activate_all and give the infosource name and the source system name .
Data marts are not transported . Please create data marts with expoert data marts facility.
Message was edited by: PSG -
Data selection options in info package
hi,
I am using filter for current month while loading data into info provider (let us say 0calmonth). I am using below code in info-package after selecting type '6' (ABAP editor),
data: l_s_range type rssdlrange,
l_date type d.
l_date = sy-datum.
l_year = l_date+0(4).
l_mth = l_date+4(2).
concatenate l_year l_mth into l_month_high.
concatenate l_year '01' into l_month_low.
loop at l_t_range into l_s_range where fieldname = 'CALMONTH'.
if dy-subrc = 0.
l_s_range-low = l_month_low.
l_s_range-low = l_month_high.
modify l_t_range from l_s_range.
endif.
endloop.
But now I would like to use created date as filter instead of calmonth/year (yyyymm). please note that calmonth has only one value but calendar day will have both from and to values. Please give me code to use created date (mm/dd/yyyy).
please help me with your code.
thanks,I have got the solution by myself (trial and error method). Solutions: there is a SAP delivered variable to calculate current month (Variable name is 0CMONTH).
Is there any variable to calculate both previous month and current month as filter value? pls reply. -
Adding a field in data selection tab of Info Package
Hello,
how can I add a field for selection in the data selection tab of the info-package in BW 3.5.
Thanks,
SDHi,
You need check Selection in RSO2 in ECC then that field is available for Selectgion in InfoPackage.
Here I'm giving 0CUST_SALES_ATTR DataSource Example for Selection Change, so see the logic and accordingly you can change your DataSource Selections.
See the properties of that field in RSA2 in ECC and you can also make it for selection, use the following program and see it.
In ROOSFIELD table give the datasource 0CUST_SALES_ATTR and see , select only Active version Fields.
For the following fields you can find FIELD = X, it indecates that it is abailable for selections, so in this way you try to do it by using following program and check.
KUNNR
SPART
VKORG
VTWEG
REPORT ZBI_ROOSFIELD NO STANDARD PAGE HEADING .
tables ROOSFIELD.
Update ROOSFIELD set SELECTION = 'X' where
OLTPSOURCE = '0CUST_SALES_ATTR' and
FIELD = 'FAKSD '.
Also see SAP Note : 1033847
Re: Field Selection in Datasource 0CUST_SALES_ATTR
Thanks
Reddy -
Hi,
I have a Info Package which is running from several months in production with different data selections for a InfoObject: ZDEPT as ZAT, AZZ, ZNN etc.
Now, my new requirement is to include new value ABC for the same InfoObject.
Do i need to include selection conditions on INIT & DELTA info package as well or directly update the delta and run the process?
Please let me know.Ajeet,
I donu2019t want to re-load the historical data. As per your suggestion, I just want to do an init without data transfer with new criteria.
So, I was trying to update the existing Info Package from "Delta mode" Option to Init with out data transfer. I got a pop up message saying that
u201CDeltas already loaded for request: REQU_2SNQV3GDKC2GTEL9EAVKU6KKF init. select. no 2. initu201D
Do I need to ignore this message or do I need to delete any thing or Do I need create new info package and select Init with out data transfer. Pls suggest me!.
I need to do the same thing in production once it is tested in Q. So, currently in production, data is loading ever day using delta mode. I need to be careful to touch the historical data. Pls advice me what is the best thing to do in production.
Thanks,
ganga -
Info-package setting: Data selection tab
Hi,
I have to give selection conditions in info-package.
The need is to restrict the values of a particular field to start with BP and BQ.
i.e i need only values starting with BP and BQ.
I gave from and to values in the selection screen of info-package as BP* and BQ*
But the error says CP(Compare Pattern) is not allowed.
How else can i make the info-package to select values starting only with BP and BQ
Regards,
YeshwanthHi Yeshwanth,
If this is a character string, then check the length and start from BP0000, as per the length of the feild till the end which in our case would be BQ0000.
Let me know, if this doesnt work.
Naveen.A
Maybe you are looking for
-
ASA 5505 Site to Site VPN Route
Hello Everyone, I ask for help to run VPN between two sites already configured and operational ... but the problem is that the traffic between the two networks do not pass ... virtually every office should go on the internet with their own line, but
-
I have been unable to make the cursor blink again through tinkering with the settings of about:config == This happened == Every time Firefox opened == In late June
-
Difference between exists and in operators in oracle?
what is difference between exists and in operators in oracle? what is faster and why?
-
Sending attachments to Eudora users using Apple MAIL
I have recently changed from Entourage to MAIL in Tiger and it seems to work well, however I can't seem to send attachments to anyone using Eudora. They recieve the email but the attachment is missing (apparently the recipient company's server is sto
-
Posting of depreciation in the previous year 2008
Hi All, My client wants to capitalize some expencess in the previous year as assets, and they would like to caliculate depreciation from 01.01.2008 to 31.12.2008, finally they would like to carryforward those amounts to fiscal year 2009. My client i