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: 

BDC Call transaction

Former Member
0 Kudos
136

Hi All,

What is mean by 'L' mode (local mode) in BDC call transaction. Does it update the Data base.

regards

Saurabh

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos
101

Local update. Updates of the called program are executed in such a way as if the SET UPDATE TASK LOCAL statement had been executed in it.

The

SET UPDATE TASK LOCAL statement works as follows:

Effect

This statement specifies that the high-priority update function modules - registered during the current SAP LUW using CALL FUNCTION ... IN UPDATE TASK - are registered in the ABAP memory instead of the VBLOG database table. In addition, it specifies that the current work process and not the update work process run these modules during the current database LUW, when the COMMIT WORK statement is executed. This statement has no effect on low-priority update function modules.

At the beginning of every SAP LUW, the local update function is deactivated. If you wish to use it, you must reactivate it again before the first update function module is registered.

This is an excerpt from sap documentation.

Regards,

Ravi

7 REPLIES 7

former_member181962
Active Contributor
0 Kudos
102

Local update. Updates of the called program are executed in such a way as if the SET UPDATE TASK LOCAL statement had been executed in it.

The

SET UPDATE TASK LOCAL statement works as follows:

Effect

This statement specifies that the high-priority update function modules - registered during the current SAP LUW using CALL FUNCTION ... IN UPDATE TASK - are registered in the ABAP memory instead of the VBLOG database table. In addition, it specifies that the current work process and not the update work process run these modules during the current database LUW, when the COMMIT WORK statement is executed. This statement has no effect on low-priority update function modules.

At the beginning of every SAP LUW, the local update function is deactivated. If you wish to use it, you must reactivate it again before the first update function module is registered.

This is an excerpt from sap documentation.

Regards,

Ravi

Former Member
0 Kudos
101

HII Saurabh,

In the local mode of updation, the updation program is run by the same work process that processed the request.

An advantage of this mode of update would be when you want to reduce the amount of access to the database.

The disadvantage is their parallel nature, where the updates can be processed by many different work processes, unlike asynchronous or synchronous update, where the update is serialized.

<b>Local update</b> is used when you want to limit the database access.

Updation is done by the same workprocess processing the update request. It resembles synchrounous updates in that the dialog user has to wait for the update to finish before entering further data.

<b>However multiple updates can occur, since one update is independent of other updates. This is the main reason why local updates are not prefferred.</b>

ABAP statement SET UPDATE TASK LOCAL sets a "local update switch". When it is set, the system interprets CALL FUNCTION IN UPDATE TASK as a request for local update. The update is processed in the same work process as the dialog step containing the COMMIT WORK. The transaction waits for the update to finish before continuing.

check this links for more info..

<b>http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097133543b11d1898e0000e8322d00/frameset.htm

b.

http://help.sap.com/saphelp_erp2005/helpdata/en/41/7af4d7a79e11d1950f0000e82de14a/frameset.htm</b>;

Regards

Naresh

Former Member
0 Kudos
101

ya it updates the database

but now a days no one is using L mode

0 Kudos
101

HI guys,

Thanks for knowledge sharing.

My requirement is:

I am running the report pgm in test mode and update mode.(radio buttons are provided for selection) if i run in update mode I m calling BDC which updates the DB. Inthis mode I can capture the run time errors thrown during DB update (thrown by BDC).

If I run it in test mode I can not call BDC. In this case how can I capture those errors, any pointers on this?

regards

Saurabh

0 Kudos
101

call transaction <TCODE> using it_bdcdata options from it_ctuparams messages into i_return.

loop at i_return.

CALL FUNCTION 'FORMAT_MESSAGE'

EXPORTING

ID = i_return-id

LANG = sy-langu

NO = i_return-number

V1 = i_return-MESSAGE_V1

V2 = i_return-MESSAGE_V2

V3 = i_return-MESSAGE_V3

V4 = i_return-MESSAGE_V4

IMPORTING

MSG = l_message

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2

.

check sy-subrc = 0.

write: / l_message.

endloop.

YOu can use the function module 'FORMAT_MESSAGE' FOR THIS PURPOSE.

Regards,

ravi

0 Kudos
101

Hi,

in the second case you have to imitate the standard transaction how it is throwing errors..

Regards

vijay

Former Member
0 Kudos
101

tx