Application Development 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: 

abap questions

Former Member
0 Kudos

1 what is a work area and y it is used .

2 how to correct 500 entries out of 1000 entries with session and cal tramsaction method .what we will do about the errors and where we have to go and deleted them .

3 ref. fields & ref tables for currency & quantity .

4 . how to print 100 lines in the same window of header .

ans somebody plz tell me how to reward the points in this site .

thanking you

3 REPLIES 3

hymavathi_oruganti
Active Contributor
0 Kudos

1. WOrk area is a structure which holds the latest(last record)data. It is compulsory used with internal tables

with out header line because internal table concept is desgned like that either work area should be there or internal table should be with header line.

2. In call transaction method, while updating data itself, check sy-subrc, if sy-subrc <> 0 add the rcord to another internal table. In this way we can collect errorneous records into another internal table. once u know the records, we can easily delete using delete statement.

3. CURR->CUKY QUAN->UNIT

4.UsinG PROTECT ...........END PROTECT

AT THE BOTTOM, U FIND 3 STARS, CLICK ON ONE ACCORDING TO UR SATISFACTION.

Former Member
0 Kudos

Hi,

1.While adding or retrieving records to / from internal table we have to keep the record temporarily.

The area where this record is kept is called as work area for the internal table. The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.

Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.

e.g.

data: begin of itab occurs 10,

ab type c,

cd type i,

end of itab. " this table will have the header line.

data: wa_itab like itab. " explicit work area for itab

data: itab1 like itab occurs 10. " table is without header line.

The header line is a field string with the same structure as a row of the body, but it can only hold a single row.

It is a buffer used to hold each record before it is added or each record as it is retrieved from the internal table. It is the default work area for the internal table.

3.Refer this link:

http://help.sap.com/saphelp_nw04/helpdata/en/82/678de451274742871a968397d9ad19/content.htm

Regards,

Gayathri

Message was edited by: Gayathri Hariharan

Former Member
0 Kudos

Hi,

1) workarea :- is a structure . whenever u declare internal table with header line . a workarea is attach to the internal table . u use internal_tablename-fieldname to acess the value .when read or loop is done with table name result is stored in the haeder.

when without headerline internal table is declared u have to use stucture( workarea ) store the value when u perform loop or read.

syntax:

read table intab into <structure>.

4) at top of the report.

along with report <reportname>. statement.

write statement like this

report <reportname> line-size 100.

report <reportname>........by default available.

if u what reward points click on radio button to the left of the answers

Reagards

Manoj