Programatically creating Listing Records in CRM

Hi Community Users,
<b>Scenario:</b> Whenever a contract is released and saved the system should use the Organisation Data, Sold-to-Party and the item Product/Product Category  to automatically generate Listing Records in the backend.
So eventually the Listing Record will look like:
<b> Listing Header</b>
Org                   Sold-to-Party         Dist. Chan       List ID     ValidFrom     ValidTo
SOrg.100            512                    30             02           todays date   12/31/9999
<b>Listing Item</b>
Item Type               ID               Desc         Hier ID        
Product                 PROD1         xyz           R3PRODHIER
Please suggest if there is any BAPI or API's that would encapsulate the logic of creating Listing Records and related Partner/Product Ranges.
Any help would be returned in terms of POINTS.
Thanks,
Roy.

Hi,
Did you already get any solution for your query?
If yes please share the information on the BAPI or API.
Thanks in advance.
Regards,
SR

Similar Messages

  • Plsql query to list cases that have failed to create listing records

    i would like to create a query as follows
    Give me all docket_num (whose batch_id's are =11051) from Import_case table
    which do not have listing records on Listing_Table (either they don't exist at all
    or if the do; the create_date in the Listing table is null OR cretae_date on Lsting table not = record_process_date on Import_case table.
    -------- x ---------------
    Import_case Table
    ==============
    1. import_case_id number(38) primary key
    2. batch_id number
    3. record_processed_date date
    4. docket_num varchar2(17)
    case_master Table
    =================
    1. case_master_id number(38) primary key
    2. docket_num varchar2(17)
    Listing Table
    ==========
    1. Listing_id number(38) primary key
    2. case_master_id number(38)
    3. created_date timestamp(6)
    note: case_master table is a link between Import_case Table and Listing table
    where docket_num on import_case table = docket_num on case_master
    and case_master_id on case_master = case_master_id on Listing Table
    Please reply at your earliest. Thanking you. Arvind Modi.

    I have used following query, which gives me list of docket numbers on Import case Table; which don't have Listing records on Listing Table.
    ========================================================
    select
    ic.import_case_id as "IMP_CASE_ID",
    ic.batch_id as "B_ID",
    ic.docket_num as "DOCKET#",
    ic.insert_timestamp as "INS_DT",
    ic.record_processed_timestamp as "REC_PROCESS_DT",
    ic.next_date as "NEXT DT"
    from daoimp.import_case ic
    -- ** insert Batch id ** >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    where ic.batch_id=11051
    -- ** insert Batch id ** <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    minus
    select
    t.import_case_id as "IMP_CASE_ID",
    t.batch_id as "B_ID",
    t.docket_num as "DOCKET#",
    t.insert_timestamp as "INS_DT",
    t.record_processed_timestamp as "REC_PROCESS_DT",
    t.next_date as "NEXT DT"
    from daoimp.import_case t,
    case_master cm,
    listing l
    -- ** insert Batch id ** >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    where t.batch_id=11051
    -- ** insert Batch id ** <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    and
    t.docket_num = cm.docket_num
    and
    cm.case_master_id = l.case_master_id
    ==================================================
    The above query gives correct docket_numbers on Import_case table, but it also needs to include Docket numbers on Import_case Table
    whose Listing records in Listing table contain NULL value in created_date
    OR create_date on Listing table not equal record_process_date on Import_case Table.
    ---- x ----
    Here is the actual request and above is my interpretation of it.
    The goal of the task here is to create a tool. The tool can be run to check for missing listing records that were not created during the import process. When run, the tools returns a result set of records (docket_numbers) from the import case table that although processed on a particular date i.e., (record_process_date) do not have a matching listing record i.e., ( a listing record with a create_date equal to the record_process_date).
    The ONLY VARIABLE PARAMETER NEEDED in this tool is the Batch ID for the import case table.
    ---- x ---
    I am working on some other queries using inner join or outer join or not exists, but no success so far.
    Please call me at my phone number or reply on my e-mail, if you like; so that I can clarify any issues.

  • .   Is it possible to create condition record in both CRM as well as in R/3

    hi,
    .   Is it possible to create condition record in both CRM as well as in R/3?  Explain in more details.
    Regards,
    babu

    Hi Babu,
    No. You cannot create condition records in CRM when back end is R/3.
    Condition records should be created in R/3 and replicated to CRM.
    You cannot extend condition records in CRM.
    Reward the Points.
    Thanks,
    Srini.

  • Maintenance of  Condition records in CRM

    Hi all,
    Environment CRM 4.0, R/3 4.6c,
    where do i create condition records in CRM?
    we have pricing procedure,Document pricing procedure,Customer pricing procedure and Sales area in place and also configured Pricing procedure determination, assigned Document pricing procedure to the respective document, assigned Customer pricing procedure to the respective BP.But when i am trying to create sales transaction when i go to display header level of Sales Transaction the pricing procedure is not picked up the pricing procedure field is empty.
    i am under impression that is it because of not having maintained Condition record?
    can you plz anyone suggest me in this regards at the earliest?
    Thanks in advance.
    DV.

    Hi MDV,
    Make sure that <b>sales area data</b> for the Partner you are using in your sales transaction has been maintained in the BP transaction under the SALES AREA DATA button on the top. Sales area data has the customer pricing procedure field.
    The pricing procedure has nothing to do with conditions.
    <b>Reward points if it helps.</b>
    Regards,
    Amit Mishra

  • Unable to Create Email Record In Ms CRM Out Look Client

    Hi All
    We have integrated one of our crm instance with the outlook client.
    when we create email record from outlook and when we try to send it, we are getting the below error. 
    any help would be appreciated.

    Hello,
    Did you check this: http://tnycrm.blogspot.in/2011/06/dynamics-crm-40-for-outlook-invalid.html
    Microsoft Dynamics CRM Training|Our Blog |
    Follow US |
    Our Facebook Page |
    Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • Onlive TV listing does not show HD listing for series when I try to create a recording

    It happened now already several times the the "Online TV Listing" does not show HD listing for series when I try to create a recording. Instead, it will show two series options in SD. Is this to make people use less bandwidth?
    Here is what I am doing:
    I go to this link  https://www.verizon.com/fiostv/myservices/members/fiostv.aspx
    Then to ...........DVR Manger
    select  ...........Record A Show
    I type search e.g. Nathan for You
    I click on ........Search
    and I select ......Click here to Show Details
    Then I get to chose from 2 (the same) SD channels.
    Nathan for You
    190 Comedy Central
    Tue, Jul 29 10:30 PM
    Record Show Record Series
    Nathan for You
    190 Comedy Central
    Tue, Aug 05 10:30 PM
    Record Show Record Series
    But there is the same on channel 690 HD!
    This happens not only to this particular channel!
    I remember it used to show also the HD channels.
    The only way to schedule in HD is to find the listing in the TV schedule, at the right time and there you will get the
    correct choices for both SD & HD.
    Can this be fixed?
    Thanks!

    On the right click on HD under video quality to filter it. 

  • Create a record based on From date and To Date in CRM 2015 Plugins

    Hi all
    in my account screen i have two date field from date and Todate and i have one child entity member when i am creating a
    new account then based on from date and to date number of child record should be created
    for example in account screen
    if from date=2/1/2015 and 
       To date=31/03/2015
    then number of child record should be created
    in this manner 
    from date      to date 
    2/1/2015       31/01/2015
    01/02/2015     28/02/2015
    1/03/2015      31/03/2015

    Hi,
    OK. It seems you want to create 3 records (custom child entity) where the first has the same From Date as the Account and goes up to the end of the month, and the other records go from there.
    This logic can be implemented via a Plugin that could run on the create and update of these fields on Accounts. From the Plugin, you can set up the logic and fill the records with the necessary information.

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • Ssrs 2014 errorrule 'Create list of measure group-dimension pairs

    I'm getting this error generating a model for a ssas tabular model in ssrs 2014.  When I test the tabulur definition in Excel under SSAS everything works fine and there are no errors.
    Thanks
    From the log
    semanticmodelgenerator!ReportServer_0-1!b58!06/13/2014-15:39:25:: e ERROR: Semantic Model Generator: ModelGeneratorExtention
    An error occurred while executing rule 'Create list of measure group-dimension pairs':Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'..
    semanticmodelgenerator!ReportServer_0-1!b58!06/13/2014-15:39:25:: e ERROR: Semantic Model Generator: ModelGeneratorExtention
    An error occurred during the generation of semantic model : [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'..
    library!ReportServer_0-1!b58!06/13/2014-15:39:25:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ModelGenerationErrorException: , Microsoft.ReportingServices.Diagnostics.Utilities.ModelGenerationErrorException: An error occurred while
    generating model. ---> System.InvalidOperationException: An error occurred during the generation of semantic model : [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'..
    ---> System.InvalidOperationException: [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'. ---> Microsoft.AnalysisServices.Modeling.Generation.ModelGenerationException:
    Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'.
       at Microsoft.AnalysisServices.Modeling.Generation.ModelGenerationDiagnostics.Assert(Boolean condition, String message, Boolean throwOnFail)
       at Microsoft.AnalysisServices.Modeling.Generation.Rules.MapMeasureGroupsToDegenerateDimensions.Process(RuleFlowRecords& generatedRules, RuleExecutionRequirement& rulesExecutionRequirement)
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.ProcessRule(IRule rule, RuleContext ruleContext)
       --- End of inner exception stack trace ---
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.ProcessRule(IRule rule, RuleContext ruleContext)
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.ProcessRuleFlowRecord(RuleFlowRecord ruleFlowRecord)
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.ProcessRule(IRule rule, RuleContext ruleContext)
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.ProcessRuleFlowRecord(RuleFlowRecord ruleFlowRecord)
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.Process()
       --- End of inner exception stack trace ---
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.Process()
       at Microsoft.AnalysisServices.Modeling.Generation.ModelGenerator.Generate()
       at Microsoft.AnalysisServices.Modeling.Generation.ModelGeneratorExtention.ReGenerateModel(IDbConnection connection, XmlReader currentModelReader, XmlWriter newModelWriter)
       at Microsoft.ReportingServices.Library.GenerateModelAction.GenerateModel(DataSourceInfo dataSource)
       --- End of inner exception stack trace ---;
    ui!ReportManager_0-2!3f3c!06/13/2014-15:39:25:: e ERROR: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: An error occurred while generating model. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ModelGenerationErrorException:
    An error occurred while generating model. ---> System.InvalidOperationException: An error occurred during the generation of semantic model : [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for
    cube dimension '[$DimDate].[DimDate]'.. ---> System.InvalidOperationException: [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'. ---> Microsoft.AnalysisServices.Modeling.Generation.ModelGenerationException:
    Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'.
       at Microsoft.ReportingServices.Library.ReportingService2010Impl.GenerateModel(String DataSource, String Model, String Parent, Property[] Properties, CatalogItem& ItemInfo, Warning[]& Warnings)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.GenerateModel(String DataSource, String Model, String Parent, Property[] Properties, CatalogItem& ItemInfo, Warning[]& Warnings)
       at Microsoft.ReportingServices.UI.NewDependentItem.ApplyChanges()
       at Microsoft.ReportingServices.UI.BaseApplyPage.ApplyBtn_Click(Object sender, EventArgs e)
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ui!ReportManager_0-2!3f3c!06/13/2014-15:39:25:: e ERROR: HTTP status code --> 200
    -------Details--------
    System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: An error occurred while generating model. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ModelGenerationErrorException: An error occurred while generating model.
    ---> System.InvalidOperationException: An error occurred during the generation of semantic model : [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'..
    ---> System.InvalidOperationException: [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'. ---> Microsoft.AnalysisServices.Modeling.Generation.ModelGenerationException:
    Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'.
       at Microsoft.ReportingServices.Library.ReportingService2010Impl.GenerateModel(String DataSource, String Model, String Parent, Property[] Properties, CatalogItem& ItemInfo, Warning[]& Warnings)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.GenerateModel(String DataSource, String Model, String Parent, Property[] Properties, CatalogItem& ItemInfo, Warning[]& Warnings)
       at Microsoft.ReportingServices.UI.NewDependentItem.ApplyChanges()
       at Microsoft.ReportingServices.UI.BaseApplyPage.ApplyBtn_Click(Object sender, EventArgs e)
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    library!ReportServer_0-1!b58!06/13/2014-15:39:25:: i INFO: Call to GetSystemPropertiesAction().
    ui!ReportManager_0-2!3f3c!06/13/2014-15:39:25:: e ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
    library!WindowsService_2!bd0!06/13/2014-15:41:25:: i INFO: Call to CleanBatch()
    library!WindowsService_2!bd0!06/13/2014-15:41:26:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobs, 0 persisted streams, 0 segments, 0 segment mappings, 0 edit sessions.
    library!WindowsService_2!bd0!06/13/2014-15:41:26:: i INFO: Call to CleanBatch() ends
    rshost!rshost!3f3c!06/13/2014-19:37:27:: i INFO: Currently registered url http://+:80/ReportServer_SQLEXPRESS/ on endpoint 2
    rshost!rshost!3f3c!06/13/2014-19:37:27:: i INFO: Currently registered url http://+:80/Reports_SQLEXPRESS/ on endpoint 3
    rshost!rshost!3f3c!06/13/2014-19:37:27:: i INFO: Endpoint 4 is disabled and no url is registered vdir=/ReportServer_SQLEXPRESS/ReportBuilder, pdir=C:\Program Files\Microsoft SQL Server\MSRS12.SQLEXPRESS\Reporting Services\ReportServer\ReportBuilder.
    rshost!rshost!e38!06/13/2014-19:37:27:: i INFO: Derived memory configuration based on physical memory as 16487384 KB
    appdomainmanager!DefaultDomain!e38!06/13/2014-19:37:27:: i INFO: Appdomain:5 ReportServer_SQLEXPRESS_0-1-130471616741701355 unregistered.
    library!WindowsService_2!22c!06/13/2014-19:37:29:: i INFO: Call to CleanBatch()
    appdomainmanager!ReportServer_0-1!e38!06/13/2014-19:37:30:: i INFO: Appdomain:5 ReportServer_SQLEXPRESS_0-1-130471616741701355 unloading
    appdomainmanager!DefaultDomain!e38!06/13/2014-19:37:33:: i INFO: Appdomain:6 ReportManager_SQLEXPRESS_0-2-130471623126349107 unregistered.
    appdomainmanager!ReportManager_0-2!e38!06/13/2014-19:37:33:: i INFO: Appdomain:6 ReportManager_SQLEXPRESS_0-2-130471623126349107 unloading
    servicecontroller!DefaultDomain!e38!06/13/2014-19:37:41:: i INFO: Recycling the service from the default domain
    dbpolling!WindowsService_2!376c!06/13/2014-19:37:41:: i INFO: EventPolling polling service stopped
    dbpolling!WindowsService_2!376c!06/13/2014-19:37:41:: i INFO: NotificationPolling polling service stopped
    dbpolling!WindowsService_2!376c!06/13/2014-19:37:41:: i INFO: SchedulePolling polling service stopped
    dbpolling!WindowsService_2!376c!06/13/2014-19:37:41:: i INFO: UpgradePolling polling service stopped
    runningjobs!WindowsService_2!e38!06/13/2014-19:37:41:: e ERROR: Timer Database Cleanup (NT Service) still executing, breaking...
    rshost!rshost!e38!06/13/2014-19:37:48:: i INFO: Application domain type WindowsService statistics: created: 3, unloaded: 3, failed: 0, timed out: 0.
    appdomainmanager!DefaultDomain!e38!06/13/2014-19:37:48:: i INFO: Appdomain:7 WindowsService_3 started.
    library!WindowsService_2!22c!06/13/2014-19:37:52:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout
    or low disk condition within the database.;
    library!WindowsService_2!22c!06/13/2014-19:37:52:: w WARN: Transaction rollback was not executed connection is invalid
    dbcleanup!WindowsService_2!22c!06/13/2014-19:37:52:: e ERROR: Error in CleanExpiredSessions: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection
    failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Database 'ReportServer$SQLEXPRESSTempDB' is being recovered. Waiting until recovery is finished.
    library!WindowsService_3!e38!06/13/2014-19:37:55:: i INFO: SQLDump flags: ReferencedMemory, AllThreads, SendToWatson
    library!WindowsService_3!e38!06/13/2014-19:37:55:: i INFO: MiniDump flags: DataSegs, UnloadedModules, ProcessThreadData
    library!WindowsService_3!e38!06/13/2014-19:37:55:: i INFO: Dump on: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException,Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException
    library!WindowsService_3!e38!06/13/2014-19:37:55:: i INFO: Do not dump on: System.Threading.ThreadAbortException,System.Web.UI.ViewStateException,System.OutOfMemoryException,System.Web.HttpException,System.IO.IOException,System.IO.FileLoadException,Microsoft.SharePoint.SPException,Microsoft.ReportingServices.WmiProvider.WMIProviderException
    library!WindowsService_3!e38!06/13/2014-19:37:55:: i INFO: Minidump location: C:\Program Files\Microsoft SQL Server\MSRS12.SQLEXPRESS\Reporting Services\Logfiles
    resourceutilities!WindowsService_3!e38!06/13/2014-19:37:56:: i INFO: Reporting Services starting SKU: Developer

    Hi shiftbit,
    According to your description, you get an empty Measure Group Columns list when defining relationship. Right?
    Based on your screenshot, you may notice that Measure group table is empty, so definitely it can't show any column in the dropdown list. If there's columns in the measure group that are related to the dimension columns, at least it will show the fact
    table for Measure group.
    In this scenario, please check if the fact table for the Measure group is existing. Re-process the Measure group and try again. If the issue persists, please re-create that measure group.
    Reference:
    Define Relationship Dialog Box (Analysis Services - Multidimensional Data)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Dynamically creating a Record Group based on Previously entered Record Grou

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Hi,
    I know how to dynamically create a record group based on a query and putting the code in When new form instance.
    My query is. I have a form which has multiple Record Groups and the user wants to dynamically create subsequent groups based on previous groups.
    For example
    I have a record group with selects a Location,
    when the user selects the Location from a list of values
    the 2nd record group called 'Cost Centres' will have to filter out only those with the locations selected above.
    How can I populate the 2nd record group at run-time when I do not know what site the user will select?
    If I simply populate in when new form instance as in location and just select everything, the list of values populates.
    CC field is a LIST ITEM and the list style is a POP LIST, it is not required.
    I have put the code in the Location field in the when-list-changed trigger.
    I am getting this error:
    frm-41337: cannot populate the list from the record group
    here is the code:
    DECLARE
    v_recsql Varchar2(1000); -- The SQL for creating the Record Group.
    v_recgrp RecordGroup; -- Record Group
    v_status Number; -- Return Value of Populate_Group function.
    c_where VARCHAR2(1000);
    BEGIN
         IF :location = '1' THEN
              c_where := ' substr(cost_centre,1,2) in (''01'',''02'')';
         ELSIF :location  = '2' THEN
              c_where := ' substr(cost_centre,1,2) in (''02'',''03'')';
         ELSIF :location   = '3' THEN
              c_where := ' substr(cost_centre,1,2) in (''01'',''11'',''07'')';
                   ELSE
              c_where :=  ' 1=1'; --EVERYTHING
         END IF;
    v_recsql := 'SELECT cost_centre, description  FROM   cost_centres  where '||c_where;
    -- Create the Record Group
    v_recgrp := CREATE_GROUP_FROM_QUERY('v_recgrp', v_recsql);
    IF NOT ID_NULL(v_recgrp)
    THEN -- No Error, record group has been successfully created.
    -- Populate Record Group
    v_status := POPULATE_GROUP('v_recgrp');
    IF v_status = 0
    THEN -- No Error. Record Group has been Populated.
    POPULATE_LIST('block.CC', 'v_recgrp');
    END IF; -- IF v_status = 0
    -- Delete the Record Group as it is no longer needed.
    DELETE_GROUP('v_recgrp');
    END IF; -- IF NOT ID_NULL(v_recgrp)
    END;thanks for your assistance.

    Hi,
    Once record status gets change for block you can not populate/repopulate the list item. Keep those list items as non-database item with different names and create different items as database orignal items. Than assign the values in WHEN-LIST-CHANGE trigger to the actual database items.
    -Ammad

  • Data loader : Import -- creating duplicate records ?

    Hi all,
    does anyone have also encountered the behaviour with Oracle Data Loader that duplicate records are created (also if i set the option: duplicatecheckoption=externalid) When i am checking the "import request queue - view" the request parameters of the job looks fine! ->
    Duplicate Checking Method == External Unique ID
    Action Taken if Duplicate Found == Overwrite Existing Records
    but data loader have created new records where the "External Unique ID" is already existent..
    Very strange is that when i create the import manually (by using Import Wizard) exactly the same import does work correct! Here the duplicate checking method works correct and the record is updated....
    I know the data loader has 2 methods, one for update and the other for import, however i do not expect that the import creates duplicates if the record is already existing, rather doing nothing!
    Anyone else experiencing the same ?? I hope that this is not expected behaviour!! - by the way method - "Update" works fine.
    thanks in advance, Juergen
    Edited by: 791265 on 27.08.2010 07:25
    Edited by: 791265 on 27.08.2010 07:26

    Sorry to hear about your duplicate records, Juergen. Hopefully you performed a small test load first, before a full load, which is a best practice for data import that we recommend in our documentation and courses.
    Sorry also to inform you that this is expected behavior --- Data Loader does not check for duplicates when inserting (aka importing). It only checks for duplicates when updating (aka overwriting). This is extensively documented in the Data Loader User Guide, the Data Loader FAQ, and in the Data Import Options Overview document.
    You should review all documentation on Oracle Data Loader On Demand before using it.
    These resources (and a recommended learning path for Data Loader) can all be found on the Data Import Resources page of the Training and Support Center. At the top right of the CRM On Demand application, click Training and Support, and search for "*data import resources*". This should bring you to the page.
    Pete

  • How to create custom report in crm 2013

    Hi,
    I want to create custom report in crm 2013. I want to show Contact information in report. My scenario is that when I select multiple record and run report then contact information show in different pages. I want to show record in textbox in report. Here
    is an example of display record

    Hi Aamir,
    Have a look at below link it shows step by step how to create custom SSRS report.
    http://www.njevity.com/blog/creating-dynamics-crm-2011-reports-sql-reporting-services-pre-filtering-and-default-filters
    It tells using fetchxml, you can use SQL query as well. You need to use pre filtering to run report on selected record.
    Thanks,
    Prasad
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • Help with listing records from two tables

    Hi: I have two tables joined by the first field. The field is primary key in first table. Need help listing records from both tables with each record one line/record.
    create table EVENTS (
    event_key varchar2(64) primary key,
    event_description varchar2(64),
    create_time int
    create table EVENT_UPDATES (
    event_key varchar2(64) NOT NULL ,
    update_description varchar2(64),
    update_time int
    insert into EVENTS values('Event1', 'This is event1', 1);
    insert into EVENT_UPDATES values('Event1', 'Ticket created', 3);
    insert into EVENT_UPDATES values('Event1', 'Event cleared', 10);
    insert into EVENTS values('Event2', 'This is event2', 4);
    insert into EVENT_UPDATES values('Event2', 'Ticket created', 6);
    insert into EVENT_UPDATES values('Event2', 'Event cleared', 8);I want to print each record in EVENTS table as one line and corresponding records in EVENT_UPDATES as one line/record like this
    Event1   1     This is event1
                3     Ticket created
                10   Event cleared
    Event2   4     This is event2
                6     Ticket created
                8     Event clearedTIA
    Ravi

    select  case weight
              when 1 then event_key
            end key,
            time_val,
            description
      from  (
              select  event_key,
                      create_time time_val,
                      event_description description,
                      1 weight
                from  events
             union all
              select  event_key,
                      update_time,
                      update_description,
                      2 weight
                from  event_updates
      order by event_key,
               weight
    KEY          TIME_VAL DESCRIPTION
    Event1              1 This is event1
                        3 Ticket created
                       10 Event cleared
    Event2              4 This is event2
                        6 Ticket created
                        8 Event cleared
    6 rows selected.
    SQL> SY.

  • How to create Lease Contract in CRM using CRMXIF_ORDER_SAVE

    Hi All,
    I need to upload CRM Lease contract from Legacy data in a flat file. I have created a test program where I call function module "CRMXIF_ORDER_SAVE".
    When I run this FM, it is creating a BDoc of type BUS_TRANS_MSG and I can see them in Txn SMW01
    Couls anyone please tell me:
    1. What next steps I need to follow to create a Lease Contract. Do I need to do some setting for BDoc consumoption.
    2. Is there any other alternative way like BAPI etc to create lease contract in CRM.
    <b>Reward point is gurranted for REAL HELPFUL answers.</b>
    -Regards
    Ashim
    I am also attching the code of my test program
    *& Report  YTESTCRMXIF_ORDER_SAVE
    REPORT  YTESTCRMXIF_ORDER_SAVE.
    DATA WA_CRMXIF_BUSTRANS_T TYPE CRMXIF_BUSTRANS_T.
    DATA WA_CRMXIF_BUSTRANS TYPE CRMXIF_BUSTRANS.
    DATA WA_CRMXIF_ORGMAN   TYPE CRMXIF_ORGMAN.
    DATA: WA_CRMXIF_STATUS   TYPE CRMXIF_STATUS,
          ITAB_STATUS LIKE TABLE OF WA_CRMXIF_STATUS.
    DATA:  WA_BAPIRETM TYPE BAPIRETM,
           WA_BAPIRETI TYPE BAPIRETI .
    DATA: WA_BAPIRETC TYPE BAPIRETC.
    DATA: WA_PARTNER TYPE CRMXIF_PARTNER,
          ITAB_PARTNER LIKE TABLE OF WA_PARTNER.
    DATA: BEGIN OF WA_TEMP_PARTNER,
          PARTNER_NO(10) TYPE C,
          PARTNER_FCT(8) TYPE C,
          PARTNER_PFT(4)    TYPE C,
          PFT_SUBTYPE(4) TYPE C,
          END OF WA_TEMP_PARTNER,
          ITAB LIKE TABLE OF WA_TEMP_PARTNER.
                  FILLING THE STRUCTURE OF THE PARTNER                    *
               WA_TEMP_PARTNER-PARTNER_NO = '0010000002'. WA_TEMP_PARTNER-PARTNER_FCT = '00000035'.
          WA_TEMP_PARTNER-PARTNER_PFT = '0012'.       WA_TEMP_PARTNER-PFT_SUBTYPE = 'CRM '.
          APPEND WA_TEMP_PARTNER TO ITAB.
          WA_TEMP_PARTNER-PARTNER_NO = '0010000002'. WA_TEMP_PARTNER-PARTNER_FCT = 'Z0000002'.
          WA_TEMP_PARTNER-PARTNER_PFT = '0029'.       WA_TEMP_PARTNER-PFT_SUBTYPE = 'CRM '.
          APPEND WA_TEMP_PARTNER TO ITAB.
          LOOP AT ITAB INTO WA_TEMP_PARTNER.
          MOVE-CORRESPONDING WA_TEMP_PARTNER TO  WA_PARTNER.
          APPEND WA_PARTNER TO ITAB_PARTNER.
          ENDLOOP.
           END    FILLING THE STRUCTURE OF THE PARTNER                    *
                  FILLING THE STRUCTURE OF THE ORDER HEADER               *
    WA_CRMXIF_BUSTRANS-OBJECT_TASK    = 'I'.
    WA_CRMXIF_BUSTRANS-PROCESS_TYPE   = 'LEAS'.
    WA_CRMXIF_BUSTRANS-OBJECT_TYPE    = 'BUS2000114'.
    WA_CRMXIF_BUSTRANS-POSTING_DATE   =  20061026.
    WA_CRMXIF_BUSTRANS-DESCR_LANGUAGE = 'E'.
    WA_CRMXIF_BUSTRANS-CREATED_AT     = 20061026203200.
    WA_CRMXIF_BUSTRANS-CREATED_BY     = 'DUTTAK'.
    WA_CRMXIF_BUSTRANS-CALC_SCHEMA    = 'Z00050'.
    WA_CRMXIF_BUSTRANS-SCENARIO       = 'A'.
    WA_CRMXIF_BUSTRANS-LOGICAL_SYSTEM = 'CDTCLN400'.
    WA_CRMXIF_BUSTRANS-CRM_RELEASE    = 'BBPCRM 500'.
    WA_CRMXIF_BUSTRANS-CLIENT         =  400.
           END FILLING THE STRUCTURE OF THE ORDER HEADER                  *
                  FILLING THE STRUCTURE OF THE ORGMAN                     *
    WA_CRMXIF_ORGMAN-SALES_ORG      = 'O 50000000'.
    WA_CRMXIF_ORGMAN-SALES_ORG_RESP = 'O 50000000'.
    WA_CRMXIF_ORGMAN-DIS_CHANNEL    = '10'.
    WA_CRMXIF_ORGMAN-DIVISION       = '20'.
           END FILLING THE STRUCTURE OF THE ORGMAN                        *
                  FILLING THE STRUCTURE OF STATUS                         *
    WA_CRMXIF_STATUS-STATUS = 'I1282'.
    WA_CRMXIF_STATUS-ACTIVE = 'X'.
    WA_CRMXIF_STATUS-TXT04  = 'CONH'.
    WA_CRMXIF_STATUS-TXT30  = 'Contract Header'.
    APPEND WA_CRMXIF_STATUS TO ITAB_STATUS.
           END FILLING THE STRUCTURE OF THE STATUS                        *
    MOVE WA_CRMXIF_ORGMAN TO WA_CRMXIF_BUSTRANS-ORGDATA-DATA.
    MOVE ITAB_STATUS TO WA_CRMXIF_BUSTRANS-STATUS-DATA.
    MOVE ITAB_PARTNER TO WA_CRMXIF_BUSTRANS-PARTNER-DATA.
    APPEND WA_CRMXIF_BUSTRANS TO WA_CRMXIF_BUSTRANS_T.
    *LOOP AT WA_CRMXIF_BUSTRANS_T INTO WA_CRMXIF_BUSTRANS.
    *LOOP AT WA_CRMXIF_BUSTRANS-PARTNER-DATA INTO WA_PARTNER.
    WRITE: / WA_PARTNER-PARTNER_NO,WA_PARTNER-PARTNER_PFT,WA_PARTNER-PARTNER_FCT.
    ENDLOOP.
    *ENDLOOP.
    CALL FUNCTION 'CRMXIF_ORDER_SAVE'
    EXPORTING DATA = WA_CRMXIF_BUSTRANS_T
    IMPORTING RETURN = WA_BAPIRETM.
    IF SY-SUBRC = 0.
    WRITE 'CONTRACT CREATED SUCCESSFULLY'.
    ELSE.
    WRITE: 'SY-SUBRC =', SY-SUBRC.
    ENDIF.
    LOOP AT WA_BAPIRETM INTO WA_BAPIRETI.
    LOOP AT WA_BAPIRETI-OBJECT_MSG INTO WA_BAPIRETC.
    WRITE: / WA_BAPIRETC-MESSAGE , WA_BAPIRETC-TYPE,WA_BAPIRETC-NUMBER.
    WRITE: / WA_BAPIRETC-MESSAGE_V1,WA_BAPIRETC-MESSAGE_V2.
    ENDLOOP.
    ENDLOOP.

    hi, it looks the crm pricing configuration doesn't suitable to the order data you inbounding.
    You can try to input a order according to your inbound data in SAP GUI or WEB UI order screen,  to check if the same error will also appear like IDOC inbound.  If so, then the configuration is in problem.  
    You can check the pricing related configure,  like pricing procedure,  procedure assign,  pricing condition record ,types,  and IPC if it is activated or not.
    If not,  you can check the data your filled in idoc,  maybe it is a data problem.

  • Function Module for creating condition record (XKOMV table record)

    Hi,
    I have a requirement as like below,
    In the repair order i need to sum the GRWR condition type's  conditional values for all the line items (Except deliverable line item) and then i need to create an condition type GRWR under the deliverable line item with the above calculated conditional values,
    the table XKOMV will be having details about all the line item's condition types, in this table i need to add one more new record with the condition type of GRWR and the above calculated conditional values under the deliverable line item.
    for the above logic i am using the user exit
    USEREXIT_SAVE_DOCUMENT_PREPARE
    All the above things need to be done when the user click the save button in the transaction (VA01/VA02).
    Problem here is table XKOMV contains somany fields so manually we can't create xkomv record, is there any Function module to create condition type record?
    Regards,
    Manikumar
    Edited by: Manikumar Shanmugam on Mar 8, 2008 3:53 PM

    Hi,
       You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
    Regards
    Kiran Sure

Maybe you are looking for

  • HT1349 my ipod touch 4g fell on the ground... i tried to restore it from itunes but it says 'error 28'

    after plugging my ipod to the computer, itunes detected my ipod in recovery mode.. it asked me to restore it and i did so until 'error 28' appeared. What should I do?

  • Switch off the automatic update of profit centers on the Balance Sheet acco

    Dear all, In CO I am using only CCA and PCA. But I don't want to have the profit center updated on the balance sheet items. For example I have it activated for all the automatical BS postings from MM I need it only for the PL accounts. How can I swit

  • When to use Apple Intermediate Codec -v- NTSC  ???

    OK, After successfully creating two projects - one for YouTube and another on DVD - I found myself in a slump when 3 succeeding projects wouldn’t upload properly to YouTube. After doing some troubleshooting with people who “might” know what the probl

  • SEEburger error in conversion from EDI to EDI-XML

    Dear SAP experts, Good day! Can i seek your inputs regarding this error i'm getting when i've tried to convert the EDI (D93A_RECADV message) into EDI-XML? I am using BIC for this one. This is the error i am getting, [Error:ID=2099;LEVEL=1] InhouseDoc

  • DBMS_FGA.ADD_POLICY

    I created this audit select with FGA: BEGIN     DBMS_FGA.ADD_POLICY(     OBJECT_SCHEMA => 'TOM',     OBJECT_NAME   => 'MYTAB',     POLICY_NAME   => 'SELECT_MYTAB',     AUDIT_CONDITION => '',     AUDIT_COLUMN => '',     STATEMENT_TYPES => 'SELECT'); E