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

Handling Errors in Session Method

Former Member
0 Likes
2,030

Hi All,

In session method if we update 1000 records, 50 records were found error. then these 50 recodrs should be collected in a seperate flat file.. is it possible with session method? ( call transation method should not be used) if so... give the solution.

Thanks in Advance.

Ranjith

12 REPLIES 12
Read only

Former Member
0 Likes
1,546

hi Ranjith,

Check

;�

Regards,

Santosh

Read only

Former Member
0 Likes
1,546

Hello,

If you do not 'Keep Session', then the data for the processed records would be automatically deleted on successful processing of the session retaining only the session data with respect to the transactions with errors. you can directly .conv file from the appl server.

Hope this helps

Regards, Murugesh AS

Read only

Former Member
0 Likes
1,546

hi ranjith reddy,

it is possible. while session while be executed. in that time all error frecords can be displayed in ms35 error log. using ws_download we can dowload that record and display that records in flat file...............

Read only

Former Member
0 Likes
1,546

U can only rectify the errors only after viewing the logs generated by the session processing. Click onto the error session, click onto analyze session. After u will do this, correct your data and u have to create session once again and process it.

Read only

0 Likes
1,546

Hi Vibha Deshmukh ,

Thanks for u r Quick response. but is it possible to check 'sy-subrc' after BDC_INSERT fm and collect the error records in a flat file dynamically.

Ranjith

Read only

0 Likes
1,546

if u are running the session in foreground then u can make changes ..else u shld make changes after the session is processed

Read only

0 Likes
1,546

Hi santosh pabboju ,

Can you please explain in briefly how it is possible.

Ranjith

Read only

Former Member
0 Likes
1,546

Hi

The system'll create a session error with only the transactions failed and you can run it again.

If you want to check which transaction u should che the log file generated by session, see the program RSBDC_ANALYSE.

But the problem can be how to match the transaction failed with the record of original file.

Max

Read only

Former Member
0 Likes
1,546

hi ranjith,

check these threads...

regards,

Priya.

Read only

Former Member
0 Likes
1,546

Hi ,

u cannot create a separate file

Goto transaction sm35

check the session which is processed and click on log and then click on analyse session to view the error and then run the session again .

Read only

former_member404244
Active Contributor
0 Likes
1,546

Hi Ranjith,

The session method doesnot return SY-SUBRC.So u can't do that.

U can rectify the errors after viewing the logs generated by the session processing.

regards,

nagaraj

Read only

Former Member
0 Likes
1,546

Hi...

The error details can be retrived using the database tables;

APQI and APQD...

these tables stores the complete details about the log which occurred in the session method..

check these tables.. it has the QUEUE id.. logs etc..

Regards

kothai