Skip to Content

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

customer exit code

Hi Friends,

I have one customer exit varible 445 prior QTD (Prior Week).

Below is the logic.

if curr_445period >= 4.

curr_445period = curr_445period - 3.

endif.

concatenate curr_445year curr_445period into curr_445yrperiod.

Come Q1 09, the 445 prior QTD (Prior Week) variable will not work, as the logic does not allow Q4 to Q1.

the logic does not allow Q4 to Q1.

Please help me out. I know little bit ABAP.

Thanks

Former Member
Former Member replied

Hi,

Try this

..........................................

data: lastyear(4) type n.

if curr_445period GE 4.

curr_445period = curr_445period - 3.

concatenate curr_445year curr_445period into curr_445yrperiod.

else.

lastyear = curr_445year - 1.

curr_445period = curr_445period + 9.

concatenate lastyear curr_445period into curr_445yrperiod.

endif.

........................................

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question