03-31-2009 8:54 AM
Dear Experts ,
I have a material Base UoM is KG
i procured 100 KG
the Unit of issue for the same is G(grams)
now the consumption of 100 G was booked
Excise registers shows the following entries :
qty rcvd : 100 ( there is no unit )
qty issued :100
balance : 0
whilst the balance shud be 99 KG
i have been suggested to use the user exit J_1I7_USEREXIT_J1I5_VALIDATE
for which the coding needs to be done .
The same was done as under :
FUNCTION J_1I7_USEREXIT_J1I5_VALIDATE.
*"----
""Local Interface:
*" IMPORTING
*" VALUE(RCPTISSRSN) TYPE J_1IPART1-RCPTISSRSN OPTIONAL
*" TABLES
*" T_MSEG STRUCTURE MSEG OPTIONAL
*"----
TABLES
T_MSEG STRUCTURE MSEG OPTIONAL
*"----
tables:j_1ipart1.
data:it_mseg like t_mseg occurs 0 with header line.
if sy-tcode = 'J1I5'.
move-corresponding t_mseg to j_1ipart1.
j_1ipart1-menge = t_mseg-menge.
j_1ipart1-meins = t_mseg-meins.
modify j_1ipart1 ."where mblnr = t_mseg-mblnr and zeile = t_mseg-zeile.
endif.
ENDFUNCTION.
The logic is to put an entry for J_1IPART1-MENGE & J_1IPART1-MEINS from
MSEG-MEINS & MSEG-MEINS instead of the default used in the system ( MSEG-ERFMG & MSEG-ERFME)
But the above doesnt work.
Pls do help.
Regards
Anis
03-31-2009 9:14 AM
03-31-2009 11:15 AM
Hi,
Use FM MD_CONVERT_MATERIAL_UNIT to convert the material qty from KG to G and then update.
Regards,
Raju.
03-31-2009 11:47 AM
Check the conversion unit is maintained in material master.
thanks,
sendil
04-01-2009 7:52 AM
the conversions for that particular material in that particular material document are maintained .
In MSEG , the qty in unit of entry is converted into base unit of measurement & stored separately .
I need to fetch these fields & make them appear in J_!IPART1 table.
Pls give ur inputss
Regards