Application Development 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: 

Error in BDC for VK-11

Former Member
0 Kudos

Hi All,

I have created a BDC for T-Code VK11. When I am loading the data then my BDC is throwing an error becoz for some materials Unit of Measurement(UOM) sceen is coming which I have not captured in BDC. This UOM is coming only for few materials and this screen is not coming when I m entering these materials manually.

Can anybody plz help me out in solving this.

Warm Regards,

Nishu

7 REPLIES 7

Simha_
Employee
Employee
0 Kudos

Hi,

Record for those items for which the UOM screen is coming and then include that logic also in ur BDC..

It will solve ur problem...

Check for which materials the UOM screen is coming and include the logic for those materilas... if material = 'X' then call the screen with UOM else continue with normal recording flow...

Even if it is not solved..

then u hardcode the UOM ..

Cheers,

Simha.

Former Member
0 Kudos

hi narsimha,

currently i am loading around 300 materials and out of 300 around 120 materials are throwing tht screen. But if the no of records increases thn the list of materials UOM screen wi;; also increase so there is no possibility of hardcoding the materials. Also from the file there is no particular sequence for the materials which are showing UOM screen.

Warm regards,

Nishu

0 Kudos

Hi,

Just do the recording with the materials throwing the UM screen and include that in ur program logic..

this can solve ur problem...

If the UOM is same for all materials then u can hardcode the UOM and pass it to the screen.. so that there will be no confusion ...

If it is different then u have to include the logic to determine the UOM for that particular material and then u pass that UOM for that screen...

I thought may be something wrong with the recording...

Just go through the recording once again with different sequence of materials and include the logic...

Cheers,

Simha.

Former Member
0 Kudos

Hi

record as per the data in sheet and capture all those fields in recording

within loop check for the UOM = space or zero

then call the screen and the field to move the same

else continue with the same what you have done already.

Regards

Shiva

Former Member
0 Kudos

Why not use the BAPI: BAPI_PRICES_CONDITIONS ?

Former Member
0 Kudos

Do a recording with a material which is throwing u the UOM screen .

IF ur flat file is not having Uom pick the values for the materials from MARA/ MARM table into a variable and submit it to the screen of UOM.

See a recording will be done considering the fact that all the possible scenarios are handled . So If the screen is popping up with a UOM screen then it has to be handled .

You have to capture this in ur BDC recording .

Cause even it throws the UOM screen for one material u need to handle that .

There is one more screen for UOM jsut do a select and pass the UOM for the material in the code

if u r not intending to maintain the same in ur flat file.

Regards,

vijay

Former Member
0 Kudos

I am updating the entries from MARA tables then error is not coming.