System variales

Hi ,
     what is system variable to find the number of records in an internal table and what is the diff between sy-tabix and sy-index .

Hi,
system variable to find the number of records in an internal table  - sy-tabix or sy-dbcnt.
SY-TABIX means Table Index. This signifies the number of table index. Each row of a table has certain index or counter. The value of sy-tabix for the last entry would be equivalent to number of table entries.
SY-INDEX means the number of Iterations for a loop. bascially DO - ENDO .
SY-INDEX is not equal to SY-TABIX.
Check the belwo program
report tabix_index.
DO 100 times.
wa_tab-index = sy-index.
append wa_tab to itab.
clear wa_tab.
enddo.
loop at itab into wa_tab.
write:/1 sy-tabix.
endloop.
Regards,
Priyanka.

Similar Messages

  • 2007 B

    Hi all,
    we want to upgrade 2005 b to 2007 b ,we are currently using SBO 2005 B Pl-42.
    but we are not having upgrade exe to upgrade to 2007 B.
    We have 2007 B setup ,if we durectly run the 2007 B setup will it upgrade  to 2007 b.
    suppose we directly run 2007 b setup wchich is having servertools,server and client setup.will it upgrade the old version or it will installed newly sap 2007 b.
    Thanks,
    Neetu

    Upgradetion 2005 PL 42 to 2007 PL 08 Because This is Error Free and Letest Patch of B1 2007 B.
    1) Un Install the 2005 B (All Component (Server, Business One , Client)
    2) install 2007 Server (Start Server Option)
        1) install Business 2007
        2) install Client
        3) Update Database
    then Set The WH Excisebale and Location Excise Details.
    if you used any System Varieable then Reset New System Variale. to PLD
    Regard's
    Nagesh (NKP)

  • Regarding client tcode

    suppose i want to know middle of the application that on which client am i working on. So how would i know tat. is there any t.code for that......
    tahnks and regrads....

    hi abhay,
    chk this system variale.
    sy-mandt .
    or in the status bar (right corner) of the GUI u can c the clinet number
    eg: 105 etc
    rgds
    Anver

  • Same EPM Excel Report takes time to open and refresh on 1 system while it opens and refreshes faster on other system

    Hi All ,
    I am facing an issue where the EPM Excel Templates on SERVER ROOT FOLDER take time to open on 1 system . It also takes great amount of time to REFRESH . While on an another system the same Report opens rather quickly and refreshes also quickly .
    Regards,
    SHUBHAM

    Hi Shubham,
    Now day excel problems are due to some MS update.  Not sure but  have a look at below note.
    2107965 - Issues in EPM Add-in after installing Microsoft updates

  • Remote System and Remote Key Mapping at a glance

    Hi,
    I want to discuss the concept of Remote System and Remote Key Mapping.
    Remote System is a logical system which is defined in MDM Console for a MDM Repository.
    We can define key mapping enabled at each table level.
    The key mapping is used to distinguish records at Data Manager after running the Data Import.
    Now 1 record can have 1 remote system with two different keys but two different records cannot have same remote system with same remote key. So, Remote key is an unique identifier for record for any remote system for each individual records.
    Now whenever we import data from a Remote System, the remote system and remote key are mapped for each individual records. Usually all records have different remote keys.
    Now, when syndicating back the record with default remote key is updated in the remote system that is sent by xml file format.
    If same record is updated two times from a same remote system, the remote key will be different and the record which is latest contains highest remote key.
    Now, I have to look at Data Syndication and Remote key.
    I have not done Data Syndication but my concept tell if there is duplicate record with same remote system but different remote keys both will be syndicated back. But if same record have two remote keys for same remote system then only the default remote key is syndicated back.
    Regards
    Kaushik Banerjee

    You are right Kaushik,
    I have not done Data Syndication but my concept tell if there is duplicate record with same remote system but different remote keys both will be syndicated back.
    Yes, but if they are duplicate, they needs to be merged.
    But if same record have two remote keys for same remote system then only the default remote key is syndicated back.
    This is after merging. So whichever remote key has tick mark in key mapping option(default) , it will be syndicated back.
    Pls refer to these links for better understanding.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/80eb6ea5-2a2f-2b10-f68e-bf735a45705f
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/7051c376-f939-2b10-7da1-c4f8f9eecc8c%0c
    Hope this helps,
    + An

  • Error while creating a support message in satellite system

    Hi,
    I am facing an error while sending a support message to solman form the satellite system
    (( Error Description :  Error in Local Message System: Error when opening
    an RFC connection Message was Not Created ))
    1) I gone through various threads and set the required authorizations like
    SAP_SUPPDESK_CREATE and
    SAP_SV_FDB_NOTIF_BC_ADMIN ,
    SAP_SUPPDESK_ADMIN
    for the user in the solman .
    2) I checked the RFC connection and it is working fine.
    Anyone pls help me to resolve this issue

    hi rohit,
    thanks for u r immmediate response
    do i have to assign the roles to the user in the satellite system or the solman.
    some roles in those 4 roles are not in the satellite system.
    thanks
    Rahul

  • System Image Restore in Window 8.1

    I have not been able to find a data migration application that works at cloning a Windows 8.1 hard drive to a new SSD.  With that in mind I want to go about moving the contents, data and operating system from my working C: to a new SSD.  I want
    to go about it as if I have backed up my system, my C: drive has failed so I need to install a new drive and restore my data and operating system to the new drive.  I can't seem to find any simple (this should be simple) straight forward way to do this
    nor can I find any form of written instruction on how to go about this. 
    I would love to have someone articulate this.  As it stands I have a fully operational intact C drive.  I have completed a disk image to a second separate hard drive.  I now want to restore that content to a third (SSD ) drive.
    Where do I begin? 

    There is a system backup tool called System Image Backup, follow these steps to conduct this:
    Swipe in from the right edge of the screen, and then tap Search.
    (If you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search.)
    Enter File History in the search box, tap or click File History, and then click System Image Backup at the left part.
    See the screenshot as below, you can backup it on local machine or a DVD or a network share folder:
    Besides, I need to point out that this backup method will generate a vhd file, if you want to restore the system you need an DVD installation midia.
    You cannot just restore a vhd file directly to the hard drive.
    regards
    v-yamliu

  • I tried to install latest OS update. Recd error installing. IT tried to load the upgrade in Safe Mode. Now system will not boot up. IT says I have to do a clean install which loses all data.

    After receiving an error when I try to install the latest update of OS-X, I took my laptop to oour schools IT dept. They tried to run the update in safe mode and then they got an error saying the system could not find the hard drive. Now they want to run a clean install which loses 1000's of docs and pictures. I have Block I exams in med school next Monday and all of my notes and slides are on that hard drive.
    The IT dept took the hard drive out and tried to back it up and they said they other computer could not connect or find my hard drive.
    Major panic....
    I have Norton antivirus and have never found any viruses on the system. I also have a program called ExamSoft which some other students here have noted they had similar crashes. Not sure if that is the issue...

    Several take home messages here:
    always back up before you update.
    always back up anything you don't want to lose. Kind of like flossing. Only floss the teeth you don't want to lose.
    Norton is very, very bad software, and you should get rid of it.
    You don't need antivirus software on your mac. Antivirus software on macs causes more trouble than it is worth.
    Your hard drive may be failing and thus may not be salvageable.
    You could try booting into the recovery partition and seeing if you can repair your hard drive.
    If that doesn't work, then there is a small chance that a third party utility (like Disk Warrior or TechTool) might be able to fix your drive (if it is not failing).
    If that doesn't work, you may be able to send your drive and a lot of cash to a drive recovery service and see if they can get your files off it.
    In the mean time, get notes and slides from a (smart) friend.

  • How do I install all my old programs and data from an old system folder after I have reinstalled the same OSX system after a crash?

    The system is OSX10.5.8 Leopard on a 2009 imac. A new system was installed from the installation disks and the original system saved to a folder.
    I need to use my Adobe programs, rescue my email, i-tunes and iphoto data.  The disk utility indicates that my Time Machine back-up disk is damaged and I don't want to take a risk of having Time Machine erase my hard drive and try to reinstall the exact system existing at the time of the crash.  There was over 650 gb of stored files that I was copying and removing from the drive at the time it crashed. The total size of the original system file is still about 650 Gb.
    I would prefer to go back in Time Machine and only rescue the programs as most of the files have been copied to external hard drives, but I can't access the back-up hard drive from the new version of the Time Machine.  Or by I don't want the Time Mchine to start copying the new operating system which would include all the data in the old system file. Time Machine was working fine at the time of the crash.

    No, the disk was backed up with time machine a few hours prior to the crash.  I was unable to open the computer when I tried to restart it- got a grey screen with the spinning disk- after a few minutes the screen would go black and would reboot continuously, but not load any images or programs. I started the computer from the 10.5.4 installation disks and checked both the time machine external hard drive and the Imac internal drive with the disk utilities. Both showed as damaged --the internal drive and permissions were repaired, but the external drive (time machine back-up)  was damaged and not repairable by disk utilities. I don't believe that the external drive for Time Machine was connected to the computer at the time of the crash as I was copying files to a different hard drive drive. And I was not having any problems with the TM back-up drive prior to the crash.
    I accessed the Imac internal disk by firewire (as a target disk) and copied as many data files as I had room for on my external hard drives available.  And I deleted quite a few files from the imac internal drive (mostly just jpegs, duplicate tifs, etc--nothing that was used by i-photos, i-tunes or the Mail program).
    Then I installed a new OSX10.5.4 system from the installation disk and the old system was moved to a folder on the hard drive.  I previousy had had the option to reinstall the complete system from Time Machine when I connected that drive and booted with the installation disks with the C key depressed.  But it didn't seem like a good option because I was unsure of the condition of that external disk and whether it would be able to reinstall my data correctly, once it had erased my internal hard drive. 
    I'm considering buying some new external hard drives and backing up the present system to time Machine (so I'll still have my old data in the old system folder).  And then I would try using the old Time Machine back-up to try to reinstall the sytem previous to the crash.  That back-up would reinstall about 700gb of data and operating software and programs which sounds like a lengthy back-up.  Since I have never used Time Machine to do a full reinstallation (I've only used it for individual files), I'm reluctant to do anything rash.
    I'm a professional designer (with a deadline) but I can still use my Illustrator and Photoshop by opening them from the old system folder and saving the files to an external drive.  So it's not neccessary to do anything hasty except to delete some of the excess art and document files that were causing the computer to run slowly and the  Adobe programs to crash when I tried to save my work. I have quite a few books on tape in the i-tumes folder which is probably talking up tons of space but I don't where the i-tunes files live.
    Thanks for any help. Peggy
    Message was edited by: peggy toole

  • Logical Systems in Business Services

    Hi
    In Business Service creation, for Adapter Specific Identifiers, the parameter for the Logical System. It is only possible to assign one logical system to one Business Service ?.
    i.e. to do
    MyBusServ1, Z_LS_1 
    MyBusServ2, Z_LS_1
    is not possible ?
    When trying to assign Z_LS_1 to MyBusServ2 I get the error that Z_LS_1 is already assigned. Is there a way to circumvent ?, I do not want to create two logical systems in R/3 as the IDOCS types submitted by the Business Services are the same.
    Thanks
    Damien

    Thanks for the replies
    Sarvesh - The Business service is the sender of the information \ IDOC. If I remove the Adapter specific config then how will XI know what Logical system to apply to the IDOC ?.
    Jaishankar - I am creating two IDOC's in SAP. MATMAS and PORDCR. The input file are coming from two different source systems. lets say sys1 and sys2. Both of thse for clarity are created in my scenario as Business Services. sys 1 creates MATMAS and PORDCR IDOC's int he syatem, sys2 creates PORDCR IDOC's in the system. As sys1 and sys2 are related in that they created the IDOC's as part od the same project then I would like to collect in the same partner profile in SAP e.g. Partner Profile ZPP_IDOC with IDOC types MATMAS PORDCR that serve as input for both systems. Logically I would assume that I can assing the logical system ZPP_IDOC to both the adapter specific parameter in both sys1 and sys2.
    Thanks
    Damien

  • Logical System in IDOC-XI scenario

    Hi,
         I need help to understand few things in IDOC-XI scenario, could any one help me in this regard.
        we use Adapter specific identifiers to map services, we have following type of identifiers 1) Sys.ID & Client No.  2) Logical System. 
    my questions are
    a) Are we use Logical System in B to B scenario ?
    b) Are we use LS in reference to the SAP system or Non SAP system ? if a non SAP system....how a non SAP system send an IDOC and why a non SAP system receive an IDOC ( conversion is possible in XI ) ?
    Thanks and Regards
    Mahesh.

    Hay Kumar,
    Logical systems can also be used for SAp sytems wich are not installed yet as a virtuall placeholder.
    a) yes. if on of your business is a non sap system or a propritery system that you developed yuo'll ue LS.
    b) non SAP system can send and recieve IDOCs. so it's possiable to get an IDOC from a system and turn it into an RFC for SAP or get an IDOC from an SAP system and then turn it into something else for another system.
    Have a Good One,
    Uri Lifshitz.

  • Refresh System Data in Integration Directory PI 7.11

    Hey,
    I have setup a new technical system and a business system in SLD, but now I still can't find it in Integration Directory.
    I knew from the later PI Version, that there was an option to transfer SLD data to integration directory, but now I can't find it
    anymore.
    Can anybody help?
    Thanks!
    Michael

    I have setup a new technical system and a business system in SLD, but now I still can't find it in Integration Directory.
    I knew from the later PI Version, that there was an option to transfer SLD data to integration directory, but now I can't find it
    Tools (or right-click in ID) --> Assign Business System --> follow the wizard...it will assign the business system from SLD to ID

  • Support package / add on import error in DB2 V9.1 / windows 2003 system

    Hi
    I have installed ERP 6.0 IDES version in Windows 2003 server with DB2 LUW 9.1 / FP5.
    I have selected "Row Compression" and "Deferred Table Creation" during installation.
    Now when I am importing add on BI Content 7.03, I am getting error during Movename tabs phase.
    Error in phase: IMPORT_PROPER
    Reason for error: TP_STEP_FAILURE
    Return code: 0008
    Error message: OCS Package ALL, tp step "6", return code 0008
    The error message in the file D:\usr\sap\trans\log\P090113.IDS is as follows,
    2 ETP301
    3 ETP361 "96" Shadow-Nametabs activated, DDL executed
    2 ETP362 "6" Shadow-Nametab activations failed
    2 ETP360 Begin: Act. of Shadow-Nametabs with DDL ("2009/01/13 02:57:51")
    2 ETP363 End : Act. of Shadow-Nametabs with DDL ("2009/01/13 02:58:07")
    2 ETP301
    1 ETP172 MOVE OF NAMETABS
    1 ETP110 end date and time : "20090113025807"
    1 ETP111 exit code : "8"
    1 ETP199 ######################################
    I have read some notes it may be due to "Row compression" and "Deffered table creation" option in DB2. Please help me in resolving this issue if it is DB2 related.
    Regards,
    Nallasivam.D

    Hi,
    Please find the real error message which I found in the same log file. This is a new installation.
    System configuration details:
    ERP 6.0 IDES SR3 + Windows 2003 enterprise server SP2 + DB2 V9.1 / FP5
    BASIS and ABAP support pack level: (700) 13.
    Error message:
    3 ETP399 INDEX IN "IDS#BTABI"
    3 ETP399 LONG IN "IDS#BTABD COMPRESS YES"
    3 ETP399 
    2WETP000 02:53:26: Retcode 1: error in DDL statement for "/OSP/T_REPINFO                " - repeat
    2EETP345 02:53:38: Retcode 1: SQL-error "-107-SQL0107N  The name "IDS#BTABD COMPRESS YES" is too lo
    2EETP345 ng.  The maximum length is "18".  SQLSTATE=42622" in DDL statement for "/OSP/T_REPINFO   
    2EETP345             "
    2 ETP399  -
    DB-ROLLBACK() -
    3 ETP399 INDEX IN "IDS#POOLI"
    3 ETP399 LONG IN "IDS#POOLD COMPRESS YES"
    3 ETP399 
    2WETP000 02:54:05: Retcode 1: error in DDL statement for "/SAPPO/CMP_ASG                " - repeat
    2EETP345 02:54:17: Retcode 1: SQL-error "-107-SQL0107N  The name "IDS#POOLD COMPRESS YES" is too lo
    2EETP345 ng.  The maximum length is "18".  SQLSTATE=42622" in DDL statement for "/SAPPO/CMP_ASG   
    2EETP345             "
    2 ETP399  -
    DB-ROLLBACK() -
    2EETP334 02:54:17: error in DDL, nametab for "/SAPPO/CMP_ASG" not activated
    3 ETP399 IN "IDS#POOLD"
    3 ETP399 INDEX IN "IDS#POOLI"
    3 ETP399 LONG IN "IDS#POOLD COMPRESS YES"
    3 ETP399 
    2WETP000 02:54:17: Retcode 1: error in DDL statement for "/SAPPO/CSCRN_HDR              " - repeat
    2EETP345 02:54:29: Retcode 1: SQL-error "-107-SQL0107N  The name "IDS#POOLD COMPRESS YES" is too lo
    2EETP345 ng.  The maximum length is "18".  SQLSTATE=42622" in DDL statement for "/SAPPO/CSCRN_HDR 
    2EETP345             "
    2 ETP399  -
    DB-ROLLBACK() -
    2EETP334 02:54:29: error in DDL, nametab for "/SAPPO/CSCRN_HDR" not activated
    3 ETP399 INDEX IN "IDS#POOLI"
    3 ETP399 LONG IN "IDS#POOLD COMPRESS YES"
    3 ETP399 
    2WETP000 02:54:29: Retcode 1: error in DDL statement for "/SAPPO/F_ASG                  " - repeat
    2EETP345 02:54:41: Retcode 1: SQL-error "-107-SQL0107N  The name "IDS#POOLD COMPRESS YES" is too lo
    2EETP345 ng.  The maximum length is "18".  SQLSTATE=42622" in DDL statement for "/SAPPO/F_ASG     
    2EETP345             "
    2 ETP399  -
    DB-ROLLBACK() -
    2EETP334 02:54:41: error in DDL, nametab for "/SAPPO/F_ASG" not activated
    Regards,
    Nallasivam.D

  • How to pop up a system message for a specific user when She/He log on SAP

    Hi Friends,
    As we know SM02 setting will pop up a system message to all users in specific client in a specific period when the user log on SAP system; and we can do the same thing via using function module SM02_ADD_MESSAGE.
    But now we want to pop up a message to a specific user ID when somebody log on SAP via this ID, instead of all user IDs in the client. Please do we have any similar traction / function module / class method to to do this job??
    Thanks in advance.
    Joe

    Below code can be used to send a pop up message to all users who are logged on to the
    system.
    DATA: MESSAGE(128) VALUE 'Test message'.
    DATA: OPCODE TYPE X VALUE 2.
    DATA: BEGIN OF USR_TABL OCCURS 10.
    INCLUDE STRUCTURE UINFO.
    DATA: END OF USR_TABL.
    CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE
    ID 'TAB' FIELD USR_TABL-SYS.
    LOOP AT USR_TABL.
    CALL FUNCTION 'TH_POPUP'
    EXPORTING
    CLIENT = SY-MANDT
    USER = USR_TABL-BNAME
    MESSAGE = MESSAGE
    EXCEPTIONS
    USER_NOT_FOUND = 1.
    ENDLOOP.
    In the above code just pass the desired user ID instead of All user ID's
    Edited by: harsh bhalla on Mar 26, 2009 2:14 PM

  • Error message 'Please log on to the SAP system' when selecting 'shop'

    In SRM when we click on 'shop' or 'Goods Receipt' we get the error 'ITS System Information 'Please log on to the SAP System' where it prompts user to log on again. However when user logs on it opens up the same screen again saying please log on to the sap system.
    This only happens when we shop using the External ITS (wgate), EBP works fine using the Internal ITS.
    Please can someone help.
    Kindest Regards
    Paul

    Hi
    <b>Please try this -></b>
    <b>Look using SRM transaction SITSPMON and RZ20, RZ21.</b>
    Also Please check <u>SAP OSS Note 517860</u>
    <b>-> For ITS,  You need to maintain the RFC connection in the connection type "T" i.e TCP/IP. Maintain in the Table - TWPURLSVR.
    Ensure that you have maintained correct entries in the TWPURLSVR table using SM30 transaction for the ITS Web path (http or https address path). Note you are passing port - 8001 in the address here. Incase you face problems, Please ask you BASIS person to help you out.
    -> Please ask you BASIS person to help you out for maintaining ITS settings. (Ensure IACOR service is running properly - ITS server is running), through the transaction SMICM
    -> What all logs appear in SLG1 and SM21 transactions after publishing all the Internet services.
    -> If you are using ITS 6.2,you need to do the IACOR settings for SRM on the ITS server.Also in SE80 mainatin the Site for SRM system.After this ,you can publish all the ITS services usig the report,W3_PUBLISH SERVICES.</b>
    <u>Related links -></u>
    Integrated ITS :Login Problem
    Re: ITS_CANT_LOAD_INCLUDE in BBPstart service
    Re: ITS_DEST_NOT_FOUND
    Re: ITS Configuration
    Re: ITS Template not found
    Do let me know.
    Regards
    - Atul

