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

UOM issue during PR creation

former_member188251
Active Participant
0 Likes
1,596

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.

6 REPLIES 6
Read only

Former Member
0 Likes
1,448

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

Read only

0 Likes
1,448

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.

Read only

0 Likes
1,448

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

Read only

ravindra_devarapalli
Active Contributor
0 Likes
1,448

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.

Read only

Former Member
0 Likes
1,448

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

Read only

former_member188251
Active Participant
0 Likes
1,448

Functional consultant solved the issue . It was config related.