Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 08:14 AM

    Pls give ur valuable inputs

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 10:47 AM

    Check the conversion unit is maintained in material master.

    thanks,

    sendil

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.