in session method sy-subrc is not returned whereas in call
transaction method sy-subrc is returned . what does it mean?
Answers were Sorted based on User's Feedback
Answer / raja kunapareddy
Call transaction process is synchronous that is why it
returns SY-SUBRC, where as Sessions methods process is
asynchronous, so it will not return SY-SUBRC.
Is This Answer Correct ? | 4 Yes | 3 No |
Answer / hitesh g
Session method doesnt return sy-subrc means, the records
that are uploaded are not saved in database, but are
temporarily residing in Session. Once u process the
session, then only, the data will be stored in database.
Where as in Call Transaction, after the execution of Call
Transactin method, the records will be update into database
according to Synchronous/Asynchronous method.
in session method it should not a return value . because of
the while u transfer the data from the legacy system to sap
system it sholud not check the values.but in the call
transaction method compalsory check the values
mandatory.and also the in the call trasaction method its a
function so compalsory sholud return the value.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mahender achhe
In both the case we can use "SY_SUBRC". It is system
defined object. "SY_SUBRC" is mainly used in BDC Call
Transaction and BDC Session. The "SY_SUBRC" object is used
whether the records are Successfully Inserted or not, for
that we can use "SY_SUBRC".
IF SY_SUBRC=0 -->Successfully Insert/Updated the records in
table.
IF SY_SUBRC=4 --->Not Inseterd.Updated the records in table.
In call transaction return the "SY_SUBRC",because records
are dump at a time. but where as Session not return.why,
because if any error occurs in the program it will not open
the first. i.e (BDC_OPEN_GROUP) so that it can't be read
the data from the table.
The main thing is initially it can't be open the table.
Is This Answer Correct ? | 0 Yes | 2 No |
What is a drill down report?
Why we are using Macros instead of Function Modules
What is the difference b/t Session method and call transaction method ??
1 Answers Campus Interview, ERP Solutions,
how do you pass table to function module?
What are pool tables?
What are the problems in processing batch input sessions? How is batch inputprocess different from processing online?
Describe data classes.
For what purpose Chain Endchain statement is used?
What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why? : abap modularization
What are the disadvantages of logical databases?
What is runtime analysis?
Explain data dictionary in abap?