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

Runtime error from BAPI_SAG_CHANGE

former_member376453
Contributor
0 Likes
803

All -

I am trying to do some change with BAPI_SAG_CHANGE. This program is working absolutely fine in foreground mode. But when I am trying to run this same in background I am receving an error "MESSAGE_TYPE_UNKNOWN". I have tried to debug this problem and found when calling in BATCH mode it is calling the MASTER_IDOC_DISTRIBUTE ( Not sure why every time this BAPI post an outbound IDoc of type EKSEKS). in runtime, this is the place which is creating this problem.

I have below questions :

1. Is there any wayout to stop triggering this EKSEKS type IDoc from SAP

2. Is there any OSS note, which can resolve this problem.

Thanks in advance for your help.

Kuntal

3 REPLIES 3
Read only

Kanagaraja_L
Active Contributor
0 Likes
640

Open the PO in ME22N, and Give the PO Number which you given for the FM BAPI_SAG_CHANGE->PURCHASINGDOCUMENT as a Input.

In ME22N, GOTo->MESSAGES is there any output type assigned when changing PO or Change anything in PO and then Check the Output type.

If any Default O/P type assigned when changing PO, It will trigger the IDoc.

Kanagaraja L

Read only

Former Member
0 Likes
640

I think The BAPI using IDOC internally. If BAPI accepting any input then you have to create variants for it because the background programs will not accept the input from the presentation Layer.

I hope it helps...

Read only

former_member376453
Contributor
0 Likes
640

Hi -

Any idea how we can stop this automatic triggering of EKSEKS Idoc type from BAPI_SAG_CHANGE function module.

Thanks -

Kuntal