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: 

Regarding CALL TRANSACTION - Urgent

aaruljothi
Participant
0 Kudos

Hi Experts,

Please Clarrify which value among 'A', 'N', 'L' as the update parameter in the 'call transaction' statment.

Please also give the significance of each.

Regards,

Arul Jothi. A

14 REPLIES 14

Former Member
0 Kudos

Hi,

The parameters in CALL TRANSACTION,

A-Display ALL screens

E-Display errors

N-Background processing

P-Background processing with debugging.

Regards,

Wenceslaus

Former Member
0 Kudos

Hi Arul,

For Update you have

A - asynchronus - does not wait for next update in the queue

S - Synchronus - waits until the previous update is completed before a new request is considered

L - Local update - Uses a different work process to trigger call function in update task.

Hope this helps

Cheers

VJ

0 Kudos

Hi Vijay,

Can you ellaborate on the A, S, L. What it actually does.

I can understand the one liners but i want to know them in detail.

Regards,

Arul Jothi.

0 Kudos

Hi Arul,

In synchronus method until one record process takes place into database next record will not be processed.

In asynchronus immedate updation of data into database table.

Check this link for more detailed information:

http://fuller.mit.edu/tech/sync_asynchronous.html

0 Kudos

Hi Wenceslaus,

Thanks for your reply,

but there is a third method, local update - L. Whast that implies.

Regards,

Arul Jothi

0 Kudos

generally UPDATE WORK is done by update work process

but LOCAL UPDATE is not done by update work process. It is done the normal work process

0 Kudos

In a local update, the update is executed by the same work process that the program is running in, instead of passing it over to the update work process.

Have a look at this URL from SAP Help:

http://help.sap.com/saphelp_46c/helpdata/en/41/7af4cba79e11d1950f0000e82de14a/frameset.htm

Sudha

0 Kudos

Hi,

'L', Local update mode describes the updates to be done in the memory of the current process. No entries are made in and then deleted from the database describing the update task.

See http://help.sap.com/saphelp_erp2005/helpdata/en/41/7af4d7a79e11d1950f0000e82de14a/frameset.htm

Regards,

Wenceslaus.

Former Member
0 Kudos

hi,

A, N, E ARE MODES IN WHICH U WANT TO RUN UR BDC.

A - ALL SCREEN MODE (ALL THE SCREENS ARE DISPLAYED)

N - NO SCREEN MODE ( NO SCREENS ARE DISPLAYED DURING THE RUN OF THE BDC)

E-ERRORS ONLY ( ONLY THE SCREENS WHERE ERRORS HAE OCCURRED ARE DISPLAYED).

AND FOR UPDATE IT IS

A-ASYNCHRONOUS UPDATE

S-SYNCHRONOUS UPDATE.

HOPE THIS HELPS,

PRIYA

Message was edited by: Priya

Former Member
0 Kudos

Hi,

In call transaction folowing are disply mode options-

The display mode mode can take the following values:

'A' Display the screens

'E' Only display if an error occurs

'N' Do not display

Following are update related modes:

'A' (asynchronous update)

'S' (synchronous update)

'L' (local update)

If you do not specify the UPDATE addition, the default update mode 'A' is used.

Regds,

Akshay

Former Member
0 Kudos

HI Arul,

type call Transaction in the editor and pres F1.

detailed description of all these modes are given there..

regards

satesh

Former Member
0 Kudos

Hi Jyothi,

About CALL TRANSACTION

A technique similar to SESSION method, while batch input is a two-step procedure, Call Transaction does both steps online, one after the other. In this method, you call a transaction from your program by

Call transaction <tcode> using <BDCTAB>

Mode <A/N/E>

Update <S/A>

Messages into <MSGTAB>.

Parameter – 1 is transaction code.

Parameter – 2 is name of BDCTAB table.

Parameter – 3 here you are specifying mode in which you execute transaction

<b>A is all screen mode. All the screen of transaction are displayed.

N is no screen mode. No screen is displayed when you execute the transaction.

E is error screen. Only those screens are displayed wherein you have error record.</b>Parameter – 4 here you are specifying update type by which database table is updated.

S is for Synchronous update in which if you change data of one table then all the related Tables gets updated. And sy-subrc is returned i.e., sy-subrc is returned for once and all.

A is for Asynchronous update. When you change data of one table, the sy-subrc is returned. And then updating of other affected tables takes place. So if system fails to update other tables, still sy-subrc returned is 0 (i.e., when first table gets updated).

Parameter – 5 when you update database table, operation is either successful or unsuccessful or operation is successful with some warning. These messages are stored in internal table, which you specify along with MESSAGE statement. This internal table should be declared like BDCMSGCOLL, a structure available in ABAP/4. It contains the following fields:

1. Tcode: Transaction code

2. Dyname: Batch point module name

3. Dynumb: Batch input Dyn number

4. Msgtyp: Batch input message type (A/E/W/I/S)

5. Msgspra: Batch input Lang, id of message

6. Msgid: Message id

7. MsgvN: Message variables (N = 1 - 4)

For each entry, which is updated in database, table message is available in BDCMSGCOLL. As BDCMSGCOLL is structure, you need to declare a internal table which can contain multiple records (unlike structure).

Steps for CALL TRANSACTION method

1. Internal table for the data (structure similar to your local file)

2. BDCTAB like BDCDATA

3. UPLOAD or WS_UPLOAD function to upload the data from local file to itab. (Considering file is local file)

4. Loop at itab.

Populate BDCTAB table.

Call transaction <tcode> using <BDCTAB>

Mode <A/N/E>

Update <S/A>.

Refresh BDCTAB.

Endloop.

(To populate BDCTAB, You need to transfer each and every field)

Regards,

Santosh

Former Member
0 Kudos

Hai Jothi

go through this link that will help you

http://www.sappoint.com/abap/bdcconcept.pdf

thanks & regards

Sreenivasulu P

Former Member
0 Kudos

Hi Arul,

'A', 'S' and 'L' are the update modes in CALL transaction method.

I will give you a simple example to explain this.

Suppose that there are 30 records in total and an error has occured in the 5th record. In asynchronous, update is done for every 30 records while in synchronous one, update is done only upto the 4th record.So only after the record in the fifth one is eliminated, remaining others are processed.

Just check this link also.

Hope this will help you.

Regards,

SP.