‎2008 Dec 15 1:42 PM
Hi All,
I am woking with Control break-statmens, SUM.
LOOP AT IT_SELECT.
AT NEW PSPNR.
SUM.
WRITE:/ IT_SELECT-WERKS,
IT_SELECT-PSPHI,
IT_SELECT-PSPNR,
IT_SELECT-VERNA,
IT_SELECT-KZWI2,
IT_SELECT-DMBTR.
ENDAT.
ENDLOOP.
WERKS from EKPO type Char & VERNA from PRPS type Char are displaying as ***************.
How can I get the actual values instead of ********** for the above Char type fields?
Thanks in advance,
Kal Chand
‎2008 Dec 15 1:46 PM
create your internal table the last fileds is PSPNR
like
WERKS,
PSPHI,
VERNA,
KZWI2,
DMBTR.
PSPNR,
if you use AT NEW PSPNR.----> this filed is last field in your internal table
‎2008 Dec 15 1:49 PM
‎2008 Dec 15 1:54 PM
When you SUM all non numeric fields after the AT NEW field will show ******.. To have other fields you should copy them in a work area before SUM.
Do not change the position of PSPNR field as it will change the AT NEW logic.
AT NEW will check for all key fields before the PSPNR field and if any value changes the code will enter AT NEW command.
‎2008 Dec 24 8:56 AM