Application Development and Automation 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: 
Read only

Datapackage data

Former Member
0 Likes
596

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
Read only

Former Member
0 Likes
565

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
Read only

Former Member
0 Likes
565

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

Read only

Former Member
0 Likes
566

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

Read only

0 Likes
565

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

Thanks!

Read only

Former Member
0 Likes
565

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.