Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Control break-statement: SUM

Former Member
0 Likes
1,241

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

4 REPLIES 4
Read only

Former Member
0 Likes
723

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

Read only

Former Member
0 Likes
723

Hi,

Go throught his link. This is same for all control break statements.

Hope this helps you

Raj

Read only

Former Member
0 Likes
723

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.

Read only

Former Member
0 Likes
723

Thanks,

Kal Chand