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

Error in BAPI_SAG_CREATE

Former Member
0 Likes
1,680

Hi,

I'm getting the below error while using using BAPI_SAG_CREATE :

No instance of object type PurchSchedAgreement has been created. External reference: # 1

I'm trying to cerate scheduling agreement. If anyone has worked on similar issue, plz advise.

Thanks

5 REPLIES 5
Read only

madhu_vadlamani
Active Contributor
0 Likes
1,063

Hi Kishore,

This is a not issue with Bapi. Just show this message to your functional consultant. They will tell what fields are missing.Post still if there is any issues.

Regards,

Madhu.

Read only

former_member222709
Contributor
0 Likes
1,063

Hi Ravy,

The error, 'No instance of of object type PurchSchedAgreement has been created' is not the actual error. The Return table willhave multiple lines of error. So, if you can post all the lines of the Return Table, then, it will be of greater help.

If the error is about an External reference, then, you need to check with your Functional Consultant about the need for the same. If required, you might have to pass that data to the BAPI. Maybe the coding is perfect, and you are getting a Functional related error.

Regards,

Pranav.

Read only

0 Likes
1,063

Guys,

Even Functional Guy doesnt know what this error is, in BAPI Return, I am getting only this error. In BAPI Return table, I am getting only this error.

Regards,

Ravi Kishore.

Read only

0 Likes
1,063

Hi Ravy,

In such a situation, you will have to compare the data that you pass in the Transaction for Creating a Scheduling Agreement and the data that is being passed to the BAPI.

Ideally, even that would be in sync. I had faced this issue in PO BAPI and was able to resolve it as I found a change indicator flag in 1 of the table parameters which resolved the issue. It's quite tedious to locate the field, but, still should be helpful. Also, I know it would be huge, but, if your could post your code, it can be of some help.

Regards,

Pranav.

Read only

0 Likes
1,063

Yes its related to change indicators...while passing to the BAPI, we have one record in item table and 2 records in itemx table..one got deleted in between..due to this we were getting this error.

Thanks for everyone.

Regards,

Ravi Kishore.