2016 Jun 06 11:12 AM
Hi experts!!
We have a subcontracting PO line; that is, a PO line with position type “L”. The material in the PO line has its structure. This material is batch managed and there are some material codes within its structure which are managed by batches too.
When making PO line´s GR we would like to enter main material´s batch number and the system to propose for the rest of the components managed by batches the same batch number that we have entered.
I have tried with enhancement MBCFC010, exit EXIT_SAPMM07M_010 -> Include ZXMBCU10
I have added this code:
V_charg is a global variable I have defined:
if i_mseg-bwart = '101' and not i_mseg-charg is initial.
v_charg = i_mseg-charg.
My problem -> if user does not enter batch number for main material ->
V_charg is blank and I am not able to recover that value.
Thanks in advance.
Hi experts!!
We have a subcontracting PO line; that is, a PO line with position type “L”. The material in the PO line has its structure. This material is batch managed and there are some material codes within its structure which are managed by batches too.
When making PO line´s GR we would like to enter main material´s batch number and the system to propose for the rest of the components managed by batches the same batch number that we have entered.
I have tried with enhancement MBCFC010, exit EXIT_SAPMM07M_010 -> Include ZXMBCU10
I have added this code:
V_charg is a global variable I have defined:
if i_mseg-bwart = '101' and not i_mseg-charg is initial.
v_charg = i_mseg-charg.
My problem -> if user does not enter batch number for main material ->
V_charg is blank and I am not able to recover that value.
Thanks in advance.
2016 Jun 06 12:03 PM
"When making PO line´s GR we would like to enter main material´s batch number and the system to propose for the rest of the components managed by batches the same batch number that we have entered." Why same batch for components as well?.
Normally we issue components to sub contractor through subcon delivery. We get component batches from PO history table. We need to assign component batches from subcon delivery while receiving main assembly.
2016 Jun 07 9:54 AM
Hi!! It´s me again.
I have also give a try with this other way:
I have implemented badi MB_MIGO_BADI. I have written this code i method LINE_MODIFY:
method IF_EX_MB_MIGO_BADI~LINE_MODIFY.
if cs_goitem-bwart = '101' and not cs_goitem-charg is initial. " Si es el material padre recogemos el num.lote introducido
v_charg = cs_goitem-charg.
endif.
if cs_goitem-bwart = '543' and cs_goitem-charg is initial. " Si es el componente le asignamos el num.lote del padre
cs_goitem-charg = v_charg.
endif.
endmethod.
I get message MIGO - 050-
BAdI: El campo GOITEM-CHARG no está listo para entrada (la modificación n
se toma)
No field is filled.
It would be perfect if message would´nt appear. What could I do against this message?
Thank in advance.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |