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 area

Former Member
0 Likes
1,427

Hi all,

i'm using tableitab type lvc_t_fact . pls tell me how to create work area for this table type.Now it's maintain a lot of data in it;s body.

regards,

Anuj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,394

Hi,

for work area write,

data: wa like line of itab.

as the itab has the table type lvc_t_fact , wor area take the line type of itab ,i.e the structure of itab.

Regards,

Sujit

13 REPLIES 13
Read only

Former Member
0 Likes
1,395

Hi,

for work area write,

data: wa like line of itab.

as the itab has the table type lvc_t_fact , wor area take the line type of itab ,i.e the structure of itab.

Regards,

Sujit

Read only

former_member195383
Active Contributor
0 Likes
1,394

data : wa_itab type lvc_t_fact .

This is the required work area.

Read only

Former Member
0 Likes
1,394

Hi,

DATA: wa_work_area TYPE lvc_t_fact.

Gothrough the following link,

http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f77a9d111d1a5690000e82deaaa/frameset.htm

Regards,

Harish

Read only

Former Member
0 Likes
1,394

Hi,

You can declare work area as below

DATA: wa_fact LIKE LINE OF lvc_t_fact.

I guess this would help.

Regards,

Farheen.

Read only

Former Member
0 Likes
1,394
data: wa_tableitab like line of tableitab.

cheers

Read only

Former Member
0 Likes
1,394

If you created an internal table from type lvc_t_fact, you probably did that coding something like

DATA table_name TYPE STANDARD TABLE OF lvc_t_fact.

If all you need is to create a work area - a one record memory area with the same structure as the table, all you have to do is to declare a variable of type lvc_t_fact, as follows:

DATA var_name TYPE lvc_t_fact.

Now you can assign the values you need to update the table with - to this variable, and, in a loop, update the rows you need.

Hope it helps.

Avraham

Read only

Former Member
0 Likes
1,394

hi,

This is a internal table of Field Catolog.

You have to make the work area of class lvc_s_fcat.

So that you can enter the data in the field Catalog table.

Regards

Sumit Agarwal

Read only

former_member182354
Contributor
0 Likes
1,394

wa_tableitab like line of lvc_t_fact.

This is the declaration for work area.

Raghav

Read only

Former Member
0 Likes
1,394

Hi Anuj,

here is the example for ur query...

data fcat type lvc_t_fcat.

data wa_fcat like line of fcat.

here wa_fcat is the work area for fcat.

i hope this will help u

Thanks & Regards

Ashu Singh.

Read only

Former Member
0 Likes
1,394

hi,

Wa like line of itab.

regards

Jagadeesh

Read only

Former Member
0 Likes
1,394

Hi Anuj,

You can create a workarea by any one given options.

1. DATA: W_T_FACT LIKE LVC_T_FACT

2. DATA: W_T_FACT LIKE LINE OF TABLEITAB

3. DATA: W_T_FACT TYPE LVC_T_FACT

Hopefully this will resolve ur problem...

Now plz give a point....

With Regards,

Debopriyo

Read only

Former Member
0 Likes
1,394

Hi

You can declare the work area by useing the following statement

DATA: wa_fact LIKE LINE OF lvc_t_fact.

Jatender Narang

Read only

Former Member
0 Likes
1,394

thanx