Enhancement/Exit to flag Blocking Reason (RSEG-SPGRS) in MIRO

Hi,
I am facing a problem right now since I cannot find any exit/enhancements that can flag  the Blocking Reason (RSEG-SPGRS) in transaction MIRO.
It is so much appreciated if you can help me to identify which exit/enhancement should I use.
Thank you in advance.

Hi,
This is what i´ve found out:
field RSEG-SPGRS is flagged within fm MR_BLOCKING_REASON_S.
And this field is flagged according to the criteria set in tables:
T169P (Parameters, Invoice Verification)
T169G (Tolerance Limits, Invoice Verification)
...etc.
Have a look at this fm.
If you do a "Where used" search of this fm you will see that is is called in:
Include LMRMPF1L
Subroutine SPERRGRUND_S
if you have a look at this subroutine you will see that there is an exit there:
  CHECK PX_DRSEG-SPGRS NE SPACE.
  SY-SUBRC = 0.
  CALL CUSTOMER-FUNCTION '001'
       EXPORTING I_RBKPV  = PI_RBKPV
                 I_YDRSEG  = PX_DRSEG
       EXCEPTIONS CALL_FAILURE = 001.
  CASE SY-SUBRC.
    WHEN 001.
      MESSAGE E271 RAISING PARAMETER_ERROR.
  ENDCASE.
The exit is EXIT_SAPLMRMP_001.
then there is call to fm MRM_TOLERANCE_CHECK
within this fm there is an exit:
*------- Customer Exit ------------------------------------------------*
  CLEAR: CHK002, SY-SUBRC.
  CALL CUSTOMER-FUNCTION '001'
       EXPORTING I_BUKRS = I_BUKRS
                 I_TOLSL = I_TOLSL
       IMPORTING E_WERT1 =  X169G-WERT1
                 E_XW1JA =  X169G-XW1JA
                 E_WERT2 =  X169G-WERT2
                 E_XW2JA =  X169G-XW2JA
                 E_PROZ1 =  X169G-PROZ1
                 E_XP1JA =  X169G-XP1JA
                 E_PROZ2 =  X169G-PROZ2
                 E_XP2JA =  X169G-XP2JA
                 E_CHECK =  CHK002
        EXCEPTIONS CALL_FAILURE = 001.
This exit is EXIT_SAPLMRMC_001
And within fm MRM_TOLERANCE_CHECK there is the possibiliy of an implicit enhancement.
question: why trying to flag field RSEG-SPGRS when you have tolerances available?
Best regards.

