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

Insert Day process into bex analyzer query.

Hi all,

Actually we need to create a query that show into a column the day when the query is execute, the query result will be use to create vía rscrm_bapi a flat file and the date have to be shown into a column. The problem as we see is that any of infocubes have a 0CALDAY as time characteristics just 0CALMONTH AND 0CALWEEK, I made some test using formula variable but it's dosen´t work, could you can give me any suggestion?

I appreciate all your help.

Egan.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2006 at 06:11 PM

    And Include the following Code:

    say your variable name is ZSYSDATE then

    WHEN 'ZSYSDATE' .

    IF i_step = 1.

    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,

    SB

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2006 at 06:04 PM

    Hi,

    Create an Formula variablw eith Customer Exit. And that variable is populated with System Date.

    Use that formula in a KF to pupulate the data.

    Regards,

    SB

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2006 at 05:50 PM

    I guess you can use a virtual keyfigure in this case and populate it by setting it as system date in the coding. Hope this helps. For more information abt VKF's please search in this forums and you will find a lot. Please let me know if you have further questions.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Joseph,

      it's Worked!!!, Thanks, just I have o made a little change into code sample:

      WHEN 'ZSYSDATE' .

      IF i_step = 1. " Here change the I_step to 2.

      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,

      Eg@n.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 04:10 PM

    Sorry late, but the question is closed now.

    Regards.

    Egan

    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.