Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Datapackage data

Former Member
0 Kudos

Hi all,

Anyone can help me check what's wrong with the following code? I am trying to delete records from ODS datapackage. Those records are not in an internal table.

*LOOP AT DATA_PACKAGE ASSIGNING <fs>.

*READ TABLE INTERNALTABLE ASSIGNING <fsit>.

*IF <fs>-/BIC/id = <fsit>-id AND

  • <fs>-/BIC/password = <fsit>-password.

*CONTINUE.

*ELSE.

*DELETE DATA_PACKAGE.

*ENDIF.

*ENDLOOP.

Thanks a lot. Points will be rewarded later.

Linda

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Can you tell us what specific problem you have? Are you getting a dump, error message, syntax error or something else.

At first view, after you do the read of internaltable, your position at data_package might be lost.

Rob

4 REPLIES 4

Former Member
0 Kudos

Hi,

I guess you can delete directly from the data_package internal table.

I would advice, put it in the BW forum area...

Thanks

Sanju

Former Member
0 Kudos

Can you tell us what specific problem you have? Are you getting a dump, error message, syntax error or something else.

At first view, after you do the read of internaltable, your position at data_package might be lost.

Rob

0 Kudos

I got an error message when I was debugging. It says field symbol has not yet been assigned. ?

Thanks!

Former Member
0 Kudos

Check the sy-subrc after this statement

<i>*READ TABLE INTERNALTABLE ASSIGNING <fsit>.</i>

I don't see any INDEX, or WITH KEY additions with it.