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: 

User Exit not working: Unit not considered in Excise Register Entries

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

Pls give ur valuable inputs

0 Kudos

Hi,

Use FM MD_CONVERT_MATERIAL_UNIT to convert the material qty from KG to G and then update.

Regards,

Raju.

Former Member
0 Kudos

Check the conversion unit is maintained in material master.

thanks,

sendil

0 Kudos

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