Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

work areas

Former Member
0 Likes
713

please give me detailed explanation regarding WORK AREA in internal tables, hoe to define the work area.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
690

Hi Raju,

As you can imagine, you are not the first person to use work areas. For this reason, you can conclude that there will already be a lot of information here on SDN, on help.sap.com and google in general about it.

All you need to do is a little search.

Very usefull is the F1 key (on your keyboard) for the ABAP keyword documentation - try type "WA" into the ABAP editor, place your cursor on it an hit F1, that should be your first choice.

Again, please search before asking questions. In most cases we delete such questions...

Cheers,

Julius

ps: The forum rules are at the top of each of the forum pages.

4 REPLIES 4
Read only

Former Member
0 Likes
690

Hi Dhanjaya,

WorkArea is just a structure which holds only one record of the respective structure.

WorkArea is used when we are accessing or modifying the internal table. in that case first of all the Internal table data comes up on the workarea and then we display it in the output.


TYPES: begin of ty_mara,
                matnr type matnr,
             end of ty_mara.
*Declaration of the internal table.
DATA: itab type standard table of ty_mara.
* Declartion of the work area.
DATA: wa_itab type ty_mara.

 loop at itab into wa_itab,
         write:/ wa_itab-matnr.
endloop.

Above example WA_ITAB is the workarea which is used to display the data. we are fetching the internal table data into the worarea i.e WA_ITAB and then we display it in the output.

Thanks,

Chidanand

Read only

0 Likes
690

Hai

Types: begin of ty_mara,

matnr type matnr,

meins type meins,

Ernam type ernam,

ersda type ersda,

end of ty_mara

***********work area declaration***********

data: wa_mara type ty_mara, -


> work area

data: it_mara like table of wa_mara----


> body

select matnr meins ersda from mara into table it_mara.

loop at it_mara into wa_mara.

write:/ wa_mara-matnr,

wa_mara-meins,

wa_mara-ernam,

wa_mara-ersda,

end loop.

Read only

Former Member
0 Likes
691

Hi Raju,

As you can imagine, you are not the first person to use work areas. For this reason, you can conclude that there will already be a lot of information here on SDN, on help.sap.com and google in general about it.

All you need to do is a little search.

Very usefull is the F1 key (on your keyboard) for the ABAP keyword documentation - try type "WA" into the ABAP editor, place your cursor on it an hit F1, that should be your first choice.

Again, please search before asking questions. In most cases we delete such questions...

Cheers,

Julius

ps: The forum rules are at the top of each of the forum pages.

Read only

Former Member
0 Likes
690

HI Dhana,

Hearty Welcome to SDN.

As this is your first post i dont want to discourage you from using this valuable site. First let me tell you one thing spend some time with SDN site completely go through each link and findout in which way it can help you. Please try to avoid quiz type of question or interview type of questions.

My suggestions is click on forums and in the middle of the screen you can see one search box put your query with some hint words and click go believe me you will get lots of results with in a second.

Hope you follow from now.

And follow JU suggestions you will get your answers.

Happy Posting

Cheers!!

Venkat