When BAPI (BAPI_PR_CREARE) is called in our custom program, PR can be successfully created for the same data in the development environment, but PR cannot be created for the same data in the test environment. The error is as follows:In case of account assignment, please enter acc. assignment data for item.
I tried even by creating through me51n in the test environment, there it is getting created correctly.
Next Item data with Acct assn cat as 'K' Item Category as 'D' short text, PR quantity, Order Unit, Net price, Material group, Plant,Requisitioner.
Next it is prompting for Services data : short text, quantity, Unit, Gross price.
Then it is prompting for Account assignment of service in line 10, there I am giving GL account, Cost center.
It is creating the PR successfully.
After comparing the development environment with the test environment, we find that the following breakpoints are different. In the development environment, the program is activated, but in the test environment, the program is return and MM_SFWS_SC2 is not activated,account assignment of servicecannot be retrieved.
PS:switch position is F closed,does this matter?
Please do the needful.
Thanks & Warm Regards,