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

Function module fails & creates session in SM35

Former Member
0 Likes
1,244

Dear all,

I am a functional consultant and novice in ABAP.

I am not sure whether I am putting my query in the right forum.

We are having one function module which gets the data from the external MES system & runs CO11N followed by KO88 in SAP.

It is scheduled to be run for every 4 hours. But sometimes it fails & generates the session in SM35 which we need to run manually.

I had investigated the possible reasons at our end. The material components are having sufficient stock in the respective storage locations. So not having correct data (input) or lack of stock are ruled out.

Beside this can there be any other technical reason why the function module fails?

Please do note that whenever we run the session created in SM35, it runs flawlessly.

Could you please help me to resolve this?

Manoj

8 REPLIES 8
Read only

JL23
Active Contributor
0 Likes
1,160

what is the name or transaction of this function module?

is it a standard FM or an own developed?

do you run it in batch or in foreground?

Read only

Former Member
0 Likes
1,160

Hi Jurgen,

It is a developed one & runs transaction CO11N with goods movement followed by settlement of the production order

It runs in background.

Manoj

Read only

JL23
Active Contributor
0 Likes
1,160

Have you checked the joblog to this background job? maybe there is a hint.

Read only

Former Member
0 Likes
1,160

Jurgen,

Our ABAP consultant has checked that but he says with that he can't tell us the reason of the failure.

Any other clue?

Manoj

Read only

JL23
Active Contributor
0 Likes
1,160

For which part does it create a batch input? CO11N or KO88?

if KO88, then I suggest that you check this OSS Note 123726 - Batch input to settlement transaction is incorrect

Read only

Former Member
0 Likes
1,160

Thanks Jurgen,

It creates batch input for both the transactions in one go.

I shall check the note also.

Manoj

Read only

Former Member
0 Likes
1,160

Hello Jurgen,

Just wanted to add that when we run session created in SM35 after the failure of function module, it runs successfully. This wipes out the possibility of shortfall of the input entries.We do not change the input entries while running the session in SM35.

This is creating confusion.

Manoj

Read only

JL23
Active Contributor
0 Likes
1,160

Creation of one batch input for both transactions is certainly a desired functionality which was programmed specially for you,  isn't it?

Please see what SAP posted in the note I gave you.