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

Similar Messages

  • 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

  • Retaining the old schedule lines after the ATP check in the sales order....

    Hi Experts,
    I would like to retain the old schedule lines after the ATP/GATP check in the sales order for certain conditions.
    I don't want to change XVBEP,IVBEP,VBEP contents in the user-exit..
    Is there any standard sub-routine or function module to reatain old schedule lines in the sales order so that the schedule lines will not update with the new values after the ATP check ?
    Thanks
    Rayudu

    In Include LV03VFMM, you have:
    * Userexit availability
          PERFORM USEREXIT_AVAILABILITY_IN USING DA_ATPPR.
    There may be an option to implement some logic in here. However, I tried changing the value of MVERF_POS-EINTEIL[1]-VFPKZ to initial. This will ensure that when FM AVAILABILITY_CHECK_CONTROLLER is called that the following IF statement is untrue:
    CHECK NOT P_ATPCSX[] IS INITIAL.
    as P_ATPCSX[]                     Table[0x648].....
    However, this will just mean that the 2nd confirmed schedule line (assuming we have > 1 schedule lines) will have a confirmed quantity to zero.
    EXIT_SAPLATPC_001 could also be used. However, when I removed the "X" from CHKFLG, I get the same result; the 2nd schedule line will revert to zero.
    They were the only tests I tried; I cannot think of any other ways around this....

  • Duplicate production order due to sales order on credit block

    Dear Experts !
    Need feedback on the following scenario:
    - Sales order is entered for material which is produced in-house specific to the sales order (ie customer's logo is on product).
    - Schedule line in sales order creates a production order specific to the sales order.
    - Customer runs into credit check a few days later and consequently the schedule line in the sales order is removed due to credit block, however the linked production order still remains and is produced by factory.
    - Sales order is released from credit check and a new schedule line is created resulting in another production order being released.
    Any ideas on how to prevent duplication of production order?
    Thanks in advance!
       -Alvin

    Hello,
    Apologies for the confusion, let me explain it a bit more.
    - Sales order is entered for material with planning strategy group of make-to-order, the schedule line initiates new production order for make-to-order material.
    - A few days later - the customer goes over credit limit or has overdue invoices, etc..
    - During background rescheduling (or any sales order change) the sales order gets a credit block due to static check.
    - Sales order block deleted schedule line in sales order, however the production order remains active.
    - Once the sales order is released from credit block, a new schedule line is created which initiates a new production order.
    - Duplicate production order is now being made in shop floor.
    I hope the above explains my scnario a little clearer.
    Thanks and regards,
    Alvin

  • Sales order status (credit blocked) using APO tables

    Hello All,
    I need to check if a sales order has a credit blocked status using APO tables.
    Which table and field can I use for this issue?
    Thank you in advance.
    Bests regards.
    Januario Faria

    When using the API, are you trying to create the order as booked using the booked flag or the book action?  I would recommend using the action if you are not. To troubleshoot, I would try the API without booking and then use the following article to determine the issue:
    Unable To Setup A Credit Card Bank Account For The Customer. CC Information On The Order Is Not Valid (Doc ID 1450936.1)

  • ATP check in the Sale order Processing and CO06 transaction (Confirm Qty)

    Hi All,
    While creating the Sale order, After performing the ATP check and saving the document i have called an user exit to make the confirmed Quantity equal to ZERO when the delivery block is set (As requested by customer). That is working fine...
    But the same confirmed Quantity of ZERO is not reflecting in CO06 transaction. Its showing the old value that the value before setting the delivery block.
    I have identified the table VBBE-VMENG which stores the confirmed quantity in CO06 transaction...
    Could you please help me know any USER EXITS or any other solution to change the confirmed quantity to ZERO in CO06 transaction also while delivery block is set in the sale order.
    Thanks &Regards,
    Navaneeth

    Hi All,
    Please help me by providing some clues on this issue...
    Regards,
    Navaneeth

  • Customizing Availability Check in the sales order; EXIT_SAPLATPC_001, etc..

    Dear All.
    Looking for a way to automatically control what's chosen in the sales order Availability Dialog box depending upon certain conditions.
    This is the "Rule for transferring the results of the availability check", field TVTA-REVFP.
    The default is blank, which lets the user select what they want.  Under certain conditions though we do not want to display the dialog box, and just have the system automatically select "A" which is what's available on the requested date.
    Mainly I've been trying to find what REVFP translates to in USEREXIT_AVAILABILITY_IN, and EXIT_SAPLATPC_001.
    We've reviewing P_ATPCSX-RESMD, in EXIT_SAPLATPC_001.  And trying to set it to "A" in debug with no luck.
    Possibly this is too late or too early in process, or the wrong field.
    Has anyone done anything like this before or have any ideas on how to approach?
    Many Thanks!

    hey kharthik,
    i got the same requirement. hv u got the solution for this ..if so please provide me..
    Regds
    Satya

  • Re ATP check in the Sales order

    Hi,
    I have one strange issue in SO ATP check. I have created a SO and it was cofirmed with Availability check:XX, which was maintained in material master  when the SO was created. Then I changed the Avail check to YY and did the Re-ATP check again in SO, but the system takes the old Avail check:XX.
    It takes the new Avail check if I create a new line item in the SO, but did not work for the exisitng line item.
    Regards
    Nagarajan.

    Hi Nagarajan,
    The master data changes will effect only for the future entries not for the already entered material in the sale order or any other transaction

  • Process the sales order without credit check when net amount is 0$

    Hi..
    Currently for the standard sales order, when the net amount is 0$, it's being in the queue for approval.
    When ever the net amount is 0$ we want it to be processed without any credit check.
    Any suggestion on how to approach is appreciated, like what changes need to be done on the credit check routine etc.. or any other approach.. will reward the points for the help..
    Thanks.

    If you are a developer, your role will be to write the code for this routine. The actual configuration of this OVA8 screen has to be done by your functional consultant as I will not be in a position to tell you what values to use for all those fields. These are always driven by your entire credit management configuration. That will be part which will be done by the functional consultant. As a developer, I will be only concerned with writing a couple of lines in this routine. I will not recommend changing anything else unless you know exactly what you are doing. The only reason we should go here as a developer is to enter that number in that field. But before you come here, you have to do the following.
    To create the routine and its associated code, go to VOFM and then in the menu "Requirements-->Credit Checks". Enter your routine number 9xx, give a description, click on the source code button and write the code. Once this is saved, you need to give the routine number to the functional consultant who will then use it to configure so that it is executed for the right order types.

  • Sales order - No Credit block - When credit limit = 0 & Exposure = 0

    Hello,
    I have a scenario where, i try to create a sales order for 1000 EUR. I have Credit management activated for the concerned BP. In the main segment, the limit defined is = 0 and credit exposure = 0.
    Now when I try to create a SO, it is not going for credit blocked. The 'Overall status of credit limit checks' directly getting to 'D' (=Approved) Status. Please help me to understand what went wrong. Any issue with Credit group or Risk category?
    BR,
    D'nesh

    I have Credit management activated for the concerned BP.
    Usually we assign the credit limit to Payer customer master.Please check once again.
    And please check all your required credit management settings once again.
    For example:
    1. Check whether credit group is assigned to the order type or not? (VOV8)
    2. Check whether credit active field is active or not in respective item category(VOV7)
    3. Check whether Subtotal field A is assigned or not in V/08 for the relevant pricing procedure
    4. Check whether you have assigned the Risk category is assigned or not in FD32 for the payer customer.
    thanks,
    Srinu.

  • Credit management: how to release all sales order after credit blocking

    Hi,
    Is there a way to release all sales orders that have been blocked (for credit limit or late open items) first and for which invoices have been then  paid.
    That can be done manually with transaction VKM1 but I would like to know if there is any way I could that for all my invoices in the same time and for all my customers?
    Thanks in advance for your help.
    Ronan

    Try using transaction code VKM4.
    Rgds,
    Nagaraj

  • Manually trigger Availability Check in the Sales Order User Exit MV45AFZZ

    Hi All,
    As per the normal scenario where sales orders are created and the schedule line delivery dates are determined.
    Based on some business logic for few customers we need to change the delivery priority and confirmation delivery date.
    We are implementing this logic in the user exit MV45AFZZ in the routine USER_EXIT_SAVE_DOCUMENT_PREPARE.
    The availability check logic is already implemented by then. Now we have scenarios where the date redetermined by the custom logic is greater than the one determined by the standard availability check done by SAP.
    We have changed the values of the field VBEP-EDATU as per our logic but we still have 2 lines in the schedule line data where the requested date is greater than the confirmed date.
    This can be tackled if we can redo the Availability Check.
    Can someone provide pointers on how can we trigger the availability check manually in the code.
    Regards,
    Karthik

    What was the solution?

  • Credit Limit check on Delivery:: Sales order blocked

    Dear Friends,
    We have implemented credit limit check with delivery Block option in Sales order. After revising Credit limit, while user is creating Delivery again, system prompts for Delivery Block in Sales order i.e, reson for Block is Credit limit in Sales Order. then user removes resason and proceeds further.
    Is there any way by which system doesn't put reason for rejection in sales order and just not allow to create delivery in system. i.e. we want to remove the step of removing reason from sales order.
    Regards Krishan Raheja

    Dear Krishan,
    As per my understanding you require just a credit check in the sales order level, which can be implemented using credit management in sales order level . In that case system will automatically block the sales order if the credit limit is exceeded.
    So you do not need a DELIVERY BLOCK reason assigned to your SALES ORDER TYPE in VOV8.
    Please clarify, whether you need to block the sales order and delivery due to credit limit...
    or is it just sales order which need to be blocked ?
    you can get the detailed configuration steps in SDN or the same is as follows.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SDBFCM/SDBFCM.pdf
    Thanks & Regards,
    Hegal K Charles

  • Confirmed quantity in sales order and credit check

    Due to the fact that we are using automatic credit check , for the sales orders that are not blocked due to credit control the confirmed quantity is made to 0 until some person responsible unblocks the sales order.
    My issue is how to prevent the confirmed quantity from becaming 0 even if credit block exists

    Dear Friend
    If the automatic credit management is active the confirmed quantities of sales order becomes 0 because in t code OVB8 the requirement no used will be 101 and system routine will be 1 that is system reservation
    Here you need to change the 101 to something else or you have to write a new routine thro ABAPer so that even if the document goes for credit block the confirmed quantities doesnot change or become 0
    I dont have the practical experience of changing this to something else and having worked on that
    But you may try that
    The area to explore or get your requirement is this only
    Regards
    Raja

  • Sales order is being blocked for Credit due to Back order batch Jobs.

    Hi experts,
    While running Back order Batch jobs sytem is putting sales orders into credit block even though we releasing orders by VKM4. Our user is releasing orders but system is again putting back those orders in Credit block. Can anybody explain me what exactly Back orders does ? if Schedule line changes due to Back orders does system puts the order into Credit block ? please help me to solve this issue..
    Thanks
    Kesari sai
    Edited by: kesarisai ks on Sep 13, 2008 5:10 PM

    Hi,
    You don't need to use user exits for this purpose. What you need to do is to extend the validity of your credit checks in IMG.
    To do this, go to spro Sales and Distribution -> Basic Functions -> Credit Management and in config for automatic credit control, select the right risk category.
    In the config screen you will have a field called "no of days", here you define the validity of the credit release. For example if you it setup for 10 days, the system will pick up the release date and add 10 days for validity.
    If backorder batch runs within these 10 days, it will not re-block the documents. If however runs after the 10 days it will block them.
    Regards
    Silvia

Maybe you are looking for