Sales order should get block if XYZ payment terms is used

Dear Expert,
The requirement is like,
If user add payment term XYZ  manually in salse order then that sales order should get block for review purpose.
Note:
if user add that payment term in sales order client want that order should block no matter what reason ,  here client not concern about credit limit and any outstanding from customer side ,
Thanks in advance
hanumant

Hi,
You need to block orders with payment terms XYZ, or only when user changes from ABC to XYZ??
If first one is your requirment, you can do with userexit - USEREXIT_SAVE_DOCUMENT, and you need to create status profile for sales document type and assign to order type, in status profile put status AUTO - automatically approved, LOCK - when XYZ is payments terms it wil not and not create delivery & REJC- Rejected, when approver dont want to approve he can reject.
In sales order userexit you need write logic when paytemnt terms is XYZ then put status as LOCK.
New repor need to create to approve LOCKed orders so that user execute and approves or rejects.
If only user change to XYZ, then you need to write logic in prepare userexit, but it will be tricy, need to store values in tempapory memory, ceck with abaper,

Similar Messages

  • Sales order should be blocked based on amount and days

    Hello Gurus,
    We have a requirement -The sales order should be blocked based on credit amount and number of days  maintained for particular customer
    But where do we maintain validity period for that amount for a particular customer
    EX  : Credit limit  amount is: 10000
           Valid time period : 2 months
    This amount  should be valid for 2 monthsonly   now my doubt is where can we maintain validity period for that particular and customer , if he does't use it  , then amount get lapsed and new  amount will be maintained again
    Thanks and regards
    Venkat

    Hii Venkat,
    Credit check: Static check
    Indicates whether the system carries out a static credit check.
    Use u2013
    The customer's credit exposure may not exceed the established credit limit. The credit exposure is the total combined value of the following:
    Open sales documents, Open delivery documents, Open billing documents, Open items (accounts receivable).
    You can specify in the adjacent fields whether the system takes into account all open orders and all open deliveries.
    Note u2013
    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 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 are not yet settled by the customer.
    Credit check: dynamic check
    Indicates that the system carries out a dynamic credit limit check within a specified credit horizon.
    Use u2013
    The customer's credit exposure is split into a static part - open items, open billing, and delivery values - and a dynamic part, the open order value. The open order value includes all not yet or only partially delivered orders. The value is calculated based on the shipping date and the credit horizon you specify in the adjacent field. For the purposes of evaluating credit, you want the system to ignore all open orders that are due for delivery after the horizon date. The sum of the static and dynamic parts of the check may not exceed the credit limit.
    Thanks and Regards,
    Santanu

  • Sales order to be blocked based on customer payment terms and credit limit

    Hello Gurus,
    We have some requirement of credit management  : Client  want sales order to blocked based on payment terms  if customer doesn't pay  previous dues as per the payment terms mentioned customer master ,sales order ,  irrespective of customer credit limit credit
    (i.e Even in the case of credit limit is not exceded for that praticular customer)
    Looking for your inputs
    Thanks inadvance
    Regards
    Venkat

    Dear Venkata Chalapathi,
    Following is the logic for your requirement.
    If the check is on the basis of payment terms of pending billing documents alone, then
    check DYNAMIC with Reaction C/D and Status 'checked'
    Then maintain the same settings against OLDEST OPEN ITEM with Days oldestItem = 0
    Now, make a sales order and system will trigger the credit check message (assuming there are uncleared documents )
    Ask your abaper to find an Exit/Enhancement in this message spot and you can write a logic to check the
    billing documents in BSEG by fetching the document types with 'RV' (assuming we are considering only the billing documents)
    and in the VBRK get the billing date and we can get the payment term in vbrk-zterm and its corresponding date in T052-ZTAG1
    If the billing date + T052-ZTAG1 value is greater than SYSTEM date , then you have to trigger the credit check message in the sales order. Else allow the sales order.
    Check and revert back if there is any doubt/additional requirements.
    Thanks  & Regards,
    Hegal K Charles

  • Sales order should not get saved without entering the material

    Sales order is getting saved without entering the material. How to make material entry mandatory in sales order.. so that if i try to save the sales order without entering the material the system should create an error.
    Please give a clue, if there is any way other than incompletion log.

    Dear DV,
    T. Code: SHD0
    Create a Screen Variant for Transaction VA01
    and maintain Field: Material as "Mandatory".
    Best Reagrds,
    Amit
    Note: Following is the explaination with Incompletion-Procedure -
    T. Code: OVA2 - Incompletion Log
    Select Group: B - Sales Order Item; and Double Click "Procedures" (left-hand Dialog-Structure)
    Select InCompletion Procedure: 20 - Standard; and double click "Fields" (left-hand Dialog-Structure)
    Here, Maintain entry:
    Table: VBAP
    Field: MATNR
    Screen: PKAU
    Status: 4
    Imp.: Create Z-Incompletion Procedure and make necessary changes, instead of changing a Standard one.
    Alternatively, check with Arijeet's post in following thread:
    How to restrict saving of a sales order without a material.

  • Check if the Sales Order is credit block.

    Hello Everyone,
    I have a requirement related to third party sales order and delivery. In the first system, a sales is created and then the PO gets created. Upon the creation of the PO a IDOC gets generated. The inbound IDOC in the other system triggers and a sales order gets created. The requirement is that if sales order in the first system is on credit block then automatically the sales order in the second system should go on delivery block.
    The solution that I have thought is that when the IDOC gets created after PO generation there itself add a flag to IDOC in case of credit block in sales order. BUT HOW TO CHECK CREDIT BLOCK of the SALES ORDER IN THE CUSTOMER EXIT?
    Any help is appreciable.

    Hi Rahul,
    Need some more clarification on why sales order is created in the second system, if it is a third party process ?
    are you creating delivery from the corresponding sales order of second system to replenish sales order of first system ?
    are you using standard IDOC type for creating Sales order from PO ?, if so check the Corresponding Function module which may have user exists
    check Function module : IDOC_OUTPUT_ORDRSP
    At first system, if the sales order is credit block you can restrict creation of PR-->PO in the first system itself, this is a standard Functionality
    This would be easier than looking for user and coding in IDOC function module
    try and revert
    thanks
    santosh

  • How to change sales order no. in already posted down payment?

    A sales order was created and a down payment was also posted.
    Later sales order was deleted, but the related down payment still exists.
    Subsequently a new sales order was created for the same customer.
    Now customer is asking to clear his current sales order against the older down payment (which has reference of the deleted sales order)
    An error is getting raised while clearing the sales order and down payment in F-32 as the down payment has reference to deleted sales order.
    Now can I change the sales order no. in the down payment document?
    or is there any other way to clear these transactions, current sales order and old down payment?

    Hi,
    Reverse the down payment entry and repost the same with reference to the new sales order number.
    FB08  to reverse accounting document.
    Regards,
    Srinu

  • How to Avoid sales orders from getting released

    Hi,
    We have done following :
    1. Created sales orders in AT org.
    2. Ran ASCP plan
    3. Sales order is considered as demand and the corresponding planned order is created in AT org.
    4. corresponding Internal Requisition is created in AT org and internal sales order is created in BE org (The sourcing rule for AT suggests to transfer 100% from BE).
    5. Now again the ASCP plan is run.
    6. The same sales order is again considered as demand and all the corresponding documents are also created (means, planned order, internal requisition, internal sales order).
    The requirement is that the sales order should continue being considered in the plan run as the demand so that it can be taken in the ATP calculation, but the corresponding IR should not be created each time the plan is run.
    I have modified the Visible_demand_flag of sales order line as 'N'. but problem is that orders are not even getting considered as demand till the flag is again reset as 'Y'.
    Please help is this. This has to be displayed in UAT to users.
    Regards.

    1)     Planning should not recommend new planned order if there is already a requisition to fulfill SO demand. Did you see that every time, a new planned is created for same SO demand ? Then you would need to ensure that Requisitions are being collected.
    2)     To prevent releasing the Planned Order – this can be done by populating item attribute ‘Release Time Fence’ – Kanban Item (Do Not Release)

  • Changes in the material, the order should be blocked while saving the order

    Hi,
    A sales order is already there and delivery is not yet done. The requirement is, If I make any changes in the material, the order should be blocked while saving the order.
    Is there any indicators or some fields which tells material is changed in the order. How this can be realised.
    I thought of table CDPOS, but this can be used only after Order is saved.
    Please provide your inputs.

    Use user-exit MV45AFZZ, form-routine USEREXIT_SAVE_DOCUMENT_PREPARE.  Compare the values in XVBAP-MATNR(New Values) and YVBAP-MATNR(Old values).  If the values are different, update the value VBAK-LIFSK to block the order.

  • Sales Order Credit Status Block with Schedule Line ATP Confirmed Quantity

    I would like to keep the Credit Status Block on a Sales Order when it is created and over the credit limit and at the same time be able to Confirm the Order Quantity (if inventory is available) on the Schedule Line.  Has anyone done this?  I'm using ECC 5.0
    In the IMG --> Sales and Distribution --> Basis Functions --> Credit Management/Risk Management --> Credit Management --> Define Automatic Credit Control --> If I remove the Status/Block indicator the schedule line does confirm the sales order quantity but the sales order is not blocked and a delivery can be created.
    Thanks.
    Donna

    Hello Donna,
    I think I solved your problem.
    There are two ways to block the sales order - one is to not confirm the Schedule line i.e. block delivery... block further action that can be taken. The second is to not let the person save the sales order.
    Another option is to get Just a warning message, that the credit limit has been exceeded, but able to save the sales order with a confirmed schedule line.
    The setting will be in OVA8.
    For the Document Value you make the setting C or A. and make sure the block is not set.
    Don't worry about the Open order or open delivery unless you want the system to perform a credit check considering the orders that are already existent. Same with open delivery. It will take into account all the cost of the orders that are open for delivery.
    Now here some options:
    Either consider a 'warning' by the system good enough and still be able to confirm the schedule line.
    (ii) Put in a Delivery Block in the Sales Document Types, in the Shipping tab. That way, you will be able to save the sales doc. but not be able to deliver it.
    (iii) Put a Billing Block in the Sales Doc type, in the Billing tab. You will be able to deliver but not bill.
    (iv) Create a new routine (with the help of an ABAP guy) and place it in the auto credit check, 'Reaction' field where it will place a Delivery Block.
    Do let me know what your thoughts are and what you decided to do.
    Thanks
    Noel

  • Credit card Orders are getting blocked with credit check

    Hi All
    In our system, If customer's credit exposure is greater then 100 % then all the credit card orders are getting blocked with credit check even though it has valid authorization. Is this sap standard behaviour?....is there any setting that will always exclude credit card orders when it has valid authorization
    Thanks in advance for looking into this

    Hi,
    In OVA8- under document controlling- check the existing routinue 1 for orders etc., else modify as per your requirement
    Thanks
    Chidamabram

  • Standard T Code to release list of sales orders in 'Delivery Block'

    Dear All,
    Is there any standard transaction code in SAP which provides the facility to release list of sales orders in 'Delivery Block'. (Additional information - List of sales orders in 'Delivery block' is available in V.14,however it does not have release facility).
    For example, VKM3 gives the list of sales orders in 'Credit block' with release facility.On the same lines, is there any standard T code or any other facility in standard SAP which provides the facility to release list of sales orders in 'Delivery Block'.
    Thanks and Regards,
    Zahid

    As already suggested, if you execute VA14L you can see all sale orders that are blocked at
    -  header level
    -  item level
    -  credit check
    Wherever you see "X" under the tab Header level, double click on the respective sale order, so that system will take you to sale order in change mode.  You can remove the header level delivery block and save.
    thanks
    G. Lakshmipathi

  • Prevent Outbound delivery creation in sales orders with delivery block

    Hi gurus
         We are facing the following issue:
         Some sales orders have delivery block header and once they are saved an outbound delivery document is created; we want SAP system creates outbound deliveries only in those cases were sales orders have not a delivery block in header, is there any option or configuration we can use in order to prevent the creation of these documents?
    Regards,
    Edgar.

    Well Edgar,
    let's see then in spro
    Logistics Execution->Shipping->Deliveries->Define Reasons for Blocking in Shipping
    Check out the configuration of your delivery block reason and pay special attention to this instruction:
    "In sales documents, you can either enter delivery blocks manually at header level (business data in the sales document header) or they can be proposed automatically by the system. In the latter case, the delivery block must be entered in the respective sales document type (see chapter
    "Define sales document types"). In addition, the delivery block in the sales document header is only effective if the delivery block has been assigned to the respective delivery type."
    It must be something in the configuration of the delivery block reason you're using.
    Regards,
    Edgar

  • Sales order not getting created in background.

    I am using user exit to write my code to create sales order of basic type ORDERS05 with function module idoc_input_orders, and process code ORDE with my own message type.
    If I run the program in foreground message KUWEV-KUNNR is not an input field comes.
    IF I press enter the sales order is getting created with staus 53..
    But in background ERROR MESSAGE comes as:
    Function module not allowed: IDOC_INPUT_ORDERS.
    Please give suggestions.

    Dear Sir,
    Please check the FI Period is opened and FI account Number is opened.
    Thanks and Regards
    N.soma Sundaram

  • In which table chenges in sales orders are getting saved

    Hi Experts,
    I have a query
    <b>in which table chenges in sales orders are getting saved</b>
    Thanks & Regards
    Prashant Gupta

    Hi
    goto SE16/se16n and enter the table name as CDHDR for header changes
    here enter the transaction code in the selection screen as VA02 so that it will give the details of all sales order which have changed.
    You can get the change doc object or document number in cdhdr enter the same in
    CDPOS in SE16n if you want to know the changes done at item level or you also have the option of entering TABLE name in CDPOS in SE16N selection screen if you want to know changes done in a particular table
    regards

  • How to list Sales Order with credit block

    Hi, Gurus,
    I really don't know how to list sales orders with credit block?
    Is there any way for end user to do it?
    If so, is it possible to list SO with credit block for certain period of time such as one month?
    Any help would be appreciated.

    HI
    Check T-Code VKM2 (Released documents)
    You need to check VKM1 (Blocked Documents)
    Sorry before i gave wrong information , myself i corrected VKM2 for released not for blocked list (Due to non Availability of SAP access )
    Regards,
    Prasanna
    Edited by: prasanna_sap on Feb 7, 2012 7:12 AM

