Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how proceed with the logic

Hi All,

the selection screen is with customer(select-options).

how to proceed the logic for:

for the same customer with different dates in a month has to add the currency.

i.e: Customers: date currency

D102345 10.10.2007 2000

D102345 12.10.2007 3000

D203023 08.11.2007 500

D203023 20.11.2007 7000

Requirement is: customer month and year currency

D102345 10.2007 5000

D203023 11.2007 7500

thanks,

srii..

Tags:
replied

hi,

if ur itab has cust, date and currenncy...

have the customer no. in a another table itab_cust....

loop at itab_cust...

loop at itab where cust. no = itab_cust-cust_no.

keep adding the currency to a variable w_curr..

on change of date+(use substring to get the month)..

assign the added currency to another variable w_curr_tot...

clear w_curr.

endon..

refine this logic...

regards,

Madan....

Edited by: Madan Kochana on Oct 13, 2008 7:31 AM

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question