Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

general abap

Former Member
0 Likes
401

hai abapers,

one internal table contains some records.

the table contains gl account num, lifnr, kunnr, debit,credit values.

gl account num has two types.

one is normal account and second is advance account.

loop the internal table normal account kunnr, lifnr matches the advance account , at that time modify the internal table.

please exolain.

hai abapers,

one internal table contains some records.

the table contains gl account num, lifnr, kunnr, debit,credit values.

gl account num has two types.

one is normal account and second is advance account.

loop the internal table normal account kunnr, lifnr matches the advance account , at that time modify the internal table.

please exolain.

2 REPLIES 2
Read only

Former Member
0 Likes
381

Hello


data: begin of itab1 occurs 0,

* declare fields

end if itab1.
data: itab2 lile itab1 occurs 0 with header line.

* fill table here

itab2[] = itab1[].
delete itab1 where account = advance account.
delete itab2 where account = normal account.
loop at itab1.
  read table itab2 with key lifnr = itab1-lifnr kunnr = itab1-kunnr.
  if sy-subrc = 0.
* do anything here in itab2
    modify itab2 index sy-tabix.    
  endif.
endloop.
append lines of itab2 to itab1.
sort itab1.

Read only

Former Member
0 Likes
381

thanks