Payment Block Status automatically set 'Y' in FBV2

Hi Team,
             My requirement is this,   when user want to post document by T Code  FBv2 or MIR4 
             if user stands on 25 to month end date. means  system date check then
Payment block automatically set to 'Y' (month end posting).
for this one i used many BADI and FM but not working as of now.
one BADI i used as FAGL_SET_DOC   in debugg mode its updating the that fields value
as its technicsl field name is  ZLSPR  whic i set  to 'Y'
its working fine in debugg mode , but when we again check for that Document no then that filed's value is not populating as required.
So please suggest me how can i set Payment block status to 'Y' as month end posting.
Thanks
Vivek

hi Hiriyapapa,
                   I used BADI    FAGL_SET_BADI for our field update
method is CHANGE_SEGMENT_PSEGMENT
there i put code as below
TYPES:  BEGIN OF TY_EKPO,
           EBELN TYPE EBELN,
           EBELP TYPE EBELP,
           PSTYP TYPE PSTYP,
           END   OF TY_EKPO.
   DATA : IT_EKPO TYPE TABLE OF TY_EKPO,
          WA_EKPO TYPE          TY_EKPO.
   DATA: WA_ACCIT TYPE ACCIT,
         L_TABIX  TYPE SY-TABIX.
   IF SY-TCODE = 'MIR4' OR SY-TCODE = 'FBV2'." OR sy-tcode = 'ZTR_SEG_RECLASS_REV' .  "Tcode for Netting Counter wise and Segment Reclassification
     BREAK 51393182.
     SELECT EBELN
            EBELP
            PSTYP
            FROM EKPO INTO TABLE IT_EKPO
            FOR ALL ENTRIES IN CT_ACCIT
            WHERE EBELN EQ CT_ACCIT-EBELN
            AND   EBELP EQ CT_ACCIT-EBELP.
     IF SY-SUBRC = 0.
       LOOP AT IT_EKPO INTO WA_EKPO .
*          <--Begin of Change by Ashutosh Mishra     27-june-14 HRDK950590
         IF WA_EKPO-PSTYP = '9'.    ."BREAK 51393182.
           LOOP AT CT_ACCIT INTO WA_ACCIT.
*         if WA_ACCIT-EBELN is NOT INITIAL.
             IF SY-DATUM+6(2) EQ '25' OR  SY-DATUM+6(2) EQ '26' OR  SY-DATUM+6(2) EQ '27'
             OR SY-DATUM+6(2) EQ '28' OR SY-DATUM+6(2) EQ '29' OR SY-DATUM+6(2) EQ '30'
             OR SY-DATUM+6(2) EQ '31'.
               WA_ACCIT-ZLSPR = 'Y'.      "SET Y PAYMENT BLOCK STATUS
               MODIFY CT_ACCIT FROM WA_ACCIT TRANSPORTING ZLSPR.
               CLEAR : WA_ACCIT.
             ENDIF."endif.
           ENDLOOP.
         ENDIF.
       ENDLOOP.
     ENDIF.
   ENDIF.
ENDMETHOD.
in debug mode its working fine its updating as i want , but when we out of debug its not updating that fields status.
I request to you please suggest me for this issue.
Regard
Vivek

