Creation of New Default Rule in OPL8

Hi,
In TC : OPL8, in cost accounting tab we maintain the default rule.
Can we create our own default rule?
The issue is we are using the CO-Product scenario in IS MILL. There the two default rules are PP5 and PP6. Both are Full settlement type.
But as we are using Cost Object Hierarchy, we cannot use the Full settlement type. So we want something similar to PP2 but having te features of PP5 or PP6.
Can we achieve this in any way by creating new default rule or how to acheive this.
Regards
Kami

Hi
You can change it in OPL8 when you create New Order Type
Even if you dont change, it will be overwritten by PER when you use Cost Obj Hierarchy
br, Ajay M

Similar Messages

  • Default rule in Order type dependend parameters - OPL8 - Order Settlement

    Hello,
    We are doing settlement of production orders via Tcode - Ko88.
    After execution of the same, system is passing an FI entry to GL - which is mentioned in the Material Master (Valuation Class - 7900) i.e. through OBYC setting.
    We have also checked the OPL8 setting (Order Type dependend Parameters - Controlling Tab) in which "Default Rule" is mentioned as - PP1 - Production Material full Settlement.
    As the system is passing an entry via "Default Rule - PP1" stored in Order Type Dependend Paramenters:
    1. What is the use of Settlement Profile (OKO7) & Allocation Structure (OKO6)?
    2. Can we make "Default Rule" field as optional (In Tcode - OPL8) ? since all the settlements are resulting in same Material GL.
    Waiting for a positive answer. Points will be assigned definitly.
    Thanks & Regards,
    Shridhar Sawant

    Hi,
    Settlement Profile:
    In the settlement profile, you define a range of control parameters for settlement. You must define the settlement profile before you can enter a settlement rule for a sender.
    If you want to settle the costs each time to just one cost center or just one G/L account, you need a settlement profile. As you cannot maintain the settlement parameters during settlement to a receiver, you must save the settlement profile either in the order type or in the model order or reference order.
    Allocation Structure:
    During settlement, costs incurred under the primary and secondary cost elements by a sender are allocated to one or more receivers. When you settle by cost element, you settle using the appropriate original cost element.
    An allocation structure comprises one or several settlement assignments. An assignment shows which costs (origin: cost element groups from debit cost elements) are to be settled to which receiver type (for example, cost center, order, and so on).
    You have two alternatives in settlement assignment:
    You assign the debit cost element groups to a settlement cost element.
    You settle by cost element - that is, the debit cost element is the settlement cost element.
    This is a good idea, for example, if the required capital spending for an asset you are building yourself is to be monitored. These costs are settled by cost element to an inventory account in Asset Accounting at the end of the year, or when the measure is complete.
    Each allocation structure must fulfil the following criteria:
    Completeness
    An allocation structure is assigned to each object to be settled. All cost elements in which costs are incurred, must be represented in the appropriate allocation structure.
    Uniqueness
    Each cost element in which costs are incurred may only appear once in an allocation structure. Only one settlement cost element may be assigned to a source within a particular allocation structure.
    Source Structure:
    A source structure contains several source assignments, each of which contains the individual cost elements or cost element intervals to be settled using the same distribution rules.
    In the settlement rule for the sender you can define one distribution rule, in which you specify the distribution and receivers for the costs for each source assignment.
    Thanks,
    Rau

  • Set JArray values with invalid key value: "LastUpdatedTime" on new alert rule creation

    Hey all!
    I'm trying to create a new alert rule using version 0.9.11 of the Monitoring Library and am getting this error on alertsClient.rules.CreateOrUpdate:
    "Set JArray values with invalid key value: "LastUpdatedTime". Array position index expected."
    That's interesting because LastUpdatedTime is a DateTime object, and whether I set it or I don't, if I set a breakpoint, it does set itself correctly, but the API appears to be expecting a JSON hash?
    I've tested alertsClient and I'm able to get existing alerts (also metrics with metrics client), so I don't believe it's an access issue.
    Any ideas?
    The full code I'm using for the test (borrowed virtually verbatim from the Cloud Cover video
    here): 
    Rule newRule = new Rule
        Name = "CPU Over 90%",
        Id = Guid.NewGuid().ToString(),
        Description = "CPU Has been over 90% for 5 minutes",
        IsEnabled = true,
        LastUpdatedTime = DateTime.Now,
        Condition = new ThresholdRuleCondition
            Operator = Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.ConditionOperator.GreaterThan,
            Threshold = 90,
            WindowSize = TimeSpan.FromMinutes(5),
            DataSource = new RuleMetricDataSource
                MetricName = "Percentage CPU",
                ResourceId = "",
                MetricNamespace = ResourceIdBuilder.BuildCloudServiceResourceId(<cloudservicename>, <deploymentname>)
    RuleAction action = new RuleEmailAction
        SendToServiceOwners = true,
    newRule.Actions.Add(action);
    OperationResponse alertResponse = alertsClient.Rules.CreateOrUpdate(new
    RuleCreateOrUpdateParameters { Rule = newRule });
    Console.WriteLine("Create alert rule response: " + alertResponse.StatusCode);

    Hi Greg,
    Thanks for your post!
    Error "JArray" has been fixed in the latest nugget package.
    Refer to:
    http://www.nuget.org/packages/Microsoft.WindowsAzure.Management.Monitoring/
    Hope this helps!
    Regards,
    Sadiqh

  • Bill Presentment Architecture, how to Overide Default Rule and ensure the AR Invoice/Transaction Chooses "Customer Transaction Data Source"

    Hi Intelligentsia,
      we are on 12.2.4 on linux, i have setup external template with supplementary Data source as "Customer Transaction Data Source", when i test it fails, i am not able to debug it , however when i run the BPA Transaction Print Program (Multiple Languages) it always gives me the default layout.
    Query is
    How do i ensure the Default rule Does not apply to my Invoice and i am able to override it
    is there a method to explicitly Ensure the Supplementary Data Source as "Customer Transaction Data Source", when i am creating the AR Invoice/ Transaction?  Am i missing some setup in AR Invoice Transaction Flexfield where i need to setup this "Customer Transaction Data Source" as the DFF Context ?
    please let me know if you need any more information.
    Abdulrahman

    Hello,
    Thanks for the answer. When you say rule data is that Rule creation date or the "Bill Creation From Date" that we setup while creating the rule? I have created a new invoice after the rule created, but it did not pick the new custom template.
    I have another issue. It would be greate if you could help. I have split my logo area into 2 vertically to display logo in one and legal entity and addres on the other one. In the Online Preview I can see the logo and Legal address. But in the print preview , i am not able to see them. It just shows a blank space. Any Idea?
    Thanks in advance

  • Error :he creation of the default xuser entry aborts with returncode 2.

    Hi,
    We are installing the SAP NW 2004 (ABAP +Java ) on AIX box with MAXBD 7.5.
    During the aBAP installing:
    a)We could sucessfully install the Central instance
    b)While installing the database instance we get the follow error:
    RR 11517  XUSER    Could not open USER file, Permission denied
    WARNING    2007-07-05 14:14:14
               CJSlibModule::writeWarning_impl()
    Execution of the command "/data1/sapdb/programs/bin/xuser -d CTS -n ctsaix05 -u XXXXXX -U DEFAULT -S SAPR3 -t 0 -I 0 set" finished with return code 2. Output:
    FATAL: Close xuser entry failed:
    ERROR      2007-07-05 14:14:14 [iaxxinscbk.cpp:289]
               abortInstallation
    CJS-00030  Assertion failed: in
    function create_xuser_default(db_name, db_host, defUser, defPasswd, dbVer) {
        var def_s = defUser + "," + defPasswd;
        var xuser_pr = new ProcessMgt();
        var xuser_app = xuser_pr.createChildApplication();
        var xuser = (new FileMgt()).convertToOSPath(sapdb_xuser_fl());
        xuser_app.setExecutable(xuser);
        var def_args = ["-d", db_name, "-n", db_host, "-u", def_s, "-U", "DEFAULT", "-S", "SAPR3", "-t", "0", "-I", "0", "set"];
        xuser_app.setArguments(def_args);
        xuser_app.setHiddenArguments({5:true});
        xuser_app.setLogname("xuser_default.log");
        var ret = xuser_app.run();
        ASSERT(arguments.callee, ret == 0, "The creation of the default xuser entry aborts with returncode " + ret + ". Check the logfile xuser_default.log for more information.");
    The creation of the default xuser entry aborts with returncode 2. Check the logfile xuser_default.log for more information.
    I  checked the file xuser_default.log .I has the following
    FATAL: Close xuser entry failed:
    Best Regards
    Manoj

    Hello Manoj
    Does the user calling finally the xuser-command have write permission to the corresponing location in the file system?
    Since you are probably a SAP customer compare with note 39439.
    Regards Thomas

  • Creation of new Sales order

    Hi,
           While creating a new Sales Order(tcode VA01) depending on the material, Item category will be generated and depending on the Item category purchase requisition screen(ME51n) will be automatically opened and PR will be created.
    Now to automate this process, BAPI_SALESORDER_CREATEFROMDAT1 will be called to create the sales order. But the requirement is that we need to pass Requisitioner and Vendor to the BAPI for creation of PR.
    But in this BAPI there is no option/field to pass Requisitioner and Vendor. So is there any other BAPI/Function Module where a new Sales order is created and also we can pass Requisitioner and Vendor required for creation of new PR.

    REPORT  ZSALESORDER.
    Parameters
    Sales document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text FOR FIELD p_auart.
    PARAMETERS: p_auart TYPE auart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Sales organization
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text1 FOR FIELD p_vkorg.
    PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Distribution channel
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text2 FOR FIELD p_vtweg.
    PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Division.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text3 FOR FIELD p_spart.
    PARAMETERS: p_spart TYPE spart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    Sold-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text4 FOR FIELD p_sold.
    PARAMETERS: p_sold  TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Ship-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text5 FOR FIELD p_ship.
    PARAMETERS: p_ship  TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    Material
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text6 FOR FIELD p_matnr.
    PARAMETERS: p_matnr TYPE matnr   OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Quantity.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text7 FOR FIELD p_menge.
    PARAMETERS: p_menge TYPE kwmeng  OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Plant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text9 FOR FIELD p_plant.
    PARAMETERS: p_plant TYPE werks_d .
    SELECTION-SCREEN END OF LINE.
    Complete Deliver
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text10 FOR FIELD p_autlf.
    PARAMETERS: p_autlf TYPE autlf DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    Data declarations.
    DATA: v_vbeln            LIKE vbak-vbeln.
    DATA: header             LIKE bapisdhead1.
    DATA: headerx            LIKE bapisdhead1x.
    DATA: item               LIKE bapisditem  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return             LIKE bapiret2    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapischdl
                             WITH HEADER LINE.
    DATA: lt_schedules_ink    TYPE STANDARD TABLE OF bapisdhead1
                             WITH HEADER LINE.
    Initialization.
    INITIALIZATION.
    v_text   = 'Order type'.
    v_text1  = 'Sales Org'.
    v_text2  = 'Distribution channel'.
    v_text3  = 'Division'.
    v_text4  = 'Sold-to'.
    v_text5  = 'Ship-to'.
    v_text6  = 'Material'.
    v_text7  = 'Quantity'.
    v_text9  = 'Plant'.
    v_text10 = 'Complete delivery'.
    Start-of-selection.
    START-OF-SELECTION.
    Header data
    Sales document type
      header-doc_type = p_auart.
      headerx-doc_type = 'X'.
    Sales organization
      header-sales_org = p_vkorg.
      headerx-sales_org = 'X'.
    Distribution channel
      header-distr_chan  = p_vtweg.
      headerx-distr_chan = 'X'.
    Division
      header-division = p_spart.
      headerx-division = 'X'.
      headerx-updateflag = 'I'.
    *Complete delivery
        header-COMPL_DLV = p_autlf.
        header-COMPL_DLV = 'X'.
    Partner data
    Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = p_sold.
      APPEND partner.
    Ship to
      partner-partn_role = 'WE'.
      partner-partn_numb = p_ship.
      APPEND partner.
    ITEM DATA
      itemx-updateflag = 'I'.
    Line item number.
      item-itm_number = '000010'.
      itemx-itm_number = 'X'.
    Material
      item-material = p_matnr.
      itemx-material = 'X'.
    Plant
      item-plant    = p_plant.
      itemx-plant   = 'X'.
    Quantity
      item-target_qty = p_menge.
      itemx-target_qty = 'X'.
    item category
      itemx-ITEM_CATEG = 'X'.
      APPEND item.
      APPEND itemx.
      ITEM DATA
      itemx-updateflag = 'I'.
    Line item number.
      item-itm_number = '000020'.
      itemx-itm_number = 'X'.
    Material
      item-material = p_matnr.
      itemx-material = 'X'.
    Plant
      item-plant    = p_plant.
      itemx-plant   = 'X'.
    Quantity
      item-target_qty = p_menge.
      itemx-target_qty = 'X'.
      APPEND item.
      APPEND itemx.
      Fill schedule lines
      lt_schedules_in-itm_number = '000010'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = p_menge.
      APPEND lt_schedules_in.
      Fill schedule line flags
      lt_schedules_inx-itm_number  = '000010'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
      Fill schedule lines
      lt_schedules_in-itm_number = '000020'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = p_menge.
      APPEND lt_schedules_in.
      Fill schedule line flags
      lt_schedules_inx-itm_number  = '000020'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
    Call the BAPI to create the sales order.
      CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
           EXPORTING
                sales_header_in     = header
                sales_header_inx    = headerx
           IMPORTING
                salesdocument_ex    = v_vbeln
           TABLES
                return              = return
                sales_items_in      = item
                sales_items_inx     = itemx
                sales_schedules_in  = lt_schedules_in
                sales_schedules_inx = lt_schedules_inx
                sales_partners      = partner.
    Check the return table.
      LOOP AT return WHERE type = 'E' OR type = 'A'.
        EXIT.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE: / 'Error in creating document'.
      ELSE.
    Commit the work.
        COMMIT WORK AND WAIT.
        WRITE: / 'Document ', v_vbeln, ' created'.
      ENDIF.

  • Is it possible to bypass the Default rules in a task?

    Hello,
    looking at a article on the internet on how to configure PO Release workflow. I configured my system( IDES) to create new PO Release workflow accordingly.
    I am able to create a new PO and based on the configuration the Release strategy is displayed in the PO screen.
    The STD PO RELEASE workflow WS20000075 provided by SAP is is activated and agent assignment is done in the configuration.
    So as soon a PO is created the workflow is triggered and the workflow errors out. It does not send any workitem to the recipient. I tried to diagnose the workflow and the issue is with the default rule which gets triggered to determine a AGENT. The default rule triggers the FM ME_REL_GET_RESPONSIBLE
    to determine the agents and it is not able to determine the agent.
    Any idea what is missing or how to bypass the default rule defined in a std task?
    Regards
    Chky

    Hi Imthiaz,
    I implemented the OSS Note and deteted the entry in SWEC as suggested in the OSS Note. But after deleting,  The event is not raised at all. I did a comparison of SWEL trace before and after deleting the record.
    Anyways i put back the SWEC i deleted from the system. When i tried to dig further in the issue i realized that when i check the trace in SWEL it gives me a error message
      Import container contains errors (are any obligatory elements missing?)
    Then i checked back to see if all the Bindings are fine from Workflow to Task and From Task to the default Rule  and all seems to be fine.
    Not sure why still i am getting the error as mentioned above. 
    Also I tried to Test the workflow from SWDD transaction and passed the PO number and the Release code in the testing. The workflow Error's out. When i check the workflow log it just stops at the first step.
    Any idea what next i should try?
    Anyways thanks for your help. Appreciate that !!
    Cheers
    Chky

  • IDOC reprocessing with new conversion rules

    Hi All,
    we've created IDOCs and after the creation the conversion rules are changed. Now we want to reprocess the IDOC's and in the reprocessing we want to use the new conversion rules.
    I've tried just reprocessing, I also tried WE19, but with these 2 the conversion rules seem to left untouched.
    Has anyone a solution were I can reprocess making use of the new rules?
    kind regards,
    Pieter

    Hi,
    I've debugged the reprocessing of the idoc and it seems indeed I had to change the status, however not all statusses result in reprocessing of the rules. Status '29' Error in ALE Service works. So my problem is solved.
    Thank you.
    kind regards,
    Pieter

  • How do I change the default ruler style settings

    I'm very frustrated with the lack of margins in the default ruler settings in cocoa apps. I would MUCH rather have the ability to set my defualt ruler settings including margins, font, size, etc. rather than reset them every time I create a new document. Is this possible? How?
    Thanks so much.
    Varen

    "Cocoa apps" is too broad a category - so the answer to that is "no". There's no system-wide setting for document formatting.
    But you may be able to do it for individual apps if you tell us which ones you are using. And even if there is no way to set a preference for a particular app, in general you can create a blank document with the formatting that you want, save it someplace convenient, then in the Finder right-click it, choose "Get Info" and check the "Stationary Pad" option. Then whenever you double-click that document, you'll get a new document with those same settings.
    That works with TextEdit, but you need to type a little bit of text for the new margins to stick (for some reason the margins reset to 0 if you leave the document blank).

  • New Price Rule For F&A Price

    Des:
    Now we are using the price rule based on the Factor 1 / Density (Net Weight / Volume) in the Purchages as well as sales.
    Now my client is asking the new price rule and it should be calculate in the purchages based on the Factor 1 / Actual density (Which is available in the GR).
    Queries:
    1. Is there any possibility to recalculate the price in the PO based on the actual density after creation of GR?
    2. Is it suggestble to recalculate the price in the Invoice receipt directly based on the Actual density (Which is available in the GR).
    3. Is it advisable to create differential invoice for difference amount ((price based on the Factor 1 / Density (Net Weight / Volume) and Factor 1 / Actual density (Which is available in the GR)).
    regards

    Hi ,
    see my replies:
    Queries:
    1. Is there any possibility to recalculate the price in the PO based on the actual density after creation of GR?
    That is exactly what SAP is doing if Purch repricing is configured.
    2. Is it suggestble to recalculate the price in the Invoice receipt directly based on the Actual density (Which is available in the GR).
    Oh well this is a diffcult question and comes down to the business practice of your customer. Let me tell it more difficult to prevent than to do it.
    3. Is it advisable to create differential invoice for difference amount ((price based on the Factor 1 / Density (Net Weight / Volume) and Factor 1 / Actual density (Which is available in the GR)).
    No, never seen this. It is either settled using a standard density or the actual.
    This topic is a hot one for every customer and requires extra care as you're dealing with external settlement.
    Cheers ML

  • New display rules: ERROR_DESKTOP_NOT_FOUND

    Hi,
    I have created a new default framework page and when I try to define new rules for this framework, I have this error message: ERROR_DESKTOP_NOT_FOUND
    I am working on EP7 SP15
    Thanks for your help.

    OK I was not working on the portal default desktop but the framework page, this was the problem.

  • Defaulting Rule - Help Needed

    hi,
    I want to default the Order Line based on specific Item. I have created the Defaulting Condition Template specifying the item for Entity Order Line.
    At the Item Type : I have added a new defaulting condition with a precedence later than the Regular Line and have added a constant value as the order line type.
    But it doesnt seem to work out. I have compiled the defaulting rules. But it still does not seem to work out.
    Can any one help or atleast point out how to get this thing working ?
    The idea is to have separate line type created for manufactured shippable items and separate line type for service items. Service module is not being implemented.
    since, the number of service items are not large so I am planning to hard code with the service items.
    I am not sure how the PL/SQL process would work. But if somebody could point out the PL/SQL usage for this with pseudo code. I think it might help out.
    Thanks,
    Dhiraj

    Hi Dhiraj,
    I understand that you are looking for different line types for different item types. This can be easily set up in the transaction type definition form itself. You don't have to setup special defaulting rules for this.
    In the transaction type form , when you assign line flows, it lets you choose item type. So you can set different line types for each item_type.
    Regards,
    Swapna.

  • OM Defaulting Rule Customization

    Hi All,
    I have requirement to derive Order Header Sales Channel Code from Sales Person DFF attribute.
    Try to custom using Sales Channel defaulting rule but referencing to ONT_HEADER_DEF_HDLR.g_record.salesrep_id always return FND_API.G_MISS_NUM value.
    Any idea on how to solve this issue?
    TIA,
    Fendy

    Hi Luko,
    Seems like its Oracle bugs.
    First time i open Sales Order Form, its trigger ONT_HEADER_Def_Hdlr package
    1)
    l_attr:= 'SALESREP_ID';
    IF g_record.SALESREP_ID = FND_API.G_MISS_NUM THEN
    -- Get the defaulting api registered in the AK AND default
    l_attr:=l_attr||' 1';
    g_record.SALESREP_ID := ONT_D1_SALESREP_ID.Get_Default_Value(g_record);
    l_attr:=l_attr||' 2';
    IF g_record.SALESREP_ID IS NULL
    AND p_in_old_rec.SALESREP_ID <> FND_API.G_MISS_NUM THEN
    g_record.SALESREP_ID := p_in_old_rec.SALESREP_ID;
    END IF;
    -- For UPDATE operations, check security if new defaulted value is not equal to old value
    IF g_record.operation = OE_GLOBALS.G_OPR_UPDATE THEN
    l_attr:=l_attr||' 3';
    IF NOT OE_GLOBALS.Equal(g_record.salesrep_id, p_in_old_rec.salesrep_id) THEN
    IF OE_HEADER_SECURITY.SALESREP(p_record => g_record, x_on_operation_action => l_action) = OE_PC_GLOBALS.YES THEN
    -- Raise error if security returns YES, operation IS CONSTRAINED
    RAISE FND_API.G_EXC_ERROR;
    END IF;
    OE_GLOBALS.G_ATTR_UPDATED_BY_DEF := 'Y';
    END IF;
    END IF;
    IF g_record.SALESREP_ID IS NOT NULL THEN
    l_attr:=l_attr||' 4';
    -- Validate defaulted value if not null
    IF OE_VALIDATE.SALESREP(g_record.SALESREP_ID) THEN
    -- There is no dependent api registered in the AK dictionary
    NULL;
    l_attr:=l_attr||' 5';
    ELSE
    g_record.SALESREP_ID := NULL;
    l_attr:=l_attr||' 6';
    END IF;
    END IF;
    END IF;
    which return g_record.SALESREP_ID = FND_API.G_MISS_NUM
    then l_attr:= 'SALES_CHANNEL_CODE' is being called
    2)
    IF g_record.SALES_CHANNEL_CODE = FND_API.G_MISS_CHAR THEN
    -- Get the defaulting api registered in the AK AND default
    l_attr:=l_attr||' 1';
    g_record.SALES_CHANNEL_CODE := ONT_D1_SALES_CHANNEL_CODE.Get_Default_Value(g_record);
    l_attr:=l_attr||' 2';
    -- For UPDATE operations, check security if new defaulted value is not equal to old value
    IF g_record.operation = OE_GLOBALS.G_OPR_UPDATE THEN
    l_attr:=l_attr||' 3';
    IF NOT OE_GLOBALS.Equal(g_record.sales_channel_code, p_in_old_rec.sales_channel_code) THEN
    IF OE_HEADER_SECURITY.SALES_CHANNEL_CODE(p_record => g_record, x_on_operation_action => l_action) = OE_PC_GLOBALS.YES THEN
    -- Raise error if security returns YES, operation IS CONSTRAINED
    RAISE FND_API.G_EXC_ERROR;
    END IF;
    OE_GLOBALS.G_ATTR_UPDATED_BY_DEF := 'Y';
    END IF;
    END IF;
    -- There is no validation api registered in the AK dictionary
    END IF;
    which return g_record.SALES_CHANNEL_CODE is null because calling to xx03ont_oe_default_pvt.sales_channel_code return null.
    So the next visit to this ONT_HEADER_Def_Hdlr package when bill to location is entered :
    g_record.SALESREP_ID is filled but g_record.SALESREP_ID is not, due to following condition does not meet
    IF g_record.SALES_CHANNEL_CODE = FND_API.G_MISS_CHAR THEN
    I try to change this package as following (pls see the bold)
    IF g_record.SALES_CHANNEL_CODE = FND_API.G_MISS_CHAR
    OR g_record.SALES_CHANNEL_CODE IS NULL THEN -- New Added
    -- Get the defaulting api registered in the AK AND default
    l_attr:=l_attr||' 1';
    g_record.SALES_CHANNEL_CODE := ONT_D1_SALES_CHANNEL_CODE.Get_Default_Value(g_record);
    l_attr:=l_attr||' 2';
    -- For UPDATE operations, check security if new defaulted value is not equal to old value
    IF g_record.operation = OE_GLOBALS.G_OPR_UPDATE THEN
    l_attr:=l_attr||' 3';
    IF NOT OE_GLOBALS.Equal(g_record.sales_channel_code, p_in_old_rec.sales_channel_code) THEN
    IF OE_HEADER_SECURITY.SALES_CHANNEL_CODE(p_record => g_record, x_on_operation_action => l_action) = OE_PC_GLOBALS.YES THEN
    -- Raise error if security returns YES, operation IS CONSTRAINED
    RAISE FND_API.G_EXC_ERROR;
    END IF;
    OE_GLOBALS.G_ATTR_UPDATED_BY_DEF := 'Y';
    END IF;
    END IF;
    -- There is no validation api registered in the AK dictionary
    IF g_record.SALES_CHANNEL_CODE = FND_API.G_MISS_CHAR THEN
    g_record.SALES_CHANNEL_CODE := NULL;
    END IF;
    END IF;
    After changing this package, its working. Unfortunately, this is seeded package. So i revert back the code and change to use form personalization instead.
    Let me know if you have another work around.
    TIA,
    Fendy

  • Create a new css rule

    Hi
    If I place my curser over a div tag in the code window why in the New Css rule
    window, in the option "choose where this rule will be defined" do I sometimes only
    have the option of this document only and others the choice of any attached css file?
    thanks
    Ian

    Hi
    perhaps I wasn't clear apologies.
    If I go to a web page and place my curser in the middle of <div id="masthead>
    and then in the css styles panel select "new css rule" when the window opens by default
    it normaly says:-
    Rule definition...
    Choose where your rule will be defined
    and then it shows my current cssfile name with a drop downbox for any other
    attatched sheets. As in the tabs at the top of the window
    However some times when I do this the box listing my css files only lists in "this document only"
    and selecting the drop down box shows no other css files. But the css files are shown on the tabs
    at the top opf the screen
    I wondered if anyone had any idea as to why?
    thanks
    Ian

  • CUP - Issue regarding creation of New SAP ID in CUP.

    System :  SAP GRC 5.3 SP 12..
    We have requirement where in we need to design a workflow for creation of New SAP ID.
    The Naming convention followed for SAP ID is FIRST LETTER of FIRST NAME and LAST NAME with maximum 8 characters.
    For Eg
    JOHN SMITH would have SAP ID as JSMITH
    JERRY SMITH would  have SAP ID as  JSMITH01
    The requirement here is when user fill the REQUEST FORM for NEW User ID there is field where in the requestor need to put the desired SAP ID,
    Can a validation be set OR Logic be written so that user can put the SAP ID as per the naming convention..?
    Also , any other solution as to how the situtation can be handled in CUP...
    Regards.
    Ajit

    Hi Ajit,
    Yes, you can maintain the user ID in the Active Directory. User id will be now auto populated in the request form, from Active Directory when  we data Source is LDAP -Actice directory. So when user login to end user form to create a request, It's all information( user details + manager details ) will fetched from Active Directory.
    It is not possible to change userid in later stage of approval in the request.
    You can have security as final stage and guide them to create user manually as per naming convention.
    Make auto provisioning OFF in CUP
    Kind Regards,
    Srinivasan

Maybe you are looking for

  • Phone line corrosion

    Hi,I need advice,we had bt infinity installed last year and ever since our phone been crackling we first had an engineer out in may last year who fixed the issue,our broadband kept dropping in between then so i was on the phone to them for 5 months w

  • "Content-type: text/html; charset=utf-8 cache-control: no-cache..." display

    "Content-type: text/html; charset=utf-8 cache-control: no-cache, no-store, max-age=0, must-revalidate pragma: no-cache X-Frame-Options: DENY " is being displayed at the top of one of our pages now. I can see that line in the body section of the page

  • BEA 38002 error in osb

    Hello Guys, I am getting a http response code "404" error "not found" for one of our soap based web services. Its an internal dot net webservice. I am able to telnet the IP and port of this webservice from my machine. Also I have tried to test only t

  • Set Sender of Mail from Abap

    Hi, I use SO_NEW_DOCUMENT_SEND_API1 function module to send a mail from abap code. But I want to set the sender. Can I realize it? Regards Angela

  • Outlook 2013 Crashes During Initial Email download

    GroupWise 2012 sp3 running on Windows 2008r2. Mobility Services 2.1. We upgraded on 4/18/15. We are trying to set this up on his Outlook 2013. Everything works until it downloads 406 emails. Outlook then crashes and restarts. The next time it tries t