‎2008 Oct 25 1:55 PM
please give me detailed explanation regarding WORK AREA in internal tables, hoe to define the work area.
‎2008 Oct 25 5:17 PM
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.
‎2008 Oct 25 3:48 PM
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
‎2008 Oct 25 6:36 PM
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.
‎2008 Oct 25 5:17 PM
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.
‎2008 Oct 25 6:32 PM
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