Skip to Content
avatar image
Former Member

Help with logic on internal table

Hi SDNers,

I have 1st internal table call table it_tab with 20 fields. This table stores the data which will be passed to BDC.

I have the 2nd internal table call table it_header. At run-time this table will store the header fields to be passed to BDC.

The requirement is, when calling BDC I need to pass data from it_tab by group, each group must have the same data for the header fields. We only know which field is header field at run-time.

Because ABAP does not support delete internal table with dynamic WHERE clause so my current solution does not work.

Please let me know your idea.

Thanks,

Khanh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 30, 2010 at 09:37 AM

    you may have to run some nested loops & try to find solution using Field Symbol. This is discussed many time in forum but unfortunately no direct solution.

    dynamic-where-clause-for-loop-at-internal-table

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 31, 2010 at 03:50 PM

    maybe you could have one it_tab_aux an beofre call BDC, do a select from the it_tab filtering by header.

    then pass this it_tab_aux to bdc.

    hope this help you.

    regards!

    Add comment
    10|10000 characters needed characters exceeded