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

Application-Log in IDOC-input function module

Former Member
0 Likes
405

Hi there,

I am a newbie in IDOC-programming and so I have my first question.

I've wrote an application log while processing the different segments, but now I have the problem that if it vomes to an error I have to set status "51" in the status table, but then SAP will make a ROLLBACK WORK I think and then I have no chance to save the application log.

But I can also not make a COMMIT WORK directly in the IDOC-processing (function module) because than the changes are saved on database.

So what can I do to save my application log?

Any ideas?

Thanks a lot.

Kind regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
351

Hi,

Have you thought about putting your update to the log in a separate FM and calling it as:

CALL FUNCTION xyz STARTING NEW TASK

This way it will have it's own task and update area.

Pete

1 REPLY 1
Read only

Former Member
0 Likes
352

Hi,

Have you thought about putting your update to the log in a separate FM and calling it as:

CALL FUNCTION xyz STARTING NEW TASK

This way it will have it's own task and update area.

Pete