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: 

Component qtys in Subcontract PO

Former Member
0 Kudos

Hi all,

Is there any FM or BAPI that change quantities of processing components of materials in a open Subcontract PO?

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check FM ME_COMPONENTS_UPDATE or ME_COMPONENTS_MAINTAIN perhaps they may help.

Regards,

Ferry Lianto

15 REPLIES 15

Former Member
0 Kudos

Hi,

Try BAPI_PO_CHANGE. With this function module, it is not possible to:

Create subcontracting components (you can only use existing ones)

BAPI is well documented to see the details about parameter.

Hope this helps.

ashish

0 Kudos

OK,

I've been watching this bapi. But I'm still stucked...

This is the situation: I have a subcontract order, 1 item, 2 components:

MAT0001, 5 pieces

-> SUBCOMP_A, 4.5 KG

-> SUBCOMP_B, 3.2 KG

The vendor send a idoc confirming the consumption... but the consumption was:

MAT0001, 5 pieces

-> SUBCOMP_A, <b>4.2</b> KG

-> SUBCOMP_B, <b>3.4</b> KG

So, i must change the subcontract order (component quantities), then post the good issue to the vendor, then post the good receipt, in order to have the right consumption of the five pieces of MAT0001.

My program must be able to change the component quantities and post the good issue. So I need to know a FM or BAPI which could perform this task. But I can't see how BAPI_PO_CHANGE could help me if the import and tables parameters of this bapi doesn't have a reference to components.

0 Kudos

Can you check parameters POCOMPONENTS and POCOMPONENTSX?

0 Kudos

Ashish,

I don't have that parameters in BAPI_PO_CHANGE. Maybe the version of SAP is different than yours? mine is 5.0.

This is the parameter list:

(import)

PURCHASEORDER

POHEADER

POHEADERX

POADDRVENDOR

TESTRUN

MEMORY_UNCOMPLETE

MEMORY_COMPLETE

POEXPIMPHEADER

POEXPIMPHEADERX

VERSIONS

NO_MESSAGING

NO_MESSAGE_REQ

NO_AUTHORITY

NO_PRICE_FROM_PO

(export)

EXPHEADER

EXPPOEXPIMPHEADER

(tables)

RETURN

POITEM

POITEMX

POADDRDELIVERY

POSCHEDULE

POSCHEDULEX

POACCOUNT

POACCOUNTPROFITSEGMENT

POACCOUNTX

POCONDHEADER

POCONDHEADERX

POCOND

POCONDX

POLIMITS

POCONTRACTLIMITS

POSERVICES

POSRVACCESSVALUES

POSERVICESTEXT

EXTENSIONIN

EXTENSIONOUT

POEXPIMPITEM

POEXPIMPITEMX

POTEXTHEADER

POTEXTITEM

ALLVERSIONS

POPARTNER

0 Kudos

Can you check if you have ME_PO_CHANGE?

0 Kudos

No... I don't have that FM.

It seems today is not my day... haha

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check FM ME_COMPONENTS_UPDATE or ME_COMPONENTS_MAINTAIN perhaps they may help.

Regards,

Ferry Lianto

0 Kudos

Hi Ferry,

Ok I've been trying to update the component quantities using ME_COMPONENTS_UPDATE, i'm using the parameters:

i_number = number of subcontract order

t_vmdpm = control table with order nr, position nr, delivery sched nr, reservation nr and update indicator 'U'.

t_xmdsb = component table with order nr, position nr, delivery sched nr, reservation nr, reservation position nr and new quantity.

But the FM doesn't update the quantity in the order. Are this parameters enough or am i missing something here?

Thanks in advance

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try to add COMMIT WORK at the end and see whether it will update the quantity or not.

Regards,

Ferry Lianto

0 Kudos

Hi Ferry,

The commit work was not needed. The problem was that i used the table t_xmdsb, but i changed to t_xmdpm and everything works fine.

Thanks.

0 Kudos

dear Julio Almeida ,

i need ur help to enter the new components for the PO line items

do u know any function module to create the new components for po line items

thanks in advance

Sukumar

+65 94894031

0 Kudos

Hi Sukumar,

try ME_COMPONENTS_UPDATE, and into table T_VMDPM, set the indicator

UPDKZ = 'I' (insert) for each new line. If you have problems, post a new thread.

Rgrs.

0 Kudos

dear Julio Almeida ,

i have posted new thread in the same name 'Component qtys in Subcontract PO'

can u send the sample code for the function module ME_COMPONENTS_UPDATE

for both update and insert

regards

Sukumar

0 Kudos

Dear Julio Almeida,

please advice on below

what are the parameters are needs to be filled in FM

ME_COMPONENTS_UPDATE to insert the components for the PO line item

t_xmdpm -


how to populate the table ?

regards

Sukumar

0 Kudos

Hi Sukumar,

I am facing the same issue. I want to insert the components in subcontracting PO and used FM me_components_update but its not updating.

Could you pls advise how you solved it.

Thanks,

Shweta