Skip to Content


DATA: Begin of before_image occurs 10.
include structure prelp.
DATA: end of before_image.
FORM update TABLES old_tab.
  MOVE old_tab to before_image.

The above code worked in the old non-unicode environment, however of course now in unicode
doesn't work. How do I correct this when I don't know what structure will be passed to my
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Mar 17 at 01:00 PM

    With Unicode, there's a stricter check of operations between structured tables, and between structures. As you can see yourself, PRELP has not the same structure as PA0001, and not the same structure as PA0015. Eventually it fails only on PA0015 because it contains numeric fields which are not authorized to be moved to character fields.

    The forum has already answered such question, so I let you search. Hint: FILL_CONTAINER_C.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 17 at 10:37 AM

    In UC environments it is not allowed to move one Structure to another when they hav different lengths.

    In your case: I suspect your table Definition is the problem. Instead of including a Single Structure declared the Internal table directly with this line type. Please also ensure that the line type of old_tab is also prelp.

      before_Image  type Standard table of prelp.
    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.