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

Getting **************** values in Internal Table fields

Former Member
0 Likes
523

Hi

i have written code, my problem is After appending wa_mseg to it_col1 all the values in the fields are displaying as ************************ only Matnr and Mseg values are displaying correctly...

this problem is coming before diplay only...

clear wa_mseg.
sort it_mseg by matnr.
 loop at IT_MSEG into WA_MSEG.
   at end of matnr.
     sum.
      append WA_MSEG to IT_COL1.
      clear wa_mseg.
  ENDAT.
   endloop.

Please help me to solve this problem

Regards

Smitha

5 REPLIES 5
Read only

antony_paul2
Active Participant
0 Likes
498

hi,

All non-char fields to the RIGHT of MATNR in the work area WA_MSEG will have **************** within


 AT END OF matnr.

ENDAT.

Read only

agnihotro_sinha2
Active Contributor
0 Likes
498

Pass WA value to a TEMP_WA beforw AT END OF statement


loop at IT_MSEG into WA_MSEG.
  wa_temp = wa_msg.
   at end of matnr.
     sum.
      append WA_MSEG to IT_COL1.
      clear wa_mseg.
  ENDAT.
* Use WA_TEMP for your further operations. Also shud clear WA_TEMP everytime
   endloop.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
498

Check the structure for it_col1.It should be same as wa_mseg or use move corresponding.

Read only

sarang_gujrati2
Explorer
0 Likes
498

Hi,

In control break statements value of your waor area becomes **************

so before using AT statment copy your work area into temp workarea of same type.

Regards,

Sarang

Read only

Former Member
0 Likes
498
                                    • is coming becuase you have used the at end of matnr statement , it will keep only matnr open and rest all values will come in ********* form.

To sum the values of same matnr, you can use one variable l_matnr = mseg-matnr in the loop and check in loop if

l_matnr = mseg-matnr , then keep on adding the values , if the matnr gets changed the change the value of l_matnr and in next time in loop it will again check the matnr , if the value is same then add else change the l_matnr.

It will solve your problem.