Need FM/BAPI to get how many line items per given FI document...

Hello Experts,
IS there an available FM or BAPI to get how many line items there is for a given
FI document? We are avoinding BSEG because of the performance.
Hope you can help me guys. Thank you and take care!

Hi,
Not sure if there is a specific FMs or BAPIs whose specific purpose is to just count FI document lines. But you can use a number of FMs to read an FI document.
i.e. FI_DOCUMENT_READ - pass the document keys (BUKRS, BELNR, GJAHR) and retrieve the T_BSEG table to get the document lines. Then you can just use DESCRIBE statement to get the number of lines in T_BSEG.
Also, based on experience, I never had any problems with BSEG as long as I am providing the complete keys for an FI document (BUKRS, BELNR, GJAHR). But if you are trying to avoid BSEG, you can use the secondary index tables like BSIS , BSAS, BSAD, BSID, BSIK, BSAK to improve performance.
Regards,
Oscean Tortona

Similar Messages

  • MM: Purchase requisition line Items - How many line items can we use

    Hi all,
    1. Purchase requisition Line items  (How many line items can we use?), is there any restrictions.
    2. While creating PO with only one tax code for the related PR to input Tax code (without selecting  line Items).
    Regards,
    Sudheer

    Hi
    There is no limitation for number of items in PR.
    Tax code is always applicable for individual item only.It cannot be selected form the whole PO.
    Regards
    Dev

  • How many line item dimensions can a fact table have?

    Hi,
    How many line item dimensions can a fact table have? Is it tht Max of 16 dimensions(13+3) .Does the 16 dimensions include line items dimensions as well .
    Pls reply.
    Thanks
    Praveen

    It includes all dimensios, including line item dimensions.
    If you have line item dimension, pl note you cant assign any other characteristic to that dimension.
    Ravi Thothadri

  • How many line items can be entered in sales order(maximum)

    hi,
    how many line items can be entered in sales order(maximum)
    SRK

    Hi SRK,
    The maximum number of line items in a SO or Invoice is 9999.
    Please close the thread if answered.
    regards
    Param

  • Create a counter(in a query) by how many unique items are in a document num

    Hi,
    Is there a way for me to create a counter(in a query) by how many unique items are in a document number?
    If you look at the bold amounts below they have two unique item numbers 3 & 11. Because of that data is being duplicated in the InfoSet. The Subtotal needs to be 13500 instead of 27000. The two subtotals above are correct. I was thinking if I can create a create a counter(in a query) by how many unique items are in a document number (in this case it would be 2). And then if i divide Quantity by that counter, i shall get the correct value of 13500.
    How can i do this?
    Thanks
    Doc Num                  Item #       Quantity
    5900001759     11     2,700
    5900001759     11     5,400
    5900001759     11     2,700
    5900001759     11     2,700
    5900001759          13,500
    5900001890     7     2,700
    5900001890     7     5,400
    5900001890     7     2,700
    5900001890     7     2,700
    5900001890          13,500
    5900002176     3     2,700
    5900002176     11     2,700
    5900002176     3     5,400
    5900002176     11     5,400
    5900002176     3     2,700
    5900002176     11     2,700
    5900002176     3     2,700
    5900002176     11     2,700
    5900002176          27,000          
                             54,000

    Create a New Calculated Key Figure
    From the context menu for the Formula Variable, choose New Variable
    Choose the Processing type as Replacement Path
    In the next screen, select the Characteristic Info Object based on which the number of documents is to be displayed in the report (For example: Document Number / Order Number).
    Choose Next.
    In the Replace Variable with drop down box, choose Attribute Value.
    In the Attribute drop down, select Characteristic Reference (Constant 1).
    Choose Next.
    On the Save Variable page, an overview of the settings made for the variable will be displayed.
    Confirm the entries and Choose Finish.
    Open the formula variables directory and use Drag & Drop to transfer the formula variable
    To avoid the warning message, the formula variable is multiplied by 1
    The most important step here is to set the Time of Calculation to After Aggregation in the KF properties.
    (by Default the Time of Calculation is set to After Aggregation)
    The new calculated key figure is available under Calculated Key Figure in the Key Figure directory, and can be included in the query definition using Drag & Drop.
    Hope this help
    Rgds

  • How to get all the line items for each Purchasing Document ?

    Hi,
    There are multiple purchase orders (EBELN) in PSA with different line items (EBELP). But, when loaded into ODS from PSA, I am getting purcahse orders with only one Line item.
    Eg.,If the EBELN has a Record# 4000005 and has 3 line items in it (10,20, 30), I am receiving 10 or 20 or 30 Line item.
    As there are more than one line item per PO, how can I retreive all of them?
    Also, there are no conditions / routines in transfer structure and update rules.
    Please let me know

    problem solved.
    I moved the EBELP field from Data fields to Key Fields in ODS.

  • How to get how many lines a formatted string has

    ih, is there a way to get by formula code the object's number of lines once it has been formatted by the format editor checking the the Can Grow check with 0 as maximum number of lines?
    The Can Grow check can offer you to enter the Maximum number of lines the object can grow...so...the object's number of lines somewhere is stored in order to confront it with the number one has entered in Maximum number of lines' input box.
    thank you in advance

    Hello,
    No or maybe, the problem is is when you select 0 it's unlimited, CR simply fills the first line and continues on until no more test to display. Then it determines how much space is left over for the rest of the report sections and so on...
    Possibly you could use the String Length function and divide by the page width:
    numbervar mynumbervar;
    mynumbervar :=  2 / tonumber(Length ({Command2.ROW_UNIT_NAME}));
    2 is the width of the field object in inches and then you also have to determine how many characters per inch the font is going to use.
    There are 1440 twips per inch and if your font is set to 10 then it's something like 1440/10 ( although you need to determine how many characters per inch the font really uses. This can vary depending on the font, most are not fixed width so it's only an estimate..
    Anyways, why do you need to know? CR will simply set the space required?
    Or are you wanting to have the same space all the time and try to determine what that is? If so then you'll also have to set it globally because the format will be evaluated for each time it prints.
    Don

  • Line item posted?? document type wise

    Hi all sap guru's
    hwo to findout how many lines item posted for each doucment type???
    regards
    ss

    Hi,
    Goto T.Code:FB03
    Then click on Documents list
    Then you can give the inputs like company code,Fiscal year,Document type, posting date.
    Then you can get the list of documents posted based on document type.
    all the best
    Prasad

  • Line Items per Document

    Dear All,
    How many line items can we post per a Document in FI.
    Regards,
    Shekar.

    Hi,
    999 line items.
    Regards,
    Eli

  • SD document line items Vs FICA accounting document line items

    Hello All,
    What is the interface we use in SAP,  between the SD and FICA which will determine line items in FICA document with regard to SD line items.
    SD : How we do configuration or mapping between sd sales order and billing document to determine billing document line items  based on sales order line items ( for example : material group, profit center, cost center ?)
    FICA: what interface / Configuration we use to determine how many line items should appear in the FICA document based on billing document line items.
    Regards,
    John.

    Integeration of SD to FICA is based on the img settings done under the node - SPRO - Financial accounting ( new ) - Contract accounts receivable and payable - integration - Sales and distribution .
    Creation of FICA document based on SD is routed through the event 4000 and the details are detrived through event 4030 .
    Would suggest you to go through events 4000 and 4030 .
    Regards ,
    Dewang

  • I need to know how many  lines a cursor returns

    Hi,
    I need to know how many lines a cursor will return without counting it within a loop or putting a count clause within the cursor . Is there a way to do ?

    Please post this question in the database forum for an appropriate response: General Database Discussions
    Regards,
    OTN

  • Until how many lines can we  write java file

    in java file, how many lines can I write?
    Manybe It will depend on file system such as window, unix file system.
    but, I don't know the exact size.
    please let me know how many lines I can wirte in java file of window and unix file system.
    thank you in advance.

    A class and method implementation in source lines of code (sans comments and white space) should be as large as necessary, but no larger. Good design principals tend to drive towards smaller peices, but there is no one right size size limit.
    Personally, I suspect any method that has over 50 lines of code as being too large and probably refactorable. I also suspect any single class (or for that matter .java file) with more than 50 methods or more than 2000 lines of code as being too large and probably refactorable. But sometimes we might really need a 500 line method or an 8000 line, 200 method class. Maybe its a performance thing. Maybe it is just that complicated and too hard to break up. I doubt it occurs frequently, but I won't be shocked when I see it.
    Sometimes GUI classes (Swing and AWT) get really huge. Sometimes this is due to code generation, sometimes its just being sloppy. It pays to know the difference.
    But the Java langauge sets reasonable (if not overly generous) limits on bytecode and constant pool sizes If the Java compiler begins to complain that something you have built is is too large, face it, it probably is. It's like running into scope nesting or nested name (class in a class in a class...) size limits - usually not a good sign for the structure of your code.
    Chuck

  • How do I tell how many lines of code my flex project has?

    Hi, I recently had two programmers build me a 20k plus application and would like to figure out how many lines of code are in the project and if there is a way I can get a print out of all the code.  If it helps the project was architected with the caringorm framework.
    thanks.

    Thanks for the response, do you mean there is no feature for telling you how many lines of codes or no feature for a complete print out or both?
    I'm a little in the dark about exactly how big and complex my project is and would like to have a better understanding of the project before I have programmers bid on phase II of development so I can get a fair quote.

  • Is it posible to get how many day's has one specific month with Calendar

    Can any help me how to get how many days one month has. Like february 28, and sometimes 29.

    There is no way to do this within Calendar directly, the Gregorian calendar has a private method that does this, shame its not public.
    You would need to do something like,
    import java.util.*;
    public class MyCalendar extends GregorianCalendar {
        private static final int MONTH_LENGTH[]
            = {31,28,31,30,31,30,31,31,30,31,30,31}; // 0-based
        private static final int LEAP_MONTH_LENGTH[]
            = {31,29,31,30,31,30,31,31,30,31,30,31}; // 0-based
        /** Creates a new instance of MyCalendar */
        public MyCalendar() {
        public final int monthLength(int month, int year) {
            return isLeapYear(year) ? LEAP_MONTH_LENGTH[month] : MONTH_LENGTH[month];
        public static void main(String argv[]){
            MyCalendar cal = new MyCalendar();
            System.out.println( "There are " + cal.monthLength(cal.get(Calendar.MONTH),cal.get(Calendar.YEAR)) + " days this month.");
    }

  • How many lines we can print using Non-alv report list ?

    Hi Experts,
    How many lines we can print using Non-alv report list ?
    regards
    vishnu

    Hi,
    It depends on the page size according to the page size we can set the no. of lines as follows,
    REPORT  program_name   NO STANDARD PAGE HEADING
    LINE-SIZE 290
    LINE-COUNT 65.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

Maybe you are looking for

  • How to list files that are NOT in a .jar file?

    Is it possible to list files (resources, .gif/.jpg files, etc.) that are NOT included in the jar but are still to be considered part of the application somewhere in the jnlp-file? My applications requires lots of icons which I have put into .gif file

  • Keyboard on screen

    Hello  everybody, I’m trying to create a monitor keyboard (for touchscreen  devices) but currently I have inserted just 4 keys in order to find the  right method. I thought I could use dispatchEvent to simulate the  pressure exerted on a key of the k

  • Any prerequisites for using javascripts (JS) in SAP BPC 7.5NW (SP5)

    Hi, I keep getting evalution and parsing errors, every time I use a JS in my conversion files. It simple standard JS, like: js:parseInt(%external%) js:%external%.substring(2,5) etc Are there any prerequisites for using javascripts ?? Is there anywher

  • How to include AME Approvals on HRMS Enter and Maintain

    Hi, We're on 12.1.3 and have received a request to include approvals in the "Enter and Maintain" form of HRMS Manager responsibility. I've checked on the User Function "Combined Person & Assignment Form WF="GLB HRMS TSKFLW" and I can see the workflow

  • Monitor settings - RGB or sRGB or ?

    Hi, with two new Dell UltraSharp U2415 monitors what kind of settings should I use on Windows 8.1 Pro OS and do not know if on both the physical monitor and the GPU? Currently, on Windows 8.1 OS for the monitor I have set RGB and on the PC I have set