Application Development 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: 

Control Break stmt in USER EXITS

Former Member
0 Kudos

Hi all,

I am using 'AT LAST' & 'AT END OF' stmt in USER EXIT (MILO0F00_USER_EXIT_001). But I am getting the values as '*************' for the fields. What is the problem?

Thanks in advance.

Vijay.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try this code below.

Loop at itab into w_area1

w_area = w_area1.

At....

Dont use w_area1.

Use w_area.

Endat.

Endloop.

Cheers,

Bujji

4 REPLIES 4

Former Member
0 Kudos

Hi Vijay,

Wuse a separate work area to pass the data first before calling the AT statements.

loop at itab.

move itab to wa_tab.

at new field.

endat.

endloop.

Cheers

VJ

Message was edited by: Vijayendra Rao

Former Member
0 Kudos

Hi,

Assign the values to separate workarea before 'AT' atatement.

It converts the values to '***' if it comes beyween 'AT LAST' & 'AT END OF' stmt.

Rgds,

Praakshsingh

Former Member
0 Kudos

Hi,

Try this code below.

Loop at itab into w_area1

w_area = w_area1.

At....

Dont use w_area1.

Use w_area.

Endat.

Endloop.

Cheers,

Bujji

Former Member
0 Kudos

Hi,

I can visualise your problem. when you give "At End of" statement all the fields followed by the field in

"At End OF" will be filled with "*".I'm giving you a small example to solve the problem :-

loop at itab.

move-corresponding itab to w_itab.

at end of matnr.

write:/1 itab-matnr,20 w_itab-maktx.

endat.

endloop.

Note:- If you give "SUM" command after "At End of" then all the numeric, currency values will get summed up but again the rest of the fields will still be filled with "*".

Hope this will be useful to you.

Regards

Ramakrishnan.G