Suggestion: To include results from SD Sales & SD Billing

Not sure if this is feasible but just wanted to suggest.
When we search for keywords from this category/forum(ERP - Sales and Distribution (SD) General) the results should not ONLY be fetched from this category but should also be fetched from ERP SD Billing and ERP SD Sales, as this category of forum happens to be generic SD forum.
If I wish to specifically search for SD billing, I'll go to ERP SD Billing and for Sales specific queries to ERP SD Sales.
If we say that this forum is general for SD, should n't the results include ERP SD Sales and ERP SD Billing.
TIA.

Thanks Lakshmipathi for your response.
No, I was basically looking at pulling results ONLY from SD forums. See, when you type the keyword in the box on top right next to our name it will bring results from ALL forums, what am looking for is a facility of "restrictive search" and yet general in nature.
Restricitve Search = Restricted only to SD forums
General because, it pulls from all the 3 SD categories.

Similar Messages

  • In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?

    In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?

    I create a new index on column2, (INDEX_N3)
    and change SQL to
    select 1 from table T1 where
    T1.COLUMN_002 = '848K 36892'
    This time INDEX_N3 will be used.
    but change SQL to
    select 1 from table T1 where
    T1.COLUMN_002 = '848K 36892'
    and T1.COLUMN_004 = '1000'
    The explain plan will show full scan.
    Why?
    Thanks.

  • What is the best alternative to exclude results from a specific site collection

    Hi,
    We want to exclude results from a specific site collection (for example http://server/sites/demo").
    A few ways are being considered:
    1. Copy the Local SharePoint Results Result Source and edit it not to include results from that site collection and then set the new custom result source as default.
    2. Edit the Search Results WP in the "Everything" tab to exclude those results (edit the query there)
    3. Set a query rule on "Local SharePoint Results" to exclude the results from the Demo Site Collection
    What is the best?
    keren tsur

    Hi Keren,
    Modifying the Local result  xlt will give you the most granularity but it is also arguably more challenging because of the "editing code" portion
    On your search page you could append a query string via the search webpart but that may not get granular enough.
    In the past I have used search scopes to exclude items in search results. Depending on the specific requirement it may be a quick and easy way to accomplish your task. it really depends on how ganular you need to get with excluding items from results.
    A search scope can be setup be going to:
    1. Site Actions (of the site collection you want to apply this to)
    2. Click on Site Settings
    3. Under site Collection Administration ( you have to be a site collection admin or farm admin to be able to see this section)
    4. click on "Search Scopes"
    5. Click on New Scope
    6. Name it, fill out any other options you want and click "ok"
    7. Click on your newly created search scope.
    8. click on "new rule"
    9. Fill out the fields based on your requirements and then click "OK"
    10. I believe you will want to wait for a search to index to run before this scope will return any results.
    Please let me know if you have any other questions.
    Good Luck!
    Alex

  • WebHelp Search results include text from topic

    Hello,
    Using XP with RH8 and RSC 3.1 
    Testing the Search tab functions in a Web help project and noticed that the Search Results list includes text from the topic, including from the Header, which have our product name and copyright statement.
    Is there a way to turn the display of text off, or at least restrict where it picks up the text from?    I like having the ranking column, but the topic title is all I really want in that column if that's possible.
    See the attached example.
    Thanks in advance for any advice you can provide.
    Regards,
    Joe

    Turn off the context option in the second page of the wizard.
    See www.grainge.org for RoboHelp and Authoring tips

  • Several purchase requsitions from one sales order

    Hi,
    I am using item category TAB to create a purchase requsition from a sales order, this works fine.
    What I really want to do is to create one purchase requsition for each condition type of a special kind from the TAB position in the sales order.
    Another possibility is to create several purchase orders from one purchase requsition, split on the earlier mentioned condition types. In any case, the end result should be several POs from one SO, split on condition types.
    Can this be done in config or do you have a suitable user-exit for me?
    Thanks in advance!
    Best Regards
    Viktor

    HI,
    The Cost Center Determination settings is in OVF3, the standard works only at the header level though, so it would not work if cost center is needed on the line item.
    For this case I suggest to try from CO view:
    A material is linked to a profit center. From this profit center you can determine a cost center using txn OKB9
    In combination with the material's account assignment field and account determination customizing, an alternate revenue account can be determined for this material. ("Normal" revenue accounts are to be used in combination with CO-PA).
    If this account is a cost element with category type "1" you need the entries in OKB9.
    Hope this help!
    Regards!

  • Unexpected result from pstack

    Hi All, not sure if this is the right forum......
    I'm maintaining a large(ish) system written in C++ running on Solaris 10. One process occasionaly hangs. We suspect it's waiting on a mutex.
    So - I'd like to use pstack in the shell script that restarts this particular process when the system's monitor decides this process is hung or dead. I'm hoping to find evidence of a call to Mutex_lock(...).
    I have built a simple model. It just kicks off a thread, which immediately hangs ...
    #include <iostream>
    #include <thread.h>
    #include <unistd.h>
    using namespace std;
    mutex_t v_mutex;
    extern "C" void* workerthread(void* v)
       cout << "Worker thread applying for mutex.\n";
       mutex_lock(&v_mutex);
       cout << "Worker thread got mutex.\n";
       mutex_unlock(&v_mutex);
       return 0;
    int main(void)
       thr_create(NULL,
                  0,
                  workerthread,
                  0   ,
                  THR_DETACHED,
                  0);
       mutex_lock(&v_mutex);
       pause();
    }This makes the model process hang on the worker thread's request for the lock. However, in pstack, I don't see the call. (In several articles on the web, the suggestion is that I should be seeing it) This is what I get from pstack...
    10337:     ./a.out
    -----------------  lwp# 1 / thread# 1  --------------------
    ff041104 pause    ()
    00011028 main     (1, ffbff3b4, ffbff3bc, 21400, ff3a0700, ff3a0740) + 38
    00010b38 _start   (0, 0, 0, 0, 0, 0) + 108
    -----------------  lwp# 2 / thread# 2  --------------------
    ff040408 lwp_park (0, 0, 0)                                           <--- I'd expect to see the mutex_lock() here ?
    00010f94 workerthread (0, feefc000, 0, 0, 10f68, 1) + 2c
    ff040368 _lwp_start (0, 0, 0, 0, 0, 0)Just as a sanity check, a session with dbx shows what I was expecting, but this is no good for working from a script...
    Attached to process 10337 with 2 LWPs
    t@1 (l@1) stopped in _pause at 0xff041104
    0xff041104: _pause+0x0004:      ta       %icc,0x00000008
    Current function is main
       34      pause();
    (dbx) thread t@2
    Current function is workerthread
       16      mutex_lock(&v_mutex);                           <--- There it is !
    t@2 (l@2) stopped in __lwp_park at 0xff040408
    0xff040408: __lwp_park+0x0010:  ta       %icc,0x00000008
    (dbx) exitSo does anyone see why I'm not getting the expected result from pstack?
    Thanks very much
    Jeff Adams

    BTW, albeit I don't know your situation in full, I don't think using dbx in a script is impractical. It has -c "command" option and it can read commands from a stream:
    $ dbx - 1234 -c "where -l"
    $ dbx - 1234 < commands.txtFirst command should print stack trace of process with pid=1234 and the second will execute every command from file commands.txt on the same process.

  • Unicode String Issue while Using Results from Another Query

    Hi All,
    In a webi report i have 2 queries say Sales Out and Investment. I need to have only those chains which are in Investement in Sales Out.
    So in Sales Out query i am using the option Results from another Query. The Chain values are in Unicode format.
    Though in universe i have Set Parameter Unicode_String ='Yes', this does not get applied when using option Results from another Query.
    Is there any solution to resolve this problem.
    Thanks
    Madhura

    leonhardtk wrote:
    I need to take values from the column of one table that meets certain critera, and create inserts into another table that includes this data.
    For example...
    {code}
    select emp_last_name from emp where emp_first_name like 'B%';
    Duncan
    Fitzgerald
    Johnson
    Smith
    {code}
    I then want to insert these values into another table:
    {code}
    insert into My_table values (
    sequence.nextval,99,99,[last_name]);
    {code}
    In the example above, I need it to insert a new row into My_table for where the "last_name" is each of the names from the select statement above (Duncan, Fitzgerald,Johnson,Smith).
    Based on other similar forum questions it looks like I should be doing something like:
    {code}
    INSERT INTO MY_TABLE
    (SELECT sequence.nextval,
                    99,
                    99,
                   (select EMP_LAST_NAME
                    FROM EMP
                    WHERE EMP_FIRST_NAME LIKE 'B%')
    {code}
    But this (obviously) doesn't work!
    Appreciate any assistance on this!
    KSL.
    Hi,
    Created this test data
    create table plch_test (name varchar2(50));
    insert into plch_test values('AKSHAY');
    insert into plch_test values('RAHUL');
    insert into plch_test values('APARNA');
    output
    1    AKSHAY
    2    RAHUL
    3    APARNA
    created another destnation table(in your case "my table")
    create table plch_test_1 (id number,name varchar2(50));
    created another sequence to generate employee ids
    create sequence test_seq;
    Now populated the desination table
    insert into plch_test_1(select test_seq.nextval,name from plch_test);
    verify the destination table
    select * from plch_test_1
    1    AKSHAY
    2    RAHUL
    3    APARNA
    Hope this helps
    Regards,
    Achyut Kotekal

  • Unable to add Invoice from a sales order draft.

    Hi all,
    I have a customer who is trying to add an A/R Invoice from a sales order draft and is receiving this error, "applied amount cannot be negative in the base document [Message 439-182]"
    If anyone has seen this before or has any suggestions that would be great.
    Best Regards,
    Jeff Haldeman
    Support One

    Hi Jeff,
    Can you also let us know what where the contents in Sales Order and the resultant AR Invoice?
    The Quantity , Price and the Total
    Regards,
    Jitin
    SAP Business One Forum Team

  • Plan costs calculation during results analysis of sales order

    Hi Experts,
    I am in process of implementing sales order costing. I am facing a problem during result analysis with plan costs data.
    We have a sales order for which production order is generated. Cost object is sales order.
    Say, sales order cost estimate which is the plan costs --> is $ 1000 (which includes prod order COGM of $ 600) (So remaining sales and admin costs are $ 400)
    Plan cost of production order is $ 550 (as per production order cost analysis report)
    While calculating the result analysis for sales order, system is calculating the plan costs data as $ 1000 + $ 550 = $ 1550
    As a result, I feel plan costs data during result analysis is over calculated.
    I feel either plan costs should be $ 1000 (as it already includes COGM part)
    or
    $ 950 which is (plan cost of production order $ 550 + sales and admin costs of $ 400)
    Could some one explain me why result analysis shows plan costs data as $ 1500 and if I need to rectify how can I do so.
    Thanks,
    GAN

    Any suggestions please.
    Edited by: DSK on Feb 9, 2012 6:16 AM
    Edited by: DSK on Feb 13, 2012 4:39 AM

  • ADFS SSO and SharePoint 2013 on-premise Hybrid outbound search results from SharePoint Online - does it work?

    Hi, 
    I want to setup an outpund hybrid search for SharePoint 2013 on-premise to SharePoint Online.
    But I'm not shure if this works with ADFS SSO.
    Has somebody experience with this setup?
    Here's my guide which I'm going to use for this installation:
    Introduction
    In this post I'll show you how to get search results from your SharePoint Online in your SharePoint 2013 on-premise search center.
    Requirements
    User synchronisation ActiveDirectory to Office 365 with DirSync
    DirSync password sync or ADFS SSO
    SharePoint Online
    SharePoint 2013 on-premise
    Enterprise Search service
    SharePoint Online Management Shell
    Instructions
    All configuration will be done either in the Search Administration of the Central Administration or in the PowerShell console of your on-premise SharePoint 2013 server.
    Set up Sever to Server Trust
    Export certificates
    To create a server to server trust we need two certificates.
    [certificate name].pfx: In order to replace the STS certificate, the certificate is needed in Personal Information Exchange (PFX) format including the private key.
    [certificate name].cer: In order to set up a trust with Office 365 and Windows Azure ACS, the certificate is needed in CER Base64 format.
    First launch the Internet Information Services (IIS) Manager
    Select your SharePoint web server and double-click Server Certificates
    In the Actions pane, click Create Self-Signed Certificate
    Enter a name for the certificate and save it with OK
    To export the new certificate in the Pfx format select it and click Export in the Actions pane
    Fill the fields and click OK Export to: C:\[certificate
    name].pfx Password: [password]
    Also we need to export the certificate in the CER Base64 format. For that purpose make a right-click on the certificate select it and click on View...
    Click the Details tab and then click Copy to File
    On the Welcome to the Certificate Export Wizard page, click Next
    On the Export Private Key page, click Next
    On the Export File Format page, click Base-64 encoded X.509 (.CER), and then click Next.
    As file name enter C:\[certificate
    name].cer and then click Next
    Finish the export
    Import the new STS (SharePoint Token Service) certificate
    Let's update the certificate on the STS. Configure and run the PowerShell script below on your SharePoint server.
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    $X64CertPath = "c:\[certificate name].cer"
    # get the encrypted pfx certificate object
    $PfxCert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # import it
    Set-SPSecurityTokenServiceConfig -ImportSigningCertificate $PfxCert
    Type Yes when prompted with the following message.
    You are about to change the signing certificate for the Security Token Service. Changing the certificate to an invalid, inaccessible or non-existent certificate will cause your SharePoint installation to stop functioning. Refer
    to the following article for instructions on how to change this certificate: http://go.microsoft.com/fwlink/?LinkID=178475. Are you
    sure, you want to continue?
    Restart IIS so STS picks up the new certificate.
    & iisreset
    & net stop SPTimerV4
    & net start SPTimerV4
    Now validate the certificate replacement by running several PowerShell commands and compare their outputs.
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    # get the encrypted pfx certificate object
    New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # compare the output above with this output
    (Get-SPSecurityTokenServiceConfig).LocalLoginProvider.SigningCertificate
    [/code]
    ## Establish the server to server trust
    [code lang="ps"]
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    Import-Module MSOnline
    Import-Module MSOnlineExtended
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    $X64CertPath = "c:\[certificate name].cer"
    # set the onpremise domain that you added to Office 365
    $SPCN = "sharepoint.domain.com"
    # your onpremise SharePoint site url
    $SPSite="http://sharepoint"
    # don't change this value
    $SPOAppID="00000003-0000-0ff1-ce00-000000000000"
    # get the encrypted pfx certificate object
    $PfxCert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # get the raw data
    $PfxCertBin = $PfxCert.GetRawCertData()
    # create a new certificate object
    $X64Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
    # import the base 64 encoded certificate
    $X64Cert.Import($X64CertPath)
    # get the raw data
    $X64CertBin = $X64Cert.GetRawCertData()
    # save base 64 string in variable
    $CredValue = [System.Convert]::ToBase64String($X64CertBin)
    # connect to office 3656
    Connect-MsolService
    # register the on-premise STS as service principal in Office 365
    # add a new service principal
    New-MsolServicePrincipalCredential -AppPrincipalId $SPOAppID -Type asymmetric -Usage Verify -Value $CredValue
    $MsolServicePrincipal = Get-MsolServicePrincipal -AppPrincipalId $SPOAppID
    $SPServicePrincipalNames = $MsolServicePrincipal.ServicePrincipalNames
    $SPServicePrincipalNames.Add("$SPOAppID/$SPCN")
    Set-MsolServicePrincipal -AppPrincipalId $SPOAppID -ServicePrincipalNames $SPServicePrincipalNames
    # get the online name identifier
    $MsolCompanyInformationID = (Get-MsolCompanyInformation).ObjectID
    $MsolServicePrincipalID = (Get-MsolServicePrincipal -ServicePrincipalName $SPOAppID).ObjectID
    $MsolNameIdentifier = "$MsolServicePrincipalID@$MsolCompanyInformationID"
    # establish the trust from on-premise with ACS (Azure Control Service)
    # add a new authenticatio realm
    $SPSite = Get-SPSite $SPSite
    $SPAppPrincipal = Register-SPAppPrincipal -site $SPSite.rootweb -nameIdentifier $MsolNameIdentifier -displayName "SharePoint Online"
    Set-SPAuthenticationRealm -realm $MsolServicePrincipalID
    # register the ACS application proxy and token issuer
    New-SPAzureAccessControlServiceApplicationProxy -Name "ACS" -MetadataServiceEndpointUri "https://accounts.accesscontrol.windows.net/metadata/json/1/" -DefaultProxyGroup
    New-SPTrustedSecurityTokenIssuer -MetadataEndpoint "https://accounts.accesscontrol.windows.net/metadata/json/1/" -IsTrustBroker -Name "ACS"
    Add a new result source
    To get search results from SharePoint Online we have to add a new result source. Run the following script in a PowerShell ISE session on your SharePoint 2013 on-premise server. Don't forget to update the settings region
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    # region settings
    $RemoteSharePointUrl = "http://[example].sharepoint.com"
    $ResultSourceName = "SharePoint Online"
    $QueryTransform = "{searchTerms}"
    $Provier = "SharePoint-Remoteanbieter"
    # region settings end
    $SPEnterpriseSearchServiceApplication = Get-SPEnterpriseSearchServiceApplication
    $FederationManager = New-Object Microsoft.Office.Server.Search.Administration.Query.FederationManager($SPEnterpriseSearchServiceApplication)
    $SPEnterpriseSearchOwner = Get-SPEnterpriseSearchOwner -Level Ssa
    $ResultSource = $FederationManager.GetSourceByName($ResultSourceName, $SPEnterpriseSearchOwner)
    if(!$ResultSource){
    Write-Host "Result source does not exist. Creating..."
    $ResultSource = $FederationManager.CreateSource($SPEnterpriseSearchOwner)
    $ResultSource.Name = $ResultSourceName
    $ResultSource.ProviderId = $FederationManager.ListProviders()[$Provier].Id
    $ResultSource.ConnectionUrlTemplate = $RemoteSharePointUrl
    $ResultSource.CreateQueryTransform($QueryTransform)
    $ResultSource.Commit()
    Add a new query rule
    In the Search Administration click on Query Rules
    Select Local SharePoint as Result Source
    Click New Query Rule
    Enter a Rule name f.g. Search results from SharePoint Online
    Expand the Context section
    Under Query is performed on these sources click on Add Source
    Select your SharePoint Online result source
    In the Query Conditions section click on Remove Condition
    In the Actions section click on Add Result Block
    As title enter Results for "{subjectTerms}" from SharePoint Online
    In the Search this Source dropdown select your SharePoint Online result source
    Select 3 in the Items dropdown
    Expand the Settings section and select "More" link goes to the following URL
    In the box below enter this Url https://[example].sharepoint.com/search/pages/results.aspx?k={subjectTerms}
    Select This block is always shown above core results and click the OK button
    Save the new query rule

    Hi  Janik,
    According to your description, my understanding is that you want to display hybrid search results in SharePoint Server 2013.
    For achieving your demand, please have a look at the article:
    http://technet.microsoft.com/en-us/library/dn197173(v=office.15).aspx
    If you are using single sign-on (SSO) authentication, it is important to test hybrid Search functionality by using federated user accounts. Native Office 365 user accounts and Active Directory Domain Services
    (AD DS) accounts that are not federated are not recognized by both directory services. Therefore, they cannot authenticate using SSO, and cannot be granted permissions to resources in both deployments. For more information, see Accounts
    needed for hybrid configuration and testing.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Results Analysis on Sales Orders

    Hi Fellows,
    When i am running the results analysis for Sales orders using KKAK transaction , I do not wish to see the WIP items with 0 Values.So i selected the option " Hide Orders with 0 values in Results List ".
    However I am still getting the WIP items with 0 Value.
    I saw the help for this and it says
    " Note: In some cases individual objects may still appear in the list when both the column "Reserves for unrealized costs" (reserve for unrealized costs + reserve for complaints/commissions) and the column "Reserves for imminent loss" are a sum of multiple value fields and these value fields are checked individually for zero value ".
    From the above, I came to the conclusion that the 0 value items may still come even if we check the box.
    However from the above note, can anyone tell me where i can check the " Reserves for Unrealized Costs " and " Reserves for Imminent Loss " and also how can i know what are the value fields which are adding up to these columns.
    Also it says the Value fields are individually checked for zero value.
    Where can i see the Value fields associated with this Results Analysis and where can i see if the Value fields are assigned a value of zero.
    Please let me know if you have any thoughts on this..
    Thanks in advance..
    Srik

    Hi,
    Check whether Note 501915 - Creation, cancellation, and usage of reserves would help.
    Regards,
    P.S: Please post this question in FI/CO forum so that you can get answers quickly.

  • Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator.

    Hello Guys,
    I am creating resultsource from central admin. If I create it from central admin it works fine. But if I am creating result source from power shell scripts it shows me following error message.
    An exception of type 'Microsoft.Office.Server.Search.Query.InternalQueryErrorException' occurred in Microsoft.Office.Server.Search.dll but was not handled in user code
    Additional information: Search has encountered a problem that prevents results from being returned.  If the issue persists, please contact your administrator.
    Any suggestion ?
    Thanks in Advance.

    Hi,
    Please provide more specific information about the issue. What type of content source you tried creating via powershell?
    Make sure you are using the approproate permission and search service application.
    Here is the reference for creating content resource via script:
    http://technet.microsoft.com/en-us/library/ff607867(v=office.15).aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • In what order are results from gather_database_stats 'LIST AUTO' returned?

    11.2.0.1.0. The results from the following seem to have some order to them (groupings of objects returned alphabetically). Didn't see anywhere in the docs to indicate what's getting returned in what order (empty stats, stale stats). I looked at table stats for one at the top of the list and it looks like the table had stats gathered recently, so i'm confused. I ran this from sqlplus:
    set serveroutput on size unlimited;
    DECLARE
    ObjList dbms_stats.ObjectTab;
    BEGIN
    dbms_stats.gather_database_stats(objlist=>ObjList, options=>'LIST AUTO');
    FOR i in ObjList.FIRST..ObjList.LAST
    LOOP
    dbms_output.put_line(ObjList(i).ownname || '.' || ObjList(i).ObjName || ' ' || ObjList(i).ObjType || ' ' || ObjList(i).partname);
    END LOOP;
    END;
    /

    Enlightened answer: "So bug off and work with what you get"
    The report was run on a database that doesnt have any auto stat collection occurring. There are 4000 items returned in the list. One of the items looks ok when you look at dba_tables (row count correct and last_analyzed recent). Just trying to figure out why this table was included in the list. Might be the way stats collected for it isn't updating some mechanism that gather_database_stats is utilizing. From what I can tell the order is 1) tables with no stats, 2) indexes with no stats, 3) stale tables.

  • Getting valid idoc number from the sales document

    hi,
    Iam sending the code for getting the idoc number from sales document.
    but iam not getting the result.
    please see the code and correct the code so that i will get the idoc number from the sales document.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
      exporting
        input         = p_vbeln
    IMPORTING
       OUTPUT        = p_vbeln
    select single docnum from edid4 into l_docnum where sdata like '&p_vbeln&'.
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    it is very urgent..............
    thanks in advance......

    See the below code :
    report zxyz.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    <b>data sdata like edid4-sdata.</b>
    start-of-selection.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
    input = p_vbeln
    IMPORTING
    OUTPUT = p_vbeln
    <b>concatenate '%' p_vbeln '%' into sdata.</b>
    select single docnum from edid4 into l_docnum
                  where sdata like <b>sdata.</b>
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    Thanks
    Seshu

Maybe you are looking for