Data selection in infopackage to exclude 3 values
Hi,
I want to exclude 3 values for ZCOUNTRY field in the data selection of an infopackage. I don't want to do this using start routine(in transfer structure or update rules). I just need to do the coding in infopackage level. Can anybody plz tell me the ABAP coding for this in detail?
Thanks,
Chandan
Hi,
correct, but once you have defined an ABAP routine in your IPack for the country (select type 6 "ABAP" in the IPack selection of the country) why not to exclude the countries directly?
I've never had this req but the hereunder should work (it should exclude countries US and CA from the selection)
data: wa_range LIKE rssdlrange.
READ TABLE l_t_range with key fieldname = 'COUNTRY'.
MOVE l_t_range-iobjnm TO wa_range-iobjnm.
MOVE l_t_range-fieldname TO wa_range-fieldname .
MOVE 'E' TO wa_range-sign.
MOVE 'EQ' TO wa_range-option.
MOVE 'US' TO wa_range-low.
CLEAR l_t_range-high.
APPEND wa_range TO l_t_range.
MOVE 'CA' TO wa_range-low.
APPEND wa_range TO l_t_range.
p_subrc = 0.
hope this helps...
Olivier.
Similar Messages
-
Automated filling of Data Selection in Infopackage
Hello guys,
I want to automate a process of filling data into BW 35. I'm using R/3 IS-U, the data model is for cleared items in FI/CA (0FC_CI_01). In order to load data in BW, I have to run FPBW in the source system with a date and a run id as parameters and then the infopackage in BW must contain in the Data Selection tab the exact date and run id as in the IS-U system.
So...I know it's possible to run a process chain using an abap program which calls remotely fpbw with those parameters in the R3 system, but how could I complete automatically those params in the BW Infopackage Data Selection tab with the exact values that were given in R3?
Thankfully,
TudorHello Sairam
, well I was hoping to find an answer on the SDN. In case I won't receive any answer, I'll put a message on the Marketplace.
If I'll receive and answer (or if perhaps you'll do please mail me at [email protected]) I'll write back.
Good luck,
Tudor -
How to change date selections at Infopackage data selections in production sys
Hi All ,
we are loading data into Infocube from datasource ,one process chain for delta init with data transfor ,which has data selections at infopackage say 06.2014 and other process chain for delta which has same selections at infopackage . Now I want change this data selections at Infopackage level .
I Have tried to change these dates in data selections at infopackage level , tho I have changed and saved to future date at delta initial with data transfor ,it's keep coming back to 06.2014. Of course data selection at delta Infopackage level is faded .
I Want to set future date with delta int with disturbing delta loads . How to do it please .
regards
hariHi Ram,
We will load delta Intial with data transfer every weekend , and we run delta everyday , because we do delta init with data transfer with selections say ( 01.20011 to 12.2003 ) every weekend , hope I need to create new delta infopack with new data selections say ( 01.2004 to 12.9999) only to get update data in Infocube.
Please correct me if I am wrong .
Regards
hari -
Abap Routine for Date selection in Infopackage
Hi
I have to write an abap routine for date selections in the infopackage,
There are two date begda and enda.
Do i code for BEGDA and fill in the begin date using routine and use another routine to fill the ENDA.
JPJPHi JP,
If you have two info objects BEGDA and ENDA in the Info package for selection
then you will have to write seperate routine for each of them.
If you want to give single value for each date field then update only the field l_t_range- low otherwise if you want to give range then you can update the internal table fields l_t_range-low and l_t_range-high .
Regards,
Prakash -
Date Selection in InfoPackage Scheduler
I am having problem in loading the data from the InfoPackage under the selection options for the "Date". When I try to enter a range of date like 12-2-2008 to 18-2-2008, I cannot load any data and it monitor screen return in 0 records, when I enter the date like 12-2-2008, the the data can be extracted out succesffully and return in 42 records.
I try to extract the data in RSA3, I enter the same thing for the range of values: 12-2-2008 to 18-2-2008, I manage to extract the records for the date 12-2-2008 only, which is 42 records, but the correct amount records from the range of the date should be 120 records. But the log only show 42 records in this case, and the extraction did not perform successfully to extract the data between the date: 12-2-2008 to 18-2-2008. When I enter single value: 12-2-2008, the extraction return to 42 records.
It will be appreciated if someone here can help me here. Thanks =)Hi Toffee,
in RSA3 by default the no. of records will be 100 increase to 1000 ro 2000
give the date range you may see all the records
hope this helps
thanks
kishore -
Data Selection in Infopackage not picked.
Hi,
I have a generic datasource. I have data selections in the Infopackage. Say, I have Data selection for Plant as "5000". But, data for all Plants are getting pulled for all Plants. Why is this Selection not picked ?
Thanks.hi, what type of datasource is yours.. is the selection parameter handled in the definition of ur datasource?
-
Error in data selection of Infopackage
Hi,
My infopackage is failing with "Error in data selection". RSM 340 is the error message number.
Datasoucre: 0FI_AP_4
I have checked
1. Timestamp--consistent
2.Reactivated and replicated datasource
3.Checked SM58 in both BW and source systems and found it OK
I have taken Source jobs for 1 succesfull infopackage run and 1 unsucessfull infopackage run.
I see that Job log for unsucessfull has no call to customer enhancement and no data selection is done thereby.
i am attaching the job logs for 1 successful and 1 unsuccessful case. Please check and let me know the gap that is contributing to this error.Hi nayab,
You and harish works at same location?
i seen same issue from harish as well.
http://scn.sap.com/thread/3578278
Thanks -
Hi BI Experts,
I have created an ABAP routine for sales document type (0doc_type) on Data Selection Tab to restrict the volume of data extracting from transactional DSO to the cube and the infoobject is part of the selection table as well.
In order to speed up the data extraction process, I also added an index (0doc-type) on the DSO. But, when I analysed the code on ST05, the database optimizer did not use the index on its SQL statement. It used the different document types specified in the ABAP routine on WHERE condition but did the TABLE FULL ACCESS /BIC/AZO_SOP_100.
Do I need create index when defining selections at the infopackage? If so, why the database optimizer did not use it?
Could you help me on this matter please?
Thanks.Hi,
if You use or have a full Table scann = read all the data in a table than an index makes obviously no sence.
This is what the database thinks. All Data = no Index access necessary.
You try to can overcome this if You do not need all columns and build an index on the columns You need.
Than, hopefully, you get a "full index scan".
Best
Martin -
How to populate data selection in infopackage from spreadsheet
Hello,
I have to load data for thousands of missing CRM orders into BI via the BI-CRM extractor 0CRM_SALES_ORDER_I . We have list of those missing orders in a spreadsheet.
How do I populate these order numbers into the data selection tab of the data source?
I tried adding multiple orders at a time..butit doesnt load any data. On the other hand, when I was loading a single order at a time, it does load all the data.
Loading thousands of them manually will be a hectic job
Also, I cannot use ranges as they are not at all in range
Can somebody provide a workaround which hopefully will not involve any transports
Thanks!This seems to be really cool! and I am able to open the editor in production too...
The only problem is I really have not ides how we can pass the parameters here..how we get the program to look up a spreadsheet and populate those records
Thanks for your input..it will be really helpful if you can provide me anymore information you have on htis..in the meanwhile, I will be doing some trial and error myself
thanks! -
Hi Folks,
I have a new info provider. Its not been loaded yet. I have to load data from 01/01/2007 to current date. I have done init load from 01/01/2007 to 11/22/2007 by selection option. It went successfully. Now when I am doing delta loads its bringing changed data only from 01/01/2007 to 11/22/2007.Its not bringing data from Nov 22 i.e its not loading any new data from nov 22. In delta infopackage its automatically converting the selection date 01/01/2007 to 11/22/2007 which is similar to init.What I need is changed data from 01/01/2007 to current date.Any help.Hi,
Do one thing.Do a full load with selection condition from 01/01/2007 to current date.Then do init without data transfer.Then run the delta.So what all changes happened in the data will be laoded into the Cube.
I think since this is a new data target,there is no harm if u do without selection conditions in the init.
Since if you do init with selection conditions,the delta will run with based on the seletion paramteres which you gave in the init.
Thanks & Regards,
Suchitra.V -
Data selection at InfoPackage Level
HI Experts,
This is related to 0vendor.
0vendor is 10 digits in BI.
At the ECC side, there are some vendors with 7 digits (e.g 1834710).
When i pull vendor's using a IP into BI, I miss these records.
To pull these records, I need to Manually put the Selections at the IP by making them 10 digits (e.g 0001834710).
What can be done to avoid this selection.
Please Help.
Thanks,
Max.Hi,
You need to use the conversion for this.
Use this piece of code in your infopackage routine.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = value_without_zeroes
IMPORTING
OUTPUT =value_with_leading_zeroes.
This conversion exit will automatically add leading zeroes to the value as per the length of the object.
Regards,
Joe -
ABAP Code Date Selection for InfoPackage Scheduler
Hello Group
I need to automate the selection of valid condition records for an extraction that have a From and To date range.
I noticed there is an option (Routine for time interval) to write ABAP code along with a template that is available in the InfoPackage.
I think the logic for the selection would be any record
Valid from <= today
Valid to >= today
Can anyone help with the ABAP code?
The template is as follows:
program conversion_routine.
Type pools used by conversion program
type-pools: rsarc, rsarr, rssm.
tables: rsldpsel.
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
$$ end of global - insert your declaration only before this line -
form compute_time_dependent_dates
changing p_datefrom type d
p_dateto type d
p_subrc like sy-subrc.
Insert source code to current selection field
$$ begin of routine - insert your code only below this line -
p_datefrom =
p_dateto =
p_subrc = 0.
$$ end of routine - insert your code only before this line -
endform.
Thank You for your help!!
FrankI resolved the problem . I have changed the order of read table l_t_range because I need the header .
In the loop at datos I add the line l_t_range-iobjnm = 'ZXGE_UNO'.
The problem wasn't the call RFC it was that I built l_t_range bad. I need the infoObject name.
This is correct!!
READ TABLE L_T_RANGE WITH KEY
FIELDNAME = '/BIC/ZXGE_UNO'.
LOOP AT DATOS.
L_T_RANGE-FIELDNAME = '/BIC/ZXGE_UNO'.
L_T_RANGE-IOBJNM = 'ZXGE_UNO'.
L_T_RANGE-SIGN = 'I'.
L_T_RANGE-OPTION = 'EQ'.
CONCATENATE '00' DATOS-WA+3(4) INTO L_T_RANGE-LOW.
APPEND L_T_RANGE.
ENDLOOP.
*READ TABLE L_T_RANGE WITH KEY+
+*FIELDNAME = '/BIC/ZXGE_UNO'.+
+* L_IDX = SY-TABIX.+
+* MODIFY L_T_RANGE INDEX L_IDX
Thanks a lot
Ana -
hi,
I have to create a info package whicah can load data from last saturday of april 07 to last friday of the may07.
if i m sheduling the info pack on 1 june it must load data from 28th april to 25th may.
please help i m not good in coding.
any help would be appreciated.I GOT THE CODE
data: l_idx like sy-tabix.
DATA: lv_calday1 LIKE /BI0/SDATE-DATE0,
lv_calday2 LIKE /BI0/SDATE-DATE0.
DATA: lv_day TYPE DATS,
l_day(8) TYPE N.
$$ end of global - insert your declaration only before this line -
InfoObject = 0CALDAY
Fieldname = KDAY
data type = DATS
length = 000008
convexit =
form compute_KDAY
tables l_t_range structure rssdlrange
using p_infopackage type rslogdpid
p_fieldname type rsfnm
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_days(1) TYPE C.
"previous month
lv_day = SY-DATUM.
lv_day+6(2) = '01'.
lv_day = lv_day - 1.
lv_calday1 = lv_day.
DO.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
DATE = lv_calday1
IMPORTING
DAY = l_days.
IF l_days = '5'.
EXIT.
ENDIF.
lv_calday1 = lv_calday1 - 1.
ENDDO.
lv_day+6(2) = '01'.
lv_day = lv_day - 1.
lv_calday2 = lv_day.
DO.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
DATE = lv_calday2
IMPORTING
DAY = l_days.
IF l_days = '6'.
EXIT.
ENDIF.
lv_calday2 = lv_calday2 - 1.
ENDDO.
READ TABLE l_t_range with key fieldname = p_fieldname.
IF sy-subrc = 0.
l_idx = sy-tabix.
MOVE lv_calday2 TO l_t_range-low.
MOVE lv_calday1 TO l_t_range-high.
MOVE 'I' TO l_t_range-sign.
MOVE 'BT' to l_t_range-option.
MODIFY l_t_range from l_t_range TRANSPORTING low high option sign
WHERE fieldname = p_fieldname.
ENDIF.
p_subrc = 0. -
Several single value selection in InfoPackage Data selection using Routine
Hi,
I am trying to extract data from a table(containing Ticket data) in R/3 using Generic extractor with table. As the table is not supporting the delta functionality i have to do daily full load for more than 5 lak records.
I dont want all the tickets from R/3, i just need the tickets which are open. Unfortunately there is no field in R/3 table which indicates Ticket status. But in BW i have a DSO where i can get the tickets along with their status.
Now what i want to do is:
in the Infopackage i want to give the dataselection for ticket, whose status is open which will be calculated in ABAP code by lookup to the DSO. Is this possible?
I know that in ABAP routine for Data selection we can give single values and range values. but here i just want to give several single values. That means if suppose i have 4 tickets T1,T2,T3,T4 in the DSO and if T1 and T4 are open tickets, then i have to get the data from R/3 just for T1 and T4.
in the above case if we use range then the low and high values in the range will be T1 and T4 respectively and the data pulled from R/3 will be from T1 - T4 ie all T1,T2,T3 & T4. but i need just T1 and T4.
Please share your ideas. also please send the code as i am not an ABAPer.
If Several single value selection is not possible at least send the code for the range values.
Thanks,
Cnu.you can write a code like this in the ABAP routine in data selection in front of ticket characteristic
types: Begin of s_ticket,
ticket type <type of ticket characterisitcs>,
End of s_ticket.
data: l_idx like sy-tabix,
wa_ticket type s_ticket,
it_ticket type standard table of s_ticket,
l_s_range type rsrdrange.
You can declare
read table l_t_range with key
fieldname = '<your field name for ticket>'.
l_s_range-infoobject = '<infoobject name>'.
l_s_range-fieldname = '<field name of ticket cahracteristics>'.
l_s_range-sign = 'I'.
l_s_range-option = 'EQ'.
select * from <ODS active table> into table it_ticket where status = <value for open status>.
if sy-subrc = 0.
loop at it_ticket into wa-ticket.
l_s_range-low = wa_ticket-ticket.
append l_s_range to l_t_range.
endloop.
end if.
p_subrc = 0.
you need to modify it as per your requirements, i hope this might help you. -
The sme variable in data selection of inpopackage and value in transfer rul
Hello
I would like to use the same variable in data selection of infopackage (1) and as a value in transfer rules (2).
Example :
If I pass 1 I want to see value1 in data selection of infopackage (1) and as a value in transfer rules (2).
If I pass 2 I want to see value2 in data selection of infopackage (1) and as a value in transfer rules (2).
How is possible?Hi Aleks,
In the transfer routine your code would be something similar to this:
zvar is a variable
select LOW from RSLDPSEL into zvar where LOGDPID = '<Technical name of Infopackage>' and IOBJNM = '<The Info-object whose value you want to use>'.
*Now assign the value
RESULT = zvar.
Hope this helps.
Bye
Dinesh
Maybe you are looking for
-
Desktop manager update and two phones
The wife and I both have8320 Curves. I synced my phone to the desktop manager last year she did not. Today I downloaded an upgrade for the phone software and the desktop manager. Now my phone has the new software and the manager has a new look but ho
-
I hit some buttons and inverted my screen. how can i fix this?
<blockquote>Locking duplicate thread.<br> Please continue here: [/questions/835380]</blockquote> i wanted to bring up my task manerger, i thought i hit alt, ctrl, and delete but i must have hit the wrong keys cause now my screen is siedways. can you
-
I want to query based on a date range. I wrote the following EJB QL: "select object(a) from ActionItems as a where a.dueDate between ?1 and ?2" But when I deployed the application to Oracle's EJB server, I got the following error: Auto-deploying biog
-
Hi, Is there any possiblity to connect dll directly to flash using flashRemoting.. will it support vb.net ?
-
Get error 500 message trying to get online bank site. What to do?
When trying to get online bank web address, I get a screen which reads "error 500". I can get the site using Internet Explorer but I prefer to use Mozilla Firefox because this is the one I usually use. How do I correct this issue. Thanks Bill Roberts