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

Schedule lines not updating while using the BAPI_SCHEDULE_MAINTAIN

Former Member
0 Likes
2,257

Hi Gurus,

                 

                  I am using BAPI_SCHEDULE_MAINTAIN to change the schedule line delivery date and schedule line quantity, while i was changing using t-code ME38 it is changing but while using the above mentioned BAPI i am getting the below error,

"Instance PurchSchedagreement of object type <schedule agreement no> could not be changed"

Kindly help on this.

Thanks and Regards,

Karthik Mohan.

Hi Gurus,

                 

                  I am using BAPI_SCHEDULE_MAINTAIN to change the schedule line delivery date and schedule line quantity, while i was changing using t-code ME38 it is changing but while using the above mentioned BAPI i am getting the below error,

"Instance PurchSchedagreement of object type <schedule agreement no> could not be changed"

Kindly help on this.

Thanks and Regards,

Karthik Mohan.

9 REPLIES 9
Read only

Former Member
0 Likes
1,826

Hello ,

Are you using this bapi in SE37 or in program. Can you please check if you are commiting either by calling bapi BAPI_TRANSACTION_COMMIT or by commit?

Thanks

Amber

Read only

0 Likes
1,826

Hi Amber,

We are using this BAPI in a Program, we are using BAPI_TRANSACTION_COMMIT for commiting.

But the Bapi "BAPI_SCHEDULE_MAINTAIN" only returned the error message.

"Instance PurchSchedagreement of object type <schedule agreement no> could not be changed"

Kindly advice.

Thanks,

Karthik.

Read only

JL23
Active Contributor
0 Likes
1,826

does a manual change via the usual transaction work? or do you get there an error?

Read only

0 Likes
1,826

Hi Jurgen,

           I am able to chnage it manually & there is no error message when I change it.

Read only

JL23
Active Contributor
0 Likes
1,826

browsing thru all the discussions about the same problem gives me the impression that you should see at least 2 lines of error messages in the return table.

the line you posted is the overall status,

further lines will describe the individual errors.

Read only

0 Likes
1,826

The other error message was "Quantity delivered smaller than quantity ordered", but when we checked the Schedule lines it was correct and we didn't find any problem in Scheduled Qty.

Read only

JL23
Active Contributor
0 Likes
1,826

I am certain that you have to focus on this message.

maybe you missed to submit a value or an indicator in a field (or you submitted it while it should be empty).

Unfortunatly I never loaded schedules agreements, none of our 500 plants is using this, so I have no experience here.

Read only

JL23
Active Contributor
0 Likes
1,826

moved to ABAP Connectivity, hoping to get more attention here.

Read only

Former Member
0 Likes
1,826

Still I am not able to resolve this error...Hope some one can help me out...Thanks for your reply..