Skip to Content
avatar image
Former Member

Reading variable values

Hi Everyone,

in BW-BPS I was able to read the value of bps variables by a function module. Does anybody know how i can read by a function module the variable values in the integrated planing BI-IP ?

THX

Mike

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 28, 2007 at 07:07 AM

    Hi,

    Thanks for your patience and quick response.

    is there a how-to around or something else, as i have hardly any experience with BEx Variables.

    Regards

    Mike

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 12:55 PM

    Hi Mike,

    Its not really clear to me. Where do you read these values in BPS (in an ABAP code or something)? How do you do that (in BPS)? Could you please elaborate?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 08:41 PM

    i ment to to read the value of a variable in BI-IP.

    example a user has selected 0calyear = 2007 for his planing layout - another exit variable should read that variable and adds another year. (2007 + 1)

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      In the code for the other exit variable you should be able to read the value of the existing variable using the below code.

      DATA: loc_var_range LIKE rrrangeexit.

      CLEAR loc_var_range.

      READ TABLE i_t_var_range WITH KEY vnam = <b><existing var name></b> INTO loc_var_range.

  • Aug 21, 2007 at 07:17 AM

    Hi Mike,

    if you want to assign the function module that u have created for a perticular variable, then make type of that variable as "User Exit".

    it will ask for Function Module. assign ur FM there.

    u can use that variable in level selection.

    when u will execute the layout, it will give error saying that " variable has too many vaues".

    u can set one value for variable form "set variable" option tab available at right corner of BPS0 transaction.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 24, 2007 at 09:31 PM

    well. maybe i was not clear.

    i do know how to use BSP variables of type exit. this is not the problem.

    i need to know for BI-IP BI 7.0

    Best Regards

    Mike

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      In BI-IP, the variables used are the same as the ones which are used in BEx queries. So, for exit variables you'll write the code at the same place where its done for BEx variables.

  • avatar image
    Former Member
    Aug 31, 2007 at 10:44 AM

    THX !

    Add comment
    10|10000 characters needed characters exceeded