Skip to Content

Field symbol problem

Hi Experts,

Am getting a dump in my code where the field symbol is used. It says "A new value is to be assigned to the field "<FS>", although this field is

entirely or partly protected against changes.".

And the line where its pointing is :

<fs> = lv_rental_amount * ps_item-zzinterim_period / 30.

But am not understanding what exactly is the problem.

Could you pls help me out with this.

Thanks in advance,

Cheers'

Surekha.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 05:47 AM

    lv_period = num.

    write lv_period to lv_fname no-zero.

    shift lv_fname left deleting leading space.

    concatenate 'ZLS' lv_fname into lv_fname.

    assign component lv_fname of structure ps_item to <fs>.

    <fs> = lv_rental_amount * ps_item-zzinterim_period / 30.

    <b>if <fs> is unassigned.

    ps_item-interim_amount = 0. (or some value)

    else.

    ps_item-interim_amount = ps_item-interim_amount + <fs>.

    endif.</b>

    try changes in bold

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 05:34 AM

    check to which field u have assigned the FS to ??

    might be that field unchangeable.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      This is some part of my code where it dumps:

      lv_period = num.

      write lv_period to lv_fname no-zero.

      shift lv_fname left deleting leading space.

      concatenate 'ZLS' lv_fname into lv_fname.

      assign component lv_fname of structure ps_item to <fs>.

      <fs> = lv_rental_amount * ps_item-zzinterim_period / 30.

      ps_item-interim_amount = ps_item-interim_amount + <fs>.

      Thanks,

      Surekha

  • Posted on Nov 21, 2007 at 05:58 AM

    Hi Ram,

    Thanks a lot.

    Surekha.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.