Automatic Rule Determination Based on Service Order Type

Hi Experts,
I have a requirement to determine the rule based on the custom service order type.
I have created 2 custom rules which are then assigned to 2 different org units as needed.
Now the thing is i want to avoid putting condition step if else based on various order types.
Is there any way by which i can directly determine which rule to be used by passing the Order type.
If there is any FM then please suggest and also how to use the same.
If no FM exists then is there a possibility of having only 1 if else condition and assign rule number in local container variables and pass it thought out the workflow to all the manual validation workitems. Please suggest how this can be achieved.
Thanks,
Jessica

Hi,
only 1 if else condition and assign rule number in local container variables and pass it
thought out the workflow to all the manual validation workitems
Create a workflow container element lets say with probably 15 characters length...
Now create a background step in which you determine the rule based on the order type.
data: lv_Rule(10) type c.
if order_type eq 'X'.
  lv_Rule = '1234567890'.
else.
   lv_Rule = '0123456789'.
endif.
" export the rule concatenated with 'AC' which indicates a rule...
concatenate 'AC' lv_rule into ev_rule. "ev_rule size may be lets say 15 characters.
condense ev_Rule.
"export the EV_RULE to workflow and store it in WF cotainer element.
In the step where you want to give the rule, select the Agent type as Expression and select the container element.
Hope this would solve your issue.
Regards
Narin