Maybe you are looking for

  • Apple Pages 5.0.1

    Why are there columns in the header that block text in Apple Pages 5.0.1 and how do I get rid of them?

  • Problem related to generation of header file

    hi guys, I am getting Exception during the generation of the header file, using "javah -jni HelloWorld" I am refering jni.pdf (java.sun.com/docs/books/jni/download/jni.pdf ) I have given that error below Exception in thread "main" java.io.IOException

  • Passing a parameter through user exit

    Hi all, I am adding a screen to the user exit ZXHIV01 and want the user to fill the organizational detail area on this screen. However, I cannot get the value of the organizational code (OBJID) from the previous screen (1000 create). I have tried GET

  • Safest site to sell Macbook Pro retina

    I have a like new early 2013 MacBook Pro with retina display15.4" I want to sell. It is 16Gb ram, 512 HD,  Mountain Lion (I never upgraded to anything else)and I have the box etc. I also have AppleCare on it until 2016. I will cancel AppleCare after

  • Ambiguous Column ORA-00918

    Hi, Why does this work select dummy from dual d1 join dual d2 on (d1.dummy = d2.dummy) join dual d3 on (d1.dummy = d3.dummy) join dual d4 on (d1.dummy = d4.dummy) where dummy = 'X' and this doesn't select dummy from dual d1 join dual d2 on (d1.dummy