At  first record of innerloop , want to know how many records exists

How can I know the number of records in INTBSEG for each record of int_maintable before running the loop for that where condition of INTBSEG.
Please see below:
LOOP AT int_maintable.
  Loop at INTBSEG where bukrs = int_maintable-bukrs
                                 AND  belnr = int_maintable-belnr
                                 AND  gjahr = int_maintable-gjahr.
( I want to know at the point of sy-tabix of  INTBSEG = 1
how many records exits in INTBSEG ...
      for this   where bukrs = int_maintable-bukrs
                                 AND  belnr = int_maintable-belnr
                                 AND  gjahr = int_maintable-gjahr.)
I want to know how many records exits in INTBSEG , for the first record itself of INTBSEG)
  Endloop.
ENDLOOP.

Hi,
Try this..
DATA: INTBSEG_TMP LIKE INTBSEG OCCURS 0 WITH HEADER LINE.
DATA: V_LINES TYPE SYTFILL.
LOOP AT int_maintable.
CLEAR: V_LINES.
INTBSEG_TMP[] = INTBSEG[].
DELETE INTBSEG_TMP WHERE where bukrs <> int_maintable-bukrs
AND belnr <> int_maintable-belnr
AND gjahr <> int_maintable-gjahr.
DESCRIBE TABLE INTBSEG_TMP.
V_LINES = SY-TFILL.
Loop at INTBSEG where bukrs = int_maintable-bukrs
AND belnr = int_maintable-belnr
AND gjahr = int_maintable-gjahr.
<b>* Use the field V_LINES to get the number of rows for that combination..</b>
Endloop.
Endloop.
Thanks,
Naren

