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

Issue With BAPI_REQUIREMENTS_CHANGE

Former Member
0 Likes
903

Hi,

We have an issue with the BAPI_REQUIREMENTS_CHANGE, where in we are trying to update the independent requirements of a material.

Updation of the material is through a file. Not all the materials from this file are updated. If the file contains, 50 materials, at least 3 materials fail updation.

We get an error message "Express Document Update Terminated" for each material that has not been updated. But the internal table RETURN does not return any errors. Even the sy-subrc is 0.

We have tried calling "BAPI_TRANSCATION_COMMIT" to explicitly commit the work. But this does not seem to be working.

One more strange thing, all the materials get successfully updated in debugging mode. This issue occurs only when a direct execution in foreground or background is done.

Any pointers regarding this would be of gr8 help.

Thanks in advance.

Hi,

We have an issue with the BAPI_REQUIREMENTS_CHANGE, where in we are trying to update the independent requirements of a material.

Updation of the material is through a file. Not all the materials from this file are updated. If the file contains, 50 materials, at least 3 materials fail updation.

We get an error message "Express Document Update Terminated" for each material that has not been updated. But the internal table RETURN does not return any errors. Even the sy-subrc is 0.

We have tried calling "BAPI_TRANSCATION_COMMIT" to explicitly commit the work. But this does not seem to be working.

One more strange thing, all the materials get successfully updated in debugging mode. This issue occurs only when a direct execution in foreground or background is done.

Any pointers regarding this would be of gr8 help.

Thanks in advance.

4 REPLIES 4
Read only

pavel_parshenkov2
Participant
0 Likes
754

hello,

i guess there was a short dump in some update task function module (may be in some user-exit module) , so try to read information in ST22 transaction.

Read only

0 Likes
754

Hi ,

I have checked that too. There are no dump that have occurred during the run.

Rgds,

Bhargav.

Read only

0 Likes
754

I am facing same issue ,please let me know r u got the solution for BAPI_REQUIREMENTS_CHANGE.

waiting for your reply

Read only

Former Member
0 Likes
754

Hi Bhargav,

Even i have worked on PIR using same FM.

i didn't even use any 'BAPI_TRANSCATION_COMMIT'.

all the materials are getting updated for me.

can i see how did u populate the FM.

Regards,

Madhavi