Skip to Content
0
Former Member
Jun 26, 2009 at 08:58 AM

Problem coming while assigning values to a particular field.

19 Views

Hi,

I was taking MEINS data from the table ESLL to the output.

But as per user request some logic was to be added befor the output comes.

Earlier i was looping in the internal table of ESLL n giving it to the o/p final table, now i changed it as follows.

  • wa_final-meins = it_esll2-meins. -R002

***********Start of + R002 *********

IF it_esll2-meins = 'LE'.

wa_final-meins = 'PU'.

ELSEIF it_esll2-meins = 'TAG' .

wa_final-meins = 'DAY'.

ELSEIF it_esll2-meins = '10'.

wa_final-meins = 'D'.

ELSEIF it_esll2-meins = 'STD'.

wa_final-meins = 'HR'.

ELSEIF it_esll2-meins = 'HAR'. 'PU' 'DAY'

wa_final-meins = 'HA'.

ELSE.

wa_final-meins = it_esll2-meins.

ENDIF.

***********End of + R002 *********

Now the o/p comes ok,but while they trying to download to excel those o/ps which is assinged the values like 'PU' ' DAY ' ' D' etc its coming as star.

So i anticipate that its becoz i a trying to assign character to the field MEINS (wa_final-meins = it_esll2-meins.) which is of type ' UNIT '.

So what to do to solve this.

Pleae reply with your valuble suggestions.

Regards,

Nitin