Skip to Content

What does this ABAP code do?

Hi,

I came across this ABAP code and I'd like to know what the asterisk (*) before the variable names does.

*mkpf = mkpf.

*mseg-lgort = mseg-lgort.

*ladr = ladr.

save_mkpf = *mkpf-usnam.

save_mblnr = *mkpf-mblnr.

save_budat = *mkpf-budat.

save_cpudt = *mkpf-cpudt.

save_ematn = *mseg-ematn.

save_lgort = *mseg-lgort.

save_ladr = *ladr.

*t001w = t001w.

save_werks = *t001w-werks.

save_name1 = *t001w-name1.

*ekko = ekko.

*am07m = am07m.

save_lifnr = *ekko-lifnr.

save_ebeln = *ekko-ebeln.

save_ekgrp = *ekko-ekgrp.

save_linam = *am07m-name1.

save_lina2 = *am07m-name2.

*t024 = t024.

save_eknam = *t024-eknam.

save_ektel = *t024-ektel.

*mkpf-usnam = old_mkpf.

*mkpf-mblnr = old_mblnr.

*mkpf-cpudt = old_cpudt.

*mkpf-budat = old_budat.

*mseg-ematn = old_ematn.

*mseg-lgort = old_lgort.

*ladr = old_ladr.

*t001w-werks = old_werks.

*t001w-name1 = old_name1.

*t024-eknam = old_eknam.

*t024-ektel = old_ektel.

*ekko-lifnr = old_lifnr.

*ekko-ebeln = old_ebeln.

*ekko-ekgrp = old_ekgrp.

*am07m-name1 = old_linam.

*am07m-name2 = old_lina2.

Thx.

Andy

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jul 03, 2008 at 12:52 PM

    It is a temporary buffering variable.

    Regards,

    ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 03, 2008 at 12:56 PM

    Hi,

    It is nothing but the Work Area. Check the below sample code.

    report abcd.

    tables: *vbak, vbak.

    select single * from vbak into *vbak where vbeln <> space.

    write *vbak-vbeln.

    Regards,

    Satya

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 03, 2008 at 12:56 PM

    The asterisk doesn't "do" anything. In older abap, it was used like:

    TABLES: mara, *mara.

    You then had two independent work areas with the structure of mara.

    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.