Maybe you are looking for

  • Logic Pro X Unknown Punch-Out Range

    Hello, For some reason when I try and setup an auto punch, the punch out marker is unknown and the red bar seems infinite... so I can't set a proper out point. Does anyone know how to reset the range... maybe enter it manually? Thank you.

  • Kernal panic - log mentions firewire repeatedly but no firewire device

    Hi Guys, Any help appreciated with this. Firstly although my profile states leopard+ macpro this relates to a G5 running 10.4.11. We had a kernel panic earlier on a machine that has seemed buggy over the last few days (in spite of running Applejack).

  • Problem with authorized computers

    I currently have 2 computers and my iTunes account says I have 4 authorized computers. Is there any way to reset the authorization number, and then just re-authorize each computer? Because even if I deauthorize both computers, it says I have 2 comput

  • Re: Premiere CS5 and Droverlord window

    Just thought I should report a crash after the 5.0.2 update, while scrubbing audio on the timeline. "Premiere Pro has encountered an error [..\..\Src\MasterClip.cpp-645]" PPro then hung and popped up a separate "DroverLord - TabPanel" window. I had t

  • How to put in code

    Im trying to put in a marqueee and i cant figure it out. I have the codes in hand i just cant figure out how to put code in . It says someting like i have to go to blog. Im now lost , can you help me. Thanks. Jackie O