How can I know the number of records in INTBSEG for each record of int_maintable before running the loop for that where condition of INTBSEG.
Please see below:
LOOP AT int_maintable.
Loop at INTBSEG where bukrs = int_maintable-bukrs
AND belnr = int_maintable-belnr
AND gjahr = int_maintable-gjahr.
( I want to know at the point of sy-tabix of INTBSEG = 1
how many records exits in INTBSEG ...
for this where bukrs = int_maintable-bukrs
AND belnr = int_maintable-belnr
AND gjahr = int_maintable-gjahr.)
I want to know how many records exits in INTBSEG , for the first record itself of INTBSEG)
Endloop.
ENDLOOP.