Application Development and Automation 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: 
Read only

Reg : Session Method

Former Member
0 Likes
301

Hi,

Session Method does not return Sy-subrc value,

cann anyone explain why?

regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
275

Hi,

In session method sy-subrc is not returned whereas in call transaction method sy-subrc is returned .

Reason:

While to transfer the data from the through if any errors occurs until the errors are the complete the data is not transfer to the SAP system.

the system compulsory shows the errors. that errors are stored into the error logs (Transaction is SM35).

so the session method should not return any value.

In call transaction method data is directly pass to the SAP system.

So its compulsory return the value.

Because of the call transaction is the function.

A function should return the value mandatory.

Regards,

Mahesh.

1 REPLY 1
Read only

Former Member
0 Likes
276

Hi,

In session method sy-subrc is not returned whereas in call transaction method sy-subrc is returned .

Reason:

While to transfer the data from the through if any errors occurs until the errors are the complete the data is not transfer to the SAP system.

the system compulsory shows the errors. that errors are stored into the error logs (Transaction is SM35).

so the session method should not return any value.

In call transaction method data is directly pass to the SAP system.

So its compulsory return the value.

Because of the call transaction is the function.

A function should return the value mandatory.

Regards,

Mahesh.