DTP Selection condition
Hi Experts,
I wanted to know if we can read selection conditions maintained in DTP in the start routine using any custom code or using any standard function module.
Any help will be appreciated.
Thanks,
Hi,
You can do that by writing code to select data from this table RSBKDATAPAKSEL
Hope this helps
TRUC
Similar Messages
-
Routine in DTP. Selection conditions not visible
Hello,
I am under BW7.0
I am filtering data with a routine in a DTP. The routine is reading a custom table that user maintain. It contains a date range.
This works, the correct data is selected.
My problem is that in the request the 'Selection Conditions' field is empty and consequently, I cannot delete in the cube the same selections.
This was working under BW3.5..
Many Thanks,
Alex-Hello,
Here is the code. It is working as I expect. And debugging gives me the correct start and end date. But this is not reflected in the request 'Selection conditions'.
TYPES:
BEGIN OF BCSZP_TYPE,
JJJJPER TYPE ZCBCSZP-ZEITPUNKT,
RELEV TYPE ZCBCSZP-RELEVANT,
END OF BCSZP_TYPE.
DATA: BCSZP_TAB TYPE STANDARD TABLE OF BCSZP_TYPE,
BCSZP_WA TYPE BCSZP_TYPE,
start_date type sy-datum,
end_date type sy-datum.
SELECT ZEITPUNKT
RELEVANT
FROM ZCBCSZP
INTO TABLE BCSZP_TAB
WHERE ZEITPUNKT <> ''.
READ TABLE BCSZP_TAB INTO BCSZP_WA
WITH KEY RELEV = 'X'.
CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
EXPORTING
I_GJAHR = BCSZP_WA-JJJJPER(4)
I_PERIV = 'K6'
I_POPER = BCSZP_WA-JJJJPER+4(3)
IMPORTING
E_DATE = start_date
EXCEPTIONS
INPUT_FALSE = 1
T009_NOTFOUND = 2
T009B_NOTFOUND = 3
OTHERS = 4.
CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
EXPORTING
I_GJAHR = BCSZP_WA-JJJJPER(4)
I_PERIV = 'K6'
I_POPER = BCSZP_WA-JJJJPER+4(3)
IMPORTING
E_DATE = end_date
EXCEPTIONS
INPUT_FALSE = 1
T009_NOTFOUND = 2
T009B_NOTFOUND = 3
OTHERS = 4.
read table l_t_range with key
fieldname = 'FKDAT'.
l_idx = sy-tabix.
l_t_range-sign = 'I'.
l_t_range-option = 'BT'.
l_t_range-low = start_date.
l_t_range-high = end_date.
if l_idx <> 0.
modify l_t_range index l_idx.
else.
append l_t_range.
endif.
p_subrc = 0. -
How to change a value of the field Selection Conditions in Manage- Request
Hi,
How to change manualy a value of the field Selection Conditions in Manage infocube -> Requests ?Hi,
Here is the reason i need to do this:
The data is loaded by DTP in process chain. Overlaping requests are deleted. But, iIn some cases requests with the same selection options need not to be deleted. My idea was to change selection options in Manage(infocube) with Abap program without changing selection options in DTP filter, so that the system would not recognize requests as "overlaping requests".
So, where is the information about shown in the field Selection Options is stored? In which tables?
Thanks
Tigr_Z -
How to transfer Query selection conditions to Virtualprovider?
Hi,
I am using a virtualProvider with DTP for a query. The virtualprovider data comes from an infocube. I want to manipulate some fields based on the selection conditions given as user entry during the query execution as I have to read a few master data infoobjects.
How and where do i get the user input given in query in the virtualprovider transformation routines?
Regards,
SujaiHi Eric,
Exporting to memory is a method i thought of, but i am assuming there should be a method other than that to do it. I found this doc in the forum:
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f05d0b81-076a-2c10-44ab-f00b0b90ce38?quicklink=index&overridelayout=true]
It explains how the issue could be resolved using the Expert routine. But now i am having a different problem.
The calculations are done at the record level based on some criteria, I would like to know how to get the internal table which stores the selected records from the source on which i could do my calculations in the virtual provider.
Regards,
Sujai -
Selection conditions in manage screen
In my dtp i am filtering the characteristics ,fiscal year variant as v3 and for fiscal year/period we wrote a routine at dtp to load data for a particular year
My doubt is ,
after the dtp has beeen executed successfully and data loaded properly , in the manage screen of the correspoding data target
,in the selection condtions the conition for this fiscal year selection in not displayed
but only fiscal year variant restriction v3 condition is only displayed
i want to have that also displayed in the manage scrren
help meHi Vamsi,
The routine for the Fiscal year will not be shown in the Manage screen. The filter selction which you have given at the DTP selection screen only that one can be seen.
Rgds,
Ravi -
Strange InfoProvier Selection Condition
Hello xperts,
I am struggling to understand one thing in a solution that I have inherited from my predecessor.
When viewing the request information loaded into a (target) DSO (right click DSO->manage) under selection conditions the following appears:
BSDD04BHSPC0=BBE;BSDD04CALMONTH=201006;CALMONTH=200711-201005;
BHSPC0 and CALMONTH are characteristics in the DSOs (in both source and target)
BSDD04 is a DSO in our system, but is NOT the source nor the target.
The selection condition: CALMONTH=200711-201005 i interpret as a filter restriciton in the DTP and this makes sense.
Question: what does BSDD04 in BSDD04BHSPC0=BBE and BSDD04CALMONTH=201006 mean?
Obviously some sort of filter restriction, but on what???
I assume it must have been the DTP filter restrition at the time of laoding, but now the problem is I do not know how to replicate it.
This strange of selection condition only appears for one DTP. Other DTPs in this and other infoproviders have the standard selection condition denotation e.g. /BIC/BHSPC0=BBE or SPC0=BBE.
ThanxOk, I have cjecked that, but not able to find out the Gap.
Is Consolidation Unit Hierarchy can be a issue like I have Cons Hierarchy under that Consolidation Group, Under that Sub Group and then Consolidation Unit.
Hierarchy
Consolidation Group
Cons Sub Group
Cons Unit
I tried to execute the task at COns Group Level and at Sub group level, yet the message remains same. -
I want to delete the request from the DSO which have same selection conditions applied on the DTP.
Can u plz tell which table other than RSSELDTP table stores the selection values for a particular request for a DSO.Well there are 2 tables in BI 7.0 RSBKDATAPAKSEL and
RSBKSELECT.
You can see which one helps u in your design.
I would also recommend checking this blocg
SAP NetWeaver 7.0 BI: Get runtime information of a Data Transfer Process (DTP) in a Transformation
Hope this helps you to proceed further. -
View with selection conditions with system fields.
Hi Experts,
I have a view. Now i want to control the data that is selected using 'Selection Conditions'.
here i want to use system field SY-DATUM.
My requirement is i want to control the output like
Valid_From_Date GE SY-DATUM and
Valid_To_Date LE SY-DATUM
which means that i would be showing only active users in this view.
How can i go about this? System is not allowing system fields in comparision value.
Any help on this is highly appreciated. Thanks.
regards,
SimhaHi,
I am getting a warning first 'enter constant as comparision value'
when i trying to activate the view i am getting the below error.
A join condition on a field of the system table SY (or SYST) was defined.
This is not permitted for database views because the system table is not known to the database
Have tried to activate the view you created?
How to go about this?
Regards,
Simha -
Selection condition in maintenance view
I have one table with data related to 5 systems.
MSF, RET, SER, BOB, SAV, LED.
I need t o create views with related data for each system. But system BOB contains data related to MSF and RET, So instead of creating view for that i have to add MSF related data to MSF view and RET related data to RET view from BOB system. These all are from one table only.Can you please suggest me the selection condition for that in maintenance view.
Thanks.thanks
-
Adhoc Query : Error during selection; check the selection conditions
Hi
We have a report set-up and which we want to run using our adhoc query report tcode S_PH0_48000513
The report, has a few different selection criteria in it to look at all action IT screen data in the system for ee's in specific personnel areas. There is also a criteria to allow us to paste in specific employee numbers we are interested in. The issue I am facing is that over about 3000 ids, the system automatically returns me a message when I click on the Output button to run the report which states:
Error during selection; check the selection conditions
Message no. PAIS206
I am not sure why this is happening. The selection criteria are fine and the other day I ran the report and I experienced no issues. The report ran successfully. Now though, if I try and paste in all the ids I am interested in (about 8000) I get this message straightaway.
Can anything be done to overcome this issue?
Any advice would be much appreciated.
NicolaHi
The message in full is:
Error during selection; check the selection conditions
Message no. PAIS206
Diagnosis
A runtime error occurred during dynamic selection.
System response
The runtime error will be caught; no short dump will be created. This error should not occur as a rule. However, very large select statements may trigger the runtime error SAPSQL_STMNT_TOO_LARGE or DBIF_RSQL_INVALID_RSQL. There is no way to prevent this happening. In this case, the error can only be caught.
Procedure
Check the selection conditions to see whether the error was caused because the option "Import from text file" included too many objects in the "Multiple selection" dialog. If this is so, you must limit the number of individual values. -
Not able to put data selection condition in data selection tab of infopakag
I was loading data from data source as data mart ( export data sauce from ODS) to other ODS.
when I tried to do delta Initialization with data transfer , I am not able to put data selection condition in data selection tab of infopakage.
when I choose Full Update in Update tab . It enables data selection fields in data selection tab. and I could put the condition.
I have checked in transfer structure as well , the fields are marked for selection.
Please advice .
Please tell me what could be the reason for this problemAshutosh,
As you are doing delta upload the data selection tab will be disabled, if you want to do the selective load then you need to do init update with your selection.
When you do the full updtae then definitely the data selection tab will be enabled for all the objects.
Hope this helps...
*******Assign Points if it helps********
Thanks,
Gattu -
How to create a "Selection Conditions" table similar to that found in se11?
Hi,
My team is trying to develop a SAP data migration tool (DMT) using ABAP.
One of the functionalities in the DMT is to validate the data imported to the staging area tables against some reference tables (e.g. SAP tables).
To do this, I would need to have a "Selection Conditions" table similar to that found in se11 (se11--> Display "View" --> Select "Selection Conditions" tab). This table would allow me to specify my 'referencing' conditions (e.g. Table = "ZMYTAB", Field = "ZMYFLD", OPERATOR = "EQ", Comparison Value = "ZMYTAB2", AND/OR = "").
Are there any ready-made codes out there for such a "Selection Conditions" table? Or did SAP provide a built-in object for such a table?
Any help would be greatly appreciated. Thanks!personnally I do use the standard FMs for dynamic selections
see FM FREE_SELECTIONS_DIALOG
Look at this sample code:
http://sap.ittoolbox.com/code/archives.asp?i=10&d=2919&a=s -
Selection condition in the infopackage for initializing delta
How does the selection condition in the infopackage help in initializing delta?
Hi,
You can enter multiple single valus for any field in the infopackage. Just select the row for material type and then click on the insert duplicate button ( + sign ) which is at the bottom letf hand side in the 'Data Selection' tab within the infopackage. You will usually find this 'insert duplicate' icon next to the 'Check' push button.
You can insert as many rows as you want for material type by select the material type rown and clicking on this icon. You can then enter the three values in the three rows for material type.
Regards,
Shilpa -
Hi Gurus,
Please guide me in the ABAP Routine for the DTP Selections.
Here is the code:
Tables: ZIP_SEL_TAB.
data: l_idx like sy-tabix.
select single * from ZIP_SEL_TAB.
read table l_t_range with key
fieldname = 'COSTCENTER'.
l_idx = sy-tabix.
l_t_range-low = ZIP_SEL_TAB-COST_CENTER.
if l_idx <> 0.
modify l_t_range index l_idx.
else.
append l_t_range.
endif.
p_subrc = 0.
The Cost Center value is not getting into DTP Selections.
Please correct the Code if it is wrong.
Thanks in Advance.
With Regards,
Ravi KanthTables: ZIP_SEL_TAB.
data: l_idx like sy-tabix.
select single * from ZIP_SEL_TAB.
read table l_t_range with key
fieldname = 'COSTCENTER'.
l_t_range-iobjnm = <your target infoobject tech name>.
l_t_range-fieldname = <your source field/info object name>
l_t_range-low = ZIP_SEL_TAB-COST_CENTER.
l_t_range-option = 'EQ'.
l_t_range-sign = 'I'.
l_idx = sy-tabix.
if l_idx <> 0.
modify l_t_range index l_idx.
else.
append l_t_range.
endif.
p_subrc = 0.
**i assume ZIP_SEL_TAB is a Z table created by U.
Hope this helps -
Problem with process order resource selection condition
I face a problem while trying to release process order as i am getting an error as "Resource XXXX assigned to operation 20 does not meet resource selection condition".What may be the reason for this.how to check and rectify...
Please help.hi,
I think you have been using a work center in place of resouce.
Actually
Resource catagory = 0008 is assign to Application C (Recipe) & only use in Recipe Creation.
Work Center catagory = 0005 is assign to Application N & R( Routine & Refernce operation set) & only use in Routine Creation.
Parminder
Maybe you are looking for
-
Publishing the instrument configuration?
Firstly, excuse my ignorance - I'm still pretty new... I have an instrument, which is actually a camera but for the sake of argument could be anything. This camera has an internal configuration, called "attributes" in LV I think. My first point of co
-
Anyone had problems with ISERPACK8?
I'm working on an upgrade / unicode conversion from Solution Manager 3.1 -> 4.0. I've completed the upgrade, exported and converted the database, and deleted the old system. I'm now to the point where I'm trying to install the new system from the ex
-
Alternative of base tables.
Hi, Is there any alternative for base tables, By that performance will be improved still more? Not Internal times. Thanks Avi Points will be rewarded
-
WHEN I PLUG MY NEW IPHONE INTO MY COMPUTER, ITUNES IS NOT LOADING UP
when I plug my new iphone 3gs into my computer, itunes is not loading, I have latest itunes loaded plus 3 other ipods on account
-
Display list on selection-screen
Hello everyone, I've got a question concerning selection screen. I want to know, if there is a way to display list/table on selection screen after user input. Specifically, when user enters for example 30 invoice numbers into select-options, I need t