Similar Messages

  • Automatic Batch determination based of sales order type

    I want to do automatic batch determination on basis of sales document type.
    1) I have made a condition table and added sales document type field in it.
    2) defined Access Sequence and added that field in that sequence.
    3) defined the strategy type, assigned the class "FEFO - First Expiry first out".
    4) Added by condition type in the standard search procedure "SD0001".
    5) added the order type in VCH1
    If, i define the search strategy on material base in vch1 "SD01" then it works fine in sales order & delivery order...
    but if i define it on order type then automatic batch determination  doesnt works fine.
    any guidance please?

    solved...there was issue of expiry date field.

  • Revenue Account Determination based on Sales Order Document Type & Service Order Type

    Hi Expert,
    I have Customer Service Module with Resource Related Billing for services attached with SD.
    When DP90 runs sales document debit memo request is created & then debt memo is created.
    I need to configure Revenue Account Determination based on Sales Order Type and also based on Service Order Type.
    I did not see any field catalogue in revenue account determination for order type, For communication structure KOMKCV Header and KOMPCV Item level there is no field for sales order type nor service order type.
    Is it possible to bring in both order types? Can ABAP person do it?
    How to bring these fields?
    Is it possible & recommendd to have service order type filed AURAT for service order into this sturcture?
    Is this configuration is OK acceptable by SAP? If so is there any chnace for issues errors & wrong determination from FI CO view?
    Your valued input is highly appreciated.
    Thanks
    Prakash Parikh

    Hi Prakash,
    Yes, you can certainly add new table fields into the field catalog KOMKCV and KOMPCV and use it during account determination. You will also have to add these new fields in the user exit RV60AFZZ for it to work. I believe you will need ABAPer's help to make this work. The abaper will have to crate a ZZFIELD (ZZAUART for example) and put it in the structure and use the same in the user exit to pass the values.
    In your case, what I am not sure is, are you looking to modify the existing standard tables or creating new ones. My suggestion is to create the new condition tables with these new fields (like document type) after adding it to the field catalog. Only modify the access sequence (KOFI) in such a way that your new tables are access first before it goes into standard tables (or you can adjust it according to your scenario.
    We have done it in our company and it is working fine. Basically what we have done is to create new tables instead of modifying the standard ones. We have adjusted the access sequence in such a way that some of our custom tables are accessed first before the standard SAP tables (C001 to C005).
    I found a similar requirement on SCN. This might help.
    Adding New Field in Account Determination
    Hope this helps.
    Regards,
    Mukund S

  • Automatic storage location determination based on delivery document type

    Dear All,
    How can automatic storage location will be determined based on sales order type or delivery type.
    Ex: If the business sells the material storage location automatically determined as SL12.
    If the customer returnns the material storage location should be SL01.
    Please suggest for retun process automatic storage location determination.
    Best regards,
    Ramesh

    Dear Guru Lakshmipathy,
    Fine, but we have some picking rules are MALA, RETA and MARE.
    Currently we have onle on plant 1010 and shipping point 1010.
    storage location for outbound deliveries determined based on MALA rule has been assigned to LF.
    can we use RETA or MARE to determine the storage location for returns delivery.  If yes kindly
    explain. And where is storage condtion available in sap.
    Best regards,
    Thanks

  • Batch determination based on WM storage type stock positions

    Hello experts,
    I am hoping the get some advise on the best method to achieve this:
    We have batch determination turned on for select customers and the system is proposing stock that is mainly in our each or lose pick storage types (110), the issue with that is the fact that we do not pick in less then case qty for those customers so if the stock doesn't exist in our general storage the user must re-determinthe batch codes before delivery release.
    This process is becoming very time consuming so I would like to improve it.
    My first thought is to create a custom check in the batch search strategy that will only propose batch codes that exist in our general storage (search strategy based on WM stock positions)
    Are there any other options to achieve a batch search strategy based in WM stock positions other then the one above and does that solution sound practical?

    I'm not referring to the type of picking either (i'm not referring to picking strategies at all). I'm referring to storage type search criteria defined in OMLY.
    "We need batch determination based on WM storage type stock positions" -> you are running BD at delivery level and therefore, there is nothing from a standard perspective that we can do to run BD based on WM storage type again. Since the BD has already occurred, we need to find other venues to direct the pick to the appropriate storage types.
    This is what I'm understanding but I reckon there's something that I'm missing and so let's take the below example and then you can get back with corrections:
    R001 plant
    ZM01 storage location
    Z01 WH
    110, 120, 130, 140 storage types (110, 120, 130 are case/lose pick, and 140 is general)
    Since you had mentioned earlier that the BD is running at plant level, I'd assume the storage location ZM01 is automatically determined (since the batch resides in ZM01). Since the batch is already determined, based on your 'storage search strategy' (110, 120, 130) the system tries to pick this batch in these storage types. Now, when there is no full case, you have to manually change the storage type to 140 to pick and this is where the problem is. So, I was recommending that since there is no standard way to automatically pick the full case from 140, use the enhancement.

  • Posting to different GR/IR account based on purchase order type

    We are implementing cross company stock transport orders that require an AP invoice to be posted against the goods receipt.  Our AP department does not want the GR/IR postings to go to the account used for traded AP.  I cannot determine a method using OBYC to specify a different account based on purchase order type.  Is there a way to do this?

    Hi Jud
    You should make these posting to a cost center then..The only way you can control account postings via PO type is having a account assignement category. You can make this as mandatory filed for this PO type..
    Please let me know if your requirement is different..
    CHeers
    R K Bolla

  • Service order type from repair orde

    Hi,
    Is there any custo  to define the service order type from a sales order type.
    Thanks in advance for
    Regards

    Hi,
    If u want to create service order from sales order,then some prerquisits for this are as.
    MRP strategy group is - 84 in material master,
    Fill all the data in t-code OISD
    Now create sales order >> put material & enter >>>system automatically create's service order, you can latter view it by in shedule line tab at item level or By t-code IW32.
    Kapil
    Edited by: Kapildev Farakte on Dec 28, 2009 11:22 AM

  • Service order type creation

    Hi,
    I want to create a service order type. We dont have any requirement to create any service notification for it.
    Could any one please tell me is it necessary to create a service notification before a service order.
    Thanks and Regards

    Hi
    No there is no nedd to create service notification before order creation but in real time this logic will not apply before you have to craete the notification.
    But if u want to just check this concept then u can eaisly create a order without creating notification
    Thank & Regards

  • How to find out the service conformation details based on service order

    Hi.
    I open the CRMD_ORDER
    In this i open a service order.
    I got all the information of that particular service order number in the CRM_ORDER_READ program.
    But i unable to find out conformation details of that particular service order.
    In CRM_ORDER_READ we have DOC_FLOW. But in that i did not find Conformation data. like Conformation number.
    Can anybody explain me regarding finding the conformation details based on the service order.
    I want service conformation number based on the service order.
    Is there any other function module to get all the details of service order with the service conformation also.
    Thank You.
    Regards,
    B. Krishna.

    Hi Krishna,
    You can get the confirmation order guid based on service order number from CRM_ORDER_READ.
    Under ET_DOC_FLOW structure where OBJTYPE_B=BUS2000117 ,OBJKEY_B=Confirmation guid.
    Then from guid you can get the confirmation number.
    Hope this resolves your querry.
    Regards,
    PePe

  • New service order type...

    hi all,
    i copied a new service order type from sm02 (customer service). i am creating a new service order and confirming for activity. but activity cost is not appeared on service order. what will be the reason?
    (when i use sm02 with the same data, there is no problem)

    Hello,
    I believe your thread has been answered by Mr. Thyagarajan in PLM forum and you are satisfied with the answer.
    Please close this thread.
    Prase

  • Service order type

    Hi,
    I want to create a service order type. We dont have any requirement to create any service notification for it.
    Could any one please tell me is it necessary to create a service notification before a service order.
    Thanks and Regards

    Birendra,
    I think this question has been posted earlier also.
    You may create a service order directly using transaction IW31.
    But in normal practice, the service order will be created after creating notification (IW21 / IW51).
    It is not mandatory to create notification before raising a serivce order.
    Prase

  • Number range creation for new service order type

    Hi,
    Could anyone please tell me how can we create service order number range if we have done a new service order type creation, and what should we do: should we create the number range in development and then transport it to the production or we should directly create it in production.
    Thanks and Regards

    HI,
    You just define number range in tcode VN01, but remember that number ranges are not transportable.
    Once you define number ranges in development, do the same in quality & production client.
    Then attach number ranges in document type & transport this config to quality & production
    Please see that before transportating, the number ranges must have been created in quality & production thru VN01.
    Hope this helps you
    Regards
    Dhananjay

  • Error in requirement class while assigning service order type.

    Hello All,
    I am getting below error message whenever I am trying to assign a service order type to requirement class.
    This the error meassage:
    Maintenance order type ZSC3 is either not flagged as a service order type or revenue posting is allowed for this order type.
    System Response
    The system does not allow any further processing.
    Procedure
    Enter a service order type that does not allow revenue postings.
    Please help urgently.
    Best regards,
    Partha Das

    Ya do same thing but I dont think using this FM will solve the problem...
    You get the Update Terminated message when the normal course of the program has been halted by user intervention.
    Now could u please check that are u calling any FM in your program.
    If yes just list out all of them.
    Thanks.

  • Item Category Determination for a service order

    Hello experts;
    I have the following funny issue, When i try to create a service order my item category doesn't get determined properly: specifically when i fill in the product in the SAP GUI the item category field doesn't get populated automatically...funny thing is that i do the exact same thing in the Web UI the very same field Does get populated correctly!
    The following are the customizations i have on SPRO: The all thing is copied from the standard but in the GUI the standard doesn't work either! and it does in the WEB UI. Any lights????
    Trans Type:ZSVO     
    Desc:DSGi Service Order     
    Item CtgGroup:NORM Sales Item (Norm)                                                                                Item Category:ZRVS     
    Desc:DSGi Product     
    Alternative Category: SRVS     Desc:Product

    I don't get it...
    It's as simple as that: the item i'm adding in the service order has Ctg Group DIEN and it was correctly downloaded from R3. The Item Category Determination is as follow:
    Trans Type: ZRVO     
    Desc: DSG T Service Order     
    Itm Ctg Group: DIEN Service w/ Delivery                                                                                Item Category: ZTVS     Service Sales Item
    Where ZTVS is the copy of the item category SRVS (Standard) which for some reason if i put instead of the ZTVS doesn't work either!
    What am i doing wrong?

  • Disable Availability Check Based on Sales Order Type

    Hi All SD experts,
    Usually ( correct me if i'm wrong ) availability check is set via schedule lines item type. Is there any way that I can disable the availability check based solely on Sales Order Type ? Meaning no matter what item category or schedule lines assigned to materials, availability check will still be disable.
    Besides setting in schedule lines type, what are others config that might trigger availability check ? MRP settings ? Movement type ?
    Any valuable feedback will be great and much appreciated. A big thank you in advance.
    Warmest Regards,
    Edie

    HI EDIE
        In order for the availability check to happen,the following configuration settings are required.
    Availability check:
         a) you have to define requirement class & requirement type.
         b) you have to activate at scheduline category level
         c) in deleviry item.cat ,there is availability check off field,,,,, if  u dont mention any values here,then system checks for availability.if u mention 'x' here,then system dont check for availability.
        d) you define checking group and checking rule ,these determine how availability check is going to be performed
    MRP:
       MRP determines how material is planned,whether it is inhouse production or external procurement.MRP also determines the time taken for the material to become available for ready use.When ever an order is rised,the requirement is passed to MRP through  transfer of requirements(TOR), here MRP determines the inhouse production time or external procurement time.
    Movement Type: Movement type determines the type of material movement ,whether it is Goods Issue ,,, or ,, Goods Recipt,,,,, stock transfer between two plants etc.Movement type is determined in schedule line category level.
                      Award points if it is useful
                        Prasad.G

Maybe you are looking for