BPS to IP (variables) - Urgent!
Hi,
I am stuck with a problem while recreating a BPS application in IP (web). I needed to give the users options to choose values for some characteristics - but I needed to give them a restricted list, not all of master data hence I am not using variables but drop downs in the application. With drop downs, I was able to create list of specific characteristic values as desired and also have a cascading effect (one dropdown's list depends on prior dropdown's selection).
But the problem now is that, these dropdowns are not affecting the locking mechanism. Since I do not have any variable inputs, except year, all the combinations are getting locked. For eg, even if I select one brand from the first dropdown, all brands get locked. This is a complete show stopper because concurrent planning is completely impossible! Please suggest what can be done to solve this issue.
I am looking for any kind of solution even if its a completely different approach.
Unless you include a variable for "Brand" in the filter all brands will be locked to planning once the first user has entered the layout. This is how locking is designed to behave.
Include a variable for Brand in the in the filter for the planning query. The user can then select the next level of chracteristics for the Brand selected.
Hope this helps.
Similar Messages
-
BPS User Exit Variable based on Planning Package Selection
Hi,
I'm implementing a SAP BW-BPS planning layout to be integrated into the CRM we user interface.
Most of the characteristic selections come from the CRM fields that need to be filled by the user when creates a trade promotion.
The charcteristic selections work (as standard) just if in the planning level I flag "Selection in Package", then in package these selections are dinamically defined from what the user select in the CRM fields at runtime.
My problem is that I have to build a BPS User Exit variable to filter, in the planning level, the proper Planning Area based on the CRM Sales Organization value.
The characteristic CRM Sales Organization belongs to whose chararcteristic the value is determined dinamically in the planning package.
Is it possible for a BPS user exit variable, set in the planning level, to catch the value of a characteristic selection made at planning package?
Many thanks for your help.
AlessandroHi Indu,
Many thanks for your answer.
I have already took a look at the document posted by you but I didn't find the solution to my problem.
This because i have to create a user exit variable that need to get the value of the characteristic selection in package.
I mean in the planning level I will have the user exit variable that restrict the planning area and, his function module, need to read, at runtime, what is the value of the characteristic CRM Sales Organization restricted in package by CRM.
So I don't have any idea to which BPS internal table I have referred to in my funcion module to catch the value of the CRM Sales Organization dinamically filtered by CRM.
Many thanks,
Alessandro -
Creating text variable, urgent plz
Hi friends,
I would like to create a text variable on fiscalyear/period. the requirement is
when user enters 001.2007 it has to display jan2007
002.2007 it has to display feb2007 so on.
but when I am trying to create on fiscalyear/period it is not allowing me to create text variable. can any one suggest me please, it is an urgent requirement,
I appreciate your help very much.....
Ravi.Hi ravi
we can do this with the text with replacement path and the var which u have created u to put display as text thats it...
take a selection in the rows and create a variable in the text heading and give replacement fron the user entry default variable which the user enters.
Assign points if it helps
Khaja -
Friends,
i have an urgent requirement on creating an authorization variable. Please bear with me, because i havent done this before. the requiremnet is to create an authorization variable based on Sales rep id such that the sales rep should be able to see data relevant to him only. Can you tell me how do i do that? I saw many documnetationsn online but i dont understand the sequence, i am not sure how to go aobut it.
Points will be rewarded to all helpful answers.
thanks
Laura.Laura,
Here is the link which gives you all the required information
http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06#search=%22authorization%20variables%22
Let me know if you still have questions. -
BPS Attribute as Variable filled with User-Exit
Hello,
how is it possible to set a variable from the type "attribute" in BPS with an User-Exit?
Example: Characteristic = Material, Attribute = Material class
How can I set valid entries for Material class in a User-Exit?
Thanks for help in advance
EckhardEckhard,
You can solve this by using characteristic relationship type exit. there you can put a function where you can find the values for the attribute material class.
greets,
Jeroen -
Issue BPS manual input variable allowing multiple entry
Dear experts,
I would like to fulfil a requirement in BPS excel layout of manual input.
A user can input the values(multi-selection) for a characteristic and this charccteristic could be displayed in the row, as we can do in a query designer.
How should I define the variable for this characteristic and how should I define the characteristic in the Layout?
Thanks in advance.Hello,
Go to your planning area and create a variable of type Characteristic and then set the properties of that variable as below:
1. Add your characteristic in Characteristics tab in right side in that variable
2. Select Characteristic Value in Text Replacement
3. Select Fixed Value in Replacement Type
4. Activate checkbox Restriction of Values required by User
5. Specify the selection conditions for your variable. You can specify single values or range here.
Then go to your planning level on which you'll create your manual layout and then restrict the characteristic with the variable you have created under Selections tab.
Go to your planning layout and select radio-button in Lead Column for your characteristic in teh first screen of teh layout builder.
Then expand the node Additional Settings in the same screen and select radio-button All Possible Characteristic Combinations.
Regards,
Deepti -
Clear Flag for BPS user-specific variable values
Hi Experts!
I have a 'user-specific variable' settintg with the flag 'on', then the user should choose only one value.
But now I need execute an abap program which read all values available for this variable. For this reason, I need clear this flag with abap code, and after put on again.
Could somebody show me a small piece of abap code for this?
Thank you in advance!Hi,
Analysis of your question:
<i>Second line of your question "...<b>which read all values available for this variable</b>".</i>
1) When you mean you wish to read all possible values with which the variable could be filled up, then please use the Function Module:
UPC_CHA_VALUES_GET
The parameter <b>ETO_CHAVL</b> would then return all master data of the variable's characteristic
2) When you mean you wish to read all the variable values "<b>selected from the user in the past</b>" then use the function module
API_SEMBPS_VARIABLE_GET_DETAIL
Here the table <b>ETK_VARSEL_ALL</b> returns you all the values selected by user in the past. The "<b>current selected value</b>" for the user is stored in the table "ETK_VARSEL".
Check out these How-To Documents. If these dosen't suffices, then please elaborate your requirement, for me to write a ABAP Pseudo-code.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/324de5a1-0201-0010-dc9a-a093cde87bb5">How to use Reporting Variables in BPS</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/650ee690-0201-0010-4bb7-83c3e2a74039">How to variable of type Exit</a>
Many regards. -
Clear BPS user-specific variable values
Hi,
Is there a way to quicly delete all the variable values (user ID and cost center) for a user-specific variable in BPS without access to the configuration (BPS0) or do I need to write a small piece of ABAP for that ?
Thanks
DavidHello David,
You either have to access the BPS0 and delete each of the variable values or write a little ABAP program. You could include this ABAP in a planning function type Exit so the user can press a button in a web interface or planning folder to delete the settings. The coding using internal methods you need is:
DATA:
lr_variable TYPE REF TO cl_sem_variable.
Get variable instance
CALL METHOD cl_sem_variable=>get_instance
EXPORTING
i_area = 'name of area where the variable is defined'
i_variable = 'name of the variable'
RECEIVING
rr_variable = lr_variable
EXCEPTIONS
not_existing = 1
OTHERS = 2.
IF sy-subrc <> 0.
do s.th., eg send a message
EXIT.
ENDIF.
delete the restrictions
CALL METHOD lr_variable->set_user_restriction
EXPORTING
i_user = 'user name, e.g. sy-uname'
i_delete = 'X'
EXCEPTIONS
failed = 1
OTHERS = 2.
Best regards,
Gerd Schoeffl,
SAP NetWeaver RIG BI -
BPS: Value of variable Current variable cannot be determined
Hi
I have a BPS app. where I need to get current month. I've created a variable with replacement type User Exit and developed a function module that returns current month based on sy-datum.
However when I use the variable in a planning function it returns the error
'Value of variable Current Calendar year/month ( ZHCCURM ) cannot be determined' and in the diagnosis is says 'The replacement type 'user-specific values' is set up for the variable, but no values are maintained for your user ID. In addition, the indicator 'Input allowed by user' is not set for the variable. This means the variable cannot be used'
So it seems that the system think I have a variable w. replacement type 'User sepcific values'. We're on SAP NW 7.0.0 and I looked for notes but cannot find any relevant.
Anyone seen and solved this problem please let me know.Import
I_AREA TYPE UPC_AREA-AREA Planning Area
I_VARIABLE TYPE UPC_VAR-VAR Variable
export
ETO_CHARSEL TYPE UPC_YTO_CHARSEL Characteristic Selections
FUNCTION XXXX.
""Local Interface:
*" IMPORTING
*" REFERENCE(I_AREA) TYPE UPC_AREA-AREA
*" REFERENCE(I_VARIABLE) TYPE UPC_VAR-VAR
*" EXPORTING
*" REFERENCE(ETO_CHARSEL) TYPE UPC_YTO_CHARSEL
DATA: wa_charsel TYPE upc_ys_charsel,
v_curr_month TYPE NUMC4,
v_subrc TYPE sy-subrc,
i_varsel TYPE TABLE OF upc_ys_api_varsel,
wa_varsel TYPE upc_ys_api_varsel.
CALL FUNCTION 'API_SEMBPS_VARIABLE_GETDETAIL'
EXPORTING
i_area = i_area
i_variable = 'ZCURRYR'
IMPORTING
e_subrc = v_subrc
TABLES
etk_varsel = i_varsel.
IF v_subrc = 0.
READ TABLE i_varsel INTO wa_varsel INDEX 1.
IF sy-subrc = 0.
v_curr_month = month from system date.
wa_charsel-chanm = '0calmonth'.
wa_charsel-sign = 'I'.
wa_charsel-opt = 'EQ'.
wa_charsel-low = v_curr_month.
APPEND wa_charsel TO eto_charsel.
ENDIF.
ENDIF.
ENDFUNCTION. -
Dynamic integration of BPS and BW variables
Hi,
The white paper 'how to ... BPS Variables of Type Exit' gives the way to have the system default its BEx variables values from the values set up in BPS.
This is working great when I set up my BPS values from BPS0, however, when I change my variables from a web application (with a dropdown menu)and then execute the BEx report (thru an hyperlink or directly in my web app screen), the BEx variable values are not updated (even if a refresh is done).
My understanding is that this link between variables should be dynamic as the code includes function module Z_VARIABLE_GET_DETAIL.
Thanks for any help.Hi David,
Z_VARIABLE_GET_DETAIL does not work in this case since it runs in a different session and therefore picks up only the variable values that are commited to the database.
Instead, create a URL for calling BEx and pass the BPS variables are URL parameters. Or see "How to Integrate BEx Web Applications into BPS Web Interface" (http://service.sap.com/nw-howtoguides > BI)
Regards
Marc
SAP NetWeaver RIG -
Hi all,I have a BPEL process which calls a Webservice,and at the end it transforms the output of the Webservice to the Output Variable in my BPEL process,but the thing is this process retuns elements with xsi:nil="true" and I get an error which says
*Could not initiate the BPEL process because the input xml is not well formed, the reason is :
Error parsing envelope: (4, 3679) Namespace prefix 'xsi' used but not declared. Please correct the input xml.*
I have verified the WSLD,.bpel file,the xsd..they all have xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Heres the code of the assign
<from xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
variable="Invoke_P_getlV_OutputVariable"
part="parameters"
query="/ns7:getCViewResponse/ns7:getCViewReturn"/>
<to xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
variable="outputVariable" part="payload"
query="/ns1:GetOfferResponse/ns1:getCVResponse/ns1:getCViewReturn"/>
Please temme how do I get this to wrk...I need to get this working immediatly..If you need to "clean" some xml from null values (empty tags) you can create an XSLT (like RemoveNullTags.xsl) with the following code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates select="@*|node()"/>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:choose>
<xsl:when test="normalize-space(.)">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:when>
<xsl:when test="count(./*)">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
This xslt will remove all the empty tags on your XML. So after you create this and paste it on your project, you need to use it into an ASSIGN activity like this:
<assign name="Remove_Nulls">
<copy>
<from expression="ora:processXSLT('RemoveNullTags.xsl',bpws:getVariableData('inputVariable','payload'))"/>
<to variable="inputVariable" part="payload"
query="/ns2:writeCollectedDeleteElement"/>
</copy>
<copy>
<from expression="ora:processXSLT('RemoveNullTags.xsl',bpws:getVariableData('inputVariable','payload'))"/>
<to variable="inputVariable" part="payload"
query="/ns2:writeCollectedDeleteElement"/>
</copy>
</assign>
As you can see in this sample, i make 2 copy operations because i have xml arrays, so i need a copy operation for each child the xml element have.
HTH,
Andres -
Transport of BPS planning area (variables) without transp. all pl. levels
Hi!
Can anybody advice me, how to transport new variables which I have created to a planning area, without transporting all planning levels which belong to it?
I transported a few planning levels that include the new variables I created to the planning area. As a result, the planning levels are transported but the new variables are missing. I don´t want to transport the whole planning area, since it contains a development which is not ready yet. Can I transport the missing variables with SE15 (how?) or is there some other way to do it?
Grateful for any help,
SariSari,
Please execute program UPC_TRANSPORT_BPS_ALL and transport your variables without transporting any level or area.
Hope this helps.
Cheers
Srini -
PCR to read the variable-Urgent help required
Dear Experts,
I'm trying to read a variable in a pcr and tried many ways however NOT been successful
so far hence seeking your help
I have a WT( 5115) in infotype 15 and I would like the amount to transferred to a varibale and read it in the
further PCRs.
PCR1 --> Creating the variable
5115
ADDWT&9TMP
ADDWT *
PCR2--> Reading the value of the variable
5115
AMT=& 9TMP( One space between & and 9TMP)
AMT?0 -> If the variable exists?)
=
AMT= 5008( another wage type)
ADDWT 5308( new wage type only for passing the value from 5008 to 5308)
GCY PCR3( another rule to be processed if WT 5115 exists)
However PCR2 is not getting processed at all for WT 5115.
Please suggest to help resolving this issue.
Thanks,
PoonamDear Remi,
In case of retro termination following is happening-->
For retro month( of termination) eg. 08/2014( emp retro terminated effective 27/08/2014 however termination is done in the month of 09/2014)--> PCR is running for decision PPPAR A=A and calculation is done
For the payroll period ie. 09/2014--> PCR is running for decision operation PPPAR R=R
Hence the PCR is running twice. I would only like the PCR to be run for the payroll period only.
Can you suggest what changes should I make in the PCR given below-->
ZEOF Personnel Calculation Rule VAR 9TMP
5008 ESB Calculation Salary
PPPAR A Termination in mnth?
PPPAR R WCenter inactive/PP?
PPPAR F Term.at end of per.?
F
R
AMT=& 5113 Set
AMT?0 Comparison
AMT- 5008 Subtraction
AMT?0 Comparison
<
FILLF NRA Fill amt/no/rate
ADDWTE5308 RT Results table
ADDWT * OT Output table
=
FILLF NRA Fill amt/no/rate
ADDWT * OT Output table
>
FILLF NRA Fill amt/no/rate
ADDWTE5208 RT Results table
ADDWT * OT Output table
=
FILLF NRA Fill amt/no/rate
ADDWTE5308 RT Results table
A
AMT=& 5113 Set
AMT?0 Comparison
AMT- 5008 Subtraction
AMT?0 Comparison
<
ADDWTE5308 RT Results table
FILLF NRA Fill amt/no/rate
ADDWT * OT Output table
=
FILLF NRA Fill amt/no/rate
ADDWT * OT Output table
>
ADDWTE5208 RT Results table
FILLF NRA Fill amt/no/rate
ADDWT * OT Output table
=
AMT= 5008 Set
ADDWTE5308 RT Results table
FILLF NRA Fill amt/no/rate
ADDWT * OT Output table
Please note that WT 5008 is an accural total wage type and exists in every month. However I see that there is NO retro happening for this wage type in the system in case of retro termination. Can that be an issue? Logically retro should run for this WT for Retro termination and it should not exists for the payroll period after termination??
Thanks,
Poonam -
Hascode without instance variable: Urgent
Hi All
I have to write hashCode() method correspond to the equals() method in the same class.
But I dont have any class level variable in this class, I am not able to generate the hashCode() method automatically from Eclise.
My equals method looks like this -
public abstract class Value implements iValue
public boolean equals(Object object) {
return (compareTo(object) == CMP_EQUAL);
CMP_EQUAL value is a instance variable of iValue interface.
Can anyone suggest me how to write hashcode for this class?
Thanks.malcolmmc wrote:
If the class has no state associated with it then there's no reason to write either hashCode or equals methods for it, since there's no basis for such comparison except instance identity (which is the default).
In fact instances of a stateless class are interchangeable.If they really were completely interchangeable, then you would want an equals which returns true and hash code which returns a constant value. -
Environment Variables (Urgent)
Hi everyone,
Does any body know how to use environment variable in any application. I am using Oracle 8.1.6 on Windows NT. And I want to use the value of an environment variable in my procedure.
Any sooner help will be highly appreciated.
Thanks
Mustafa ButtEven I am trying this :
declare
v_user varchar2(30);
begin
Tool_Env.GetVar('USER', v_user);
message('user name : '||v_user);
end;
which doesnt give me result as it is showing null as a value.
Am I making a mistake???
Maybe you are looking for
-
Dear Someone who care Please do contact with the really owner of the Iphone i was bought from someone ( the fourth or fifth user) who dont have really Icloud ID and password Please let me know how can i do that Many thanks
-
How to set the size of JTextPane according to the size of text??
hello how can i set the size of JTextPane according to the size of text it would contain in such a way that JTextPane should not have ScrollBar.
-
Hi Folks, I'm new to SAP PI 7.0 . I want to send one xml file to 2 sender in a splitted manner using BPM. suppose I have 8 fileld in my sender data type, i want to send the xml which contails first 4 fileds to the first receiver and the xml which
-
This is the crash report. Can someone explain what this means?
Add-ons: %7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:24.0 AvailablePageFile: 4376780800 AvailablePhysicalMemory: 475205632 AvailableVirtualMemory: 1540612096 BuildID: 20130910160258 CrashTime: 1408140691 EMCheckCompatibility: true InstallTime: 1407345
-
How to dynamically create selecItems in a pgae from a table
To those who may be able to help: I am using JDeveloper 10.1.3.4. In my application, I need to put a number of selectItem tags such as radio buttons on a page. What is difficult about this is that it can not be known in advance how many radio buttons