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.

Similar Messages

  • External tables with user defined fuction help

    Can any one help me
    I have problem with using user defined function while creating the External table.
    The user defined function Just takes an input empno and returns one number.
    CREATE TABLE EMPXT_1(empno NUMBER(4)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY TEST_DIR
    ACCESS PARAMETERS(
    RECORDS FIXED 4
    STRING SIZES ARE IN BYTES
    NOBADFILE
    NODISCARDFILE
    LOGFILE '211205.KNU.LOG'
    FIELDS
    NOTRIM
    (empno POSITION(1) integer external(4) p_1(:empno)
    LOCATION
    ('empxt_1.dat')
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    content of expxt_1.dat
    7849
    SELECT * from EMPXT_1;
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "double-quoted-string": expecting one of:
    "comma, defaultif, nullif, optionally, ), terminated"
    KUP-01007: at line 8 column 49
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1

    hi,
    may be u have do these
    for ORA-29913 error
    1. you have to grant read and write to a directory.
    for other errors do check this document
    http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96525/kupus.htm
    hope this may help u
    Trinath Somanchi

  • User responses not posting to ticket in Spiceworks help desk

    We are on 7.4 and are seeing an issue where some of our user responses don't make it to the ticket.  We see their replies via email, but have to manually copy and paste those to tickets.
    Any suggestions?
    This topic first appeared in the Spiceworks Community

    Hi Waman,
    Pl. see the attached file.
    And also pl advice if in standard process , how can I achieve my stated issue above.
    Kindly help.
    regards
    Kami

  • 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

  • Any example for user-defined fuction

    Hi all,
    i need to write user defined fuction , i am very much confused with container and ll this stuffs , pleasse send me example with coding explanation
    thanking you
    sridhar

    Hi,
    How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the Lookup API -
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
      Re: Advanced User Defined Functions - Handling Contexts  
    Posted: Aug 31, 2006 7:45 AM    in response to: Kausik M       Reply      E-mail this post 
    Hi,
    This blog talks about context handling
    /people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
    This is will give you a clear idea and will be hwlpful for sure
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
    Advanced User Defined Functions - Handling Contexts
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
    http://help.sap.com/saphelp_nw04/helpdata/en/40/7b8e40496f6f1de10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/e127f28b572243b4324879c6bf05a0/frameset.htm
    Regards
    Chilla
    <i>reward points ..</i>

  • 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

  • SAP PI Sender Mail Adapter error : Unexpected User response

    Hello ,
              I developed a scenario which requires Sender mail Adapter to connect a Third party system to PI, by going thro the links .
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    and PDFs in SDN.
    When configured the sender mail adapter using POP Mail Server,faced the following error:gave the correct URL and Login credentials.
    +" exception caught during processing mail message; java.io.IOException: unexpected user response; read -ERR Command is not valid in this state."+
    Then used IMAP for the same mail server : error:
    "exception caught during processing mail message; java.io.IOException: unexpected login response; read 001F BAD Command received in Invalid state."
    Tried with another Mail server :
    "exception caught during processing mail message; java.net.ConnectException: Connection timed out".
    Can you please help, what be the cause? how to rectify it?

    Hi
    There might be an connectivity issue from PI server to mail server. Please check with your BASIS to resolve the issue.,
    Regards
    Ramg

  • Based on the user response need to calculate measures in universe

    Hello Folks,
    I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer.
    1.Based on the user response I need to create a report for previous months .
    2. PYTD and YTD measures based on user prompt from universe. [PYTD - JAN 1 2013-OCT 1 2013, YTD - Jan 1 2014- OCT 1 2014].
    Example Date Set :
    DIM 1                    SEP13...............................................................OCT 14      PYTD   YTD
    Florida  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    Arizona  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    M1...M6 are the measures need to come from universe based on the user prompt.
    M1,M2 Need to give previous 13 months based on user response.
    M3,M5 [PYTD - JAN 1 2013-OCT 1 2013]
    M4,M6 YTD - Jan 1 2014- OCT 1 2014].
    Thanks for your help in advance.

    Hello Folks,
    I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer.
    1.Based on the user response I need to create a report for previous months .
    2. PYTD and YTD measures based on user prompt from universe. [PYTD - JAN 1 2013-OCT 1 2013, YTD - Jan 1 2014- OCT 1 2014].
    Example Date Set :
    DIM 1                    SEP13...............................................................OCT 14      PYTD   YTD
    Florida  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    Arizona  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    M1...M6 are the measures need to come from universe based on the user prompt.
    M1,M2 Need to give previous 13 months based on user response.
    M3,M5 [PYTD - JAN 1 2013-OCT 1 2013]
    M4,M6 YTD - Jan 1 2014- OCT 1 2014].
    Thanks for your help in advance.

  • 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

  • Month filter between two ranges based on user response inIDT

    Hi,
    I am working on SAP BO4.0.I have a requirement of creating a month filter on a date which will be between two ranges.The first range is the user response and the second range will be 6 months added to that user response.For eg:-If a user enters 1 as the response for month prompt then the date will be filtered between 1 and (1+6)=7.The database used is SAP HANA.
    Please let me know if further clarifications are required.
    Any help on this will be appreciated.
    Thanks in advance.

    Hi Riddhi ,
    afaik this is not doable in UDT/IDT .Only thing we can make is to run the report for last month by using magic dates concept.
    Check below logic if it helps.
    For a requirement to run a report for  fiscal year starting date to last month if nothing selected .
    @Select(Time\Yr-Mth Key)  between@Prompt('From Date','A','Time\Month / Year',mono,primary_key,,{'JUL 2013'}) and   
    (case when @Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'})='JAN 1999' then to_char(add_months(sysdate,-1),'YYYYMM')  
    else  
    @Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'}) end)
    This is on Oracle Database.
    When you run webi report
    From Date : JUL 2013 (fiscal year start date)
    To date : JAN 1999( without changing this you can refresh the report for last month , else it'll refresh for selected month)

  • 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?

  • Oracle financials end user responsibility in implementation project

    Could any body tell me the Oracle financials end user responsibility in implementation project

    SO what is the variance in the responsibilities for Functional consultant and Key user in implementation or support project.
    =========================================================================================
    See in implementation project, the resource who is performing the implementation needs access to all the forms i.e. setup, transaction forms etc.
    Also within an implementation project, there may be resources who are not associated with set, hence they responsibility will have only transactiion forms or inquiry forms.
    =======================================================================================================
    In Support project, the following may be valid users associated with the functions:
    the Invoice entry folk who keys in the invoice needs access to Invoice form only.
    Similarly The invoice inquiry folk who needs to inquire the invoice will need to have access to Invoice Inquiry form only.
    Similarly a person who is incharge of the overall control within a support project will have access to all the forms, functions, menu etc.
    =================================================================================
    Hope this helps.
    Thanks and Regards
    Manish Jain.

  • User Response selection

    Hi,
    Here is the background of my question in Webi XI3.1 -
    I have a report that shows Family #, File #, Value. Values range from 0 to 10
    Family#
    File#
    Value
    A
    A123
    0
    A
    A234
    1
    A
    A456
    0
    B
    B123
    2
    C
    C123
    3
    D
    D123
    0
    D
    D234
    4
    D
    D456
    2
    Report has a parameter/prompt for user to select between the values - Value between (Value 1) and (Value 2)
    Question is -
    If a user select a range of of values suppose 0-2, then the report should show family that has a value either 0, or 2 or between 0-2 i.e For user response of 0-1, report should show below i.e IF THE VALUE COLOUMN HAS A USER SELECTION RANGE, THEN SELECT THE ENTIRE FAMILY
    A     A123     0
    A     A234     1
    A     A456     0
    B     B123     2
    D     D123     0
    D     D234     4
    D     D456     2
    I need help achieving this.
    Solution Tried:
    I have created 1 variable for UserResponse ("Value1"), another variable for UserResponse ("Value2")
    I tried to match if Value coloumn in report is between UserResponse ("Value1") and UserResponse ("Value2"), but it is not working.

    In your query, you might have dimensions other than Family # and File #. So the data is being filtered in the highest granular level as per the query you defined.

  • 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 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

Maybe you are looking for

  • External Hard Drive and Audio Recording Application

    Hi, hope everyone is doing well today. I'm new to this forum but I have been occasionally browsing it from time to time and find it very useful. So I figured I would post a couple questions that I have. First of all I would like to tell you all excat

  • Strings in a where statement?

    A project I have to do says to prepare a report that shows the movie id (mid), title, and genre for all films in the science fiction category (genre=SF) I wrote: select mid, title, genre=SF from movies; or select mid, title, genre from movies where g

  • MP3 Music does not work.

    I just upgraded to Adobe Premiere Elements 13 so that I could use music in .MP3 format.  But it still doesn't let me use this music.  Can you tell what I am doing wrong? I get a message that says "The importer reported a generic error"

  • Sell my BluRays and buy all my movies in iTunes?

    Hello all, So I've got an odd question in which i'm looking for some opinions. I am a HUGE movie junkie and easily have about roughly 200 Blu Ray movies. I love watching movies all the time obviously but I've recently moved into an apartment where th

  • Pleeeaaaase help!

    The computer I had before is broken, and I want to copy new songs into my iPod from another computer. But then iTunes asks if I want to replace the songs and playlists I have on my iPod with the ones that are on the new computer, and i don't want to