Similar Messages

  • TS2755 how do i track the number of messages sent? i am on a limited sms plan so i want to know how many messages was i able to send in a month. is there an (free) app for it??

    how do i track the number of messages sent? i am on a limited sms plan so i want to know how many messages was i able to send in a month. is there an (free) app for it??

    Doubtful unless your carrier has an app that includes the option.
    My carrier has an app that I can check current usage and past usage with a previous bill and pay the bill.

  • I dont know why the battery life of my iphone 4 is so low ! i really want to know how many hours i'll have if it's on standby. And how many hours if i use it normally for music and facebook (sometimes a little bit games)

    i dont know why the battery life of my iphone 4 is so low ! i really want to know how many hours i'll have if it's on standby. And how many hours if i use it normally for music and facebook (sometimes a little bit games) !!!

    to enhance your battery life, keep screen display to minimum, set screen lock automatically after 1 min, select internet notifications to off.

  • I want to know how many book I have sell on iTunes. Where can I find that information?

    I want to know how many book I have sell on iTunes. Where can I find that information?

    Ask your friend? What difference does it make if it does not work?

  • I have an Iphone 5 that my friend gave me that does not work and i want to know how many gb it is. How can I tell?

    I have an Iphone 5 that my friend gave me that does not work and i want to know how many gb it is. How can I tell?

    Ask your friend? What difference does it make if it does not work?

  • How can I contact with Adobe Systems because I want to know how many licenses are there and if its includes Bridge?

    I want to buy Creative Cloud, but I don't know how many licenses are included
    and I don't know if Bridge program is include too
    I hope you can help me
    I rang to 900810339 but nobody respond to phone
    thak U

    I want ask too about that

  • I want to know how many minutes were used last billing cycle for calling

    my daughter has been calling out of state a lot recently.  i want to know previous statement minutes and it also mentioned that out of area calls may not show up on bill right away. so how many minutes has she actually used this billing cycle?

    If you are the account owner, you can go online and view the usage for each line on your account.  For calls, you can go back 12 months and see the history.
    If she made the calls from your home area, then there should be no delay in them showing up on the bill. The delay comes if the phone is out of the home area and roaming; sometimes the information from the roaming towers takes more time to reach Verizon  computers.  Your question wasn't clear if she was simply calling an out of state number, or if she was out of state and making calls.

  • Hi, I want to know how many can you hace with the dame id?

    Hi I have a friend, who I would like to share my ID with, but I don't know if there is a limited amount of devices you can use with the same account.
    Could you please tell me.

    Home sharing works on a maximum of 5 Apple products. It gets the sharing authorization through your Apple ID.

  • Finally using SPAM quarantine and want to know how many e-mails are being released

    We have two C660s and one M660 and we are finally using the SPAM quarantine functionality on the M660 and so far it has been awesome.   For my pilot group I have the spam thresholds set as low as recommended by the GUI at 50 (positive) and 25 (suspected)...   First off, if I change these numbers will I see noticiable differences in what is allowed through and what isn't?
    My real question is, is there an easy way to see what mail is being released by users from the SPAM quarantine?  Originally I had a content filter setup that was working..   but now it appears that when users are releasing e-mails from the quarantine it is skipping any type of content filtering..  From what I can tell, e-mails are still being routed from the M660 to one of the two C660s for delivery..  but in the mail logs I see information like:
    Wed Aug 15 09:34:32 2012 Info: ISQ: Delivering MID 1592784 to ISQ (skipping work queue)
    And in Message Tracking I see:
    15 Aug 2012 09:32:23 (GMT -05:00)
    Message 116381462 was released from Spam Quarantine, IP address 10.25.211.100.
    15 Aug 2012 09:32:23 (GMT -05:00)
    Message 116381462 released from Spam Quarantine. Work queue skipped.
    15 Aug 2012 09:32:23 (GMT -05:00)
    Message 116381462 queued for delivery.
    15 Aug 2012 09:32:23 (GMT -05:00)
    (DCID 40556495) Delivery started for message 116381462 to
    My outgoing content filter is setup like:
    Conditions
    Apply rule: If one or more conditions match Only if all conditions match
    Order
    Condition
    Rule
    Delete
    1
    Remote IP/Hostname
    remote-ip == XXXXXXXX
    2
    Envelope Sender
    mail-from !=XXXXXXXXXX
    Actions
    Order
    Action
    Rule
    Delete
    1
    Add Log Entry
    log-entry("ReleasedFromSpamQuarantine")
    XXXXXXX = the IP address of our M660..  
    XXXXXXXX = the e-mail address used by our M660 to send out reports/alerts etc..
    Appreciate any input/feedback...
    Jason

    Hello Jason,
    one thing about the trhesholds, the defaults are 50/90 for suspected and positive spam, and that usually works for most customers, in some cases if still spam gets trough we suggest to modify that to 40/80, but you should not get any lower, as this will just increase the number of false positives. In general, the antispam engine delivers a value way above or below the thresholds, means scores are always either below 10 (no spam) or above 90 (spam), very few are inbetween this range, so usually the default setting works.
    About the information of which user released a message, there is unfortunately no direct way to get this done. You might try this approach:
    1. mail_logs: Look for the MID of the message when its getting injected to the SMA, note that this is not the same MID as in message tracking.
    2. mail_logs: Look for the message getting released, and note the time stamp:
    6 Aug 2012 13:29:21 (GMT) Start Message 10054459 ICID 0 release from Spam Quarantine
    3. Do a
    CLI: grep timestamp euqgui_logs
    with the timestamp you retreived  from the mail logs (just use the Day, hour, and minute part), this should get you the log lines for the particular minute, check them for the name of the user who was accessing the GUI at that time.
    Hope that helps,
    Andreas

  • HT204074 I do not see a "Manage Devices" link when I access my account information through iTunes. I want to know how many devices are linked to my account. Can anyone help?

    I have accessed the Apple Support site http://support.apple.com/kb/ht4627 but I could not find the "Manage Devices" link on iTunes. The advice they give is as follows:
    You can view which devices or computers are currently associated, remove unused devices or computers, and see how long before they can be associated with a different Apple ID from the Account Information page in iTunes on your computer:
    Open iTunes.
    Sign in to your Apple ID by choosing Store > Sign In from the iTunes menu.
    Choose Store > View My Account from the iTunes menu.
    From the Account Information screen, click Manage Devices.
    Next to each device or computer name, you will be able to see when each was associated to your Apple ID. You will also be able to track how many days are remaining before your associated devices or computers can be associated to a different Apple ID.
    Help would be greatly appreciated! Thank you!

    Hello from Albania,
    Please help me !! I'm desperate
    I sold my iPhone 4s a few months ago.
    Now i got my self a new iPad and created a new apple ID which i recently accociated with ITunes and ICloud.
    However, i can't update anything on my Mac since it still requires the old apple id, even though i changed it anywhere i could.
    I also don't get the manage devices when i tried to do this through the iTunes.
    I have no idea what to do.
    Waiting for your reply.
    Regards

  • Hi, I want to know how many computers I can work at the same time with a single license?

    I need a total of 4 seats  photoshop+ lightroom , and 2 workstations Adobe Premiere Pro , and have to work all at once. What is the best solution for me? sorry for my english

    6 users = 6 licenses .4 photoshop+lightroom and 2 PPRO .When Adobe speaks about to install 2 times with the same license ,they mean for the same user ( for example on his desktop and laptop ).

  • I just bought my first macbook and I want to know to write a document.

    I just bought my first macbook and I want to know how to write a document.  Does the macbook come with a comparable Microsoft Office Works but for Macs? Or do you have to purchase it?

    Hi Rosa Anna,
    Like Stedman1 mentioned the Mac includes Text Edit, witch can open and edit 95-98 Word Files. To use text edit. Go to the dock (the icons at the bottom of the screen), then click on Finder. Go to the menu bar, chose applications. When the applications window opens, locate and double click on "TextEdit."
    Pages, will also open word files.
    Microsoft makes Microsoft Office for Mac Home and Student 2011. It's not bundled in with the computer; when some thing bundled in with the computer your paying for it, you don't don't have a choice in the matter, and not every one wants Office. Most pcs these days come with a 30 day  trail of office.
    Microsoft offers the same 30 day trial for the mac.

  • How to know how many records is returned by the query in report

    Hi
    i want to know how many records has been returned by a sql statement in a report.
    can any one help me to solve this problem.
    santosh.

    you need to create a summary column with count function for a column in your select query. then u can print that formula column to know the no of rows selected in a query for a report

  • First, i want to know how can i pair my iPhone 5 with my lenovo laptop?

    First, i want to know how can i pair my iPhone 5 with my lenovo laptop? and second i want to extend my warranty under apple care in india. how can i do that??

    There are many apps in the App Store for transferring files between a computer and an iPhone using a cable, WiFi, or a cloud connection. Box and Dropbox cloud services are the easiest to use; I use Dropbox routinely to transfer business documents to our offices around the world.
    Evernote is another widely used cloud service.
    For local WiFi transfers there's Documents to Go, Airsharing, QuickOffice, and several dozen more. Documents to Go and QuickOffice also let you edit MS Word documents on the iPhone.

  • My brother and i just got our first iphone and want to know how we can both have the same itunes account

    My brother and i both just bought iphones and want to know how we can both have one itunes account and share our music.  our phones are on the same plan and i am paying for the bill. so my question is is this possible?

    Yes. It is possible. Just sign in to your Apple ID on both of your iPhones in the App Store.

Maybe you are looking for