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 are Change header/detail tables? Have you used them?
What is the syntax of packed number?
How to Raise a Particular Ticket in Realtime ?
Smartform : how to print a smartform with portrait style and landscape style at the same time?
In selection screen I have three fields, plant mat no and material group. If I input plant how do I get the mat no and material group based on plant dynamically?
Is a logical database a requirement/must to write an ABAP query?
WHAT IS DIFFERENCE BETWEEN USER EXIT AND BADI
What is get cursor field?
What are the fields in a bdc_tab table? : abap bdc
WHAT IS THE ROLE OF WORK BENCH ORGANIZER?
After Uploading logo into SAP-SCRIPT How To Check Whether It is Success fully Uploaded or not?
Can we include customizing include or an append structure with pooled or cluster tables? : abap data dictionary