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

using DATAPAK vs. DATAPACKAGE

Hi All,

I need to write a start routine to skip some records. I search the forum and in almost all the threads about start routine, internal table DATA_PACKAGE is mentioned. However in my start routine I have to use DATAPAK table (have BW 3.1) So what is the difference bet. DATA_PACKAGE and DATAPAK (Is the latter just older version of DATA_PACKAGE without header line??)

And the second question is how can I delete some records using LOOP AT DATAPAK ..... ENDLOOP. Do I have to create internal table and then to replace DATAPAK with this table???

Thanks a lot

Pavel

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 03:15 PM

    Hi Pavel,

    you find DATAPAK in transfer rules, DATA_PACKAGE is in Update Rules.

    Ciao.

    Riccardo

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      thanks for answers. The problem was, that I needed to process every single record and then decide if to delete them or not. So I needed to use Loop at structure and didn't know how. Finally I used something like this...

      LOOP AT DATAPAK INTO ls_datapak.

      CASE ....(ls_datapak)

      WHEN ...

      DELETE DATAPAK.

      ENDCASE.

      ENDLOOP.

      Hi,

      thanks for answers. The problem was, that I needed to process every single record and then decide if to delete them or not. So I needed to use Loop at structure and didn't know how. Finally I used something like this...

      LOOP AT DATAPAK INTO ls_datapak.

      CASE ....(ls_datapak)

      WHEN ...

      DELETE DATAPAK.

      ENDCASE.

      ENDLOOP.