Inactive Customers

Hi Guys,
I need to create a report which will extract all the inactive customers.My criteria for selection is "A customer will inactive if there has been no sales activity for more than 18 months and no open items exist."Now as I am from ABAP background I am unable to get what is the logic to achive the requirement.
Please help me on this!
Thanks in advance.

Hi Ronit,
You could use some code like this:
TYPES:
   BEGIN OF ty_data,
     kunnr TYPE kunnr,
     last_date TYPE budat,
   END OF ty_data.
PARAMETERS:
   p_cutoff TYPE dats.
DATA:
   lt_with_open TYPE HASHED TABLE OF kunnr WITH UNIQUE KEY table_line,
   lt_data TYPE STANDARD TABLE OF ty_data.
FIELD-SYMBOLS:
   <data> TYPE ty_data.
* Customers whose last sales order is older than cutoff:
SELECT kunnr MAX( erdat ) INTO TABLE lt_data
        FROM vbak
        GROUP BY kunnr
        HAVING MAX( erdat ) < p_cutoff.
* Which of those customers have any open items:
SELECT DISTINCT kunnr INTO TABLE lt_with_open
        FROM bsid
        FOR ALL ENTRIES IN lt_data
        WHERE kunnr = lt_data-kunnr.
LOOP AT lt_data ASSIGNING <data>.
   READ TABLE lt_with_open TRANSPORTING NO FIELDS
        WITH TABLE KEY table_line = <data>-kunnr.
   IF sy-subrc <> 0.
     WRITE: / 'Customer', <data>-kunnr.
   ENDIF.
ENDLOOP.

