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: 

BAPI/FM to display data(result) in spool

Former Member
0 Kudos

Hi all,

I am using bapi BAPI_REQUISITION_DELETE to set deletion flag of PR.

Here all the error messages are captured and i need to display that resulttant error data in spool.

How can I dispaly resultant error message captured by BAPI in Spool.

Is there a FM/BAPI or i shld be using Simple write statement.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sacin,

If you are using a report program running this in Background, then simle write statement should work in displaying the error records in spool log.

Regards,

Dinakar.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Just loop at the return table and write the MESSAGE field out to create the spool.

Regards,

Darren

Former Member
0 Kudos

Hi Sacin,

If you are using a report program running this in Background, then simle write statement should work in displaying the error records in spool log.

Regards,

Dinakar.

0 Kudos

there is no BAPI/FM that will do this work..

I have to use only WRITE statemnt...

I am doing a report program..

0 Kudos

Hi Sachin,

Check with the simple write statement.

If you run this report program in back ground job, then this

should work.

If it doens't work, there are few class methods to handle this.

Regards,

Dinakar.