Similar Messages

  • Blocking reasons

    Hi,
    There is a requirement to introduce a drop down in the ME53n screen in the status tab of the item overview of Purchase requisition.The purpose of introducing this drop down is to capture the customised blocking reasons like say 'rejected by quality' etc.We cannot enter these reasons in the text field due to reasons of data inconsistency.So we decided to add them as a drop down in the block ID i.e BLCKD field.But this field has only 2 possible entries 0 and 1 and we need to add 5 blocking reasons.Can anyone help on how to accommodate the 5 blocking reasons and capture them in PR.
    Thanks and Regards,
    Ramya

    Hi,
    I think you can do this with screen exit.
    Regards,
    Sunny

  • Cannot retrieve blocking reasons from mir4

    i am trying to retrieve the blocking reason fields (spgrm, spgrp, spgrt and spgrq)from mir4 but when i look at the technical settings the field is in structure drseg. since i cannot fetch data from structure, i used the where-used list to find out other tables which include those fields.
    as of now, the report fetches the blocking reasons from table rseg and bseg. i have to modify it in order for it to get data from mir4. how can i do that if as i trace the structure, both the table bseg and rseg uses those same fields but their results are different from the expected results in mir4? please help.

    This may be because of shared buffer raw message are not in temporary file or data pool.

  • How to set delivery block in va01 by not use delivery block reason.

    Dear SAP Gurus.
    I have one scenario. I need to do delivery block on sales order while i create sales order via VA01.
    Normally, I use delivery block reason in header and set delivery block in schedule line.
    In addtion, i dont want to use above method and not use complete delivery (Tick on it)
    So, I would like to know it has other way to do delivery block.
    The cause is my manager do not allow to use  this field from company's policy.
    Please help me to solve this problem.
    Thank you in advance for your kindly help.
    Best Regards,
        Surakit

    Surakit,
    Well, do you want to say that user should not manually user delivery block at header or sch line to block the doc or any other method manually done before saving the sales order.
    In that case, for making default delivery block at header, in Sales doc type (TCode VOV8) in Shipping section, maintain a delivery block as 22-Statutory Compliance(even any other option available) or for Item based block on Sch line cat (TCode VOV6) maintain default delv block there.
    Or if I misunderstood your requirement then we can wait & see other solution coming for the same.
    Thanks & Regards
    JP

  • Payment block reasons

    Hi,
    what are the settings i need to do for payment block reasons,  i am working in quality management, when i don't approve the quality check, it is allowing for outgoing payment, and it should work like this once i approve the invoice and it should not ask for payment is blocked. Please provide complete config for payment block

    Hi Sai
    Payment block reason is assigned to differentiate among the reasons why invoices are not paid. You can define as many reasons as your business requires. However block is applicable for all Co Codes defined.
    In payment block reason, you have 3 options:
    Changes in payment proposals- If you select this, you can edit or delete the block at the time of Payment proposal
    Manual payment block- This is to restrict the clearing even if the incoming or outgoing payment is made via manual entry
    Not changeable- This cannot be cancelled or editable by the user.
    Hope this clarifies your question.

  • Payment Block Reason Overview Screen

    What does "Not Changeable" Indicator Does in Payment Block Reasons Screen
    What happens if we check that
    A detail answer is well appreciated.
    Harsh
    Moderator: Please, avoid asking basic questions

    Dear:
                   I think you are talking about the settings in Tcode OB27. If the checkbox for 'Not Changeable' is activated you cannot change the Payment block directly and vice versa . Manual payment like in F-53 does not consider payment block unless you do not configure it in OB27. You can latter release this invoice only using MRBR. This is for your information.
    Regards

  • Payment block reason

    Hi Gurus,
    can anyone explain where payment block reasons are used?
    pls help
    Regards
    ravi

    HI,
    Manual payment block
    If you manually select a payment block from the list field to block an invoice for payment, the payment block field in the header of the invoice document is marked with the appropriate indicator.
    Blocked due to differences
    If invoices are to be blocked automatically due to differences in the invoice items, the system enters the payment block R in the vendor line of the Accounting document. The field in the header of the invoice document remains empty.
    Random payment block
    Invoices that do not show any other blocking reason, can be blocked in accordance with the random principle. In Customizing for the Logistics invoice verification, you can set the probability for the block. The indicator for the logistical payment block is entered in the header of the invoice document.
    Thanks and points
    Vasu.

  • J1INQEFILE (FLAG for reason for Non-deduction/ lower deduction)

    This refers to the E-TDS return challan format. As per the new format we have to show additional column showing FLAG for reason for Non-deduction/ lower deduction. 
    Is there any patch / solution / SNOTE from SAP? 
    It is related to J1INQEFILE.
    Transaction where tax not been deducted as amount paid/credited to the vendor/party has not exceeded the threshold limit (as per the provisions of income tax act). Applicable for sections 193,194, 194A, 194B, 194BB, 194C, 194D, 194EE, 194G, 194H, 194I, 194J, 194LA

    Hi ,
    Refer to OSS note no. 1442113 - Legal Change October 2010 - ETDS / TCS file format change.
    It has the symptoms as well as the solutions for the issue .
    Cheers ,
    Dewang

  • Custom invoice blocking reason

    When posting an invoice, several checks are done to see whether invoice items should be blocked for payment. This is being done based on price and quantity. Right now we want to block payment for an incoming invoice item if that item does not have a corresponding PO item.
    To this end we want to (ab)use the blocking reason for quality. When posting an invoice, there will be a time in the code that blocking reasons will be checked, at least for price and quantity. At that point we would like to insert our own code to set the quality block field if required.
    Is there a way of customizing this process or creating an additional check without having to adjust standard SAP? Thanks in advance for the help!

    An update and a question on the issue. The badi eventually didn't work for us, the additional checks it performed made it very hard to work with. What we did was adjust standard SAP in the routine for quality check. If our check returned negative, we set the quality block and return the process to SAP. Luckily this isn't a coding beauty contest, but it works perfectly.
    Now we've been asked to implement the same process in another system. Newer system (SAP ECC 6.0), so once again we want to check whether there is a better way of solving the issue.
    We know we're able to define custom blocking reasons. However they all seem to be related to tolerance level checking, which is not what we want to do.
    Is there any way of creating a custom blocking reason on header or item level, which we can set with custom ABAP coding? Then we can program what we want to check and when to set the block.

  • MRBR - Manual Block Reason

    Hi All,
    When we run the MRBR ( Release Block Invoice )  and select release manual, we found some items do not have quantity differece or price differenc. However, we found some maual block reason. When I look the manual block reason items in MM and FI documents, all are free for payment. in FI and MM side.
    When I run release automatically in MRBR, system do not pick up manual block reason items  to release.
    Anyone know why MRBR indicate manual block reason ? How can we release the manual block items automatically ?
    Thank You
    Alex Lee

    Hi
    Automatic release for manual blocking is not possible in standard SAP. You need to release it manually in MRBR transaction by choosing option Release manually. Only invoices blocked due to variances can be released automatically
    Regards
    Antony

  • Is there a way to change shipment block reason on delivery using BAPI ?

    Hi Experts,
    Is there a way to change the shipment block reason for a delivery using any BAPI or a function module ?
    In VL02N, the shipment block reason is present in Header--> Shipment tab under Shipment frame.
    I tried using BAPI_OUTB_DELIVERY_CHANGE but did not find any relevant parameter.
    Please suggest..
    Thanks,
    Anand

    Hi Anand,
    In the BAPI 'BAPI_OUTB_DELIVERY_CHANGE', import parameter HEADER_DATA ( Associated type is BAPIOBDLVHDRCHG ), there is a field called DLV_BLOCK.
    You can get the possible values for this field in table 'TVLS'.
    Please find the example possible values.
    01     Credit limit
    02     Political reasons
    03     Bottleneck material
    04     Export papers missng
    05     Check free of ch.dlv
    06     No printing
    07     Change in quantity
    08     Kanban Delivery
    09     JIT delivery (PDS)
    Regards,
    Vijay

  • Blocking reasons for vendors

    We can maintain a blocking reason for vendors?
    Can we configure any additional blocking reasons?
    how to configure?

    Hi,
    In ME01 tocde you can block the vendor, by checking the checkbox for Block..
    Enter the vendor , date from which to date to and save.
    You can use MK05 also.
    Hope it clarifies..
    tx
    Uts
    Award if helpfull
    Edited by: utsa agr on Oct 6, 2008 5:42 AM

  • Enhancement/Exit for transportation zone while creating/changing customer

    Hi,
    I want Enhancement/Exit for chnging transportation zone while creating/changing customer.

    HI,
    I  used inmplicit enhancement .
    and change kna1-lzone
    but still previous value is store.
    no changes made.
    even i changed
    addr_chg = 'X'.

  • WM: LX02 / LQ02 - Blocking reason field

    Dear All,
    While displaying stocks in LX02 I have noticed  "Blocking reason" column. This column is empty
    for all positions but I would like to make use of it.
    Whenever we block material / move to Q we would like to mark the reason of blocking / moving to Q
    We use LQ02 for posting changes to WM / MM. Can we use LQ02 for updating "Blocking reason" column?
    If not LQ02 then what?
    Best regards,
    Mark

    Lx02 is a stock list.
    If you see there a blocking reason field, then this is related to the stock or the warehouse space   it will block putaway or picking or both.
    You can block and unblock
    quants with LS07,
    storage bins with LS02N, Ls06, LS08 and LS11 and LX05
    and storage types with LS12

  • Error "Blocking reason not allowed"

    Hello,
       I have to unblock a material i.e from blocked state to unrestricted state. It is giving me an error as
    "Blocking reason not allowed"
    Whys does this happen.
    regards,
    priyanka

    Hi,
    Check the config of the currency code (OY04), it is probably set to not allow decimal places.
    If this is the case, don't change it, simply enter a price of 271 with a price unit of 100, in the PO. This will give you a price of 2.71 for one
    Steve B

