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: 

logical unit of work..

Former Member
0 Kudos

Hi,

Can anybody give me details regarding LUW with example.

what is step loop? how iz it difference from table control

Thanks in advance,,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

When external data is changed by application programs, it must be ensured that the data is consistent after changes have been made. This is particularly the case for the processing of data in the database. The time span during which a consistent data status is transferred to another consistent status is known as a LUW (Logical Unit of Work). If an error occurs during a LUW, it is possible to reset all changes made up to this point and regenerate the data in its original consistent status (rollback). When a new consistent status has been reached, this new status can be set and a new LUW can be opened (Commit).

In an ABAP system, there are two type of LUWs:

Database LUWs that are realized by the database system

SAP LUWs, that are realized using special ABAP proramming techniques

Accordingly, there are two lock types that are of significance:

Database locks that are set by the system

SAP locks that are set using special ABAP proramming techniques

Finally, the authorizations of a user are important for data consistency for accessing data whose check has an ABAP statement.

For Step Loop.

http://help.sap.com/saphelp_nw04/helpdata/en/d1/801c13454211d189710000e8322d00/frameset.htm

Warm Regards

R Adarsh

4 REPLIES 4

Former Member
0 Kudos

Hi,

LUW

http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm

Step loops

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbacac35c111d1829f0000e829fbfe/content.htm

This is the diff betn Table controls and step loops .

In Table Controls

Data is displayed in the form of table.

Table control gives user the feeling of an actual table.

You can scroll through the table vertically as well as horizontally.

You can select rows and columns.

You can resize the with of columns.

You can have separator lines between rows and columns.

Automatic resizing of the table when the user resizes the window.

You can update information in the table control and it can be updated inthe database table by writing code for it.

In Step Loops ,

Step loops are type of screen tables.

Step loops are nothing but repeated blocks of fields in a screen.

Each block contains one or more fields.

Step loops don't give you feeling of actual table.

You can scroll vertically but not horizontally.

Best regards,

raam

Former Member
0 Kudos

Hi,

When external data is changed by application programs, it must be ensured that the data is consistent after changes have been made. This is particularly the case for the processing of data in the database. The time span during which a consistent data status is transferred to another consistent status is known as a LUW (Logical Unit of Work). If an error occurs during a LUW, it is possible to reset all changes made up to this point and regenerate the data in its original consistent status (rollback). When a new consistent status has been reached, this new status can be set and a new LUW can be opened (Commit).

In an ABAP system, there are two type of LUWs:

Database LUWs that are realized by the database system

SAP LUWs, that are realized using special ABAP proramming techniques

Accordingly, there are two lock types that are of significance:

Database locks that are set by the system

SAP locks that are set using special ABAP proramming techniques

Finally, the authorizations of a user are important for data consistency for accessing data whose check has an ABAP statement.

For Step Loop.

http://help.sap.com/saphelp_nw04/helpdata/en/d1/801c13454211d189710000e8322d00/frameset.htm

Warm Regards

R Adarsh

Former Member
0 Kudos

Hi,

In the database world, an "all-or-nothing" transaction is called an LUW (Logical Unit of Work). There are two types of LUWu2019s.

1. Database LUW

2. SAP LUW

A LUW (logical unit of work) is the span of time during which any database updates must be performed in an u201Call or nothingu201D manner.Either they are all performed (committed), or they are all thrown  away (rolled back).

There are the two mechanisms offered by ABAP/4 for displaying and

using table data in a screen.

- Step loops

- Table Controls

The following are not possible with steploops.

horizontal scrolling

scrolling in a particular field

Resize the table

cannot save the settings for future use

Making selective columns editable,....etc

Reward if useful.

Regards,

Swetha.

Former Member
0 Kudos

Thanks..

regards,

Asha