Credit block in Sales order create/change

Hi Experts,
while creation/change of sales order,If sales order net value is zero or 0.01 no credit checks.in other words greater than 0.01 netvalue of so, it shoud undergo credit checks.( Means Header->Status, Credit status = 'Not Approved". )
Actually i am trying to write logic in routine 901 ( include RVKMP901).but i am unable to reach the requirment.Can anybody how i can reach above requirment.
Regards
Jaya Reddy

Hello,
you could use code similar to this:
  CHECK: xvbak-netwr < ls_zkredit-wert.
else no credit check
  vbap-cmpnt = ' '.
  MOVE charx TO bypass-security.
  MOVE charx TO bypass-static_limit.
  MOVE charx TO bypass-dynamic_limit.
  MOVE charx TO bypass-documentvalue.
  MOVE charx TO bypass-critical_fields.
  MOVE charx TO bypass-reviewdate.
  MOVE charx TO bypass-open_items.
  MOVE charx TO bypass-oldest_op.
  MOVE charx TO bypass-dunning_level.
  MOVE charx TO bypass-user1.
  MOVE charx TO bypass-user2.
  MOVE charx TO bypass-user3.
The ls_credit-wert is a local field which is set from a table according to Sales order Type/ Salesorg/ Payment-condition
Regards Wolfgang

Similar Messages

  • Credit Block released Sales order report

    Hi Experts,
    My client is given few sales orders (around 4)no and requesting us, to prepare the credit block released sales orders report (include released person user ID).
    *.No change logs is existing for all sales order and deliveries.
    For above requirement I am using CDHDR table data but I am not getting credit block released sales order report.
    Below fields I am using in CDHDR Table.
    Change doc.Object (objectclas) : VERKBELEG
    Document No (CHANGENR): Sales order no XXXXXXX
    Transaction no (TCODE) : VKM1,VKM2,VKM3
    Date(UDATE) : 25.09.2011 to 09.11.2011
    Experts, Can you please help me out for this.
    Thanking you!!!!
    Regards,
    Vijaykumar Kola
    *.I'm already aware of this is a new development.

    Try this, simple report... Here we check the new value of credit  status field VBUK-CMGST and if it is 'D' we know that someone used VKM* transaction to release the document. Also you need to format the sales order number with leading zeros so it occupies all 10 digits and pass it to CDHDR-OBJECTID field (and not CHANGENR field). In the below code I am using select option for sales order number, so I know it will be formatted with leading zeros and so select on CDHDR will be successful.
    *& Report  ZTV_TEST
    REPORT  ztv_test.
    TABLES: vbak, cdhdr.
    SELECT-OPTIONS: s_saldoc FOR vbak-vbeln OBLIGATORY,
                    s_udate FOR cdhdr-udate.
    RANGES: r_objid FOR cdhdr-objectclas.
    DATA: ls_cdhdr TYPE cdhdr,
          ls_cdpos TYPE cdpos.
    IF NOT s_saldoc IS INITIAL.
      LOOP AT s_saldoc.
        MOVE-CORRESPONDING s_saldoc TO r_objid.
        CONDENSE: r_objid-high, r_objid-low.
        APPEND r_objid.
      ENDLOOP.
    ENDIF.
    CHECK NOT r_objid[] IS INITIAL.
    SELECT *
      INTO ls_cdhdr
      FROM cdhdr
            WHERE objectclas = 'VERKBELEG' AND
                  objectid IN r_objid AND
                  udate IN s_udate AND
                  tcode LIKE 'VKM%'.
      SELECT SINGLE *
        INTO ls_cdpos
        FROM cdpos
          WHERE objectclas = ls_cdhdr-objectclas AND
                objectid = ls_cdhdr-objectid AND
                changenr = ls_cdhdr-changenr AND
                tabname = 'VBUK' AND
                fname = 'CMGST' AND
                value_new = 'D'.
      IF sy-subrc = 0.
        WRITE:/ ls_cdhdr-objectid(10), ls_cdhdr-username,
                ls_cdhdr-udate, ls_cdhdr-utime.
      ENDIF.
    ENDSELECT.

  • How to block planned order when there is a credit block in sales order

    Hi Experts,
    Planned order should not be created when there is a credit block at sales order level. Can someone help me in solving this?
    Expecting for your valuable comments.
    Regards,
    JANA

    Go to t.code OVB8 and add routine 101 under routine column and routine 1 under system routine column and then create new document and test.
    Regards,

  • Remove automatic credit block in sales order

    Gurus,
    How can I remove credit block in sales order for specific sales organization/sales area?
    Thanks in advance
    Raj

    Hi,
    The path is:
    SPRO>Enterprise Structure>Assignment>Financial Accounting>Assign company code to credit control area.
    T.Code is OVA8.
    Hope these helps you.
    Regards,
    Krishna.

  • Credit block a sales order or delivery individually

    Hi
    If I just wanted to block a sales order or delivery because of a credit issue,  but did not want the customer to go on credit block/hold,  is the only way to do this use the delivery and billing block.  I can't remember being aware of any other blocks we can use
    Please advise.
    thanks

    Hi Kyliesjordan
    It depends on if you want the customer's credit exposure be impacted or not. If you are not bothered about the credit limit, then you can go for order blocks as mentioned by you.
    If you want the system to be updated for credit exposure then you can configure simple/automatic credit checks as per your requirement.
    Best Regards
    Sathees Gopalan

  • Customer Credit Block at Sales Order Level

    Dear Experts,
    We have requirement,
    Example:
    If we received the Bank guarantee from customer(Berry) $10000,till $10000 it should able create the sales order, more than bank guarantee system should block the sales order creation.For same customer(Berry) some times will receive the cash instead of Bank guarantee.in this case system should not block the sales order creation and this sales order value should not update in FD33. Please guide, what configuration needs to be done to full fill this requirement. Thanks in Advance.
    Regards
    Shankarappa H L

    Dear shankarappa HL
    Please post this question in FI Forum may be it will help , i hope

  • Modify shipping point in sales order create/change

    Hi,
    I want to modify/overwrite shipping point value while create sales order and change sales order. Is there any user exit or BADI available to fullfill this requirement.
    Thank you.
    -Pallavi

    Hi Palavi,
    You can modify or overwrite shipping point value while create Sales order or change Sales order. For this you have to modify field  VBAP-VSTEL in the FORM userexit_move_field_to_vbap of include MV45AFZZ.
    Regards
    Dillip

  • Credit Block In Sales Orders

    Hello All,
    We have a special situation here? There was JOB executed by some body deleted all the credit block for the list of sales orders and we need to set them back to the old values?
    Does any one ahs an idea how can we do this??
    So that it will go to normal process of VKM3 list so that the right person can release them again.
    KR
    SA

    Srinath,
    Thanks for the reply but what i need to do is not this. We have dynamic credit check in place it blocks the sales orders accordingly.
    So normally some body from business will release these blocked orders using VKm3
    But yester day some program is updated the main fields in the sales order i.e. VBUK table
    So these list of documents are not appearing in the VKM3 any more and they have released automatically.
    But i want to set back the block again i mean credit block not delivery or billing.
    So that it will again allow the business to release it again
    Thanks
    SA

  • Set credit block at Sales Order

    Hi,
    I would like to ask how can I set the credit block for a particular Sales Order during creation.
    thanks.

    Hi,
    As suggested go to OVA8, set status block.
    Then go to OVAK, select your sales document type then select "B" which will block your sales order which you will have to release from VKM1.
    Hope this answers your query.
    Hrishi

  • Invoke IDOC ORDCHG whenenver credit block of sales order is released.

    Hi All,
    Scenario : In the business process, whenever a sales order is created then a Purchase Order is created. And then an outbound ORDERS03 IDOC gets created. Now if the Sales Order is on credit block then a custom segment is dynamically created and sent through the IDOC. But if the later on the Sales Order credit block is released then I need to again send the IDOC with custom segment IN IDOC ORDCHG. As the change in credit block status in Sales Order does not reflect in the PO, so the IDOC doesnt get created. Please advice how to get the IDOC created even in case of credit block status change.
    Thanks in advance..
    Rahul.

    Hello,
    As you said the customer is over limit, after you release the order and do avialability check again, the order will again get blocked because of credit check. The system is behaving correctly as per standard SAP.
    Check the credit limit of the customer and the credit availed in FD32. If you want to deliver the order, you will need to release the credit block again.
    Prase

  • Downpayment request with Credit Block in sales order

    Hello,
    We have requirement of creating a down payment request  against sales order which has credit block. Once downpayment is realized in system, the credit block will be released for order processing.
    Thanks in advance.
    Regards,
    Chandresh

    If i maintain Deviation in % as '0' and Number of days as '45', will this work for me
    I would be happy if you can test this in your system and share the outcome.  Please put some efforts on your own and post here if you are not able to overcome from the issue and dont expect spoon feeding which is not encouraged in SCN.
    G. Lakshmipathi

  • Credit Block in Sales Order

    Hi Gurus
    I have an issue in production system wherein a user has created a sales order for a customer say 'X' which went into a credit block. When the credit master is checked for the customer the credit limit was well below 100%.
    There are no open order and deliveries for the particular customer. We are having dynamic credit check.
    Could you please help me out why the sales order is going into a credit block when the credit exposure is not 100% and also there are no open orders, deliveries.

    Hi Balaji
    I have checked all the things I hope iam not missing out on anything but again iam including the things which I have checked.
    Credit Master data of the customer
    Credit exposure
    No Open sales order
    No Open delivery
    No Open billing
    Open items but the payment due is in future
    No overdue items
    No oldest open item is available
    Kindly help

  • Retrigerring the delivery block for sales order after change.

    Dear All,
    I have a scenario, When we are creating FOC order, automatically Delivery Block is
    appeared. After an authorised person releases the order, the Delivery is
    made against it.
    Now if the order is released and any amendment is made in the order, FOC
    order should get back the Delivery Block status automatically.
    Thanks,
    Ani.

    Hello,
    I have a scenario, When we are creating FOC order, automatically Delivery Block is
    appeared. After an authorised person releases the order, the Delivery is
    made against it. Now if the order is released and any amendment is made in the order, FOC
    order should get back the Delivery Block status automatically.
    The best option of meeting your requirement is using a User exit which would put a Delivery block when the Sales Order details are changes.
    USER EXIT --> USEREXIT_SAVE_DOCUMENT_PREPARE
    Kindly try out this exercise with the help of a ABAPer and close this thread if your query is answered.
    Regards,
    SARTHAK

  • Sales order create/change line item with reference to contract - Open quantity not getting deducted for copied line item from the contract

    Hi friends,
    Please provide some valuable inputs for the following scenario:
    When a sales order line item is created(VA01) or changed(VA02) with reference to a Contract the open quantity is deducted in the contract which is a standard functionality. If the referenced line item is copied (custom enhancement to copy line item), then for the copied line item the open quantity is not getting deducted instead ATP quantity i.e. Available-to-promise is deducted.
    Any inputs on how we can fix this functionality i.e. deduct the open quantity from the contract for the copied line item?
    P.S. : Custom enhancement to copy line item is working fine, but open quantity is not getting deducted if the copied line item was referenced to a contract.
    Thanks,
    Sandeep
    Message was edited by: sandeep

    Sandeep,
    Yes, that was my original interpretation.  I was having a hard time believing that someone would ask such a question. 
    I guess, then, that you already know that you will have to add this logic to your enhancement. You should create your specifications and hand them off to a developer; ideally the one who created this enhanced solution in the first place.
    I do not provide advice in these forums about details of enhanced solutions.  Perhaps one of the other members will be more willing to do your work for you.
    Best Regards,
    DB49

  • Insert XVBKD table during sales order create/change.

    Dears,
    My requirement is to insert into VBKD table for each item sof VBAP. If the Business is updating the business data manually for the line items, then VBKD gets updated with the line items also. Otherwise, it gets updated with item as '000000'. And in the items, the business data, i need to update using some user exit (automatically based on some custom table for each material in the line item). I tried using the form in MV45AFZZ. but getting termination error.
    Please suggest.
    Ram.

    Hi Ram,
    The update of VBKD table is quite strange in the standard system.
    The same table has data for header (with position 00000) and for items that are different, but redundant positions don't get stored in the database.
    I don't think it is a good idea to force SAP to create a VBKD entry for each line.
    IMHO this is system modification and therefore your responsibility.
    If you have problems afterwards and SAP finds out, you will be on your own!
    Why don't you add the new field in VBAP table?
    It is much easier and therefore more usual in implementation projects.
    Best Regards,
    Franck
    Freelance Logistics SAP Consultant

Maybe you are looking for