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

Similar Messages

  • New Workflow for returned sales order modified from updating the billin

    now i am creating Created Workflow for returned sales order modified from updating the billing block to the delivery block.tell me how to do this.ca n use here the control approval process.

    Thread locked.
    Beginner questions are very welcome, but your question makes it obvious that you didn't even bother looking at the help or searching on SDN.
    Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] on how to post a good question and make a little effort yourself before expecting people to give up their time to help you.

  • Enable the approval workflow for the Sales Orders (Standard)

    Dear All,
    I need to enable the approval workflow for the Sales Orders (Standard). How can I do this? Please update
    The version of apps is 11i
    many thanks in advance...
    Edited by: santark on Oct 27, 2010 3:47 PM

    Dear All,
    I need to enable the approval workflow for the Sales Orders (Standard). How can I do this? Please update
    The version of apps is 11i
    many thanks in advance...
    Edited by: santark on Oct 27, 2010 3:47 PM

  • 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

  • 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.

  • 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

  • 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

  • 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

  • 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

  • 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?

  • 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.

  • Workflow in the releasing of Credit blocked sales orders.

    Hi All,
    My Client requirement is that they need workflow in the releasing of credit blocked sales orders.
    If once sales order is blocked then it should be approved at 3 levels, then only it should be released.
    Suggestions are highly appreciated 
    Regards,
    Kumar

    Hi Kumar,
    I think you can achieve this by using Authorization Concept.
    Please find the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm
    Authorization levels for Credit Rep Groups
    Thanks
    Dasaradha
    Edited by: dasaradha ramireddy on Nov 28, 2011 12:53 PM

  • Credit Block for released sales order

    Dear All,
    I have got one issue. There is a sales order which was created earlier say 15 days back. It went into the credit block at the time of saving it. It was released through VKM3 too.
    Now when i change any field in the sales order today, it is going into the credit block. We are not changing any value of any of the item. Just maintaining the Billing block in it or remobving the Billing block.
    The number of days maintained in the OVA8 are 182. So as per the standard functionality it should not go into the credit block for any change in the sales order like changing the billling date or changing the billing block.
    Can you please let me know what might be the reason for this sales order to go into the credit block..??? Any help is very much appreciated.
    Thanks and regards,
    Vishi.

    Dear Vishi
    Please check if you have checked the critical fields option.
    Credit check against critical fields (fixed value dates)
    The indicator controls the critical field check. If the field is selected, the system checks whether critical fields have been changed.
    Use
    If a check is carried out, the following fields are relevant:
    Payment terms
    Additional value days
    Fixed value date
    Note
    Use this type of check for sales documents only.

  • Problem for releasing  blocked sales order on Creditlimit

    Hi Gurus,
            I a   hve a problem for releasing blocked sales orders
             what i have done: 1)i have blocked sales order based on exceeded creditlimit
             (i have change SDType in 'OVAK' is 'C')
                      2)now i have to release for furthur processing so i have done following steps
                      3)Goto VKM3/VKM1 T.Code and then release what order that is blocked.
                      4) order will appear in the list.
                      5)Select that one.
                      6)Click on the green flag that appears on the left hand side.
                      7)Click on save.
                      8)click on back it will ask for "Leave list".
                      9)Click on yes.
                      10)It said that Sales orer has been released
    Still what my problem is:
    Problem: 1)So i'm trying to create deliver for Sales order but it shows an error
             2)"Sales order is blocked for delivery: Credit limits" Even it was released    
    Plz kindly help  me what i do....
    Thanks In Advance
    sivakumar

    sorry   i was  unfotunately put this thread here  over in SD

Maybe you are looking for