User response function

Hi
Can any body explain about user response function with simple example.
Thnaks in advance

Assuming your universe contains a filter that prompts for user input using the @prompt function and you use the filter in your report OR you add yourself a filter which requires user input in the query panel of your webi report.
When the report runs it will ask your user to provide a value by displaying a text that you provided:
eg. Enter year:
The function UserResponse('Enter year:') will return the value the user provided and you can use it in a WebI variable for further calculations
eg. the following code in WebI
="User entered year " + UserResponse('Enter year:')
will display
User entered year 2010
assuming your user typed in the value 2010 when prompted.
Hope this helps.
Regards,
STratos

Similar Messages

  • WebI Report using BW Query (Getting Error for User Response Function)

    Hello Experts,
    I have created WebI Report on top of BW query. All the prompts are coming from BW query. I was trying to create user response function but it's not working. Do I need to use special function or I can't use.
    Any help would be highly appreciated.
    Thanks
    Nisniki

    hi Nisniki,
    take a look here:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb
    Ingo

  • User response function() for Date Prompt

    Hi Experts,
    I have the requirement to show the date enterted in the prompt in the column of the webi report.
    I used the User response function e.g. =(UserResponse("Report Date").
    Now I am getting the value as 5/14/2014 12:00:00 AM. I dont want to see the time stamp with the date and aslo i want to change the format of the
    date to - yymmdd like 140514.
    Please provide your inputs.
    Thanks,
    Abhimanyu Sharma.

    Hi Arjit,
    I closed the thread.
    Can you please help in the below issue :
    I have two columns in the BEX report:
    1. "Local Count" which is restricted with Multiple Single Value variable "ZIN_CITY" on navigational Attribue 0ROUTE__0ROUTEID.
    2. "Out Count " which is restricted with Multiple Single Value variable "ZOUT_CITY" on navigational Attribue 0ROUTE__0ROUTEID.
    I put value 100 in prompt ZIN_CITY and 200 in ZOUT_CITY when i run this query in BOBJ WEbi.
    But i am getting the error - Not able to retrieve data. i checked in the backend and data is present and also Bex query is working fine.
    IF i change the property of variable to Single value then it is working fine in WEBi.
    Also i tried another method - irresprctive of setting the prompt in BEx on Nav attr 0ROUTE__0ROUTEID, i created the prompt in BOBJ WEBi, but LOVs (list of values)are not coming in the prompt.
    Please suggest on this?

  • Need help with User Response function

    I have the following formula:
    =UserResponse(DataProvider([Segment Name]);"Effective Date")
    The user response is a date which is displayed like this:
    M/dd/yyyy h:mm:ss a
    I would like to display the date as Mmm-dd-yyyy with no time at the end. 
    When I tried this formula:
    =FormatDate(UserResponse(DataProvider([Segment Name]);"Effective Date");"Mmm-dd-yyyy")
    I get the "invalid data type" message.  I think I understand why (UserResponse isn't a date function), but I'm unable to come up with another formula that will do what I require.
    When I tried this formula:
    =ToDate((UserResponse(DataProvider([Segment Name]);"Effective Date"));"Mmm-dd-yyyy")
    I get #ERROR in the cell. 
    I also tried formatting the cell to no effect.

    Hi Ellen,
    You have to use the format that the user is inputing in, and then format it as you would like it
    so this should work.
    FormatDate(ToDate((UserResponse(DataProvider(Segment Name);"Effective Date"));"M/dd/yyyy h:mm:ss a");"Mmm-dd-yyyy")
    Regards
    Alan

  • User response() function in SAP WEBi

    Hi Experts,
    I have created a Formula variable in Bex with name "Exchange Rate" which is ready for input and its type is Number.
    when i Created Webi report over this, I get the prompt with Exchange rate.
    Now, My requirement is to show the Total value = Stock  * unit cost * Exchange rate if user put some vaalue in Exchange rate prompt say 2.3.
    If user doesn't put anything in Exchange rate Prompt(means left blank) then Total Value = Stock * unit Cost.
    I used the userresponse function on the exchange rate but it wont work. I am getting #error in the column.
    First i Create a variable with name Exchg Rate = userresponse("[Exchange rate]")
    and then i created the variable Total value =If(IsNull([Exchg Rate])) Then Stock * unit Cost ELSE ( Stock  * unit cost * Exchange rate).
    But i am not getting the desired results.
    Please advise/help on this.
    Thanks,
    Abhimanyu Sharma

    Hi,
    Always use a technical name of the Bex prompt in Userrepsonse().
    Also try this:
    @ vExchange Rate:
    =if (Userresponse("Technameofprompt") ="") then 0
    Else
    Userresponse("Technameofprompt")
    @ vTotal Value:
    =Stock  * unit cost * Exchange rate
    Thanks,
    Jothi

  • Calculation based on user response

    I have a report with 2 columns based on the data in the first column i need to perform either sum or average for the next column
    C   July
    c1 value1
    c2 value2
    c3 value3
    c4 value4
    c5 value5
    c6 value6
    If(Match(UserResponse("M1:");"c1") OR Match(UserResponse("M1:");"c2") OR Match(UserResponse("M1:");"c3") OR Match(UserResponse("M1:");"c4");Sum([Jul]);Average([Jul]) )
    Value1,2,3,4 aggregation is sum but for c5,c6 also it is giving sum value but not average but i want the aggregation for value 5 and value 6 as avearge

    For example take efashion unv
    My requirement is if user selects california or newyork the aggregation on sales revenue should be average and sum on the other two states.
    Code:
    =If(UserResponse("State:")="California" Or UserResponse("State:")="New york" ) Then Average([Sales Revenue]) Else Sum([Sales Revenue])
    this formula is not working , iam getting blank rows under sales revenue column
    Is there something to do user response function because it returns values as california;new york;massachusetts;texas
    could you please post the correct formula
    State Sales Revenue
    California
    New York
    Massachusetts
    Texas
    Edited by: pullabh on May 25, 2010 6:35 PM

  • User Response Error with BW prompts

    Hello Experts,
    I have created WebI Report on top of BW query. All the prompts are coming from BW query. I was trying to create user response function but it's not working. Do I need to use special function or I can't use.
    Any help would be highly appreciated.
    Thanks
    Nisniki

    Hi,
    You can get the values of the prompts that are coming from BW Query using the UserResponse() function. Following is the way to get the value:
    1. Say, you have a variable ( from Bex ) with Name as "Customer".
    2. Now, in order to get the value of the variable in BO, you need to write the UserResponse() as UserResponse("Customer")
    You have to ensure that the name of the variable is mentioned correctly within " ".
    Hope it helps.
    Regards,
    Tej Trivedi

  • User response fuction help

    Hi Techis,
    I need to create user response function in webi report in a variable.The variable i use for furtur calculation.
    Gentis is a prompt name and user selects any one of the 2 values in a prompt.
    suppose user select "A" in the prompt it will return '0' and user selct "B" in the prompt user response will return 1 (any how any one value 0 or 1)  save in the variable.i am using r4 and BEX Query is source.
    How can i save 0 or 1 in variable.
    Kindly help me on this.
    Greatly appreciated.
    Thanks--
    Madhu
    Edited by: send2madhuk on Mar 3, 2012 8:31 AM

    If you already have WEBI prompt named "Gentis" then it's simple - create new WEBI variable with following formula
    =If UserResponse("Gentis")="B" Then 1 Else 0
    or
    =If UserResponse("Gentis")="B" Then 1 Else If UserResponse("Gentis")="A" Then 0 Else 99
    Depending on your requirements you'll have to choose between type of variable - Dimension, Detail or Measure. Since you said you will use variable for futher calculations most likely type of variable should be Detail or Measure.

  • User Defined Function (UDF) help required. Pls advice urgent.

    Hi ,
    CRM -- XI (UDF) -- Socket Connection
    Now in User Defined Function (UDF) of Message Mapping I will open Socket Connection.
    Send CRM XML request to socket and get XML response from Socket and then map to some system.
    Can I write Java Class code in User Defined Function (UDF)  of Message Mapping instead of Java Mapping in blog below?
    /people/saravanakumar.kuppusamy2/blog/2005/12/15/socket-integration-with-xi
    Regards

    Henry,
    Do you have a structure for your response...if you do then you can do extended reciever det with sync/async..shouldent matter, i just tried it and i dont get any error.
    in your reciever determination..Check the box for standard rec det then add your first condition..of the value of a field to true..then send to A..
    then you select add condition..and add for second reciever..that should be it, you shouldent need a bpm for such a simple scenario..it definetly is an overkill.
    Regards
    Ravi Raman

  • Error when use User-Defined Function

    I just create User defined function "getfilename" and I put there:
    "DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return ourSourceFileName; ".
    But In test mapping I have worning:
    "Runtime exception during processing target field mapping /ns1:Z_KBFI_INPUT_FILE/IS_IFILE/FILE_NAME. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._KBFIMsgMapping_ method get_fname$[com.sap.aii.mappingtool.tf3.rt.Context@37d4662c] com.sap.aii.mappingtool.tf3.MessageMappingException: Runtime exception during processing target field mapping /ns1:Z_KBFI_INPUT_FILE/IS_IFILE/FILE_NAME. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._KBFIMsgMapping_ method get_fname$[com.sap.aii.mappingtool.tf3.rt.Context@37d4662c] at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:284) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:238)...."
    And in RWB in Communication Channel Monitoring I can not see file name in the payload.
    Maby I do something wrong, please tell me.

    my source file 200610.txt is like this:
    HR 0610 061030 061021
    DR 03 C 0610 820114 00010111 0000015000 PLN descr...
    DR 03 D 0610 403201 00010111 0000015000 PLN descr..
    TR 0000000002
    Then in sxmb_moni in inbound message (payload) I have:
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:KBFIMsgTypeSource xmlns:ns="http://p4.org/xi/KBFI/Interface">
    - <FIRecordset>
    - <HeaderLine>
      <LineKey>HR</LineKey>
      <PostingPeriod>0610</PostingPeriod>
      <PostingEndDate>061030</PostingEndDate>
      <PostingDate>061021</PostingDate>
      </HeaderLine>
    - <PostingLine>
      <LineKey>DR</LineKey>
      <ServerID>03</ServerID>
      <DCFlag>C</DCFlag>
      <PostingPeriod>0610</PostingPeriod>
      <GLAccount>820114</GLAccount>
      <SubAccount>00010111</SubAccount>
      <NetValue>0000015000</NetValue>
      <Currency>PLN</Currency>
      <Description>descr...</Description>
      </PostingLine>
    - <PostingLine>
      <LineKey>DR</LineKey>
      <ServerID>03</ServerID>
      <DCFlag>D</DCFlag>
      <PostingPeriod>0610</PostingPeriod>
      <GLAccount>403201</GLAccount>
      <SubAccount>00010111</SubAccount>
      <NetValue>0000015000</NetValue>
      <Currency>PLN</Currency>
      <Description>descr..</Description>
      </PostingLine>
      </FIRecordset>
      </ns:KBFIMsgTypeSource>
    But I don't have payload for Response (black and white flag).
    In DynamicConfiguration i have:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Response
      -->
    - <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileSize">141</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileType">txt</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileTimestamp">20061212T121622Z</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileEncoding">ISO646-US</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">200610.txt</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="Directory">/usr/sap/PXD/put/archive</SAP:Record>
      </SAP:DynamicConfiguration>

  • How to Use Sequence Object Inside User-defined Function In SQL Server

    I'm trying to call sequence object inside SQL Server user-defined function. I used 
    Next Value for dbo.mySequence  to call the next value for my sequence created. But I'm getting an error like below.
    "NEXT VALUE FOR function is not allowed in check constraints, default objects, computed columns, views, user-defined functions, user-defined aggregates, user-defined table types, sub-queries, common table expressions, or derived tables."
    Is there any standard way to call sequence inside a function?
    I would really appreciate your response.
    Thanks!

    The NEXT
    VALUE FOR function cannot be used for User Defined function. It's one of the limitation.
    https://msdn.microsoft.com/en-us/library/ff878370.aspx
    What are you trying to do? Can you give us an example and required output?
    --Prashanth

  • Calling a user defined function as default value for a column

    Hi All
    Can we call a user defined function as default value for a column ??
    for example:
    create or replace  function test1  return number is
    begin
    return 10;
    end;
    create table testt
    (id  as test1,
      name varchar2(20));
    getting error:
    Error at line 1
    ORA-02000: missing ( keywordThanks
    Ashwani
    Edited by: Ashwani on Jan 16, 2012 1:19 AM

    Hi;
    For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Database » SQL and PL/SQL which you can get more quick response
    Regard
    Helios

  • ? Regarding 'SQL user-defined function' execution performance ?

    Hi All,
    I have an user-defined function in SQL which am using in a SQL select statement and i found that the execution time taken by the user-defined function is 9-10 minutes as a result of which my whole query execution time is affected.
    How to i improvise the execution time. Should i do some sort of scheduling for executing the user-defined functions only. Am new to the database world. Your early response with a good suggestion would really be appreciated.
    Thanks in Advance.

    Try to read SQL tuning documents along with TkProf. Then only you will be able to detect the problem.
    There is no instant method by which you can solve this problem.
    But, you can get idea from this samples.
    Tuning:
    http://www.dba-oracle.com/art_sql_tune.htm
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:8764517459743
    Reading TkProf:
    http://www.dbspecialists.com/presentations/use_explain.html
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:920429344869
    Regards.
    Satyaki De.

  • Calling PL/SQL user defined functions from ODI Constraints

    Hi All,
    We are trying to call user defined PL/SQL functions from ODI. We are able to call them from ODI's User functions. But when we are trying to call them from ODI Constraints under Models, it is throwing an error 'ORA-00920 invalid relational operator'. Kindly let me know if anyone has faced the same issue and got the resolution for the same. Thanks in Advance.
    Regards,
    Abhishek Sharma

    Hi Ace,
    Thanks for the response, the same error was coming in operator also.
    I am able to call PL?SQL user defined functions from ODI Constraints. We have to first call ODI User functions from the ODI constraints as we cant call PL/SQL function (compiled in database) directly.
    From the ODI User functions, we can then call the PL/SQL functions.
    Please reach out to me if you need further details reg this.

  • Unable to Navigate Organization in "Maintenance Super User" Responsibility (Eam Self Service Pages)

    Dear friends,
    Iam learning Oracle EAM module, now i had a problem that i couldn't able to find EM1 Organziation in the LOV, though i have done Organziation access also, based on the Oracle support.
    Solution from Oracle Support
    ======================
    Unable to Navigate in 'Maintenance Super User' Responsibility (EAM Self Service pages) (Doc ID 1053400.1)
    If you have the Organizations LOV empty, then you need to go to (Navigation) -Inventory (responsibility) > Setup > Organizations > Organizations  Access. Here you need to define a new line for each organization you want to access from the EAM SS responsibility.
    Kindly respond on this issue.
    Thanks
    Shruthi

    Try to compare the menu that you have created with Functional Administartor menu structure. It may help to debug your problem.
    Thanks,
    Mitiksha

Maybe you are looking for

  • Error looping at a table

    Greetings Abapers Im trying to loop at a table for certain criteria. My code is: Loop at the relationships table and get dates for each salescode BP    loop at lt_hrp1001 where lt_/ccdev01/a2scode-partner EQ lt_hrp1001-sobid    and lt_hrp1001-sclas E

  • Can you choose which datasource at runtime?

    Is it possible to have a single report that can either pull data from one account or the other, based on, say, a user selection? For example, let's say I have one report for projects that shows us projects in our dev account in oracle, but may want t

  • Retry on SFTP send Adapter

    Hi All, I have a scenario where I am sending the EDI file via SFTP adapter to external partner. On the SFTP port configuration I have set Retry count=3 for every 5 mins. This send port I have configured on Agreement to specify which agreement to use

  • Seems to be okay but something woring in terms of performance (about GUI)

    I have worked on some code on my textbook. I think everything seems to be fine but something is wrong. I tried to figure out this code but unfortunately I couldn't. 'doTraitTest' facilitator doesn't act at all. Please give me any advice and thanks in

  • Since the last update I can't get to files that I have up loaded to ITunes on my IPad in pages

    Since the last update I can't get to files that I have up loaded to ITunes on my IPad in pages