10-31-2007 12:37 AM
Hi all,
Is there any FM or BAPI that change quantities of processing components of materials in a open Subcontract PO?
10-31-2007 3:16 PM
Hi,
Please check FM ME_COMPONENTS_UPDATE or ME_COMPONENTS_MAINTAIN perhaps they may help.
Regards,
Ferry Lianto
10-31-2007 12:41 AM
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
10-31-2007 1:04 AM
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.
10-31-2007 1:15 AM
10-31-2007 1:27 AM
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
10-31-2007 1:30 AM
10-31-2007 1:41 AM
10-31-2007 3:16 PM
Hi,
Please check FM ME_COMPONENTS_UPDATE or ME_COMPONENTS_MAINTAIN perhaps they may help.
Regards,
Ferry Lianto
10-31-2007 8:04 PM
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
10-31-2007 8:11 PM
Hi,
Please try to add COMMIT WORK at the end and see whether it will update the quantity or not.
Regards,
Ferry Lianto
10-31-2007 9:19 PM
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.
11-29-2007 8:41 AM
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
11-29-2007 1:49 PM
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.
12-03-2007 12:34 PM
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
12-04-2007 3:53 AM
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
01-29-2015 5:38 AM
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