Similar Messages

  • BEx Report: How to get Inactive Customers from past 2 years

    Hi Gurus,
    Our requirement is to  develop a BEx report to display inactive customers (Customers who does not have any sales from past 2 years)
    We have a Multi-provider which has Invoice Cubes with all transaction data. the Multi provider does not contain Customer master info object, It Contains only Invoice cubes for Euro and North America.
    Now we need to build a report on top of this Multi provider and achieve the inactive customer logic.
    I request anyone who have worked on this kind of report, please help me with this.
    Please note that we are using BI 7.
    Thanks and Regards,
    Rama.

    Thanks all for you replies,
    Rahul, We have Customer infoobject in the invoice cube, but not the customer master data infoobject itself separately.
    So we have to use the customer infoobject included as part of the invoice cubes.
    there is a similar concept called Slow moving Material.. which can be achieved in a similar way..
    There is an example in Sap help portal on this. Not sure how we can do that for Inactive customers..
    Any more ideas welcome.
    Thanks and appreciate all your efforts to contribute to this..
    Regards,
    Rama.

  • Inactive customers and credit limits

    Hi
    Is there a way to have a list of inactive customers since a particular date and review their credit limits. would like to change all credit limits for inactive customers to 0 and have them on ship block
    Cheers

    Hi Eric,
    1.) Go to transaction MC+E (Customer Analysis).
    2.) Enter criteria to selection screen. If sales is zero, that particular customer is inactive for the given period.
    3.) To review their credit limit, go to transaction SE16N, enter table name KNKK (Customer master credit management)
    Best regards,
    Juvy

  • T_SQL to get active/inactive customers, for business analysis (quarter based)?

    year quarter q_end_date customer_id incentive_flag active_date inactive_date max_q_end_date
    2014 1 4/1/2014 1609913 0 8/7/2001 NULL 10/1/2014
    2014 1 4/1/2014 1609918 0 8/7/2001 NULL 10/1/2014
    2014 1 4/1/2014 1609965 0 8/7/2001 NULL 10/1/2014
    2014 1 4/1/2014 1609991 0 8/7/2001 NULL 10/1/2014
    2014 1 4/1/2014 1610001 0 8/7/2001 NULL 10/1/2014
    2014 1 4/1/2014 1610054 0 8/8/2001 NULL 10/1/2014
    2014 1 4/1/2014 1610068 0 8/8/2001 NULL 10/1/2014
    2014 1 4/1/2014 1610069 0 8/8/2001 NULL 10/1/2014
    2014 1 4/1/2014 1610158 0 8/8/2001 NULL 10/1/2014
    2014 1 4/1/2014 1610188 0 8/8/2001 NULL 10/1/2014
    I have table like above and needs to  get incentive flags, quarter, total successfully billed, not successfully billed next quarter, not successfully billed but active by next quarter, not  successfully billed and inactive by next quarter
    I designed the query but  difficult to test is this working fine or not
    SELECT
    t1.incentive_flag
    ,t1.year
    ,t1.quarter
    ,total_successfully_billed=COUNT(t1.customer_id)
    ,not_successfully_billed_next_quarter=SUM(CASE
    WHENt1.max_q_end_date=t1.q_end_dateTHEN1
    ELSE0
    END)
    ,not_sb_nq_but_active_by_next_quarter_end=SUM(CASE
    WHENt1.max_q_end_date=t1.q_end_date
    ANDISNULL(t1.inactive_date,'12/31/9999')>=DATEADD(MONTH,3,t1.q_end_date)THEN1
    ELSE0
    END)
    ,not_sb_nq_and_inactive_by_next_quarter_end=SUM(CASE
    WHENt1.max_q_end_date=t1.q_end_date
    ANDISNULL(t1.inactive_date,'12/31/9999')<DATEADD(MONTH,3,t1.q_end_date)THEN1
    ELSE0
    END)
    FROM
    #successbilled customers table
    GROUP
    BYt1.incentive_flag
    ,t1.year
    ,t1.quarter

    Hi,
    Your second approach can be recomposed as below.
    use testDB
    CREATE TABLE successfullybilled([year] VARCHAR(4),[quarter] INT, q_end_date DATE,customer_id INT, incentive_flag INT, active_date DATE,inactive_date DATE,max_q_end_date DATE);
    INSERT INTO successfullybilled VALUES
    ('2014', 1 ,'4/1/2014', 1609913 ,0 ,'8/7/2001', NULL ,'10/1/2014'),
    ('2014', 1 ,'4/1/2014', 1609918 ,0 ,'8/7/2001', NULL ,'10/1/2014'),
    ('2014', 1 ,'4/1/2014', 1609965 ,0 ,'8/7/2001', NULL ,'10/1/2014'),
    ('2014', 1 ,'4/1/2014', 1609991 ,0 ,'8/7/2001', NULL ,'10/1/2014'),
    ('2014', 1 ,'4/1/2014', 1610001 ,0 ,'8/7/2001', NULL ,'10/1/2014'),
    ('2014', 1 ,'4/1/2014', 1610054 ,0 ,'8/8/2001', NULL ,'10/1/2014'),
    ('2014', 1 ,'4/1/2014', 1610068 ,0 ,'8/8/2001', NULL ,'10/1/2014'),
    ('2014', 1 ,'4/1/2014', 1610069 ,0 ,'8/8/2001', NULL ,'10/1/2014'),
    ('2014', 1 ,'4/1/2014', 1610158 ,0 ,'8/8/2001', NULL ,'10/1/2014'),
    ('2014', 1 ,'4/1/2014', 1610188 ,0 ,'8/8/2001', NULL ,'10/1/2014')
    ;WITH cte AS
    SELECT
    t1.*
    FROM
    successfullybilled T1
    WHERE
    NOT EXISTS (SELECT 1 FROM successfullybilled t2 WHERE t2.customer_id = t1.customer_id AND t2.year = t1.year AND t2.quarter = t1.quarter+1)
    SELECT
    year
    , quarter
    , incentive_flag
    , gone_from_next_quarter = COUNT(*)
    , gone_but_active_by_next_quarter_end = SUM(CASE WHEN ISNULL(inactive_date, '12/31/9999') >= DATEADD(MONTH, 3, q_end_date) THEN 1 ELSE 0 END)
    , gone_and_inactive_by_next_quarter_end = SUM(CASE WHEN ISNULL(inactive_date, '12/31/9999') < DATEADD(MONTH, 3, q_end_date) THEN 1 ELSE 0 END)
    FROM cte
    GROUP BY
    year,quarter,incentive_flag
    DROP TABLE successfullybilled
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • How to find out Inactive customers

    Hi,
    I have a report which shows the customers detail. But I have to filter out the customers who are inactive that having no orders for the last 2 years.
    How to find those customers and filter out in the report?
    Thanks,
    Ezhil.

    Hi,
    Can you please clarify in more detail. And I think a Functional Consultant in your team will be the best person to tell you what exactly you have to do. Besides, are you talking about sales orders when you are saying orders. If that's true then is it your requirement that filter out those customers who is not sold-to-party for all the sales order created in last 2 years?
    In that case, you can simply implement this by querying on corresponding DB table.
    Thanks,
    Mainak

  • Inactive customers not in pick and pack manager

    Hello,
    In 8.8 the inactive/on hold functionality has changed - according to SAP note 1480670 business partners who are set to 'Inactive' will not show in any 'choose from' lists. It appears that this also applies to the pick and pack manager - is there any way of changing this so that orders due are shown regardless of whether the customer is inactive or not?
    Many thanks,
    Kate

    Hi Kate,
    I have tested this , it is SAP System Behaviour. Inactive BP will not be available to be choosen in the Pick and Pack manager.
    Regards,
    Rakesh N

  • Email notification of inactive customers and mailb...

    I received an email today apparaently from BT Yahoo.
    It looks like a hoax. I didn't click on the link
    Has anyone recieve them?

    borderline wrote:
    I received an email today apparaently from BT Yahoo.
    It looks like a hoax. I didn't click on the link
    Has anyone recieve them?
    Hi.
    If you hover over the link, what is the actual website it wants you to visit (no need to post) ? I expect it's not as shown on screen in the html.
    http://www.andyweb.co.uk/shortcuts
    http://www.andyweb.co.uk/pictures

  • Inactive Customer Report - need help!

    I need to create a report to show inactive customers based on their invoice and order history.
    It needs to show a list of customers that:
    1. havent got an invoice on thier account between a certain set of dates
    2. have no open orderr
    We use queries and XL reporter. Anyone have any ideas?
    Thank
    Lucie

    Hi Lucie,
    how about something like this:
    select distinct t1.Cardcode, t1.cardname from OCRD t1
    inner join OINV t2 on t1.cardcode=t2.cardcode
      inner join ORDR t3 on t1.cardcode=t3.cardcode
    where t2.createdate not between '2011-03-01' and '2011-03-02' and
    (select count(t3.docentry) from ordr t3 where t3.docstatus='O' and t3.cardcode=t1.cardcode)=0
    just add SAP user inputs (sorry, i'm lazy for that right now), and i if i understood correctly what you are looking for, this may just as be it
    Regards,
    D

  • BP Inactive Customer Report discrepancy between users

    The out-of-the-box Inactive Customer report under Business Partners gives different results for two users.  For example, one user (a superuser) gets almost 600 hits on inactive customers while another user (not a superuser) gets less than 200.  No options or filtering is selected by either user.
    I'm thinking it's related to authorizations, but can't figure out which might cause this.
    TIA

    hi john,
    Go to
    Administration>System intializatioin>General Authoirzation-->
    Select user a right side>Drill down BP Master>Drill Down
    Business Partner Reports-->
    Select Inactive customers-->Give Full Authorization
    and Update authorizations.
    Also check properties in selection creteria
    Whether user wrongly checked any properties
    detick it and
    also Tick mark Ignore properites right at the top.
    Hope above answer helps you.
    Jeyakanthan

  • Customer Standard page is behaving differently in two different instances Y

    HI Guru's,
    I am querying the data in one Customer standard page in support6 instance for eg: 27868 is a Acccount Number we are searching for this and we are getting the Data in this instance here the thing is the Account is Inactive and we can view even Inactive customers in this.
    Now we are seraching for the Customer Number(Acct. Number) same : 27868 in Support 3 instance now here the magic thing i found is i am unable to get the Data in this intance here this one also in backend it is Inactive Customer and this is also a Standard page there is no customization for this.
    Why these two instances are behaving like this if i search for a Same Account Number in Customer search page its a oracle standard page there is no customization.
    Support 6 -- Is Multi node having 2 nodes
    Support 3 -- Is Multi node having 3 nodes .
    Previously we have perform one customization we have changed the query in both the instances same query then also it is behaving like previous one, So we plan to remove the complete customization to both of the instances and tried so we are facing this Issue.
    Note : Support 6 having some Oracle Patches is different from Support 3 Patches means some patches is not applied in Support 3 instances.
    So, is there any issue of those patches and these are not OAF Patches its some Apps Patches.
    Please it's a High Priority issue for me so OAF Guru's update me your valuable answers to me so that i can check out why it is behaving like this.

    Hi
    I have removed my personalizations and customizations in all nodes like this,
    begin
    jdr_utils.deletedocument('/oracle/apps/ar/hz/components/search/server/customizations/site/0/HzPuiDQMSrchResultsVO');
    end;
    Commit ;
    begin
    jdr_utils.deletedocument('/oracle/apps/ar/hz/components/search/webui/customizations/site/0/HzPuiDQMSearchResults');
    end;
    Commit ;
    Next i have run jdr_utils.printdocument also in all the instances so i got these output
    Error: Could not find document /oracle/apps/ar/hz/components/search/server/customizations/site/0/HzPuiDQMSrchResultsVO
    Error: Could not find document /oracle/apps/ar/hz/components/search/webui/customizations/site/0/HzPuiDQMSearchResults
    in all the instances same , so now its a standard functionality right because i have reverted back my customizations.
    i have these two scripts because 1. this is for Vo substitution removed and 2. this is for two new attributes that i added before that was removed.
    Even i have checked the "About this page" link and then we tried to see the query and we got the standrad query only.
    Yes DBA bounced all the 3 nodes for Support 3 and in Support 6 also he bounced 2 nodes.
    The Database has only 1 common node and 1 $java_Top which is shared for all the 3 nodes for support 3 instance and for Support 6 instance that is diffrent $Java_Top .
    Edited by: Kiran Paspulate on Nov 16, 2012 1:43 PM

  • Table & fields

    Hi
    Can any one tell about the table & fields for following items,
    Total sales
    Finance FTEs
    Active customer accounts
    Total Collection FTEs
    Total Customer Services FTEs
    Total Orders for the period
    Total Purchase Orders issued
    Total Purchasing & Vendor Management FTEs
    Total Vendor Invoices Processed
    Total Accounts Payble FTEs
    Vendor Claims
    Other Vendor Debit Receivables
    Vendor Claims W/O
    Reserved Vendor/claims processed
    Here FTEs full time employees
    Thanks
    Deepak
    Edited by: SDeepakKr on Apr 23, 2010 5:21 AM

    Total sales : Table  BSEG for all (field SAKNR) sales GL accounts that are counted for sales
    Finance FTEs
    Active customer accounts Table KNA1, filter if any fields maintained for inactive customers
    Total Collection FTEs Table BSID and BSAD totals of payment type DZ + any customized.
    Total Customer Services FTEs
    Total Orders for the period Table AFPO/AFKO
    Total Purchase Orders issued Table EKPO look to amount field
    Total Purchasing & Vendor Management FTEs
    Total Vendor Invoices Processed Table RKBP
    Total Accounts Payble FTEs Tables BSIK and BSAK
    Vendor Claims
    Other Vendor Debit Receivables BSIK and BSAK
    Vendor Claims W/O BSEG table for the GL account that is used for writing off. SAKNR
    Reserved Vendor/claims processed

  • BoLinkedObject not working correctly.

    Hi,
    the golden arrow is not working when the linked object type is sales person 53 and the item group 52 in SAP2007.
    Is there any solution for this problem?
    thanks in advance...

    Hi..
    first see ur linked object type correct or not
    ur using screen painter..
    select linked button and give
    linked object=item master object id 4(example)
    and
    select type link_butten
    Reference
    Objects ID List
    The following table lists the business objects that are exposed through the DI API.
    Object Name     Object ID     Description
    ACT     1     Chart of Accounts
    CRD     2     Business Partner Cards
    ITM     4     Items
    PLN     6     Price list names
    SPP     7     Special prices
    CPR     11     Contact employees
    USR     12     Users
    INV     13     Invoices
    RIN     14     Credit notes
    DLN     15     Delivery notes
    RDN     16     Revert delivery notes
    RDR     17     Orders
    PCH     18     Purchases
    RPC     19     Revert purchases
    PDN     20     Purchase delivery notes
    RPD     21     Revert purchase delivery notes
    POR     22     Purchase orders
    QUT     23     Quotations
    RCT     24     Receipts incoming payments
    DPS     25     Bill of Exchange Deposits
    BTD     28     Journal vouchers
    JDT     30     Journal entries
    ITW     31     Item warehouse
    CLG     33     Contact activities
    CRN     37     Currency codes
    CTG     40     Payment terms types
    BNK     42     Bank pages
    VPM     46     Payments to vendors
    ITB     52     Item groups
    CHO     57     Checks for payment
    IGN     59     Inventory general entry
    IGE     60     Inventory general exit
    WHS     64     Warehouses codes and names
    ITT     66     Product trees
    WTR     67     Stock transfer
    WKO     68     Work orders
    SCN     73     Alternate catalog numbers
    BGT     77     Budget
    BGD     78     Budget Distribution
    ALR     81     Alerts messages
    BGS     91     Budget scenarios
    SRI     94     Items serial numbers
    OPR     97     Sales Opportunities
    CLT     103     Activity types
    CLO     104     Activity locations
    IBT     106     Item batch numbers
    DRF     112     Document draft
    EXD     125     Additional Expenses
    STA     126     Sales tax authorities
    STT     127     Sales tax authorities type
    STC     128     Sales tax code
    DUN     151     Dunning letters
    UFD     152     User fields
    UTB     153     User tables
    PEX     158     Payment run export
    MRV     162     Material revaluation (country-specific for Poland)
         163     Purchase invoice correction document
         164     Reverse purchase invoice correction document.
    CTT     170     Contract templates
    HEM     171     Employees
    INS     176     Customer equipment cards
    WHT     178     Withholding tax data
    BOE     181     Bill of exchange for payment
    BOT     182     Bill of exchange transaction
    CRB     187     Business partner - bank accounts
    SLT     189     Service call solutions
    CTR     190     Service contracts
    SCL     191     Service call
    UKD     193     User keys description
    QUE     194     Queues
    FCT     198     Sales forecast
    TER     200     Territories
    OND     201     Industries
    PKG     205     Packages types
    UDO     206     User-defined objects
    ORL     212     Relationships
    UPT     214     User permission tree
    CLA     217     Activity status
    BPL     247     Business Places (country-specific for Korea)
    JPE     250     Local Era (country-specific for Japan)
    TSI     280     Sales tax invoice (country-specific for Poland)
    TPI     281     Purchase tax invoice (country-specific for Poland)
    Back
    Menu Item     ID
    &File      512
    &Close      514
    &Save as Draft      5907
    &Page Setup...      518
    P&rint Preview...      519
    Pr&int... Ctrl+P      520
    S&end      3336
    &Send Message      3337
    &Email...      6657
    S&MS...      6658
    &Fax...      6659
    E&xport to      7168
    &File      7171
    &Text      7172
    &XML      7174
    &Image      7173
    &Export to MS-EXCEL      7169
    E&xport to MS-WORD      7170
    &Launch Application...      523
    Loc&k Screen      524
    Exi&t Ctrl+Q      526
    &Edit      768
    &Undo Ctrl+Z      769
    &Redo CtrlShiftZ      770
    &Cut Ctrl+X      771
    C&opy Ctrl+C      772
    &Paste Ctrl+V      773
    &Delete Del      774
    &Select All      775
    &View      40960
    &User-Defined Fields CtrlShiftU      6913
    &Search Field CtrlShiftF2      7427
    &Debug Information      15874
    &Restore Column Width      1297
    &Legend Ctrl+L      1298
    &Data      1280
    &Find Ctrl+F      1281
    &Add Ctrl+A      1282
    F&irst Data Record      1290
    &Next Record -> Ctrl      1288
    &Previous Record <- Ctrl      1289
    &Last Data Record      1291
    &Remove      1283
    &Cancel      1284
    R&estore      1285
    Cl&ose      1286
    &Duplicate Ctrl+D      1287
    Add Ro&w Ctrl+I      1292
    Dele&te Row Ctrl+K      1293
    Duplicate Row Ctrl+M      1294
    Cop&y from Cell Above      1295
    Copy fro&m Cell Below      1296
    &Advanced      43572
    &Advanced      43775
    &Sort Table...      4869
    &Goto      5888
    &Goto      6143
    &Modules      43520
    &Administration      3328
    &Choose Company      3329
    &Define Foreign Currency Exchange Rates      3333
    &System Initialization      8192
    &Company Details      8193
    &General Settings      8194
    &Authorizations      43521
    &General Authorization      3332
    &Additional Authorization Creator      3342
    &Data Ownership Authorizations      3340
    Da&ta Ownership Exceptions      3341
    &Document Numbering      8195
    D&ocument Settings      8196
    &Print Preferences      8197
    Op&ening Balances      43522
    &G/L Accounts Opening Balance      8200
    &Business Partners Opening Balance      2564
    D&efinitions      43525
    &General      8448
    &Define Users      8449
    &Change Password      4128
    D&efine Sales Employees      8454
    De&fine Territories      8713
    Def&ine Commission Groups      8453
    Defi&ne Predefined Text      43571
    &Financials      43526
    &Edit Chart of Accounts      4116
    &G/L Account Determination      8199
    &Define Currencies      8450
    De&fine Indexes      8451
    Def&ine Transaction Codes      8455
    Defi&ne Projects     8457
    Define &Period Indicators     8210
    Define D&oubtful Debts     8464
    &Tax     15616
    &Sales Opportunities     17152
    &Define Sales Stages     17153
    D&efine Partners     17154
    De&fine Competitors     17155
    Def&ine Relationships     17156
    &Purchasing     43527
    &Define Landed Costs     8456
    &Business Partners     43528
    &Define Countries     8459
    D&efine Address Formats     8460
    De&fine Customer Groups     10753
    Def&ine Vendor Groups     10754
    Defi&ne Business Partner Properties     10755
    Define &Business Partner Priorities     10765
    Define D&unning Levels     10766
    Define dunnin&g terms     10769
    Define &Payment Terms     8452
    Define P&ayment Blocks     10767
    B&anking     11264
    &Define Banks     11265
    D&efine Credit Cards     11266
    De&fine Credit Card Payment     11267
    Def&ine Credit Card Payment Methods     11268
    Defi&ne Credit Vendors     11269
    Define &Payment Methods     16897
    &Inventory     11520
    &Define Item Groups     11521
    D&efine Item Properties     11522
    De&fine Warehouses     11523
    Def&ine Length and Width UoM     11524
    Defi&ne Weight UoM     11525
    Define &Customs Groups     11526
    Define &Manufacturers     11527
    Define &Shipping Types     11528
    Define &Locations     11529
    Define In&ventory Cycles     11530
    Define &Package Types     11532
    S&ervice     43529
    &Contract Templates     3601
    &Define Queues     8712
    D&ata Import/Export     43530
    &Data Import     8960
    &Import from Excel     8961
    I&mport Transactions from SAP Business One     8962
    &Comprehensive Import     8967
    D&ata Export     9216
    &Export Transactions to SAP Business One     9217
    &Utilities     8704
    &Period-End Closing     8705
    &Year Transfer     8706
    &Update Control Report     8709
    &Check Document Numbering     13062
    &Restore     43574
    &Restore Wizard     8707
    R&estore Chart of Accounts     9473
    Re&store G/L Account and Business Partner Balances     9474
    Res&tore Item Balances     9475
    Rest&ore Numbering File     9476
    Restore O&pen Check Balances     9477
    Restore &Costing     9478
    Restore &Budget Balances     9479
    Restore B&udget Scenarios     9480
    Restore B&atch Accumulators     9481
    Restore S&ystem Reports     9482
    A&pproval Procedures     14848
    &Define Approval Stages     14849
    D&efine Approval Templates     14850
    &Approval Status Report     14851
    A&pproval Decision Report     14852
    &License     43524
    &License Administration     8208
    &Add-on Identifier Generator     8209
    Add&-ons     43523
    &Add-on Manager     8201
    A&dd-on Administration     8202
    Ale&rts Management     3338
    &Financials     1536
    &Chart of Accounts     1537
    &Edit Chart of Accounts     1538
    &Journal Entry     1540
    J&ournal Vouchers     1541
    &Posting Templates     1542
    &Recurring Postings     1543
    Re&verse Transactions     1552
    E&xchange Rate Differences     1545
    Co&nversion Differences     1546
    &Financial Report Templates     1551
    &Budget     10496
    &Budget Scenarios     10497
    &Define Budget Distribution Methods     10498
    D&efine Budget     10499
    Co&st Accounting     1792
    &Define Profit Centers     1793
    D&efine Distribution Rules     1794
    &Table of Profit Centers and Distribution Rules     1795
    &Profit Center - Report     1796
    F&inancial Reports     43531
    &Accounting     13056
    &G/L Accounts and Business Partners     13057
    G&eneral Ledger     13058
    &Aging     4096
    &Transaction Journal Report     1544
    T&ransaction Report by Projects     13064
    &Document Journal     13065
    Ta&x     43532
    &Financial     9728
    &Balance Sheet     9729
    &Trial Balance     9730
    &Profit and Loss Statement     9731
    &Cash Flow     4101
    &Comparison     1648
    &Balance Sheet Comparison     1649
    &Trial Balance Comparison     1650
    &Profit and Loss Statement Comparison     1651
    &Budget     10240
    &Budget Report     4608
    B&alance Sheet Budget Report     10241
    &Trial Balance Budget Report     10242
    &Profit and Loss Statement Budget Report     10243
    &Sales Opportunities     2560
    &Sales Opportunity     2566
    S&ales Opportunities Reports     43533
    &Opportunities Forecast Report     2578
    O&pportunities Forecast Over Time Report     2580
    Oppo&rtunities Statistics Report     2579
    Oppor&tunities Report     2577
    &Stage Analysis     2568
    So&urce Distribution Over Time Report     2574
    &Won Opportunities Report     2569
    &Lost Opportunities Report     2573
    &My Open Opportunities Report     2575
    M&y Closed Opportunities Report     2576
    Opportu&nities Pipeline     2570
    Sa&les - A/R     2048
    &Sales Quotation     2049
    S&ales Order     2050
    &Delivery     2051
    &Returns     2052
    A&/R Down Payment Request     2079
    A/R D&own Payment Invoice     2071
    A/R &Invoice     2053
    A/R I&nvoice + Payment     2054
    A/R &Credit Memo     2055
    A/R R&eserve Invoice     2056
    A&utomatic Summary Wizard     2059
    Docu&ment Drafts     2061
    Documen&t Printing     2058
    Dunnin&g Wizard     2063
    Sa&les Reports     12800
    &Sales Analysis     12801
    &Open Items List     4097
    &Purchasing - A/P     2304
    &Purchase Order     2305
    &Goods Receipt PO     2306
    G&oods Returns     2307
    &A/P Down Payment Request     2330
    A&/P Down Payment Invoice     2317
    A/P &Invoice     2308
    A/P &Credit Memo     2309
    A/P &Reserve Invoice     2314
    &Landed Costs     2310
    &Document Drafts     2313
    Doc&ument Printing     2312
    Purc&hasing Reports     43534
    &Purchase Analysis     12802
    &Open Items List     1547
    &Business Partners     43535
    &Business Partner Master Data     2561
    &Activity     2563
    B&usiness Partner Reports     43536
    &My Activities     10771
    &Activities Overview     2565
    &Inactive Customers     14338
    &Dunning History Report     2068
    Ba&nking     43537
    &Incoming Payments     2816
    &Incoming Payments     2817
    &Check Fund     2823
    C&redit Card Management     2824
    Cr&edit Card Summary     2828
    &Payment Drafts Report     2832
    &Deposits     14592
    &Deposit     14593
    &Postdated Check Deposit     14594
    P&ostdated Credit Voucher Deposit     14595
    &Outgoing Payments     43538
    &Outgoing Payments     2818
    &Checks for Payment     2820
    &Voiding Checks for Payment     2822
    &Payment Drafts Report     2831
    C&hecks for Payment Drafts     2821
    &Bill of Exchange     43539
    &Payment System     16896
    &Payment Wizard     16899
    &Define Payment Run Defaults     16898
    B&ank Statements and Reconciliations     11008
    &Process External Bank Statement     11009
    &Reconciliation     11010
    &Link Invoices to Payments     2833
    &Manage Previous Reconciliations     11011
    &Check and Restore Former Reconciliations     11012
    Do&cument Printing     2829
    &Inventory     3072
    &Item Master Data     3073
    I&tem Management     15872
    &Serial Numbers     12032
    &Serial Numbers Management     12033
    S&erial Number Details     12034
    &Batches     12288
    &Batch Management     12289
    B&atch Details     12290
    &Define Alternative Items     11531
    D&efine Business Partner Catalog Numbers     12545
    &Global Update to Business Partner Catalog Numbers     12546
    &Update Stock Method     12547
    I&nventory Transactions     43540
    &Goods Receipt     3078
    G&oods Issue     3079
    &Stock Transfer     3080
    &Initial Quantities, Inventory Tracking, and Stock Posting     3081
    &Cycle Count Recommendations     3085
    &Material Revaluation     3086
    &Price Lists     43541
    &Price Lists     3076
    &Define Hierarchies and Expansions     11781
    &Special Prices     11776
    &Special Prices for Business Partners     11777
    &Copy Special Prices to Selection Criteria     11778
    &Update Special Prices Globally     11779
    &Define Discount Groups     11780
    U&pdate Parent Item Prices Globally     11782
    Pi&ck and Pack     16640
    &Pick and Pack Manager     16641
    P&ick List     16642
    In&ventory Reports     1760
    &Items List     1761
    &Last Prices Report     1713
    I&nactive Items     1715
    I&tem Query     3075
    In&ventory Posting List by Item     1762
    Inv&entory Status     1763
    Invent&ory in Warehouse Report     1764
    Invento&ry Valuation Report     1765
    &Serial Numbers Transactions Report     1779
    &Batch Number Transactions Report     1747
    P&roduction     4352
    &Define Bill of Materials     4353
    &Production Order     4369
    &Receipt from Production     4370
    &Issue for Production     4371
    &Update Parent Item Prices Globally     4358
    Pr&oduction Reports     43542
    &Bill of Materials Report     4357
    &MRP     43543
    &Define Forecasts     4360
    &MRP Wizard     4361
    &Order Recommendation Report     4368
    S&ervice     3584
    &Service Call     3587
    &Customer Equipment Card     3591
    S&ervice Contract     3585
    S&olutions Knowledge Base     3589
    Se&rvice Reports     7680
    &Service Calls     7684
    S&ervice Calls by Queue     7698
    &Response by Assignee Report     7699
    &Average Closure Time     7693
    Ser&vice Contracts     7682
    &Customer Equipment Report     3596
    Serv&ice Monitor     7691
    &My Service Calls     7689
    M&y Open Service Calls     7688
    My &Overdue Service Calls     7690
    &Human Resources     43544
    &Employee Master Data     3590
    &Human Resources Reports     16128
    &Employee List     7694
    &Absence Report     7696
    &Phone Book     7695
    Rep&orts     43545
    &Financials     43546
    &Accounting     43547
    &G/L Accounts and Business Partners     1617
    G&eneral Ledger     1618
    &Aging     43548
    &Transaction Journal Report     4114
    T&ransaction Report by Projects     1624
    &Document Journal     1625
    Ta&x     43549
    &Company Reports     43550
    &Balance Sheet     13313
    &Trial Balance     13314
    &Profit and Loss Statement     13315
    &Cash Flow     4115
    C&omparison     43551
    &Balance Sheet Comparison     9985
    &Trial Balance Comparison     9986
    &Profit and Loss Statement Comparison     9987
    &Budget     43552
    &Budget Report     4624
    B&alance Sheet Budget Report     1681
    &Trial Balance Budget Report     1682
    &Profit and Loss Statement Budget Report     1683
    &Sales Opportunities     43553
    &Opportunities Forecast Report     2684
    O&pportunities Forecast Over Time Report     2692
    Oppo&rtunities Statistics Report     2689
    Oppor&tunities Report     2683
    &Stage Analysis     2680
    So&urce Distribution Over Time Report     2686
    &Won Opportunities Report     2681
    &Lost Opportunities Report     2685
    &My Open Opportunities Report     2690
    M&y Closed Opportunities Report     2691
    Opportu&nities Pipeline     2682
    S&ales and Purchasing     43554
    &Open Items List     1548
    &Sales Analysis     1697
    &Purchase Analysis     1698
    &Business Partners     43555
    &My Activities     10772
    &Activities Overview     4118
    &Inactive Customers     1714
    &Dunning History Report     2069
    S&ervice     43556
    &Service Calls     3588
    S&ervice Calls by Queue     3602
    &Response by Assignee Report     3603
    &Average Closure Time     3597
    Ser&vice Contracts     3586
    &Customer Equipment Report     7692
    Serv&ice Monitor     3595
    &My Service Calls     3593
    M&y Open Service Calls     3592
    My &Overdue Service Calls     3594
    &Inventory     14080
    &Items List     14081
    &Last Prices Report     14337
    I&nactive Items     14339
    I&tem Query     4119
    In&ventory Posting List by Item     14082
    Inv&entory Status     14083
    Invent&ory in Warehouse Report     14084
    Invento&ry Valuation Report     14085
    &Serial Numbers Transactions Report     12035
    &Batch Number Transactions Report     12291
    &Production     43557
    &Bill of Materials Report     4121
    &Human Resources     43558
    &Employee List     3598
    &Absence Report     3600
    &Phone Book     3599
    &Query Generator     4102
    Q&uery Wizard     4103
    &Tools     4864
    &Print Layout Designer...     5895
    &Form Settings... CtrlShiftS     5890
    &Change Log...     4876
    &Queries     43573
    &Queries Manager...     4865
    Q&uery Print Layout...     4868
    &System Queries     5120
    Checks for Payment in Date Cross Section Report     5121
    Customer Receivables by Customer Cross-Section     5122
    Customers Credit Limit Deviation     5123
    Locate Exceptional Discount in Invoice     5124
    Locate External/Internal Recon. by Exact Amount     5125
    Locate External/Internal Recon. by Exact Sum     5126
    Locate External/Internal Recon. by Value Date     5127
    Locate External/Internat Recon. by Trans. No.     5128
    Locate Journal Transaction by Amount Range     5129
    Locate Journal Transaction by FC Amount Range     5130
    Locate Recon. in Bank Statement by Row No.     5131
    Locate Recon./Row in Bank Statements by Exact Amount     5132
    MRP Pegging Report     5133
    Production Order Report     5134
    SP Commission by Invoices in Posting Date Cross-Section     5135
    Transactions Received from Voucher Report     5136
    User Queries     53248
    General     261424295
    Empty     53249
    U&ser Menu     43567
    &Add to User Menu     4877
    &Organize...     4878
    Us&er Shortcuts     43568
    &Shortcuts     6400
    &Customize     4871
    Use&r Tools     43561
    &Disable Customization     15873
    Se&arch Function     7424
    &Search Shift+F2     7425
    &Define... ShiftAltF2     7426
    User&-Defined Fields     43569
    &Manage User Fields...     4875
    &First Field CtrlShiftL     6914
    &Settings... CtrlShiftB     6915
    User Ta&bles     51200
    &User Tables     51201
    User-&defined Objects     43570
    &Registration Wizard...     4879
    &Default Forms     47616
    &User Tables     47617
    &Window     1024
    &Cascade     1025
    C&lose All     1026
    C&olor     5632
    &Classic     5633
    &Gray     5634
    &Violet     5635
    &Blue     5636
    G&reen     5637
    &Yellow     5638
    &Orange     5639
    R&ed     5640
    Bro&wn     5641
    &Main Menu Ctrl+0     1030
    M&essages/Alert Overview     1029
    C&alendar     10770
    &Help     43564
    &Help...     272
    &Context Help... F1     275
    H&elp Settings...     276
    &About SAP Business One...      257
    See Also
    Enumerations Object
    UI API Objects Reference 2005 SP1 (Build 680.315.00)      
    BoLinkedObject Enumeration
    Description
    Determines the target object of the LinkedButton object.
    Members
    Member     Description     Value
    lf_None      No target object.      -1
    lf_UserDefinedObject      User-defined object.      0
    lf_GLAccounts      G/L account object.      1
    lf_BusinessPartner      Business Partner object.      2
    lf_Items      Item object.      4
    lf_SalesEmployee      Sales employee object.      53
    lf_TransactionTemplates      Transaction template.      55
    lf_JournalPosting      Journal Posting object.      30
    lf_LoadingFactors      Loading Factor object.      62
    lf_RecurringTransactions      Recurring Transaction object.      34
    lf_ProductTree      Product Tree object.      66
    lf_CheckForPayment      Check for Payment object.      57
    lf_PaymentTermsTypes      Payment Terms object.      40
    lf_Deposit      Deposit object.      25
    lf_PredatedDeposit      Predated Deposit object.      76
    lf_Warehouses      Warehouse object.      64
    lf_ImportFile      Import File object.      69
    lf_BudgetSystem      Budget System object.      78
    lf_SalesTaxAuthorities      Sales Tax Authorities object.      126
    lf_SalesTaxCodes      Sales Tax Codes object.      128
    lf_RunExternalsApplications      Run External Application object.      86
    lf_DueDates      Due Date objects.      71
    lf_UserDefaults      User Defaults object.      93
    lf_FinancePeriod      Financial Period object.      111
    lf_SalesOpportunity      Sales Opportunity object.      97
    lf_ConfirmationLevel      Confirmation Level object.      120
    lf_ConfirmationTemplates      Confirmation Template object.      121
    lf_ConfirmationDocumnets      Confirmation Document object.      122
    lf_Drafts      Draft object.      112
    lf_GoodsIssue      Goods Issue object.      60
    lf_GoodsReceipt      Goods Receipt object.      59
    lf_ProjectCodes      Project Code object.      63
    lf_ContactWithCustAndVend      Contact object.      33
    lf_JournalVoucher      Journal Voucher object.      28
    lf_ProfitCenter      Profit Center object.      61
    lf_VendorPayment      Vendor Payment object.      46
    lf_Receipt      Receipt object.      24
    lf_Quotation      Quotation object.      23
    lf_Order      Order object.      17
    lf_DeliveryNotes      Delivery Note object.      15
    lf_DeliveryNotesReturns      Delivery Note Return object.      16
    lf_Invoice      Invoice object.      13
    lf_InvoiceCreditMemo      Invoice Credit Memo object.      14
    lf_PurchaseOrder      Purchase Order object.      22
    lf_GoodsReceiptPO      Goods Receipt PO object.      20
    lf_GoodsReturns      Goods Return object.      21
    lf_PurchaseInvoice      Purchase Invoice object.      18
    lf_PurchaseInvoiceCreditMemo      Purchase Invoice Credit Memo object.      19
    lf_CorrectionInvoice      Correction Invoice object.      132
    lf_StockTransfers      Stock Transfer object.      67
    lf_WorkInstructions      Work Instructions object.      68
    lf_AlertsTemplate      Alerts Template object.      80
    lf_SpecialPricesForGroups      Special Prices object.      85
    lf_CustomerVendorCatalogNumber      Customer/Vendor Catalog Number      73
    lf_SpecialPrices      Special Prices object.      7
    lf_SerialNumbersForItems      Serial Numbers for Items object.      94
    lf_ItemBatchNumbers      Item Batch Numbers object.      106
    lf_UserValidValues      User Valid Values object.      110
    lf_UserDisplayCategories      User Display Categories object.      114
    lf_AddressFormats      Address Format object.      113
    lf_Indicator      Indicator object.      138
    lf_CashDiscount      Cash Discount object.      133
    lf_DeliveryTypes      Delivery Type object.      49
    lf_VatGroup      VAT Group object.      5
    lf_VatIndicator      VAT Indicator object.      135
    lf_GoodsShipment      Goods Shipment object.      139
    lf_ExpensesDefinition      Expense Definition object.      125
    lf_CreditCards      Credit Card object.      36
    lf_CentralBankIndicator      Business Partner Central Bank Indicator object.      161
    lf_BPBankAccount      Business Partner Bank Account object.      187
    lf_DiscountCodes      Discount Code object.      3
    lf_PaymentBlock      Block Payment object for vendors and customers.      159
    lf_AgentPerson      Agent Person object.      177
    lf_PeriodIndicator      Period Indicator object for document numbering.      184
    lf_HolidaysTable      Holidays Table object.      186
    lf_Employee      Employee object.      171
    lf_PredefinedText      Pre-defined Text object for sales and marketing documents.      215
    lf_Territory      Territory (geographic location, brand, or item) object.      200
    lf_User      SAP Business One User object.      12
    lf_ProductionOrder      Production Order object.      202
    lf_BillOfExchange      Bill of Exchange object.      181
    lf_BillOfExchangeTransaction      Bill of Exchange Transaction object.      182
    lf_AddressFormat      Address Pattern object.      131
    lf_AccountSegmentationCode      Account Segmentation Code object.      143
    lf_FileFormat      File Format object.      183
    lf_StockRevaluation      Stock Revaluation object.      162
    lf_PickList      Inventory Pick List object.      156
    lf_DunningTerms      Dunning Term object.      196
    lf_ServiceContract      Service Contract object.      190
    lf_ContractTemplete      Contract Template object.      170
    lf_InstallBase      Install Base object.      176
    lf_ServiceCall      Service Call object.      191
    lf_ServiceCallSolution      Service Call Solution object.      189
    lf_ItemGroups      Item Groups object.      52
    lf_PackageType      Package Type object.      206
    lf_SalesForecast      Sales Forecast object.      198
    lf_PaymentMethod      Payment Method object.      147
    lf_WithHoldingTax      Withholding Tax object.      178
    Regards..
    Billa 2007

  • Modifying SBO reports

    Hi!
    What would be the simplest way to modify an SBO reprt?
    I have added a user field to OITM (item master data) and I want to modify the Sales Analysis report so that I have the field as one of the selections criteria for items.
    My idea is to put in some new items on the form for the user to enter their selection criteria for this field (which is pretty straight foreward)...
    ... but then how do i get the report generated to include the selection criteria for my user field?
    Can i somehow trap the query before it is executed and modify it using SQL?
    This is pretty urgent, any help is much appreciated.

    In the ItemEvent handler just capture the "OK":
        ' In the "Inactive Customers" report capture pressing the "OK" button:
    If pVal.FormTypeEx = "92" And _
      pVal.ItemUID = "1" And _
      pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And _
      pVal.BeforeAction Then
          ' Action!
          ' run your report here...
      ' suppress further handling through B1 application
      BubbleEvent = False
    End If
    If you would need further initial guidance, I recommend looking at the SDK E-learning:
    https://www.sdn.sap.com/irj/sdn/developerareas/businessone?rid=/webcontent/uuid/6207e283-0a01-0010-6c84-bacd2745c33f [original link is broken])
    + then (if necessary at all) ask more questions on SDN.
    For further documentation on SDK please consult the SDK Helpcenter package.
    You can download it through a link on the SAP Business One Developer Area on SDN as well.
    However, exporting the data to Excel - or running the reports from there (reading B1 data) may of course be another option - but I guess you were already aware of that and wanted to have a seamless integration?
    HTH though!
    Message was edited by: Frank Moebius

  • Performance issue in table S975

    hi experts,
    i have to block the inactive customers (customers for whom the transaction has not happened) for a specified number of month depending on the selection screen value..
    now for that i have used the following query
        SELECT SPMON VKORG VTWEG VKBUR PKUNAG SPART  FROM S975
                INTO TABLE IS975 FOR ALL ENTRIES IN IKN
                WHERE  SSOUR = '' AND VRSIO = '000'
               AND SPMON IN MON AND SPTAG = '00000000'
               AND SPWOC = '000000' AND SPBUP = '000000' AND VKORG IN VKORG
              AND VTWEG IN VTWEG AND VKBUR IN VKBUR and PKUNAG = IKN-KUNNR .
    now it is taking a lot of time to execute this query considering that IKN has some 30 or 40 records.. may be it is having too many primary keys but i have passed most of the primary keys in the query...
    it would be apperciated if  someone can help..
    thanks in advance
    syed
    Edited by: Rob Burbank on Sep 16, 2010 11:57 AM

    Hi Syed,
    BP is right.
    Just note: The phrase "i have passed most of the primary keys in the query..." does not mean the key is used for database access: Only key field in sequence starting with the first one will result in the use of an index, I.e. if the tables index fields are A B C D E F G, use of A, AB, ABC, ... will get the index used, CDE, BCD or EFG will not use the index at all.
    Regards,
    Clemens

  • Guys! help me iin finding the logic

    can any one help me in finding
    1. inactive  customer
      1.1  - who did not have transaction for past 15day fianancial dept
      1.2 - who did not have transaction for past 15 days with sales dept
    2. inactive vendors
    2.1 - who did not have any transaction for past 15 days with finance dept
    2.2 - who did not have transactions for past 15 days with material dept.
    help me please asap.

    Hi,
    Inactive customers:
    Use tables kna1, knb1, knkk, vbrk(past activity).
    next activity - fplt, fpla, vbpa.
    1. 1st get the payers from KNB1 based on selection screen on payer and company code.
    2. KNKK logic
      select single kkber from t001 into v_kkber
                                   where bukrs eq p_bukrs.
        select kunnr kkber knkli nxtrv from knkk into table knkk_it
               for all entries in knb1_it where kunnr = knb1_it-kunnr and
                                                kkber = v_kkber and
                                                sbgrp in s_sbgrp.
    3.Last activity
        select vkorg erdat kunrg from vbrk into table vbrk_it
                           where vkorg = v_vkorg and
                                 erdat in before_dt.
        sort vbrk_it by kunrg.
    4. Next activity
    select single vkorg from tvko into v_vkorg where bukrs = p_bukrs.
      if not v_vkorg is initial.
        select fplnr fpltr fkdat from fplt into table fplt_it
                                                where fksaf = space and
                                                      fkdat in after_dt.
        sort fplt_it by fplnr fpltr.
        if not fplt_it[] is initial.
          select fplnr vbeln from fpla into table fpla_it
                 for all entries in fplt_it where fplnr = fplt_it-fplnr.
        endif.
        sort fpla_it by fplnr vbeln.
        if not fpla_it[] is initial.
          select vbeln kunnr from vbpa into table vbpa_it for all entries in
                                  fpla_it where vbeln = fpla_it-vbeln and
                                                posnr = '000000' and
                                                parvw = 'RG'.
        endif.
        sort vbpa_it by kunnr.
      endif.
    Later process all into final internal table.
    If this helps you award points.
    Thanks,
    Deepak.
    Message was edited by:
            KDeepak

Maybe you are looking for