This is what I would do:
- Define ITAB1 just like how Excel is defined
- Define ITAB2 just like how Excel is defined
- Define two work areas for ITAB1 (WA1 and WA2)
- Define work area for credit profile (WA_CP)
- Transfer Excel data into ITAB1
- Sort ITAB1
- Delete first two rows
- Copy ITAB1 contents to ITAB2
- Delete ITAB1 where COLUMN = 2
- Delete ITAB2 where COLUMN = 1
- Loop at ITAB1 into WA1
- Copy VALUE into WA_CP-partner
- READ ITAB2 into WA2 (use ROW for searching and BINARY SEARCH)
- Copy VALUE into WA_CP-partner_role
- Append WA_CP to it_credit_prof
- Endloop
Good luck.