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

Start Routine

Hello Experts,

I have to write a start routine to load records belonging to a Exg Code 'AC' and Ac No '502,503'

delete DATA_PACKAGE where /BIC/ZEXGCD NE 'AC' and

/BIC/ZGACCT NE '502' and

/BIC/ZGACCT NE '503'.

For some reason this code is not working correctly. It is also getting records some extra records.

Instead if I use:

delete DATA_PACKAGE where /BIC/ZEXGCD NE 'AC'.

It is retreving only 0 records.

Please suggest if I am missing some thing here. Is there any other way of writing the code.

Any suggestion highly appreciated.

Thanks,

Sweatha

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 Feb 10, 2005 at 09:28 PM

    Hi Sweatha,

    Can't you just restrict your infoPackage to load records with ?

    /BIC/ZEXGCD EQ 'AC'

    /BIC/ZGACCT EQ '502'

    /BIC/ZGACCT EQ '503'

    To fix your code I would try the following

    data:

    lt_data_package like data_package.

    loop at data_package where /BIC/ZEXGCD EQ 'AC' and ( /BIC/ZGACCT EQ '502' or /BIC/ZGACCT EQ '503 ).

    append data_package to lt_data_package.

    endloop.

    refresh data_package[].

    data_package[] = lt_data_package.

    You will have to double check my syntax, but I am pretty sure that will work if the restriction within the infoPackage is not an option.

    Hope this helps,

    Cheers,

    Scott

    Message was edited by: Scott Cairncross

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2005 at 08:18 PM

    Hi Sweatha,

    could you give me all the rest of your code ?

    LOOP AT DATA_PACKAGE....

    Bye,

    Roberto

    Add a comment
    10|10000 characters needed characters exceeded

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

    Try this

    delete DATA_PACKAGE where /BIC/ZEXGCD NE 'AC' and

    not ( /BIC/ZGACCT EQ '502' or

    /BIC/ZGACCT EQ '503' ).

    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.