Similar Messages

  • Set Payment block for documents generated by txn FBCJ

    Is there a way to block the FI documents (receipts) from FBCJ?
    I mean, when we create a cash receipts (repayment froma a vendor).
    I set the payment condition in the vendor master data in order to block all the invoices generated but for the cash journal txn doesn't work.
    Is it possible to add the field Payment Condition (ZTERM) or Payment Block Status (ZLSPR) directly in FBCJ??
    Any idea??
    thx in advance.

    Dear Pham,
    I don't have any idea about down payment process, so straightly I can't answer your requirement
    Please go through this SAP help link it may help you about down payment process.
    http://help.sap.com/saphelp_47x200/helpdata/en/dd/561621545a11d1a7020000e829fd11/frameset.htm
    I hope this will help you,
    Regards,
    Murali.

  • Vendor Invoice paid - even though Payment Block set to "A"

    Hello,
    I have encountered the following situation:
    Late Nov 2010 - invoice created for a vendor
    Early Dec 2010 - payment block on line items in accounting document set to "A" in t-code FB02
    Late Dec 2010 - payment was made to the vendor, even though payment block of "A" set on the document
    How can payment to a vendor be made on this document if the payment block is set to "A"?  Can this be over-ridden manually by the user?  Any help would be greatly appreciated.

    Hi,
    Go to transaction OB27 and restrict for manual payment and change of payment block in payment run.
    Regards,
    Gaurav

  • Massive setting of  A/P payment block

    Hi all,
    I have to set the payment block for a lot of A/P documents. Do you know if there exist a way to do a massive document update?
    Thanks.
    Flavio

    Hello,
    Go to FBL1N,
    Select the document you would like to mass change.
    click on mass change button.
    Enter the Payment Block.
    Say OK.
    Payment block will be set to the line items.
    Regards,
    Ravi

  • "Billing block" status has been set.

    One contract was incepted (Created) on 13.03.2008. BRI's also generated, BRI is nothing but which calculates the EMI amount with respective billing dates. But due to some reason all BRI got u201Cblock for billingu201D status. Because of that BILLING DUE list was not generated.
    Now we are getting collection from customer and it is lying in suspense account.
    Now, I need to know how this billing block status has set in all the BRI.How to rectify this.
    Give me some clarity on billing block.
    Immediate response appreciated.
    Thanks and regards
    Rajesh

    HI,
    Billing block may be set at Status Profile. Check your status profile. Double click on Status and see behind whether there any Radio Button Set or not (Based upon your requirement).
    You can also manually remove the Billing block status.
    Hope it answers your query.
    Regards,
    Ankush

  • Payment Block Not stopping the payment to vendor??

    Hi All,
    we have a problem related to Payment Block option in Vendor Invoice.
    by using FB02 We have updated the payment block for MIRO accounting document against the vendor line item.
    while processing the vendor payment the blocked invoice is appearing for payment and it is allowing to make payment against this invoice.
    is there any setting to activate the payment block or any configuration is to be done to do so.
    please guide us.
    thanks & regards,
    shashi kanth

    Hi,
    Generally we use Payment block for Automatic payments with Tcode F110.
    If you would like to use payment block for normal payment, Create a new payment block or change existing payment block Tick Manual payment block option.
    Path :- Out going pamyment --> OG payments global settings --> Define payment block reasons..
    Regards,
    Venky

  • Payment block issue

    Hello
    a particular miro invoice is blocked for payment 'R' we can see the document no. which is showing blocked for payment. but payment is proceeded through FB05, and payment document is generated.
    What could be the reason??
    Subodh

    Hi,
    Did you check the settings in OB27?
    You can see three options. Followings are the functionality:
    1. Change in Payment Proposal Permitted?
    It ndicates whether a change is allowed in the payment proposal. If you do not set this indicator, its block reason can be neither set nor deleted when a payment proposal is processed.
    For Example
    You can prohibit the block indicator that is set in invoice verification from being changed in the payment proposal.
    2. Blocked for manual payments
    It indicates that documents which are flagged with the relevant blocking key cannot also be cleared during manual entry of incoming payments or outgoing payments
    3. Payment block, not changeable
    Payment block that cannot be modified, that is, within a dialog transaction (for example, Document Change), the user cannot reset the payment block.
    In this case, a blocked item must be released for payment within the workflow. After the payment release, the payment block is automatically reset in the background. You can only use one payment block for the payment release workflow, that is only one entry can be designated as not modifiable.
    I hope you found some clues.
    Regards,
    Jigar

  • Down payment blocked for Payment"A"

    Hi Friends,
    I Runnig the APP. All payments get sttled exceprt Down payment. Because while creating the down payment (f-48), Systom automatically picup the Payment Block "A". But posting the transaction i try to remove the indicator"A" Manually, but i was not able to remove that indicator. So due to this reaseon system is not able to settle the downpayment transactions through APP.
    Please give the possible sollutions for the ab oabove proble.
    Regards,
    Bramha

    I guess that is the process (whether you consider is automated, manual or partially automated).  Here is a link to SAP BPP on this.
    http://help.sap.com/bp_bblibrary/470/Documentation/J33_BPP_02_CHEM_EN_IN.DOC
    The reason why payment block A is set automatically in F-48 is (I guess) because of standard SAP code.  Logically I think it should block it, because otherwise it is an open item (Vendor debit, of course) which might get picked up in APP, whereas it should not - payment is already made - cash/bank account is credited when F-48 is posted.
    Considering the above analysis, what do you want to achieve by removing the block on F-48 document?  If you still want to remove, I guess what is stopping you is those checkboxes against block ind. A in transaction OB27.  If you check the 'Change in pmnt prop.' checkbox, you should be able to remove the payment block in the payment proposal in APP.  If the checkbox 'Not changeable' is checked (ticked), you will not be able to remove the block in FB02.

  • Payment block is require for posting key 29

    Dear Guru,
    Payment block field is not apearing for posting ky 29 and 39.
    Can any one tell me how it will come for posting key 29 and 39.
    I have checked in OB41.
    Regards,
    Venkat

    Hi,
    Normally payment block is not set by posting key.
    You can set this field to be showed in account group of vendor or customer.  If you only want payment block to be required fiield for payment key 29, you have to use the suggest above to use a substitution in FI.
    Edited by: Tracy@DE on May 25, 2011 12:15 PM

  • Validation Rule on Payment block

    Hi All,
    Need your expert advice on below scenario
    Specific users are allow to remove payment block of Document posted of specific vendors, can you please provide what logic I use in GGB0 Validation rule.
    Logic used by me is  under prerequisit:
    Company Code = '1100' AND Vendor = 'vendor Number' AND User Name <> 'User ID'
    under Check:
    Pmnt Block <> 'B'
    it is restricted user from editing payment block of posted document.

    Hi Revan,
    Your logic will work. It will have side effects - but if you take another approach, there will be others (perhaps more serious ones). So, I would suggest going ahead with it and see where it needs to be adjsuted.
    Let's list some of the drawbacks, so that you can address them if needed:
    * For example, no other user will be able to post or change anything on such a vendor item (not even Text, Assignment etc.) if the payment block is not set. I believe you have to live with it.
    * No other user will be able to reverse (trans. FB08 etc.) or unclear (trans. FBRA) such items if they are not blocked against payment. Blocking FBRA is perhaps OK, but I would strongly recommend excluding trans. FB08 from the prerequisites - it is usually a good practice to allow "everything" on reversal, so that any error can be corrected this way.
    * If the item is blocked with another indicator (e.g., "R" from logistics invoice verification) then the other users will not be able to do anything with it, either. Do you want the block type to be so specific? If not, then you may consider a blank block in the "check". But this is rather a detail.
    Lakshmi also had a good idea to include all such users (and perhaps vendors) in sets (with trans. GS01 / GS02) to make it more flexible to change them as employees move or new vendors become critical. This could however open a "back door" if the access to this set (these sets) is not properly controlled.
    I was also thinking about a different approach - to do it through authorization roles and profiles, but it would have much more drawbacks (e.g. with object Accounting Document: Account Authorization for Vendors (F_BKPF_BEK) - only the priviledged group would be able to perform specific actions on such vendor items, whether or not they would be blocked - which would be harsher than you design). So, you are trying the right approach, but it may just be needed to finetune it a little (put some more prerequisites, such as "exclude FB08"). You do it the right way, I believe.
    Good luck!

  • Payment release required; payment block set automatically Message no. F5707

    Hello Friends,
    I am trying to post vendor down payment with T.CODE F-48 but is am getting this Error " Payment release required; payment block set automatically, Message no. F5707"
    Will any budy please make me clear with this issue ....
    Have a nice day...
    Regards
    Amresh...

    HI g.amresh,
    Please check with the Payment Requiest F-47.  Are you using this function then check Receipt box in F-48.  I think that would be the reason. 
    Regards

  • Automatic payment block for purchase orders with no GR

    Hi all, we have this issue. We would have an automatic payment block for all the PO's that have the 2-way match (no GR set)
    All these PO's in our company have an account assignement (that could be a cost center or a WBS element).
    The important is that all these PO's after inserted in the MIRO transaction should have the payment block set automatically Thanks for any precious help

    Hi !
    you can set it in the vendor master record on screen 'Payment transactions Accounting'
    For your information reffering to the IV process, payment block and payment method is derived from
    payment term instead of vendor master. Please check with OBB8, " pmnt
    block/ pmnt method default".
    For more information about this, please refer to the notes 322430
    and 177224.
    If the vendor is blocked, automatic payment program (F110) will not
    pay the vendor during the payment run. You can find more information in
    F1 help of "payment block" field in master data (LFB1-ZAHLS).
    MIRO is strictly PO-bases, the payment terms are copied from the PO
    rather than from the vendor master. The business reason is, that the PO
    represents the contract between vendor and customer including the terms
    of payment.
    Best regards
    Shivendra Tripathi
    INDIA

  • Payment block R gets automatically get triggered

    Hi Guys:
                  When i do MIRO,payment block R gets automatically triggered and payment block R is updated in invoice posted document. I am unable to understanding from where it is coming. Please help me to resolve the issue.
    Br

    Hi,
    Check this SAP link you will get the idea
    http://help.sap.com/saphelp_46c/helpdata/en/47/60fa5749f011d1894c0000e829fbbd/content.htm
    Which is defined in
    OLMR ->Invoice Block ->Stochastic Block ->Activate Stochastic Block
    OLMR ->Invoice Block ->Stochastic Block ->Set Stochastic Block
    Also read the IMG Activity documentation
    Edited by: redriver on Jan 26, 2012 4:31 PM

  • FB60 automatic payment block "A"

    Hi Guys,
    I hope you are doing good.  I have a small issue regarding FI block report. As far as I know, Payment Block "A" it is manual block, however I came to realize that sometimes while processing an invoice using FB60, the document gets automatically blocked with "A". 
    Later on I had a talk with my supervisor, & I came to know that if a invoice amount crosses a certain amount let say $5000, it will get blocked. This block is maintain as per comapny code not vendor wise.
    So can anyone tell me how can I remove or maintain a payment block as per company code?
    Thanks,
    Abhishek

    Hi,
    For my understanding you can do it for 2 ways:
    1- Create substitution rule - Line item (OBBH transaction)
    or
    2- Using the termo of payment (OBB8 transaction), there is a field pmnt block that you are able to set up for this.
    Thanks
    Daniel

  • Automatic payment block configuration

    Hi,
    How and where can I deactivate automatic payment block(in MIRO) fo particular doc. type ?
    I do not want to deactivate amount check for whole company code.
    Thanks and Regards
    Rafal
    Edited by: Rafal Pojda on May 4, 2009 11:35 AM

    HI,
    In SPRO-MM-LIV-invoice Block-->Activate Amount Check
    Deactivate the same
    In SPRO-MM-LIV-invoice Block-->Stochastic Block
    Deactivate the same
    and in the Vendor Master Setting in the Payemnt Transaction,--Make the Payment methos --Free for payment.
    After that the amount Tolerance limit--Make it as dont check
    it is done in the T code OMR6, as per the company code
    against the keys mentioned below
    u2022     AN: Amount for item without order reference
    u2022     AP: Amount for item with order reference
    u2022     BD: Form small differences automatically
    u2022     BR: Percentage OPUn variance (IR before GR)
    u2022     BW: Percentage OPUn variance (GR before IR)
    u2022     DQ: Exceed amount: quantity variance
    u2022     DW: Quantity variance when GR quantity = zero
    u2022     KW: Variance from condition value
    u2022     LA: Amount of blanket purchase order
    u2022     LD: Blanket purchase order time limit exceeded
    u2022     PP: Price variance
    u2022     PS: Price variance: estimated price
    u2022     ST: Date variance (value x days)
    u2022     VP: Moving average price variance
    Hope so it helps
    Regards
    Anjanna

Maybe you are looking for