@ordo @gabi_verzea
Hi ,
I am creating PR in SAP application using BAPI BAPI_PR_CREATE. However i noticed two issues while creating PR
Material_no → There is specific Material no ( all Numeric digit) for which i am trying to create PR but failed and getting error : The material <1106861> does not exist or is not activated. However when i use SAP system and try to create PR with same material no , i am able to create PR successfully.
Address → When i am trying to input Address in BAPI , PR is getting created but Address is not getting assigned instead giving me error when i open PR in SAP system . Error :
one issue I see right away is that the material number seems to be missing the leading "0"s. in total, you should have 18 digits. So instead of “1106861” it should be “000000000001106861”.
For the Address I am not sure . could be also the internal format, so maybe some leading “0” could be needed.
one issue of address field has resolved , my address contains 7 digit and appended three zeros to make it 10 character and after that i can see address in PR.
However , same is not happening with material number , i tried converting material no into 18 character by appending 0s but still same error : material doesnt exist
hmm, strange, for me the issue with the material number was always from the leading "0"s. Are the "0"s now at least appearing in the error message ?
Also, is the material extended on the right plant, the one in your PR ?
to me it looks like both error messages are a result of incorrect parameters when calling the BAPI. With incorrect parameters some eventually required default parameters when calling the BAPI. Those parameters are set per default if creating the PR through the SAP GUI, but when calling the BAPI, you need to provide them.
As this may depend on the customization of your SAP system, I recommend to involve an SAP consultant for guidance on this.