Bapi For Blocked sales orders & Bapi for Releasing those orders

Hi All,
    Can anybody help me regarding <b>Bapi</b> for getting <b>Blocked sales orders</b> and bapi for <b>releasing</b> those sales orders..
Any help will be rewarded...
Thanks..
Regards,
Srinivas.

Use bapi:
BAPI_SALESORDER_GETLIST to get the list of all sales orders based on Parameters
CUSTOMER_NUMBER
SALES_ORGANIZATION
MATERIAL
DOCUMENT_DATE
DOCUMENT_DATE_TO
PURCHASE_ORDER
Then,
loop at the internal table
and use the bapi BAPI_SALESORDER_GETSTATUS to get the status of each sales order.
choose only which are blocked.
Regards,
ravi

Similar Messages

  • Release log for blocked sales order as credit limit

    Hi gurus,
    Any body kindly explain for me about how can I look over Release log for credit limit block sales order, Transaction code or report?
    thanks.

    Hi,
    u r trying all these in IDES system or in real time system.
    if u r trying to release it in IDES system then go to VKM2 & do the changes.
    in real time system only a authorized person can release the block by  using the same T.code vkm2.
    hope it helps u
    regards
    dibya

  • About data for blocked sales order

    hi friends,
    i have one requirement . i.e i want to create the BLOCKED SALES ORDER , whate are the fields require for the creation.
    if there is any BAPI for this please tell me.
    help me
    naresh

    Hello Naresh.
    You can Show your blocked Sales order Using table MVKE(Sales Data for Material) and TVMS(Materials: Status in Sales and Distribution).
    Logic is :1. Check Field MVKE-VMSTA.
                 2. find corresponding entries of  MVKE-VMSTA in Table TVMS.
                     by matching  MVKE-VMSTA = TVMS-VMSTA.
                 3. For Above same Entries see the Blocked check in Field TVMS-SPVBC.
                    IF  TVMS-SPVBC = 'B' means this sales order is blocked.
    and check all matnr of MVKE according to this logic.
    In case any Problem,you can let me know so that i can help you in better ways.
    Have a Nice Day,
    Regards,
    Sujeet.

  • Standard report for BLOCKED SALES ORDERS

    Hey friends,
              Do any one of you know whether there is any standard report that shows the Blocked sales orders..??
    thanks in advance,
    Regards,
    Anvita.

    anvitha,
    You have the following transaction available in SAP for showing the sales documents blocked due to different reasons.
    V.14  Sales Orders Blocked for Delivery  
    V23   Sales Documents Blocked for Billing
    VA14L Sales Documents Blocked for Delivery
    VE31  Blocked SD Documents (Export related)               
    VKM1  Blocked SD Documents (Credit Blocked)               
    Check which one will satisfy your requirement.
    Thanks
    Giridhar

  • Table names for blocked sales order item in GTS system

    Hi all.
    I want to get the blocked sales order line item, reason for blocking, product number & product description from GTS system, based on the sales order number from ECC system.
    I am thinking to create and RFC FM in GTS system and call that in ECC.
    Could you please tell me the table name in GTS system where I can see above mentioned data?
    Regards,
    Prajwala K.

    Hi Manish,
    Thanks for the valuable reply
    I have checked the table which you have mentioned in your earlier replay, am not able to see product number, reason for blocking  etc.
    My requirement is to create a trade report in ECC. I will be fetching data like sales order, ship to party, sold to party from system ECC using VBAK, VBAP & related tables.
    Now I have to get that blocked sales order line item, reason for blocking, product number & product description from GTS system.  My idea is to pass the sales order number from ECC to GTS using RFC and get the data.
    Issue is am not sure about the tables, I want know which tables contains the data from blocked sales order in GTS system and how to connect those tables.
    Regards,
    Prajwala

  • Block Sales Document type for a set of customers

    Hi,
    I have to block the processing of particular sales document type, say XX or a scheduling agreement for a specific set of customers. Can anyone suggest me some inputs on this.
    Thanks in advance
    Suresh

    Thanks all for quick response.
    1. By blocking the sales document type by setting the block in VOV8 will not allow u to process that particular sales document type at all.. ie for all customers..But my problem is to block, say ZCAL for particular set of customers only..say customer 1234 of sales org 0001, customer 2132 of sales org 0001, customer 1315 of sales org 0002 etc..Apart from these setof customers, it should be able to process the document type for other customers.
    2. By blocking the customer in VD05, it will block the customer for all sales operations. But i dont want to block the same customer for other sales document types.. Say, it should be blocked for ZCAL but not for all document types.
    My requirement:
    When we create an scheduling agreement, we give the sales area in the initial screen and enter. Then we give the Sold to party.Here it should check whether the customer entered is in the list of customers blocked for scheduling agreement. If so, it should pop up an error message stating" you cannot process scheduling agreement for customer X" If not, it should allow further processing.
    I will try with the suggested User exit.
    Please suggest if u have got any more ideas.
    Thanks
    Suresh

  • Release reason for blocked sales orders (VKM1 & 3)

    We have a business requirement for a mandatory reason when sales orders are released in credit management in the same way that rejected orders have a reason code linked to them.
    Has anybody else done anything similar?

    We have a business requirement for a mandatory reason when sales orders are released in credit management in the same way that rejected orders have a reason code linked to them.
    Has anybody else done anything similar?

  • Workflow for blocked sales orders

    HI all,
    I have a requirement in sales in service order .
    when a credit check is done for a customer ,sales order will get blocked  and
    in the service order for the corresponding sales order will get a status with Not OK. To release the block on this we need to manualy change the status in VKM3 and subsequently in service order (IW32).
    My requirement is to do automatic change in the service order status when ever we do release the flag in VKM3.
    I think with work flow we can achieve this.
    Any standard functionality is supported using workflow for this requirement?
    Please help me how to proceed.
    Thank you all..

    Hi Ravi,
    Yes this is possible using workflow!
    I just simulated your scenario and there are no events when you release the sales order but the other good news is that there is a change doucment that is written. The field CMGST in the table VBUK gets updated with the value D which is "released by credit representative". Using this you can configure your own event.
    However to do this following are the steps you would have to follow:
    1. Copy the business object BUS2032 to ZBUS2032 through transaction SWO1.
    2. Add an event called as "Released" to this.
    3. Generate this new copied version of the BO
    4. Delegate the copied Business Object to BUS2032. You can do this in the initial screen of SWO1 by going to the menu "Settings->Delegate". This is the inverse of inheritance through which you will be adding the properties of the subtype(ZBUS2032) to the main type(BUS2032) at runtime
    5. Use transaction SWED and SWEC to configure your own event and raise it when the change document is written. Do remember that you will have to put an entry in the "Field restrictions" table in the transaction SWEC to trigger your own event when the Sales Order is released.
    6. In transaction SWEC you can put in the change document object as "VERKBELEG" derived from CDHDR table. The business object as BUS2032 and the new event you created in the subtype. Since you have delegated the same it will be available for use for the main type.
    7. In the field restrictions put in the table as VBUK and the field CMGST and the old value is * and the new value as D.
    8. Once you do this the event will be raised once you release the sales order.
    9. You can check the same through the event trace SWEL(Remember to swtich on the event trace through SWELS if it is off)
    10. Now you will have to write a function module to change the status of the service order using the OBJNR of the service order and table JEST or use the standard function module STATUS_CHANGE_EXTERN. <b><b>Please remember that you can change a User status because system statuses are changed by the system. However you can change the system status by updating the table but I guess that is not like how the system changes it. When the system itself changes the status then there might be certain follow on documents that are created.</b></b>
    12. Now you will have to encaspulate this FM in a method of the business object.
    13. You will have to use the ZBUS2032 to add your own method which calls this function module. Hope you have the reference to the service order from the sales order.
    14. Now have a task or a workflow which has a single step which inturn calls this method and trigger the workflow or the task using the event.
    That might solve the problem you have
    Best regards,
    Sudhi

  • GTS Stop delivery creation for blocked sales orders

    We implemented Note 579357 to stop the creation of deliveries when sales orders are blocked and everything works correctly except for rush orders (order type SO).
    After the note was applied, deliveries are not automatically created for rush orders even though the orders have gone thru screening in GTS and have been released.  Any solution to this problem???

    Dear GTS experts,
    I'm facing exactly the same problem with rush orders that Sammy Chan describes in his original post.
    I checked all replies but I have still no idea to solve this issue. The problem is that when creating the delivery during a rush order creation at the time the system reaches the copy condition with the implemented coding there is no order number available to check against in GTS.
    As the whole thread is marked as answered I hope someone can help me.
    Best regards,
    Ulrich

  • Report For Blocked Sales Orders

    hi,
    i need some help to print blocked salesorders.........

    You have the following transaction available in SAP :
    V.14 Sales Orders Blocked for Delivery
    V23 Sales Documents Blocked for Billing
    VA14L Sales Documents Blocked for Delivery
    VE31 Blocked SD Documents (Export related)
    VKM1 Blocked SD Documents (Credit Blocked)
    cheers
    Aveek

  • How to block Sales order for any overdue balance.

    There is a need to change SAP setting for blocked Sales Order for due balance. Current SAP setting : block is valid only for "over due
    more than 30 days".
    The requirement is to block order based on any overdue amount say For example : if we have due balance for 1 day, than system should block the SO.
    In current credit management settings applied, there is Static check ( C ) and Oldest open item (C ) with Days oldest item =30 days. Kindly suggest as what changes should be made to reflect the desired changes. Also , help in confirming the thought that Static check itself considers the OPEN ITEMS, so if i am activating static check and REMOVES THE OLDEST OPEN ITEm, will it take any overdue amount automatically and block subsequently. To add to it kindly explain, what is the use of this additional check of Oldest Open Item ( with days = X days ) for creit mngt. can't we maintain it by Static check.
    Kindly guide as what to change in OVA8 to have this. All feeedbacks are highly appreciated.

    The user want to  block SO for 2 types below. System must block SO if the credit limit is exceeded and/or the payment is overdue
    Currently Two credit checks in OVA8
    1- Static check
    2- Payment Overdue check by Oldest Open Item ( 30 Days limit is set)
    But, now for SO block due to payment overdue need to be changed from 30 days overdue to any day overdue.
    How to acheive the above , Also kindly confirm that Static check contains OPEN ITEMS so Won't static check only carry the functionality to block SO for ANY DAY OVERDUE.
    Any feedback is highly appreciable.

  • Blocked sales order is not released from VKM3

    Hi
    We are using credit management and when a sales order is created with the amount, which is more than credit limit, system is blocking the sales order for delivery. Values are getting updated in FD32 and S066 and S067. When i tried to release the sales order from VKM3, sales order was displayed, but when i selected the release flag and saved it, still the order is not released. Order is having credit limit block in sales order in shipping tab at header level. Why system is not releasing the sales order even it is displayed in VKM3
    Please respond
    Regards
    Srinivas

    hi,
    check the following steps of assignment you did right or not
    1)first check in  t- code FD32 U  assigned authorization person & each credit limit U shud assign
    an authorization person along with credit limit
    2) check - conditon records with KRML output is there or not
    please read standard SAP config help as a check point doc.....[Credit mgmt|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SDBFCM/SDBFCM.pdf]
    let me know if it is soling your issue
    Regards,
    Rajeev

  • Blocking a particular customer for immediate delivery creation

    Hi All,
    I have the following requirement
    Right now whenever the sales orders comes from the customers through EDI, the deliveries were created immediately. This was set up through the sales document. This is being used for the document KE.
    Now we need to stop this immediate delivery creation for a particular customer when orders come through EDI.
    We can not do this by blocking the customer for deliveries(VD05) because this will block all the sales documents for deliveries. We need this to happen only for KE.
    We cannot remove the immediate delivery creation set up from the sales document(KE) because this will affect all the customers(for other customers this should create immediate delivery).
    I feel this has to be controlled through a user exit.
    In that case what should be the logic used?
    What should be checked before blocking the delivery for a particular customer?
    Please advise on this.
    Thanks in advance for your help.

    Harini,
    I am sure you do not want to take the route of achieving this by u2018Userexitu2019
    Here is the alternate solution by simple customizing.
    You need to do it in two steps:
    Step 1:  Define reasons for Blocking the delivery
    IMG > Logistics Execution > Shipping > Deliveries > Define Reasons for Blocking in Shipping
    Select :  Deliveries: Blocking Reasons/Criteria 
    u2022  Define a blocking reason : say  ZZ u2013 delivery Hold.
    u2022  Check  the Order check box
    u2022  Save
    Select:  Delivery Blocks
    u2022   Assign  SO to Delivery ( I guess KE to whatever delivery type you have configured)
    STEP 2:
    Go to Customer Master record for whom you want to block them for normal process:
    XD02 > enter customer master in change mode.
    Select u2018Extrasu2019 tab in main menu
    You see u201C sales and Distribution blocksu201D
    Under this click on  delivery block ( for  All sales areas or desired sales area)
    You will find the reason for blocking (ZZ)  you created in STEP 1
    Assignu2019 ZZu2019  to this customer and save.
    Thatu2019s itu2026u2026 !!!!!
    When  a sales order received with this customer through your EDI, the order will be blocked for delivery.
    One need to release the order manually by releasing this block
    VA02 >  sales tab : remove the block from the delivery block
    Hope this helps.

  • Tcode for blocked deliveries

    Hi SD gurus,
    we have standard TCODES for blocked sales order. do we have TCODE for blocked Delivery document. it is would be great if someone can help me if std Tcode exist
    thanks
    Anil

    Hi
    Check
    V.14
    VKM4
    VKM5
    regards
    Prashanth

  • Help with Blocking/Unblocking GL account for posting

    We have a current program to block/unblock GL accounnts for posting and it does direct table update. But this way the user does not know the HISTORY about who did the update. I came to know that by using BDC, history gets created about who made the changes. I am still new to ABAP and with transaction code FS02 I cannot acheive this (blocking/unblocking GL account for posting).
    Is there any other transaction code that would let me do this?
    Is there an easy way of finding out the correct transaction code?
    I found FSSO which is pretty close but my lead said it is not the correct one! Does anyone happen to know the correct transaction code that would let me do blocking/unblocking for G/L account posting?
    Thanks.
    --Mithun

    Hi Mithun,
    FS00 txn is used for blocking GL a/c for posting.
    You can block/unblock GL a/c based on GL A/c and Company code.
    Execute FS00 txn, Click GL account -> Block (in the menubar).
    Block/Unblock based in chart of accounts or in company code.
    Cheers,
    Vikram
    Pls reward for helpful replies!!

Maybe you are looking for