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

Formula variable with replacement path

HI ,

1. Is it possible to use "Customer exist- without user entry variable in the formula variable with the replacement ?

2. if I use two variable for a same time char in one report (one is User entry variable and the other is customer exit variable for calculating current system date), then how it will work ? (User entry variable is there in the "Char restrictions" section and the customer exit variable is customer exit used in formula variable)

Thanks in Advance.

Thanks

Rajesh

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 08, 2010 at 01:20 PM

    1. Is it possible to use "Customer exist- without user entry variable in the formula variable with the replacement ?

    Yes. use I_step=1

    I_STEP = 1

    Call takes place directly before variable entry. Can be used to pre populate selection variables

    I_STEP = 2

    Call takes place directly after variable entry. This step is only started up when the same variable is not input ready and could not be filled at I_STEP=1.

    I_STEP = 3 In this call, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called again.

    2. if I use two variable for a same time char in one report (one is User entry variable and the other is customer exit variable for calculating current system date), then how it will work ? (User entry variable is there in the "Char restrictions" section and the customer exit variable is customer exit used in formula variable)

    Yes you can use both the variable of time char to restrict a characteristic but that should not be used on single characteristic.

    You can use the sys defined 0date on one field and the customised one Zsydatum on other char.

    Regards

    KP

    Add a comment
    10|10000 characters needed characters exceeded

    • I'm not talking about the user entry option i'm talking about the variable ready for input or not.

      Hey create a formula variable with replacement of type Customer exit -- there you will find the option variable ready for input deselect that check box.

      variable 0Date is not formula variable its a variable provided by SAP to pick the system date. or you can check for other variable with sap exit as well which give us system date or create you create a new varaible with customer exit which pics the current system date.

      Use the below code to get the system date

      WHEN 'ZSYSDATE'.

      IF I_STEP = 2. "after the popup

      L_S_RANGE-LOW = SY-DATUM.

      L_S_RANGE-SIGN = 'I'.

      L_S_RANGE-OPT = 'EQ'.

      APPEND L_S_RANGE TO E_T_RANGE.

      ENDIF.

      regards

      KP

      Edited by: prashanthk on Oct 11, 2010 12:08 PM

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.