Help on user exit (credit limit blocking)

Hi,
Currently, my user exit checks the order value in va01, va02 against the remaining credit and puts a credit block on the customer/order if the order value is higher than the credit limit.
However, it should only take confirmed order values. For example, if the user entered 10 qty, but only 1 qty exists, then only 1 of the values should be considered when it against the credit limit.
Please help.
Thanks,
John

Hello John,
Use MV45AFZF Include
here look at documentation top of the form routine
FORM USEREXIT_AVAIL_CHECK_CREDIT USING    US_VBAK STRUCTURE VBAK
                                          US_VBUK STRUCTURE VBUKVB
                                          US_VBAP STRUCTURE VBAPVB
                                          US_RELEASE
                                          US_RECHECK
                                 CHANGING CH_CHECK.
  DATA: CON_CHECK_STANDARD LIKE SY-SUBRC VALUE 4,
        CON_CHECK_NO       LIKE SY-SUBRC VALUE 8,
        CON_CHECK_YES      LIKE SY-SUBRC VALUE 0.
  CH_CHECK = CON_CHECK_STANDARD.
CH_CHECK = CON_CHECK_NO.
CH_CHECK = CON_CHECK_YES.
ENDFORM.
Thanks
Seshu

Similar Messages

  • Need help for user exit mereq001

    Hi,
    I need help for user exit mereq001. I think I messed up with include table CI_EBANDB and CI_EBANMEM. And When I tried to check the syntax . It gives me error like : <b>Class IF_PURCHASE_REQUISITION. Inconsistency in the dictionary for the structure mereq_item_s_cust_data.</b> Anyone had experience for this exit? I just need to extract costcenter information of the each item from the requisition and block the requisiton if the costcenter are differents from each other before the requisition is saved. Any one has idea about it?
    Thanks.

    biao,
    Have you checked this struture consistency from SE11. Also check the activation log.
    If there are any errors and you are not able to rectify the same use RSDDCHECK program, give your table name and run the report.
    This will list down the error structures releated this table and also prompts for you to activate it.
    Regds
    Manohar

  • Block cash sales with credit limit blocking from creation of outbound

    Hello everyone,
    Can you please teach me how to block cash sales with credit limit blocking from creation of outbound delivery?  Currently, outbound delivery can not be created only for charge sales with credit limit block.  Problem is, we can not confirm the cash sales.  We have to delete first the outbound then unblock the S.O. before creating a new Outbound.
    Thanks in advance.
    Ridgy

    Cash sale transaction will not have credit limit block, as the transaction is based on receipt of immediate payment. But if you still want to try the same, configure a 'Z' transaction Type for cash sale (Copy of Cash Sale - Sales Order Type) and maintain Credit check field as 'D' and try the scenario.
    Ideally there should not be a Credir Check foe a Cash Sale Scenario.
    Regards,
    Rajesh Banka

  • Say Credit limit block in working on certain documents

    HI FRIENDS
    I HAVE AN ERROR
    Say Credit limit block in working on certain documents

    Hi You have to look to the open-invoices / orderes/ ,.. if the total value is not hihger that you credit limit
    FD10N - Display balances
    FD11 - Analysis
    Paul

  • Help on User Exits with example needed

    Hello Experts,
    Need help/material on:
    1)Understanding Advanced Customization (VOFM, User Exits)
    2)Calculating Freight Charges
    3)Integrating Credit and Payment Cards
    4)Interfacing with Other Modules (MRP, AR)
    5)Using Batch Delivery Processing
    Regards
    Innova

    Hi,
    There are a number of techniques SAP have used over the years to implement user-exits.
    The most recent exits will be found in CMOD. Using CMOD (or SMOD), you can list all the enhancements available, that use this technique. As  usual in the SAP world, the later the version of SAP you are using, the more exits are available.
    Other exits do not use the enhancement technique. For example, in Sales Order Processing (SAPMV45A), SAP have provided empty forms, such as USEREXIT_SAVE_DOCUMENT_PREPARE that can be used to provide customer functionality. With one client, this was used to set the blocking indicator on a sales order, if a manual change had been made to pricing. The requiredscript is written in between form and end form.
    Another technique is the use of validation and substitution rules in the financial modules.
    The best way to find the user exits available is through the IMG. The relevant nodes will take you to where the customisation can be performed. Usually, the associated IMG note details the use of each exit, though there are gaps.
    Award points if helpful.
    Message edited by
    Mohan

  • Help on alerts/warehouse/credit limit

    Dear Experts,
    I need help on the following:
    1) As soon as the invoice is generated it should send a one-time alert immediately to the conecerned authority (user). Is it possible through the alerts management as there is no functionality of giving the alert just one time as and when it is generated. Also please give the query to do the same.
    2) Stored procedure to check that at the time when the PO is added then all the warehouses at the line level should be same.
    3) I want to block all deliveries/invoices where the credit limit exceeds. Can it be done through the standard system or the same can be done through SP_Notification stored procedure.
    I am using SAP 2007 B PL 15.
    Regards,
    Rahul

    Thanks Cliff,
    I am acquainted with the SP_Transaction notification procedure. So there woul be no problem in adding that quey to stotred procedure.
    I need the queries for the below:
    1) Blocking deliveries and invoices where credit limit exceeds.
    2) Blocking all PO's/GRPO's where the warehouses at line level are different.
    Regards,
    Rahul

  • User exit for Dlvy Block at header for sales order for Companycode & materl

    Hi all,
    I have a requirement. I need to apply a Delivery Block for all sales orders which fall
    In a particualr company code "999" and if they have any configurable material in the item level.
    When a Sales Order is generated, during the process of generation, I should
    Write a loigc such that, if the sales orders fall in a particlar company code
    Say for '999' and if they have a configurable material at item level,
    I have to trigger an ABAP Proxy that goes and fetches a Yes/No value from an
    External system. Based on this Flag value I h ave to then apply a delivery block for
    The order at header level.
    So I assume, I should put a logic in some user exit that gets triggered before order is saved.
    And in that user exit I have to check if the Company Code of that order is '999' and if it  has
    Configurable product or not. If it satisfies the 2 conditions, I should, trigger this ABAP Proxy and
    Based on the true/False value I have to set Delivery Block or do not set delivery block for the order
    At header level.
    So I think first I should figure  out following things.
    1) user exit ..where I should put the code to check conditions and to apply delivery block.
    2) write a proxy and trigger that proxy in this user exit.
    Coming to first part, which user exit should I use to set delivery block for the order
    At header level. And how will I check for company code and config product?
    Which variables of the SAP stnd pgm store Company Code and Config product values so that
    I can check those variables for that values?
    Please suggest and help me with this.
    Any help will be highly appreciated.
    Regards,
    Sam

    1)go to the main program sapmv45a
    include MV45AFZZ ->userexit_move_field_to_vbak
    depending on ur conditions ...
    keep a break-point in the form userexit_move_field_to_vbak ,and if it stops there Check for vbak-lifsk .
    Write a condition to set the deliveryblock that is vbak-lifsk = 'xx'.
    2)then regarding your second point ...what is the middle ware used to interact with legacy system
    let me know

  • Report for viewing credit limit block released documents

    Hello All,
    Our client's requirement- credit limit check to be carried out and authorised persons can release the blocked orders.
    But is there any report at month end to see how many documents were released and who released them  Is there any standard report for viewing these or ABAP has to develop them?  VKM2 transaction- released SD Documents would not show any released documents once billing is done i.e, once the sales documents is released it cannot be known who released it and when, how to track this?. so what can be the solution for this? Please suggest
    Regards,
    RAJ

    Dear Raja,
    Use VKM4 t code.
    You can see both credit released sales orders and deliveries.
    Put Overall credit status as D.
    You can see how much value was released, when it was released. But with which user id it was released you cant see it.
    Regards
    Abhilash

  • USER EXIT/BADI for blocking pop up in VA01/VA02 for unloading point

    Hi,
    Please see details below with an example
    Following the below steps will execute the popup.
    1. VA01 (Sales Doc Create)
    Document type can be anything.This pop-up should be blocked for 'CRQ' and 'CR' types.
    2. Input “CRQ” or “CR” in the Order Type field and execute.
    3. Within the document:
    Input customer “194” as the Sold-to and Ship-to parties
    Input the PO Date field with today’s date
    Input material “475410m” and a Target Quantity of “1”
    Press Enter
    If the ship-to party has more than one unloading point  a pop up would show both values to choose one(these values come from KNVA-ABLAD).
    The code details are as follows:
    Program SAPMV45A--> Include  MV45AF0K_KUAGV_SELECT---->CALL FUNCTION 'VIEW_KUAGV'
    2)CALL FUNCTION 'VIEW_KUAGV' uses CALL FUNCTION 'SD_PARTNER_SINGLE_MODIFY' for ship-to(WE)
    3) IN FM 'SD_PARTNER_SINGLE_MODIFY'  the following sub-routine is called:
    *-- proceed inserting a partner -
    create a new xvbpa-segment
    PERFORM XVBPA_ENTRY_FILL USING LVF_VKORG LVF_VTWEG LVF_SPART
    LVF_VBELN
    fif_posnr
    LVF_KUNNR_NEW
    FIF_MANUAL_ADDRESS
    FIF_MANUAL_ADDRESS_ORIGIN
    FIF_PARVW FIF_PARGR
    LVF_PARTNER_USER
    FIF_KNREF_PARNR
    FIF_PRFRE
    FIF_BOKRE
    FIF_HISTUNR
    FIF_HZUOR
    FIF_NO_DIALOG
    LVT_XVBADR
    LVF_ACTION_TODO
    LVS_OLD_XVBPA-CNTPA
    CHANGING LVS_NEW_XVBPA
    LVT_XVBPA.
    4)This subroutine uses FM 'SD_PARTNER_ABLAD_SELECTION'  to determine unloading points for ship-to and also  brings up the pop-up using 'REUSE_ALV_POPUP_TO_SELECT'.
    partner is ship-to, so determinate unloading point
    CALL FUNCTION 'SD_PARTNER_ABLAD_SELECTION'
    EXPORTING
    FIF_KUNNR = LVS_XVBPA-KUNNR
    FIF_NO_DIALOG = LVF_NO_DIALOG
    IMPORTING
    FES_KNVA = LVS_KNVA
    EXCEPTIONS
    NO_UNLOADING_POINT = 1
    NO_SELECTION_DONE = 2
    OTHERS = 3.
    LVS_XVBPA-ABLAD = LVS_KNVA-ABLAD.
    Any help in this regard is highly appreciated.
    Sincere Regards,
    Sai.

    Have a look at below link which gives the details abt the user exits related to VA01/VA02.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Payment program F110: User Exit/BAPI to block/unblock payments

    Hi!
    I need to block some documents when the payment occurs (F110)
    and in the end I need to unblock then. Seams to me than I have to modify the value of field BSEG-ZLSPR.
    The problem is that I try to find some User Exit ou BAPI by various ways
    but I find none.
    Can anyone help me?
    Thanks a lot.
    Rui

    Thanks Savitha.
    I will analyse your suggestion.
    What I need is:
    1-Enter t-code F110
    2-Fill the necessary fields and click in Proposal to execute the proposal.
    3-If everything id ok, the user clicks in Payments to execute the payment.
    This is the “normal” execution.
    What I need in the step 3 <b>in the beginning</b>, block some payments
    (based in some parameters) – this to prevent of executing the marked payments.
    And <b>in the end</b> unblock the blocked payments (return to original situation)
    Can you give me any more suggestion?
    Thanks!
    Rui

  • Credit Limit Block.

    Hi Experts,
    I am facing a problem. The credit limit of a customer has not been exceeded,but still system is not allowing to do the delivery from the sales order. It is throwing a message by saying "Order blocked for delivery as a result of credit check".
    Can you please tell me the solution of this problem and why it is coming???
    Thanks & regards,
    Rupam.

    Hi,
    In Credit check the open orders include
    1 Open deliveries
    2 Open billing documents
    3 Open items (accounts receivable)
    The open order value is the value of the order items which have not yet been delivered.
    The open delivery value is the value of the delivery items which have not yet been invoiced.
    The open invoice value is the value of the billing document items which have not yet been forwarded to accounting.
    The open items represent documents that have been forwarded to accounting but not yet settled by the customer.
    When u specify 'Max. open item percentage' as 50% then it means that the sum of all the above open documents should not exceed 50% of the total credit limit.
    IF such a case happens where the sum of all the open documents exceeds the % value u have specified u can take specific action by selecting the checkbox next to Open items and set required reaction in transaction OVA8.
    Hope this helps.
    Regards,
    Arun.S

  • User Exits/BADIs in blocking posting of treasury flow in TBB4

    Hi,
    I need to block the posting of some transaction line items based on some conditions in TBB4.
    I required to find out a BADi or User exit in which I can mention the filter criteraia so that some of the transaction line items will be blocked.
    Is there any Userexit/BADI thru which I can access the internal table of line items for a particluar transaction.
    If yes then I can just mention the filter criteria and delete the line items from the table.
    Any pointers will be highly helpful...
    Thanks in advance,
    Sreekanth

    Hi,
    Here mentioned some of badi's and user exits,hope it will help you....
    Badi : FTR_TR_FIMA_CALLBACK
    User Exits
    FTRINCON  User exits  for confirmation status
    RFTBB001  Treasury: Posting interface
    RFTBB010  Treasury: Posting Interface Due to Cust.-Spec. Acct Determtn
    RFTBB011  Treasury: Post.Interface due to SCB Indic. and Deliver.Cntry
    RFTXX301  Customer Exit mt300 header
    RFTXX302  Customer Exit mt300 trailer
    RFTXX321  Customer Exit mt320 header
    RFTXX322  Customer Exit mt320 trailer
    SAPMFTD1  User Exit Treasury data carrier management

  • User-Exit to limit the unplanned delivery costs in a PO

    Hi All,
    My Requirement is that I need to Limit the Unplanned Delivery Costs in a Purchase Order.I find there exists no ways to arrive at this through Customizations.Could anybody please guide me If this can be Fulfilled through a User Exit.If yes,could you please tell me the Exit.
    Thanks a ton,
    Maria

    Hi,
    You can explore EXIT_SAPLMR1M_001.
    Hope it works for you.
    Cheers !

  • Urgent Help in User-Exit for MM!

    Hi,
    1.  I am writing code in the Exit "EXIT_SAPLMGMU_001".
    2.  I have to pop-up error/warning messages for incorrect data entered in various fields/screens/views of MM01/MM02 transaction.
    3.  The Exit gets triggered when i press "SAVE" after modification.
    4.  When I create the Classification View, i enter the class type as "001" for material class.
    5.  Then i need to enter a value "Z_Product" in the class column(on the screen in classification view). This class is the "Product Class" (description).
          My problem is to find this value that i enter on screen before "Save" i.e. when i am creating material for the first time in MM01, i dont want the error message to pop-up if i am entering any value in the class column and  also entering values in the internal characteristics for that class.
          Basically i want to read the values (before "SAVe") entered in the class column as well as want to know the values for the internal characteristics of the class.
          For Class, the std. field is "RMCLF-Class" , but i have no buffer field available in my exit that contains the value for the Class. I have also tried using "Get parameter ID", but it doesnt work.
          For Internal Characteristic values (of the class) that are entered in the tab(that appears on pressing "Enter" after filling the Class value) below the Class tab, i am fetching data from std. table AUSP to check for corresponding entries for that particular material number....but this table will get updated only after "SAVE" and so i would be able to read the values only in MM02.
    Please help me in finding out a way for reading the class values & Characteristic values in my user-exit.
    Thanks & Regards,
    Tejas

    Hi Ronak.
    You can try with <b>'EXIT_SAPLCLFM_002'  (CLFM0002)</b>. This is the exit for the classification view. You can get this for the transaction CL22N / CL24N.
    This is also called in MM01 for classification values. This classification details are cross application components. So This is also called from other transaction.
    Regards
    Rusidar.

  • Sales Order Line Items User Exit - Credit Management/ Exposure Calculation

    Hello Folks
    I am looking for a solution to a peculiar problem we have in credit management.
    In case of Drop Ship sales order life cycle, the system automatically creates two line items per sales order - one each for Freight and Handling Fees. these are NOT relevant to schedule line delivery, nor are they billed to the customer along with the material billing. The default update rule for credit control area concerned is 12. The system, on finding line items not relevant to schedule line delivery automatically switches from rule 12 to 18. This leads to Open Deliveries field (S067-OLIWW) being updated instead of Open Orders (S066-OEIKW) on saving the sales order.
    Once the sales order is billed for the material, the system should logically display net value as zero for the open order (as the 2 lines of fees and freight are not yet billed, the order is still open). But the system considers this figure at SALES DOCUMENT HEADER level and considers the net value as the total value of the sales document (including the material that is already billed).
    What I am looking for is if there is an exit available whereby the system considers only those line items whose billing status indicator is "not complete". As such, the net value should be updated to the S067-OLIKW field net of the billed items.
    Please advise if there is any such user exit available. Also, is there a way to customize this? We are exploring this at our end, but would appreciate an expert advise. Right advise will be awarded with brownie points
    Regards
    Mandar Barve

    VKM1 uses FM SD_ORDER_CREDIT_RELEASE to release orders on credit.

Maybe you are looking for

  • Granting role to user error

    Oracle 10.2.05 Linux environment I just granted a role to a user, but the user does not have privileges base on the role. Here is what I did: First create a user (db_user) using system id Second, create role schema_admin_role Then run the script to g

  • Status Hold in SM50 reason Private mode

    Dear all, BIP PROD system , one of the work process got status shows hold (Reason private mode) 3    DIA     12699     On Hold     PRIV     Yes     1               11070     SAPMSSY1     400     MASOND      In SM04 i have checked that particular user

  • S10 fan noise

    Hi, I just recently bought a Lenovo S10 and am loving the new system, but I can't seem to get over the unbearable fan noise. Is there any way I can change the temperature at which the fan runs?  The fan is running even when I'm just browsing the web

  • Performance of Archive Jobs Since Switching Partitions

    Hi, Since MIMIX switching from one partition to another  , the run time for archive write jobs on EC_PCA_ITM archiving object has increased from 9 minutes to several hours and for delete jobs from less than an hour to up to 8 hours. This is for GLPCA

  • How to upload the heirarchy data in BW system

    Hi All, I want to download & upload the hierachy data in BW. How can we do this, Please let me know. Thanks in advance. Regards, Vishal