Maybe you are looking for

  • Checkbox and report page in new window

    Hi team, I have the following problem. On a page I display a report where each row has a checkbox. The user can check a row and press a button (button in region)to produce a more detailed report. I want to display this report in a new window. I know

  • GRC Compliance Calibrator 5.3 and the "action" field for S_TCODE.

    Dear GRC gurus, I have read the threads here on the search terms for the "action" field in the "function" definitions, but not found a clear answer... so forgive me for asking a possibly obvious question. When implementing the technical rules for the

  • Jaas & Integrity check on decrypted field failed

    I'm trying to do Kerberos authentication using JAAS and the jdk 1.4.1_02 under Mandrake 9.1. The Kerberos server is installed on a Redhat 9 machine. I'm using the login module com.sun.security.auth.module.Krb5LoginModule and the TextCallbackHandler c

  • Unexpected table created after schema registration

    I registered the following xsd. Even though I did not specify any tables to be created, I see a table in "user_xml_tables". Could someone explain what's going on? Thank you. 1. This is the xsd file. <xsd:schema version="1.0" xdb:storeVarrayAsTable="f

  • Illustrator CS6 Scale action won't apply? Help

    Hello Im having problem with scale in an action im making, it just wont apply I cant work it out, here is my code if anyone can help For this demo i have set to 50x50% scale to /version 3 /name [ 10           43617365204d616b6572 /isOpen 1 /actionCou