Coding for maintain the multip[le sessions

i have 1,00,000 records in a flat file how to maintain  the multiple sessions
each session having 10000 records i want coding for how these multiple sessions

see the example program and the selection screen you can maintain how many records per session.
Report     : ZMPPC015
Type       : Data upload
Author     : Seshu Maramreddy
Date       : 05/26/2005
Transport  : DV3K920025
Transaction: ??
Description: This ABAP/4 Program to Create Planned Independent
             Requirement for SMI plants using MD61 Transaction.
             It accepts tab-delimited spreadsheet input and
             creates BDC sessions.
report zmppc015 no standard page heading
                line-size 120
                line-count 55
                message-id zz.
Constants
constants : c_x type c value 'X'," Dynbegin
            c_tcode type tstc-tcode value 'MD61'." Transaction Code
Variables
data : v_lines_in_xcel like sy-tabix,
       l_tabix like sy-tabix,
       v_trans_in_ssn type i,
       v_ssnnr(4) type n," Counter
       v_ssnname like apqi-groupid,
       v_matnr(18) type c. " Material Number
Internal Tables
Internal table for file
data : begin of t_file occurs 0,
       matnr(18) type c,   " Material Number
       berid(10) type c,    " MRP Area
       PLNMG01(17) type n, " Forecast Month -01
       PLNMG02(17) type n, " Forecast Month -02
       PLNMG03(17) type n, " Forecast Month -03
       PLNMG04(17) type n, " Forecast Month -04
       PLNMG05(17) type n, " Forecast Month -05
       PLNMG06(17) type n, " Forecast Month -06
       PLNMG07(17) type n, " Forecast Month -07
       PLNMG08(17) type n, " Forecast Month -08
       PLNMG09(17) type n, " Forecast Month -09
       PLNMG10(17) type n, " Forecast Month -10
       PLNMG11(17) type n, " Forecast Month -11
       PLNMG12(17) type n, " Forecast Month -12
       WERKS(4) TYPE C,    " Plant
       end of t_file.
Internal table for BDCDATA Structure
data : begin of itab_bdc_tab occurs 0.
        include structure bdcdata.
data : end of itab_bdc_tab.
Selection-screen
selection-screen: skip 3.
selection-screen: begin of block id1 with frame.
parameters: p_name        like rlgrap-filename
                          default 'C:\My Documents\InputFile.txt'
                          obligatory,
bdc session name prefix
            p_bdcpfx(6)   default 'ZPIRCT'
                          obligatory,
number for transction per BDC session
            p_trnssn      type i
                          default 2000 obligatory,
retain the BDC session after successfull execution
            p_keep        like apqi-qerase
                          default c_x,
user who will be executing BDC session
            p_uname       like apqi-userid
                          default sy-uname
                          obligatory.
selection-screen : skip 1.
Requirement type
parameters : p_bedae like t459u-bedae,
From Date
             p_date like sy-datum default sy-datum obligatory.
selection-screen: end of block id1.
at selection-screen on value-request for p_name.
F4 value for Input file
  perform filename_get.
main processing
start-of-selection.
To get the data from file to Internal table
  perform getdata_fromfile.
  loop at t_file.
  hang on to xcel line num
    l_tabix = sy-tabix.
  if num-of-trnas-in-session = 0, create new BDC session
    if v_trans_in_ssn is initial.
      perform bdc_session_open.
    endif.
  begin new bdc script for rtg create trans
  fill in bdc-data for prod.version maintenance screens
    perform bdc_build_script.
  insert the bdc script as a BDC transaction
    perform bdc_submit_transaction.
  keep track of how many BDC transactions were inserted in the BDC
  session
    add 1 to v_trans_in_ssn.
  if the user-specified num of trans in BDC session is reached OR
  if end of input file is reached, close the BDC session
    if v_trans_in_ssn = p_trnssn or
       l_tabix = v_lines_in_xcel.
      perform bdc_session_close.
      clear v_trans_in_ssn.
    endif.
clear t_file.
  endloop.
top-of-page.
  call function 'Z_HEADER'
EXPORTING
  FLEX_TEXT1       =
  FLEX_TEXT2       =
  FLEX_TEXT3       =
*&      Form  filename_get
      F4 Value for input file
FORM filename_get.
  CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
            DEF_PATH         = 'C:\Temp\ '
            MASK             = ',.,..'
            MODE             = 'O'
            TITLE            = 'Select File '(007)
       IMPORTING
            FILENAME         = p_name
       EXCEPTIONS
            INV_WINSYS       = 1
            NO_BATCH         = 2
            SELECTION_CANCEL = 3
            SELECTION_ERROR  = 4
            OTHERS           = 5.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    " filename_get
*&      Form  getdata_fromfile
      Upload the data from file to Internal table
FORM getdata_fromfile.
  CALL FUNCTION 'WS_UPLOAD'
       EXPORTING
            FILENAME                = p_name
            FILETYPE                = 'DAT'
       TABLES
            DATA_TAB                = t_file
       EXCEPTIONS
            CONVERSION_ERROR        = 1
            FILE_OPEN_ERROR         = 2
            FILE_READ_ERROR         = 3
            INVALID_TYPE            = 4
            NO_BATCH                = 5
            UNKNOWN_ERROR           = 6
            INVALID_TABLE_WIDTH     = 7
            GUI_REFUSE_FILETRANSFER = 8
            CUSTOMER_ERROR          = 9
            OTHERS                  = 10.
  if sy-subrc eq 0.
    sort t_file by matnr .
    delete t_file where matnr = ''.
    clear v_lines_in_xcel.
    describe table t_file lines v_lines_in_xcel.
    if v_lines_in_xcel is initial.
      write: / 'No data in input file'.
      stop.
    endif.
  else.
    write:/ 'Error reading input file'.
    stop.
  endif.
ENDFORM.                    " getdata_fromfile
*&      Form  bdc_session_open
      BDC_OPEN_GROUP
FORM bdc_session_open.
create bdc session name = prefix-from-selectn-screen + nnnn
  add 1 to v_ssnnr.
  concatenate p_bdcpfx v_ssnnr into v_ssnname.
  CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
            CLIENT              = SY-MANDT
            GROUP               = v_ssnname
            KEEP                = p_keep
            USER                = p_uname
       EXCEPTIONS
            CLIENT_INVALID      = 1
            DESTINATION_INVALID = 2
            GROUP_INVALID       = 3
            GROUP_IS_LOCKED     = 4
            HOLDDATE_INVALID    = 5
            INTERNAL_ERROR      = 6
            QUEUE_ERROR         = 7
            RUNNING             = 8
            SYSTEM_LOCK_ERROR   = 9
            USER_INVALID        = 10
            OTHERS              = 11.
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    " bdc_session_open
*&      Form  bdc_build_script
      BDC Script
FORM bdc_build_script.
Local Variables
  DATA : l_frdat(8) type c,  " From Date
         l_todat(8) type c,  " To Date
         l_frdat1(4) type c, " Year
         l_frdat2(2) type c, " Month
         l_frdat3(2) type c, " Day
         l_tdate like sy-datum, " Subtract date(1)
         l_todat1(4) type c,    " Year
         l_todat2(2) type c,    " Month
         l_todat3(3) type c.    " Day
   Get the material number from tables ZMSMI_FERR_RAW,
   ZMSMI_SNAP_RAW and ZMSMI_SIMP_RAW
  perform get_matnr.
Screen 0100.
  perform bdc_screen using  'SAPMM60X'     '0100'.
  perform bdc_field  using  'BDC_OKCODE'   '/EBDPT'.
  perform bdc_field  using  'AM60X-MATAW'  'X'.
  perform bdc_field  using  'AM60X-MATNR'  T_FILE-MATNR.
  perform bdc_field  using  'AM60X-PRGRP'  SPACE.
  perform bdc_field  using  'AM60X-PBDNR'  SPACE.
  perform bdc_field  using  'RM60X-BERID'  T_FILE-BERID.
  perform bdc_field  using  'AM60X-WERKS'  SPACE.
  perform bdc_field  using  'RM60X-VERSB'  '00'.
Converted the date as per MD61 Transaction.
From date
  l_frdat1 =  p_date+0(4).
  l_frdat2 =  p_date+4(2).
  l_frdat3 =  p_date+6(2).
  concatenate l_frdat2 l_frdat3 l_frdat1 into l_frdat.
To Date
  l_tdate = p_date - 1.
  l_todat1 =  l_tdate+0(4) + 1.
  l_todat2 =  l_tdate+4(2).
  l_todat3 =  l_tdate+6(2).
  concatenate l_todat2 l_todat3 l_todat1 into l_todat.
  perform bdc_field  using  'RM60X-DATVE'  l_frdat.
  perform bdc_field  using  'RM60X-DATBE'  l_todat.
  perform bdc_field  using  'RM60X-ENTLU'  'M'.
Screen 0127
  perform bdc_screen using  'SAPMM60X'     '0127'.
  perform bdc_field  using  'BDC_OKCODE'   '=WEIT'.
  if p_bedae is initial.
    perform bdc_field  using  'T459U-BEDAE'  space.
  else.
    perform bdc_field  using  'T459U-BEDAE'  P_BEDAE.
  endif.
Screen 0100.
  perform bdc_screen using  'SAPMM60X'     '0100'.
  perform bdc_field  using  'BDC_OKCODE'   '/00'.
  perform bdc_field  using  'AM60X-MATAW'  'X'.
  perform bdc_field  using  'AM60X-MATNR'  T_FILE-MATNR.
  perform bdc_field  using  'AM60X-PRGRP'  SPACE.
  perform bdc_field  using  'AM60X-PBDNR'  SPACE.
  perform bdc_field  using  'RM60X-BERID'  T_FILE-BERID.
  perform bdc_field  using  'AM60X-WERKS'  SPACE.
  perform bdc_field  using  'RM60X-VERSB'  '00'.
  perform bdc_field  using  'RM60X-DATVE'  l_frdat.
  perform bdc_field  using  'RM60X-DATBE'  l_todat.
  perform bdc_field  using  'RM60X-ENTLU'  'M'.
Screen 0200
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG01.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG02.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG03.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG04.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG05.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG06.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG07.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG08.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG09.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG10.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=S+'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG11.
  perform bdc_screen using  'SAPLM60E'     '0200'.
  perform bdc_field  using  'BDC_OKCODE'   '=SICH'.
  perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG12.
ENDFORM.                    " bdc_build_script
*&      Form  get_matnr
      Get the material number from tables ZMSMI_FERR_RAW,
      ZMSMI_SNAP_RAW and ZMSMI_SIMP_RAW
FORM get_matnr.
  clear v_matnr.
  case t_file-werks.
    when '0101'.
      select single cmatnr from zmsmi_simp_raw
             into v_matnr  where matnr = t_file-matnr.
      if sy-subrc eq 0.
        clear t_file-matnr.
        t_file-matnr = v_matnr.
      endif.
    when '0103'.
      select single cmatnr from zmsmi_ferr_raw
             into v_matnr  where matnr = t_file-matnr.
      if sy-subrc eq 0.
        clear t_file-matnr.
        t_file-matnr = v_matnr.
      endif.
    when '0102' or '0110' or '0111' or '0112' or '0113'
         or '0114' or '0115' or '0116' or '0117'.
      select single cmatnr from zmsmi_snap_raw
             into v_matnr  where matnr = t_file-matnr.
      if sy-subrc eq 0.
        clear t_file-matnr.
        t_file-matnr = v_matnr.
      endif.
  endcase.
ENDFORM.                    " get_matnr
*&      Form  bdc_screen
      BDC Script for Screen fields
     -->P_PROG   Program name
     -->P_SCRN   Screen Number
FORM bdc_screen USING    p_prog
                         p_scrn.
  clear itab_bdc_tab.
  itab_bdc_tab-program = p_prog.
  itab_bdc_tab-dynpro = p_scrn.
  itab_bdc_tab-dynbegin = c_x.
  append itab_bdc_tab.
ENDFORM.                    " bdc_screen
*&      Form  bdc_field
      BDC Script for Screen fileds
     -->P_NAM   Field name
     -->P_VAL   Field value
FORM bdc_field USING    p_nam
                        p_val.
  clear itab_bdc_tab.
  itab_bdc_tab-fnam = p_nam.
  itab_bdc_tab-fval = p_val.
  append itab_bdc_tab.
ENDFORM.                    " bdc_screen
*&      Form  bdc_submit_transaction
      BDC_INSERT Function Module
FORM bdc_submit_transaction.
Load BDC script as a trqansction in BDC session
  call function 'BDC_INSERT'
       EXPORTING
            tcode          = c_tcode
       TABLES
            dynprotab      = itab_bdc_tab
       EXCEPTIONS
            internal_error = 01
            not_open       = 02
            queue_error    = 03
            tcode_invalid  = 04.
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  refresh itab_bdc_tab.
ENDFORM.                    " bdc_submit_transaction
*&      Form  bdc_session_close
      text
FORM bdc_session_close.
  CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
  NOT_OPEN          = 1
  QUEUE_ERROR       = 2
  OTHERS            = 3
  skip 2.
  if sy-subrc ne 0.
    write: / 'Error Closing BDC Session ' , 'RETURN CODE: ', sy-subrc.
  else.
    write : /  'Session created:', v_ssnname,
            50 '# of transactions:', v_trans_in_ssn.
  endif.
ENDFORM.                    " bdc_session_close
Reward Points if it is helpful
Thanks
Seshu

Similar Messages

  • Maintaining the Flash file session in JsP

    Can anybody say how to mainatain the session in the flash to the jsp file.
    -- when the flash session is expired the corresponding jsp session should expire.
    -- when the user clicks the button in the flash file that communication should retrun into the Jsp page.
    please provide the solutions for in this regards will be appreciated.
    thanks,.

    Sateesh,got any solution?

  • Whats good for maintaining the Mac book pro?

    I have a program to clean my PC, is there one for the Mac Book or for the IMac?
    Is one needed?
    D

    How to maintain a Mac
    1. Make redundant backups, keeping at least one off site at all times. One backup is not enough. Don’t back up your backups; make them independent of each other. Don’t rely completely on any single backup method, such as Time Machine. If you get an indication that a backup has failed, don't ignore it.
    2. Keep your software up to date. In the Software Update preference pane, you can configure automatic notifications of updates to OS X and other Mac App Store products. Some third-party applications from other sources have a similar feature, if you don’t mind letting them phone home. Otherwise you have to check yourself on a regular basis. This is especially important for complex software that modifies the operating system, such as device drivers. Before installing any Apple update, you must check that all such modifications that you use are compatible.
    3. Don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” “extenders,” “cleaners,” "doctors," "tune-ups," “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” "disk tools," or "utilities." With very few exceptions, this stuff is useless, or worse than useless.
    The more actively promoted the product, the more likely it is to be garbage. The most extreme example is the “MacKeeper” scam.
    As a rule, the only software you should install is that which directly enables you to do the things you use a computer for — such as creating, communicating, and playing — and does not modify the way other software works. Use your computer; don't fuss with it.
    Never install any third-party software unless you know how to uninstall it. Otherwise you may create problems that are very hard to solve.
    The free anti-malware application ClamXav is not crap, and although it’s not routinely needed, it may be useful in some environments, such as a mixed Mac-Windows enterprise network.
    4. Beware of trojans. A trojan is malicious software (“malware”) that the user is duped into installing voluntarily. Such attacks were rare on the Mac platform until sometime in 2011, but are now increasingly common, and increasingly dangerous.
    There is some built-in protection against downloading malware, but you can’t rely on it — the attackers are always at least one day ahead of the defense. You can’t rely on third-party protection either. What you can rely on is common-sense awareness — not paranoia, which only makes you more vulnerable.
    Never install software from an untrustworthy or unknown source. If in doubt, do some research. Any website that prompts you to install a “codec” or “plugin” that comes from the same site, or an unknown site, is untrustworthy. Software with a corporate brand, such as Adobe Flash Player, must be acquired directly from the developer. No intermediary is acceptable, and don’t trust links unless you know how to parse them. Any file that is automatically downloaded from a web page without your having requested it should go straight into the Trash. A website that claims you have a “virus,” or that anything else is wrong with your computer, is rogue.
    In OS X 10.7.5 or later, downloaded applications and Installer packages that have not been digitally signed by a developer registered with Apple are blocked from loading by default. The block can be overridden, but think carefully before you do so.
    Because of recurring security issues in Java, it’s best to disable it in your web browsers, if it’s installed. Few websites have Java content nowadays, so you won’t be missing much. This action is mandatory if you’re running any version of OS X older than 10.6.8 with the latest Java update. Note: Java has nothing to do with JavaScript, despite the similar names. Don't install Java unless you're sure you need it. Most users don't.
    5. Don't fill up your boot volume. A common mistake is adding more and more large files to your home folder until you start to get warnings that you're out of space, which may be followed in short order by a boot failure. This is more prone to happen on the newer Macs that come with an internal SSD instead of the traditional hard drive. The drive can be very nearly full before you become aware of the problem. While it's not true that you should or must keep any particular percentage of space free, you should monitor your storage consumption and make sure you're not in immediate danger of using it up. According to Apple documentation, you need at least 9 GB of free space on the startup volume for normal operation.
    If storage space is running low, use a tool such as the free application OmniDiskSweeper to explore your volume and find out what's taking up the most space. Move rarely-used large files to secondary storage.
    6. Relax, don’t do it. Besides the above, no routine maintenance is necessary or beneficial for the vast majority of users; specifically not “cleaning caches,” “zapping the PRAM,” "resetting the SMC," “rebuilding the directory,” "defragmenting the drive," “running periodic scripts,” “dumping logs,” "deleting temp files," “scanning for viruses,” "purging memory," "checking for bad blocks," or “repairing permissions.” Such measures are either completely pointless or are useful only for solving problems, not for prevention.
    The very height of futility is running an expensive third-party application called “Disk Warrior” when nothing is wrong, or even when something is wrong and you have backups, which you must have. Disk Warrior is a data-salvage tool, not a maintenance tool, and you will never need it if your backups are adequate. Don’t waste money on it or anything like it.

  • Need  Coding for retriving the data

    Hi ,
       I'm not an ABAPer.. but i need to write some coding in R/3 system..  that is from XI system I'm getting  data  (that is in R/3 system i'm getting inside of one class.. that calss contain  one method.. that method internally contain  sub structures.. for example.. that method contain one Header Structure... that  Header structure contain some 5 fields along with those.. one sub structure also contain.. Again that sub structure (Item level)   contain some 10  fields.. and  and along with that one more sub structure also contain..if you go inside that sub structure that contain some 5 fields...
    now the reqirement is i want to split those fields according to structures( Header level, Item Lvel , Sub Item level) and   iw ant to load this fields into  particular ZTABLES.. by using Move corresponding..
    so, can any one plz give me the coding... how can i define structures inside of the  class... ..
    helpful answers will be highly appriciated..
    Thanks
    Babu

    Hi Babu,
    it is difficult to understand what u realy want. You have to explain yourself better. Just a tip. If you want to define a Structure in a Class, should be done at the Class definition and selection should be done at Class implementation.
    Example:
    Class babu_class definition.
    public section.
    *Structure definition
    types: begin of i_struc.
               include structure vbak.
    types: end of i_struc.
    *Internal tab
    data: int_tab type table of i_struc.
    *protected section
    *your declarations-----
    private section
    methods: babu_meth
    endclass.
    Class babu_class implementation.
    method babu_meth.
    *example
    select * from vbak
    into corresponding fields of table int_tab
    where vbeln =
    endmethod.
    endclass.
    Blacky
    *give point if it helps and i hope I have understood your problem
    Message was edited by:
            BlackMoses

  • Who is responsible for maintaining the Apple Calenders to which I subscribe?

    Apple provide calenders to which I can subscribe, who maintains that Calender information?

    http://www.apple.com/downloads/macosx/calendars/unitedkingdomholidaycalendar.htm l
    This seems to suggest it is provided by Apple and not a third party, or am I missing something?

  • Urgent : Unable to maintain the Number ranges for Excise Groups

    Hi CIN experts............
    In Development server I created 3 excise Groups (E2,E3 and E4), the same I was transported to Production.
    J_1IRG23A1, J_1IRG23A2 object number ranges are Excise Group specific.
    When I go to Tools - Number Ranges to maintain number range for J_1IRG23A1, J_1IRG23A2 objects I didn't find these excise groups.
    Im able to see these Excise groups in Tools - Number ranges in Development server, but not in Production.
    Can any one guide me something to resolving the issue ?
    regards
    Durga Ram

    Hello Nagaraju,
    Can you please tell me the customozing path for maintaining the number ranges for PM log entries.
    I require to mention customizing path in my document.
    Puneet

  • Maintain the entries in /IXOS/DC_TALNTUA table

    Hi,
    I want to modify the entries in /IXOS/DC_TALNTUA table for maintaining the archive mode for a particulat user.
    Is there any transaction/config  to maintian this table in SAP?
    Thanks& Regards
    Manoj  Seth

    Hi Manoj ,
    You can do this by table maintenence SM30.
    You should also confirm  that is their any existing report to do so , As per my understanding there should be as we do not handle these cases by making direct entries in table. Please confirm from your side.

  • Coding for Automatic execution

    in our project we deal with three independent machines namely server,validation server and a client.the job of the validation server is to find the original ip address of the client and the finding operation is carried out secretly by the validation server.we have got the coding for finding the original IP address.but this coding should run automatically once the client receives the message from the validation server.So we require assistance in the form of coding in java to solve this problem.pls reply as early as possible.

    its not like malware. In my project is to find the hacker. a person can spoof another IP address and send messages to others. so in order to find its original IP address we are writing module in my project, where we got code for finding IP address but it run explicitly which is not opt for my project. so we need to run that code in the hidden format for which we describe as the virus performance. Actually we don't need cod for virus.
    Here is my code to find IP address
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    public class IPAdress {
    public static void main(String[] args) {
    try {
    System.out.println(InetAddress.getLocalHost().getHostName());
    System.out.println(InetAddress.getLocalHost().getHostAddress());
    } catch (UnknownHostException e) {
    e.printStackTrace();
    Edited by: Serv on Mar 9, 2009 8:40 AM

  • Maintain the values - Client 'Not Modifiable'

    Hi,
    I have created a table Y1260. It has three fields namely MANDT, WERKS and FLAG.
    I have given Delivery Class = 'C' and Maintainance allowed.
    Under technical settings, Data Class = 'APPL2' and Size category as 0.
    Buffering is set 'OFF'.
    Under Table Maint., Authorization Group is &NC&.
    When I go to SM30 for maintaining the values, it is not allowing me stating that  .. Client 010 has status 'not modifiable'.
    Please help me to solve this issue.
    Thanks in advance.

    Hi,
    You have given deleivery class 'C' which means customizing table, maintenance only by cust., not SAP import..
    Try to change it to 'A'.
    Regards.
    Mudit

  • How to maintain the data  into database table

    Hi,
    experts,
    how to maintain the data  into database table

    There are several ways to maintain data in the database
    1. Use table maintanance generator . You can create this using SE11 and data can be edited through SM30.
    2. Loginto  SE11 with the specified table and check the ATTRIBUTES tab. There you can set some parameters for maintaining the database. When you set Maintain database, you edit the data thorugh SE11 it self
    3. Through Se16 as well.
    4. A small abap program can do the above task as well.
    Thanks,
    Raj
    Edited by: Rajanya Kolavennu on Feb 5, 2008 8:33 PM

  • How maintaining the connection table for sticky/persistent/non-persistent?

    Question about how to maintain the connection table for the source(client) and destination(server) in the CSM(or CSS).
    I know the sticky has the table and max size such as 128K(css11501)as per CCO but not clear how works the persistant and non-persistant case.
    Q1) persistant. does it maintain the conntion table to tracking the session? then, any information the table size?
    Q2) non-persistant. is this also have connection table? then, how it works?
    why I'm asking is want to understand how the session keep tracking. for example, the router based on the routing table(stateless) versus PIX firewall has stateful table. As analogue, is the non-persistnet stateless and statefull for the persistent and sticky?
    Thnaks in advance,

    The CSS uses FCB to maintain information about active connections.
    Each connections requires 2 FCB - one for client to vip and one for server to client.
    When you boot the CSS it will immediately reserver a good amount of memory to create a list of FCB.
    Each connection will then take 2 FCB from the list.
    You can do a 'flow stat' from llama mode to verify how much free/used FCB you have.
    When running low on FCB, the CSS will try to allocate more memory.
    Gilles.

  • How to set/get the values thru Wedbynpro coding for User mapping fields

    Hi All
    In system object we have the user mapping fields like District,city,plant,Salesmanager.
    now we want to set/get the values of these usermapping fields of system object thru webdynpro coding...
    if anybody have sample codes of the same then it would be great help to me
    Thanks in advance
    Thanks
    Trisha Rani

    Hi Kavitha
    Thanks for your reply
    My requirement is exactly as follows.
    1) i have created one portal system object in system administration and also i created usermapping fields in the system object from the usermanagement  in system object.
    i created the user mapping fields like Plant,SalesManager,District etc.
    i also created the system alias name for the same system object
    2)  Now i came to persoanlize link and mapped the system object to the portal user.
    while mapping to the system object we need to enter Mapping userId, Password , once we enter these values and we can also enter the values of usermapping fields which we defined while creating the system object ( for example District,Salesmanager,Plant etc)
    once we enter all the values and click on save then these usermapping  values to be mapped to the portal user.
    3) Now my requirement is , i  want to control the usermapping field values thru webdynpro coding for setting/getting the values.
    I need sample code of the same.
    Please let me know if u need more details on the same.
    Thanks
    Trisha Rani

  • The grace period for the Remote Desktop Session Host server has expired

    <p>I'm running Windows Server 2012, we only have 1 server and it's a DC.  I'm trying to RD to the server from my Windows 7 laptop. It was working fine on Friday but when I came in on Monday I got message saying that 'The remote session was disconnnected
    because there are no Remote Desktop License Servers available to provide a license'
    So after a bit of digging I found out my 'grace period' had expired, so ordered a new license which I got today, installed this all ok but still i cannot connect via RD I get the same message....went into the RD License Diagnoser and it said the problem
    was as follows
    'The grace period for the Remote Desktop Session Host server has expired, but the RD Session Host server has not been configured with any license servers. Connections to the RD Session Host server will be denied unless a license server is configured for
    the RD Session Host server.'
    Suggested Resolution as follows
    Configure a license server for the Remote Desktop Session Host server. If you have an existing license server, specify that license server for the RD Session Host Server. Otherwise, install RD Licensing on a computer on your network and Configure RD Session
    Host Server to use it.'
    I cannot figure out how to do this as I cannot find the RD Session Host Server tool. 
    Can any of you lovely people help me please

    Hello,
    Best option would be to assign the license server by using AD GPO. Youl will need to configure the following:
    Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing
    and define the settings for:
    Use the specified Remote Desktop License Server
    Set the Remote Desktop Licensing mode
    Then assign the policy tho your server.
    regards Robert Maijen

  • Error while maintaining the Update Rules for the Infostructure

    Hi,
    I have added 2 new characteristics for the existing infostructure S9xx and executed the same. While maintaining the Update Rules for the same, system is giving the error message 1. "Field 'PARVW' unknown" and 2. Error generating program RMCX0011.
    Please guide me in resolving the issue.
    Thanks & Regards,
    Kumar.

    Hi,
    This is with reference to my earlier question that an error is occuring while maintaining the update rules for the existing Infostructure.
    Solution provider for this will be rewarded with good points.
    Regards,
    Kumar.

  • How to maintained the Text  language for CKF keyfigure

    Dear All,
    Please let me know how to maintained the text language for CKF I am using only keyfigures in CKF.
    Issue is text is not showing in Spain language when user exeuted the report (longin Spain) for CKF keyfigures .
    As per report design there are formuals and direct keyfigures and CKF has defined and we keep it under in Row struture in the report.
    After exeuted the report (Login Spain)Text has converted in all languages along with spain except for CKF keyfigures.
    Issue in text CKF's:
    There is a main  CKF (Cost) under this again we defined two sub CKF's those are total cost and average cost. We able to see the text in Spain language for Main CKF(cost) and also cheked in RSZELTTXT(Texts of reporting component elements) for the same.
    We can able to see the text in all languages for main CKF(cost) and enteries are there in RSZELTTXT table.
    We can see only  the text in english for  total cost and average cost and also enteris are there only in EN in RSZELTTXT table.
    It would help to me if any one can answer my question.
    Thanks in advance .
    Regards,
    MQ

    U can fetch the texts for the items using
    Read_text.
    Example:
        g_f_tdname = xvttp-vbeln.
        g_f_obj = p_obj.
        g_f_langu = 'DE'.
        REFRESH g_t_lines.
        CLEAR g_t_lines.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id                      = p_var
                  language                = g_f_langu
                  name                    = g_f_tdname
                  object                  = g_f_obj
             TABLES
                  lines                   = g_t_lines
             EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
        IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    The Required fields are,
    Text-id ,language,name,object.
    Let me know if you further require help.
    Regards

