Application Development 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: 

How to find and separate the Erraneous records in Session Method?

Former Member
0 Kudos

Hi,

Currently we are working in SAP-HR.Our programs run using Session method of BDC.We get data from Legacy System through Flat Files which are in text format.First I upload the data for Actions Infotype 0000 and subsequently the other Infotype data.When I run my session if some records go in Error i want to filter out those erraneous records from Actions file and also other Infotype files and then proceed with data upload.Is there any method to do this?

Also when the Session is in process i want to trace the status of each record i.e. Is it processed or rejected. How can i achieve this ?

Can anyone help me in this.

Thanks & Regards

Ravi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ravindra,

To process the error records simply process the session again in SM35 . It will only try to post the erroneous transaction.

You can see the incorrect sessions in SM35. Select the session and goto Analysis . Here you can see the error transactions. If you select the sessions and goto log -> display , you will see all the messages ( I,E, W etc. ).

Here if you press "Print" a list will be displayed in ALV. Select the column type of message and put a filter on message type "E" . You will see all error messages here.

Cheers

4 REPLIES 4

Former Member
0 Kudos

Hi Ravindra,

To process the error records simply process the session again in SM35 . It will only try to post the erroneous transaction.

You can see the incorrect sessions in SM35. Select the session and goto Analysis . Here you can see the error transactions. If you select the sessions and goto log -> display , you will see all the messages ( I,E, W etc. ).

Here if you press "Print" a list will be displayed in ALV. Select the column type of message and put a filter on message type "E" . You will see all error messages here.

Cheers

0 Kudos

Hi Sanjay,

Thanks for your response.

But my problem is that i want to Automate the whole process with less manual intervention.I want to shedule all the jobs in background and when the Actions Infotype (0000) is uploaded and it gives errors i want to filter those error records in separate file and also filter those records from subsequent infotypes file if they are present.

Also how to check the status of each record when the session is in progress? This i need because i want to send acknowledgment files to Legacy system saying that these many records are successfully uploaded and so many are in errors.

How can i automate the whole process?

Regards,

Ravindra

0 Kudos

Ravindra,

To my knowledge we can not automate the process of seperating the error records when the session is processing or finished processing. You can view the error log only.

It is a manual process to trace out the error records from your original file and place them into a seperate file.

When the session is running you can check the status of each record by highlighting the sessio name and click Analysis.

Regards,

Message was edited by: Naren Somen

Former Member
0 Kudos

Hi Ravindra,

In session method you can only see / analyze the logs in SM35 . However if you want error handling in your program you should use call transaction .

Cheers