in session method sy-subrc is not returned whereas in call
transaction method sy-subrc is returned . what does it mean?
Answer Posted / 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 |
Post New Answer View All Answers
Some Realtime Examples on Exits .
Hi, I have a requirement for locking the fax field in user master records. As you know user can edit the details using the System>profile>own data (SU3), it is causing some security threat to our model. What i want is users should not be able to change the fax field under communications when they get into su3.I have heard of user Exist functionality but don't know how to implement it. Can you suggest something, it will be greatly appreciated.
How can I make a differentiation between dependent and independent data? : abap hr
How do you populate data into a multiple line field?
What are dml commands in abap?
Folder types in smatforms? 2)What is Command line?
When a program is created and need to be transported to prodn does selection texts always go with it? If not how do you make sure? Can you change the cts entries? How do you do it?
What is the table & field to identify the no of items (bottles) stored in one case?
How do you control printer functions from sapscript?
Can you set up background processing using call transaction?
1)can any body tell the transport request number concept and 2)there are 3 screens in one screen u have uploaded the resume and second screen also u have done the same thing but when u are uploading the resume in third screen u got some error in somewhere else but whatever u have uploaded the resume in 1 and 2 should not
What is the syntax of packed number?
How to eliminate duplicate entries in internal tables? : abap data dictionary
How can I get ascii value of any letter? Is there any function?
What is the use of buffering?