Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

table entries

HI experts

I I have set of business partner numbers available in one internal table.

I want to get the list of business partner numbers which are in this table but not in another standard table.

How do I this.

Want to list the business partners in the internal table but not in the EEIN table.

Thanks

Shree

Tags:
replied

Hi Swarna,

Hope I understood your problem.

You are saying that you have one internal table which contains business partner number/

And another table also contains the business parnter number but want to remove from the the internal table 2. If this is the problem the below is the sample logic.

DATA: V_TABIX TYPE SY-TABIX.
LOOP AT ITAB2.
  V_TABIX = SY-TABIX.
  READ TABLE ITAB1 WITH KEY BUSINESS_PARTNER = ITAB2-BUSINESS_PARTNER.
  IF SY-SUBRC = 0. 
    DELETE ITAB2 INDEX V_TABIX.
  ENDIF.
ENDLOOP.

Thanks,

Chidanand

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question