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.
Chidanand Chauhan replied
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.