Application Development and Automation 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: 
Read only

Enter the MRP type error from standard BAPI

Ranjith_D_Reddy
Participant
0 Likes
7,195

HI Folks,

While creating the material for a particular region ,i m able to create the material for all all the plants related to that region except for one plant.

I m passing the same values as i passed for the remaining plants but the issue is encountered for only one plant.

On further debugging that BAPI in the FM "MARC_D_SPECIAL_CHECK" an exception is raised for that particular plant.

Can any one help me out of this.

Regards,

Ranjith.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
6,229

Hi Ranjit,

Check the configuration of the material! This issue is relavent to T130M(Transaction control parameters: material mas)

debug the code or let me know the exact error you are facing!

call function 'MARD_SPECIAL_CHECK_GEN'          
            exporting                 
                 wmard = mard          
            exceptions                
                 error = 01.          
       if sy-subrc ne 0.               
         perform fehler_protokoll.     
       endif.                        

       if sub_status ca status_d.

( D- MRP)


         call function 'MARD_D_SPECIAL_CHECK'
           exporting
             p_matnr      = mara-matnr
             p_werks      = marc-werks
             p_beskz      = marc-beskz
             p_t134_kzprc = wt134-kzprc
             neuflag      = neuflag
             p_kz_no_warn = p_kz_no_warn
           changing
             wmard        = mard
           exceptions
             others       = 01.
         if sy-subrc ne 0.
           perform fehler_protokoll.
         endif.
       endif.

Hi Ranjit,

Check the configuration of the material! This issue is relavent to T130M(Transaction control parameters: material mas)

debug the code or let me know the exact error you are facing!

call function 'MARD_SPECIAL_CHECK_GEN'          
            exporting                 
                 wmard = mard          
            exceptions                
                 error = 01.          
       if sy-subrc ne 0.               
         perform fehler_protokoll.     
       endif.                        

       if sub_status ca status_d.

( D- MRP)


         call function 'MARD_D_SPECIAL_CHECK'
           exporting
             p_matnr      = mara-matnr
             p_werks      = marc-werks
             p_beskz      = marc-beskz
             p_t134_kzprc = wt134-kzprc
             neuflag      = neuflag
             p_kz_no_warn = p_kz_no_warn
           changing
             wmard        = mard
           exceptions
             others       = 01.
         if sy-subrc ne 0.
           perform fehler_protokoll.
         endif.
       endif.

19 REPLIES 19
Read only

former_member187748
Active Contributor
0 Likes
6,229

Hi Ranjith,

what is the error you are getting, what are the messages you got into error messages.

Please if possible take a screenshot of the error and put here, it will gives us a clear

understanding.

Read only

0 Likes
6,229

Hi ,

Read only

0 Likes
6,229

Hi Ranjith,

please check that you have mentioned MRP type in that plant or not.

Read only

0 Likes
6,229

i have mentioned the MRP type for that plant.U can see from the snap shot that i have pasted above all the remaining plants are exteneded but only for one plant i m facing the issue.

Read only

0 Likes
6,229

Better to check the config or debug the below FM MARC_DISMM !

Include : MM03MI01_MARC-DISMM

Read only

deependra_shekhawat3
Contributor
0 Likes
6,229

Hi Ranjith,

There are many FM calls within this FM. Could you please check in debug , which FM is RAISING this exception.

Thanks

Deependra

Read only

0 Likes
6,229

from fm MARC_DISMM   exception is raised

Read only

Former Member
0 Likes
6,230

Hi Ranjit,

Check the configuration of the material! This issue is relavent to T130M(Transaction control parameters: material mas)

debug the code or let me know the exact error you are facing!

call function 'MARD_SPECIAL_CHECK_GEN'          
            exporting                 
                 wmard = mard          
            exceptions                
                 error = 01.          
       if sy-subrc ne 0.               
         perform fehler_protokoll.     
       endif.                        

       if sub_status ca status_d.

( D- MRP)


         call function 'MARD_D_SPECIAL_CHECK'
           exporting
             p_matnr      = mara-matnr
             p_werks      = marc-werks
             p_beskz      = marc-beskz
             p_t134_kzprc = wt134-kzprc
             neuflag      = neuflag
             p_kz_no_warn = p_kz_no_warn
           changing
             wmard        = mard
           exceptions
             others       = 01.
         if sy-subrc ne 0.
           perform fehler_protokoll.
         endif.
       endif.

Read only

0 Likes
6,229

i m encountering the exception from

MARC_DISMM  FM

Read only

0 Likes
6,229

Hi Ranjith,

please debug MARC_DISMM, throughout by assigning by giving only those palnt value in

input and see at which point you are getting error, you have to debug it to know the reason behind

the dump, otherwise only guesses can be made.

Read only

0 Likes
6,229

Hi Ranjith Reddy,


from my experience I guess it's a customizing error. Try to create the material manually in the plant and check at which point an error comes up.


Otherwise, take some time an debug it.


If you mention an error here, please post message class and error number.


Regards


Clemens

Read only

0 Likes
6,229

hi Kiran,

thanks for the update given.

the MRP controller value is not yet filled for that specified plant.

May i know hw to check the use regarding the T130M?

Read only

0 Likes
6,229

Sure! will do work around!get back to you !

Read only

0 Likes
6,228

HI KIRAN,

ON FURTHER CHECKING. I TRIED TO CREATE THE COPY OF THIS ERROR MATERAIL BUT THE COPIED MATERAIL IS INTERFACED AS EXPECTED.

PLEASE REFER THE BELOW SCREEN SHOT OF THAT.

mAY I KNOW WHY I GOT DIFFERENCE IN THE PSTAT FEILD ONLY.

Read only

0 Likes
6,228

Hi Ranjit,

Yes,  configuration problem( SPRO) - checking out correct settings!

Read only

0 Likes
6,228

Hi Ranjit,

I think the material is not extended to MRP

D - MRP view (NOT EXTENDED)

More over need to check configuration! I am not quiet sure where MRP type and plant relation

Read only

RaymondGiuseppi
Active Contributor
0 Likes
6,228
  • Did you check Customizing of this plant, comparing with the other plants ?
  • Can you post the actual error message returned in RETURN ?

Regards,

Raymond

Read only

0 Likes
6,228

in the FM MARC_DISMM the input value passed in P_DISMM is null .so at the first step i m encountering the error.

Read only

0 Likes
6,228

Hi Ranjith

Please pass the MRP type and check. Seconldy as Clemens suggested you can try by doing the same via Tcode. It is a configuration issue

Please check this with your functional consultants

Nabheet