Maybe you are looking for

  • IPad keeps freezing and flashing and jumping to other apps

    My Iliad mini is one year old. About 3 months ago it started acting up. It flashes on and off within an app. Sometimes in a game it makes moves for me. I tried updating but I keep getting an error because the update never completes.

  • Listen to touch thru car speakers with 1/8" audio cable

    I had a 1st gen touch that I could connect to my car with a 1/8" audio cable. It allowed me to listen to my touch through my car speakers. I got a 3rd gen 32 GB touch and it doesn't work with the same cable. When I plug it in, the sound comes out of

  • Update JScrollBar Extent when JScrollPane Component Changes Preferred Size

    Hi folks, I have an interesting, but concise problem that I've been working on for a few days but haven't had any luck. In Java 1.5 or Java6, I have a JScrollPane which contains a JPanel. The settings of the scrollbar (for example, the Extent [the wi

  • Changing the time dependent data

    Hi When I am trying to change the Cost center in the Asset Master, I am getting the following error: Fiscal year 2007 is already closed in Financial Accounting. Message no. AA669 Diagnosis You have initiated a recalculation of asset values for fiscal

  • Why can't I download the latest version of iTunes?

    I've tried at least a dozen times to install uninstall reinstall the last eat version of iTunes but nothing seems to work. I didn't uninstall the softwares associated with iTunes properly like it says to and now I can't do anything. someone please he