Skip to Content

Error in BW Start Routine

Hi experts,

I don't know if some of you have already worked in BW.

I am developping a code in my start routine, and I am getting the follwing error:

The weird part, i don't have any field named Data.I am using an And statement in my code as following:

When I disable this piece of code, i get no syntax errors anymore.

Can someone tell me what's wrong and how to bypass the issue?

Thanks.

Amine

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 31, 2013 at 09:37 AM

    Hi,

    write the code as

    loop at source_package into wa_source_package where gl_account = wa_tablesource-gl_account.

    if wa_source_package-profit_ctr in r_zpcfrom.

    write your code.

    endif.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Vivek,

      Here my declaration part:

      DATA : r_zfuncfrom TYPE RANGE OF /bic/pzsplit-/bic/zfuncfrom,

      r_zpcfrom TYPE RANGE OF /bic/pzsplit-/bic/zpcfrom,

      r_zfuncfrom_line LIKE LINE OF r_zfuncfrom,

      r_zpcfrom_line LIKE LINE OF r_zpcfrom.

      r_zfuncfrom_line-sign = 'I'.

      r_zfuncfrom_line-option = 'BT'.

      r_zpcfrom_line-sign = 'I'.

      r_zpcfrom_line-option = 'BT'.

      Amine

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2013 at 09:12 AM

    Hello Amine,

    try '=' place of in.its may work.

    Thanks,

    Sam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 31, 2013 at 02:35 PM

    Hi again,

    The follwoing logic worked fine, but i am afraid about performance, what do you think?

    LOOP AT source_package INTO wa_source_package.

    IF wa_source_package-gl_account = wa_tablesource-/bic/zsplit

    AND wa_source_package-profit_ctr IN r_zpcfrom.

    *Treatments

    ENDIF.

    ENDLOOP.


    Anyway to enhance it?

    Thanks.

    Amine

    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.