2013 Aug 07 3:10 PM
Hi All,
My program is creating PR using BAPI_REQUISITION_CREATE . The table field requisition_items-unit is hardcoded to 'USD' for all line items . Now suddenly the BAPI started throwwing the error "Unit of measure USD not defined (please check your input)" . Earlier it was successfully creating the PR.
Then in the debug mode I changed the field requisition_items-unit to 'KG' for all the lines. The BAPI then throws the error "Procurement w/o material from vendor with plant assignment not defined" .
Please provide your esteemed suggestions/solutions to resolve this issue.
BR,
Shankar.
Hi All,
My program is creating PR using BAPI_REQUISITION_CREATE . The table field requisition_items-unit is hardcoded to 'USD' for all line items . Now suddenly the BAPI started throwwing the error "Unit of measure USD not defined (please check your input)" . Earlier it was successfully creating the PR.
Then in the debug mode I changed the field requisition_items-unit to 'KG' for all the lines. The BAPI then throws the error "Procurement w/o material from vendor with plant assignment not defined" .
Please provide your esteemed suggestions/solutions to resolve this issue.
BR,
Shankar.
2013 Aug 08 10:27 AM
Hi Shankar,
As you say it is Earlier work Successfully your Custom Code using above BAPI , is it same unit (i.e. USD) you use Earlier ?
did you use "CONVERSION_EXIT_CUNIT_INPUT" for Unit Field , before passing Unit Field value to BAPI_REQUISITION_CREATE ?
also is it same user id which is Earlier work without any error ?
Regard's
Smruti
2013 Aug 08 10:40 AM
Hi Smruti,
Yes earlier 'USD' was working and PR was getting created . When it stopped woring yesterday, 'USD' was not there in table T006 I saw in another SCN thread that the UOM should be in T006 . Then I gave KG and mqany other UOMs that are there in T006 , but BAPI is throwing the error "Procurement w/o material from vendor with plant assignment not defined". Kindly help me out.
Best Regards,
Shankar.
2013 Aug 08 11:32 AM
Check that Particular Material Master data what "UOMs" assign using MM03 T-code , and use same "UOMs" in BAPI .
Path --> MM03-->BD1 --> Addtional Data --> UOM Tab ...
Regard's
Smruti
2013 Aug 08 11:07 AM
Hi,
Don't support to any hard code for fetching the values . Should do with logic. If you hard coded then in future you face same problems.
For unit of measure you can find from MARM table.
For second error check whether info record exist for combination of plant material vendor.
2013 Aug 08 11:15 AM
Hello,
This issue can be due to many reasons.
Just check in table T006 if your internal unit is present as USD?
If USD is present then kindly check if the item data you are passing have all the correct values.
Regards,
Siddharth
2013 Aug 16 4:34 AM
Functional consultant solved the issue . It was config related.