Skip to Content
author's profile photo Former Member
Former Member

What does the ABAP operator ':=' actually do?

Hi, experts!

Can anyone please help me identify what the operator ':=' does? I've recently come across this in an expression; variable1 := variable2. Now I know that in typecasting, '?=' is used but what about this one? Thanks in advance for your help.

regards,

brent

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 Sep 26, 2011 at 05:57 AM

    Hi Brent,

    It is the same with the " = " sign and used for assigning value.

    Kr,

    Marvin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2011 at 06:16 AM

    Hi Brant,

    Yes, as Marvin commented it is same as the '=' operator. But when the chain operator is used before '=' , it gives the flexibility to assign more than one values to the data object(Not sure though in which case it is used).

    For Eg:

    variable3 := variable1,

    = variable2.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 26, 2011 at 08:45 AM

    Hi,

    Could you please share the line of code where its used 😊

    Kesav

    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.