Skip to Content
author's profile photo Former Member
Former Member

BEX 3.5 variable replacement

Hi

Ive got 0PAYPER (ex: 200612) caracteristic

I would like to show on the query only the periode (ex: 12) but not the year.

Report Ex:

Total salary for year 2006

Per total salary

01 999 999

02 999 999

03 ...

04 ...

05

....

Is it possible to do it with variable replacement ? And how ?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 06:46 AM

    Hi

    Just try following way...

    Make formula variable of replacement path type where u can offset the characters u want to display in report. that way u can offset last two characters from opayper.

    Thanks

    Debasish

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Again I am new to this.

      I have been trying the "formula variable of replacement path" but I must do it the wrong way.

      Here my steps:

      1.In the "line" section of designer I created a new structure

      2. Created new formula and named the new formula

      3. Created new replacement path variable with 0payper as the caracteristic and offset 5 lenght 2

      4. I placed the new variable (replacement path) in the formula area.

      When I run the query, under the variable name nothing is showing.

      Please give step by step instruction of using replacement path var in a query

      Robin

      Edited by: Robin Cote on Jul 31, 2008 3:40 PM

      Edited by: Robin Cote on Jul 31, 2008 4:59 PM

  • author's profile photo Former Member
    Former Member
    Posted on Jul 30, 2008 at 08:12 PM

    Customer exit variable with

    var = 0PAYPER+4(2).

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 06:54 AM

    Hi,

    If you are using Text variable with Replacement Path then you have to give ' Start Offset as 4 and length as 2 ' for only month.

    If it is only year then give as ' Start offset as 0 and length as 4 ' .

    Regards,

    Ali.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.