Select conditions in variable - BPS SEM
Hello experts,
I have a question:
when I go in BPS0, Display area, Variables, double click on a variable and there is a flag on Input Allowed by User --> if I make double click on user name, the value that I see is the only value that this user can use for this variable?
I have a variable in this conditions, the variable is Sales Organization, and the user indicates to me that can't use a Planning Function with a Sales Organization, that it is no present in the possible values of the user name.
I must only add the new value? Why I have two fields in Selection Conditions?..I have a field called Sales Organization and the other one called To.
Excuse me, but I don't know BPS.
Thanks in advance,
Vito
Hello Vito,
it depends on the setting in the second flag "Input allowed by user"
if this second flag is not checked - you habe to specify all the values for the users in the little list.
if this second flag is checked - the users can choose whatever they want.
the "to" field is used for interval definition, usually the BPS does not like intervals, so it would be better to make up a list with single values.
regards
Cornelia
Similar Messages
-
How to create an user input variable in SEM-BPS?
Hi,
anyone please guide me how to create an user input variable in SEM-BPS? I want to utilized user input variable to udpate characteristic with repost function.
I tried to create in planning folder, variables right-click create, but the system said 'operation cannot be executed here'...
please help....
thanks.Hi Bindu,
would you give me one more help,
I want to use the variable created for a repost process, how do I achieve that?
My scenario:
- There will be a repost function on the planing folder
- User can select a row or many rows then click the repost function button, then a popup window will appear for user to input the value for the variable
Is it possible with the scenario? Please advise if I can use standard repost function or should i create a FOX or exit function for this purpose.
thanks. -
Select query with variable no of conditions
Hi,
I want to write a select query such that the conditions mentioned under WHERE clause can be variable .like :
Select * from TABLE where F1 = var1 and F2 = var2 and F3 = var3.
Now on the basis of some conditons the equations in where clause should be used.Say condition is variable value >6.
Now in this case ,if
var1 =7 var2 =3 var3 = 8 then the query shud behave like
select * from TABLE where F1 = var1 and F3 = var3
if :
var1 =3 var2 = 4 var3 =3 the :
select * from TABLE
But only one query is to be wrote that satisfies all of these
thanx
Edited by: aachal on Feb 4, 2011 11:36 AMHi Aachal,
Use Dynamic select statement.
Ex:
data : lv_wherecond type string.
Select * from TABLE where ( lv_wherecond ).
Before Select stmt, code as follows.
if var1 > 6.
if lv_wherecond is initial.
F1 = var1.
else.
concatenate lv_wherecond ' and F1 = var1' into lv_wherecond.
endif.
elseif var 2 > 6.
if lv_wherecond is initial.
F2 = var2
else.
concatenate lv_wherecond ' and F2 = var2' into lv_wherecond.
endif.
elseif var3 > 6.
same as above ..
endif.
Hope it helps..
Regards,
Sravan Guduru. -
Deleting Request from cube based on Selection Condition
HI All,
I have a scenario where i have three selection condition while i update from ODS to CUBE . I keep getting differnet versions of the file so the latest version should replace the old version , to do this i tired using the option
Delte Request from Info Cube after Update in the Data Tagets tab
And the Radio button Overlapping is checked . ( This is not working )
The three selection conditions in Info Pacake are
Reduest id from ODS : 11111
Cal Month : 20072
File Type : B
The selecion condition for the second Version in Info Pacake of the same file that should replace the first file in cube is
Reduest id from ODS : 22222 ( The request id is RID in the ODS for second file )
Cal Month : 20072
File Type : B
so can any one let me know how can i achvie this ........Hi Abraham,
You select the variable deletion conditions when you schedule the InfoPackage that is going to load the new data. On the Data Targets tab page in the Automatic Deletion of Similar/Same Requests from InfoCube column, you click on the pushbutton to go to the Deletion of Requests from the InfoCube After Update dialog box.
Here you determine under which conditions existing requests are deleted from the InfoCube:
· You can include update modes, InfoSources, DataSources, and source systems for requests.
Example
Requests are deleted when the appropriate deletion conditions are met if existing requests and new ones were loaded from the same DataSource.
· You can determine whether the selections for the new request need to be the same as or more comprehensive than the selections of the request that is to be deleted, or whether the selections for the new request need to completely or partially overlap the selections of the request that is to be deleted.
· You can specify deletion restrictions according to date. This means that, when the deletion conditions are met, only those requests that were loaded within a specific time period are actually deleted.
Example
If you choose Data for the Request from the Last Seven Days, only those requests are deleted that have been loaded in the last seven days.
· You can specify situations in which a request is not to be deleted, even if the appropriate deletion conditions are in place.
Example
If, under Exceptions, you choose the Today is the Last Day of a Month, existing requests are not deleted, if the new request is loaded on the last day of a month.
· Another option for determining deletion conditions is creating a user routine for the InfoPackage and the InfoCube. In this routine you can exclude requests from a deletion process or include additional requests for deletion.
Check conditions again, it will work, if selection and data source is same.
Hope it Helps
Srini -
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
-
How to create a conditional report variable, which displays the conditional
Hi Experts,
Could you please guide me how to build a conditional report variable
For ex:
I have the data for ATM and POS in the table. I will only get the data of ATMS because of the filters, I still want to display the POS in the report and the values for the POS will be 0.
Actual Output:
Description Vaule
ATM 100
Desired Output
Description Vaule
POS 0
ATM 100
Thanks in advance...
Regards,
Sadiq.Hi Gaurav,
I have a table which has columns and data as follows
Year Description Trans.Amount Trans.Count
2009 ATM 1000 50
2010 ATM 5000 200
2010 POS 1500 100
If I build a report and fetch the data for year 2010, report will display ATM and POS transaction amount and count.
Whereas, for 2009 there are no POS transaction, report will display only ATM transactions. But user needs the POS also to be displayed in the report with 0's for trans.amount and Trans.count.
Could you please guide me how to achieve this, if it is possible
Regards,
Sadiq. -
Understanding complex query with selections(customer exit variables)
Hi experts,
I am trying to understand one query having a combination of selections and BEx variables in it.
In Characteristic Restrictions panel of Query Designer:
we have some CHARs restricted by means of authorisation variables
In Default Values panel:
some other CHARs without any filters
In free CHARS panel
some characteristics
In Rows panel:
some more chars that were placed in Default values panel
In Columns panel:
Formula YTD on selection YTD
Formula Monthly on selection Monthly
Selection on YTD characteristic(hidden)
Selection on Monthly characteristic(hidden)
Selection XX(in definition,I saw selection on YTD Keyfigure and a characteristic variable VAR1(i-step=1) filled with customer exit..this variable picks up right version of Master Data...our system has many versions of master data,one for each year)
Selection YY(in definition,I saw selection on Monthly key figure and the same characteristic variable VAR1 we used in Selection XX)
When I execute this..I see one variable popup which asks for values for year and version of master data...I enter master data version for that year and the year....I see the result...
Now I tried to experiment to learn...I deleted Selection XX and Selection YY and tried to execute....a variable popup asking for year...I enter year and tried to execute..it throws message---'Value for variable VAR2 cannot be determined'......
I couldnot understand this error because VAR2 is a customer exit characteristic variable defined in CMOD...ITS NEVER USED IN THIS QUERY...but defined in CMOD to pick up correct version of Master data..its defined in such a way that it picks value depending upon VAR1 varaible....both variables function is same...its just that VAR1 works on i_step=1 and VAR2 works on i_step=2 plus dependent on VAR1....
Can anyone understand why I am seeing error about VAR2 when its never used in Query....??
Thanks for your inputs....Hi Vikram,
I am unable to find VAR2 anywhere in query designer....Can it be like that its hidden?
Thanks and Rgds,
SChand -
Unable to Create "Not Equal to" condition in Variable creation
Hi ,
I am getting an error while creating variable at report level,
Well, my condition at variable creation is ----> sum(A) where [country] <> " x" ...(It is showing the results when the country is equal to x) and the converse for the same ... If I use [country] = "x" .. It is taking as country not equal to x ..
Please suggest me on this..
Thanks in advance ....Hi ,
I am getting an error while creating variable at report level,
Well, my condition at variable creation is ----> sum(A) where [country] <> " x" ...(It is showing the results when the country is equal to x) and the converse for the same ... If I use [country] = "x" .. It is taking as country not equal to x ..
Please suggest me on this..
Thanks in advance .... -
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 -
RFC Call - Retracting data from BI/BPS/SEM to ECC
Hello Gurus,
Since there is no standard retarctors available for SKF and New GL in BPS-SEM we developed a custom retractor.
We call a standard BAPI to post SKF and a BDC to post New G/L.
When we call the RFC function it asks for the user id and password to login into ECC system.
How to handle the SAP log on screen in the program.
Do we pass the userid and password through the ABAp program ?
Please let me know how to handle the logon screen in the foreground and also in the background.
Again this program will be executed in the background .
Thanks for your help guysThis is a duplicate post. Please close the other one.
You should be able to set up a RFC connection in SM59 with a generic userid and password embedded. Give the userid the authorizations to process this and not much else.
Rob -
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 -
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.
Maybe you are looking for
-
I was given an auto-update message from Firefox, which asked me to restart the program to initiate the update. As soon as Firefox restarted, I got a weird document icon in my dock - in the place where the Firefox icon was moments before. The new upda
-
Is there any way to delete songs directly from my iPhone without using iTunes?
I'm trying to delete music directly from an iPhone 4 in iTunes on the device rather than using my laptop to delete and then sync it. Is there any way to delete music completely from my phone without using my latop?
-
Abap error in Q system.
Dear All, To modify MB51 we have created a Z report (ZMB51) by copying RM07DOCS to another program ZSD_RM07DOCS and modifying it. Everthing is working perfect in Dev system but when we have transported to Quality system , it is giving abap error.. He
-
Requirement, alt conditiion base value,alt .caluculatin type
Hai, Suppose a business requirment in pricing is to develop a routine.How can i come to a decision that i need to write a routine in "REQUIREMENT" "ALT CAL TYPE" "ALT CONDITION BASE VALUE" fields. Plz suggest me;
-
Trying to use a lebara sim for internet and its not working
Ive just come over to spain and i was told that it would be best for me to get a lebara sim card so i could use the internet whilst here. However, its just not working properly, i can get imessages and whatsapp messages however its just not downloadi