2007 May 15 10:04 AM
hi gurus,
i have display a list of cutomerrs with their bills no and amount.but my problem is
for every new customer i have to display his bill no and amount in new .how to code for this .pls help me its urgent.
thanks and regards.
2007 May 15 10:17 AM
Hi
You want this from SD point of View or FI point of view?
IF it is Sd point of view use the VBRK and VBRP tables
from FI point of view use BSID and BSAD tables.
Fetch the data into ITAB with Customer, Billing doc and accounting doc.
sort itab by kunnr vbeln (or belnr).
Loop at Itab.
at new kunnr.
write the header data in the header window. and
the bill details in the MAIn window.
endat.
end loop.
You can write the Program lines(code) in Smartforms itself.
Reward points if useful
Regards
Anji
2007 May 15 10:17 AM
Hi
You want this from SD point of View or FI point of view?
IF it is Sd point of view use the VBRK and VBRP tables
from FI point of view use BSID and BSAD tables.
Fetch the data into ITAB with Customer, Billing doc and accounting doc.
sort itab by kunnr vbeln (or belnr).
Loop at Itab.
at new kunnr.
write the header data in the header window. and
the bill details in the MAIn window.
endat.
end loop.
You can write the Program lines(code) in Smartforms itself.
Reward points if useful
Regards
Anji
2009 Jun 22 7:18 AM