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

Similar Messages

  • Template Requirements for automatic execution

    I was wondering what the RTF template and Data Template requirements are if you want to schedule or email your reports. In my case, simple reports process just fine but when I start adding advanced tags to the RTF file BIP keeps choking on it unless it is run manually. I was wondering if I am doing something wrong with my templates or if there is lesser capabilities in the send button and scheduling reports verses running them through the web interface. I have really noticed this when using conditionals and groupings in the RTF file. Any thoughts?

    I discovered that the failure happens with using the for-each tag after regrouping. In my case I have a 3 level hierarchy with two regroupings followed by a for-each but I have noticed that none of the reports I have perpaired that contain a regrouping followed by a for-each will burst, schedule, or send via email (though they work fine if you view it online and request it manually through the BIP interface). From what I can see and from testing, I have a hypotheses that no report using a for-each or for-each-group with any kind of tagging but current-group() will burst, schedule, or email from BIP. However, I am fairly new so thats why I was asking to make sure I am not marking it up wrong.
    Here are the tags I found in my testing to cause issues:
    <?for-each-group@section:G_PEOPLE;./PERSEC?>
    <?for-each-group:current-group()/LIST_G_GENERAL_QUESTIONS/G_GENERAL_QUESTIONS;GQ_ID?>
    <?for-each:current-group()/LIST_G_GENERAL_ANSWERS/G_GENERAL_ANSWERS?>
    <?end for-each?>
    <?end for-each-group?>
    <?end for-each-group?>
    The data is currently pulled through a data template with three levels of groupings over 4 queries with around 20,000 records between all four but this amount is expected to grow exponentially.
    We are running on BIP 10.1.3.3.1 Enterprise.
    As for choking, BIP tries to digest the request and throws a Java Exception that shows up under the report status after it returns failed under document processing with:
    oracle.apps.xdo.servlet.scheduler.ProcessingException: oracle.apps.xdo.XDOException
         at oracle.apps.xdo.servlet.scheduler.XDOJob.generateReport(XDOJob.java:896)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:361)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: oracle.apps.xdo.XDOException
         at oracle.apps.xdo.servlet.ReportException.fillInStackTrace(ReportException.java:124)
         at oracle.apps.xdo.servlet.data.DataException.fillInStackTrace(DataException.java:127)
         at java.lang.Throwable.<init>(Throwable.java:181)
         at java.lang.Exception.<init>(Exception.java:29)
         at oracle.apps.xdo.servlet.ReportException.<init>(ReportException.java:40)
         at oracle.apps.xdo.servlet.data.DataException.<init>(DataException.java:44)
         at oracle.apps.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.java:96)
         at oracle.apps.xdo.servlet.CoreProcessor.processScheduledRequest(CoreProcessor.java:409)
         at oracle.apps.xdo.servlet.CoreProcessor.processScheduledRequest(CoreProcessor.java:260)
         at oracle.apps.xdo.servlet.CoreProcessor.generateScheduledDocument(CoreProcessor.java:106)
         at oracle.apps.xdo.servlet.ReportImpl.renderScheduledJob(ReportImpl.java:352)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.generateReport(XDOJob.java:890)
         ... 3 more
    The server admin has looked at the logs but says nothing is ever recorded but he is also new to running BIP so is not sure if he is even looking in the correct log files.
    As far as the CPU, I do not have access to check that but I will attempt to get the Server admin to assist me in doing that and get back with that info.

  • How to schedule a workflow for recurring executions: The solution

    Scheduling a workflow for recurring execution has been long awaited in WFA, perhaps from 2.0 time. The following document shows how to get it done. I've also explained the logic behind it. It’s very simple to use, meets every requirement which one can have from a scheduler and of course highly flexible. Let's go!! The Real stuff. What is this? Is this actually a scheduler? No. This is actually a command in your workflow, but a special 'magical' command. This 'magical' command logic is built using the answers for the following questions: Can a workflow be scheduled for a delayed execution in a future time? Yes, but only one execution instance. If you want the next execution, execute the workflow again providing the same set of inputs and the execution date/time.During workflow execution, can a command inside a workflow get to know what is the  name of the workflow? YesDuring workflow execution, can the command know what is the job execution id? YesIs there any programmatic interface available to know what are the user input provided or a particular job execution? YesCan a command inside a workflow trigger another workflow? Yes.Can a command inside the same workflow trigger itself? Absolutely yes. I've ticked all boxes needed to build such a solution. The solution is to make the workflow a smart workflow, so smart that it can schedule itself for the next execution. It no longer needs any other task scheduler to tigger it. WFA provides a large set of REST APIs for other 3rd part SW integration. But I  also can make  good use of these APIs to make smart workflows. I have always believed that WFA should not only be seen as a framework for automating Storage boxes or server, but just about any task( inside a computer of course) which is done manually. WFA is an awesome product indeed.  So this is a command called "Workflow Scheduler" which  you can put in your workflow as another command. Prerequisites: You need PowerShell 3.0 on your WFA server. I certainly could have done it for PoSH2.0 as well, but life for web interfaces  using PowerShell is so much easier with Posh3.0. Posh3.0 is a big jump from 2.0. WFA is fully supported to work on Posh3.0. Its available by default in Win2012, Win2008 can be upgraded, Win2003 users can't use it. Add credentials of a WFA Admin/Architect in you WFA itself with Name/IP: localhost Match: ExactType: OtherName/IP: localhostUsername: <WFA Admin/Architect Username>Password: <User Password>   3.  Minimum WFA version 2.2. This is only needed for Importing the dar. I've provided the command code in text too. The command code is the real deal. How to use it? If you have a workflow which you want for recurring executions, just add this command "Workflow Scheduler" in it. The command takes parameters for the workflow execution intervals. For example minsInterval for executing this workflow every x minutes, or daysInterval for executing the workflow etc.Now just like a normal workflow execution execute this workflow deciding what is the trigger time. Example: Suppose you want the execution every day at 10:00 PM.So provide daysInterval = 1 And execute the workflow for a delayed execution at 10:00 PM. You can pick the day to start as you wish. The workflow will execute at 10:00 PM and when this execution reaches our magical command "workflow scheduler", this command will trigger the same workflow  with same set of inputs for the next execution at 10:00 PM tomorrow. And so on an so forth. I’ve attached a very simple example workflow here to help you understand. An Example of a workflow scheduled for recurring execution Daily at 11:30 PM starting 10-March-2015     How to stop/suspend this recurring execution? Easy. You just abort the next scheduled job execution in Execution=> Execution Status. The cycle will stop. How to resume it? Easy again. Just resume the same aborted job. The cycle restarts. Can I change the schedule execution time? Yes. After aborting the current execution, you can resume the same workflow at a new time. Execution interval can't be modified as you can't change the command parameters. But the recurring execution now can occur at a new time. Where or which position to place this “workflow scheduler” command in your workflow? At the beginning ? At the end? Or somewhere in the middle. This completely depends on your choice. See some below cases. You don't want the next job execution scheduling to happen if any of the commands in my current workflow execution fails: Put command “workflow scheduler” in the end. It will trigger the schedule of the next job execution only when all real original commands of your workflow have passed. else not.     You want continuous job executions irrespective of the workflow command failures: Put it in the beginning. It will trigger the schedule for next execution before any of the actual command begin executing.     You want an approval before the next execution job is scheduled: Add an approval point before the comamnd.           So it’s all left to you.      Can an operator decide the execution schedule? Yes, but which workflows will be available to him/her for this recurring execution will have to be decided by the designer. This is a good thing to have as it serves for access control in a way. The Architect/Admin can now restrict which workflow can be put for recurring executions. Operators can’t execute just any workflow available to him for automatic recurring execution. And the workflow designer can also choose which scheduling parameter is to be made a variable for the operator. For example the designer want the operator to schedule a given workflow only for weeks Interval and not months or days i.e. he/she can only chose to schedule for weekly, biweekly etc. executions and  nothing else. For this the designer can define a User-Input variable only for weeksInterval parameter. It’s Done. You want workflow execution to be scheduled either for daily or once in 2 days but not any other. You can restrict this. Or he/she wants to give full freedom to the operator make his/her own decision about scheduling, he defined user-input variable for all scheduling parameters. The workflow designer wants weekly schedule but the day should not be a weekday: You can even do this. Is this flexible enough for my requirements? I’ve attached the very command code. You can modify the command as per your requirements. Suppose you want daily execution of a certain workflow at 10:00 PM but skip a day of execution if the day is a Monday. Modify the code check for the day and add another day if it’s a Monday. Its posh code and highly readable. So you can see how this can be used in a  variety of ways. This is the beauty of a programmatic solution. Its highly flexible, it allows users to design solution based on their requirements. Flexibility is the heart & soul of WFA. Thats why I like it. I have a workflow but I don't want to modify it by adding a new command in it. Can I still use this solution? Yes but with WFA 3.0 on wards. WFA3.0 allows to create modular workflows. Create a parent workflow with you actual workflow as a child workflow in it. Add our “workflow scheduler” command too. So now you don't need to touch your existing workflow. I've attached a workflow example here.   Have fun!! sinhaa  

    Providing a new version 1.1.0 of the command "WFA Schedular" Changes made: Added conditional String Representation based on the Scheduling parameter provided. Provided check for the right number of parameters passed into the command.Added a new parameter "Expiry Date" to automatically stop the recurring execution upon expiry.Check for Posh3.0 version in code.Have Fun!! sinhaa Below example for:Schedule a workflow for recurring execution every alternate day i.e. once in 2 days at 10:30 PM starting 06-Jul-2015 (Today's date is 02-Jul-2015) . The recurring workflow execution  should expire on 31-Dec-2015 and stop.  

  • How to run multiple CodedUI Ordered Tests over multiple Test Agents for parallel execution using Test Controller

    we are using VS 2013, I need to run multiple Coded UI Ordered Tests in parallel on different agents.
    My requirement :
    Example:   I have 40 Coded UI Test scripts in single solution/project. i want to run in different OS environments(example 5 OS ).  I have created 5 Ordered tests with the same 40 test cases. 
    I have one Controller machine and 5 test agent machines. Now I want my tests to be distributed in a way that every agent gets 1 Ordered test to execute. 
    Machine_C = Controller (Controls Machine_1,2,3,4,5)
    Machine_1 = Test Agent 1 (Should execute Ordered Test 1 (ex: OS - WIN 7) )
    Machine_2 = Test Agent 2 (Should execute Ordered Test 2 (ex:
    OS - WIN 8) )
    Machine_3 = Test Agent 3 (Should execute Ordered Test 3
    (ex: OS - WIN 2008 server)  )
    Machine_4 = Test Agent 4 (Should execute Ordered Test 4 (ex:
    OS - WIN 2012 server) )
    Machine_5 = Test Agent 5 (Should execute Ordered Test 5 (ex:
    OS - WIN 2003 server) )
    I have changed the  “MinimumTestsPerAgent” app setting value
    as '1' in controller’s configuration file (QTController.exe.config).
    When I run the Ordered tests from the test explorer all Test agent running with each Ordered test and showing the status as running. but with in the 5 Test Agents only 2 Agents executing the test cases remaining all 3 agents not executing the test cases but
    status showing as 'running' still for long time (exp: More then 3 hr) after that all so  its not responding. 
    I need to know how I can configure my controller or how I can tell it to execute these tests in parallel on different test agents. This will help me reducing the script execution time. 
     I am not sure what steps I am missing. 
    It will be of great help if someone can guide me how this can be achieved.
    -- > One more thing Can I Run one Coded UI Ordered Test on One Specific Test Agent?
    ex: Need to run ordered Test 1 in Win 7 OS (Test Agent 1) only.
    Thanks in Advance.

    Hi Divakar,
    Thank you for posting in MSDN forum.
    As far as I know, we cannot specify coded UI ordered test run on specific test agent. And it is mainly that test controller determine which coded UI ordered test assign to which test agent.
    Generally, I know that if we want to run multiple CodedUI Ordered Tests over multiple Test Agents for parallel execution using Test Controller.
    We will need to change the MinimumTestsPerAgent property to 1 in the test controller configuration file (QTControllerConfig.exe.config) as you said.
    And then we will need to change the bucketSize number of tests/number of machines in the test settings.
    For more information about how to set this bucketSize value, please refer the following blog.
    http://blogs.msdn.com/b/aseemb/archive/2010/08/11/how-to-run-automated-tests-on-different-machines-in-parallel.aspx
    You can refer this Jack's suggestion to run your coded UI ordered test in lab Environment or load test.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/661e73da-5a08-4c9b-8e5a-fc08c5962783/run-different-codedui-tests-simultaneously-on-different-test-agents-from-a-single-test-controller?forum=vstest
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 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

  • Pls provide coding for executing 3 reports at one click

    Hi Friends,
        Iam getting one issue ie...  iam having 3 reports so now i want to run all the 3 reports i want to execute one ie.. by clicking Run i want to execute all the three reports at a time and i want to print the o/p in one file on desktop
    So pls provide the coding for this
    Thanks & Regards
    Mohan Reddy

    Hi,
    Run those three reports one by one just for determining time delay between those execution starts.
    Consider delays are 2 Sec and 3 Sec
    i.e 1. between report A and report B,
         2. between report B and report C.
    Now delay execution start of the report A by
    3 Sec using 'WAIT' statement and report B by
    1 Sec using the same statement.
    Try this.
    Regards,
    R.Nagarajan.

  • Mystery box appears and also automatic execution of actions

    I have OS X Yosemite Version 10.10.2
    I downloaded the latest security path on March 10.  Since the download, a box will appear on screen displaying "BACK, RELOAD PAGE, etc.  I have to click on a blank space on the screen to make box disappear or wait until it disappears.  I am also experiencing automatic execution of actions.  For example, cursor is position over a box that I can check  or not check.  A check mark will automatically be entered.  If the cursor is positioned over a Email, it will automatically display the Email with no action on my part.
    I have searched through System Preferences but cannot find any action or do not understand some of the options.
    This is a real pain and need a solution to this problem.  All help will be greatly appreciated.

    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    Try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear and again when you log in. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don’t do them all at once.
    Safe Mode - About
    Safe Mode - Yosemite

  • Creative Zen provokes constant popups of Automatic Execution win

    Hello there,
    Product: ZEN 2GB
    Firmware: .2.0
    Problem: when I dock my Creative player to the computer, either of the following happens, depending:
    1. The "Automatic Execution" window keeps popping up, about every minute, asking me which program to use (one of the mp3 players installed on my machine - Winamp, WMPlayer, etc) to open the content of my Creative player, no matter how many times I choose a program in the list - if I DO NOT check the box specifying to execute the selected action every time;
    2. the selected program constantly keeps coming to the forefront above all other program (the equivalent of a window popping up constantly...) - if I DO check the box specifying to execute the selected action every time (in the previous step).
    You don't know how annoying that is I can understand the repeat execution when you undock the player and then dock it again, but not when you just leave it docked, for recharge, for example !
    "Something" should "get it" when I CANCEL the automatic execution, THE FIRST TIME !! Leave it at that and let me open the Creative player when I choose to do so, when I am good and ready for it, using the Creative Media Explorer, for example.
    ?Thanks !?

    same problem here ... usb connection to PC abort on full battery.
    general problem or a case for the warranty service?

  • Remove Jump Link coding for TOC

    Good Afternoon ~
    I'm trying to figure out how to remove the coding for the
    Jump Links listed on the Table of Contents and replace that with
    Plain text. Can someone please assist?
    Thanks,
    Shannon Encinas

    Hi, Shannon,
    If this is compiled HTML Help (.chm), and you want to stop
    the TOC entries from being underlined when you hover the mouse
    pointer over them, then you should deselect the option to
    "automatically track selection" in the TOC properties dialog box.
    Have I misunderstood your question?
    Pete

  • Functional module for automatic creation of pur requisition & pur order

    hello,
    what is the functional module for automatic creation of puchase requisition and automatic creation of purchase order which we will assign in action box in service order processing management.
    please let me know as early as possible
    regards,
    rajesh kumar raju

    Hi,
             Please check with following.
    IDOC_INPUT_ACC_PURCHASE_REQUI
    IDOC_INPUT_ACC_PURCHASE_ORDER
    /ISDFPS/OR_PURCHASE_ORDER_CR
    BS01_PURCHASE_DOCUMENT_CREATE
    CO_MP_CREATE_PURCHASE_ORDER
    Thanks & Regards
    Sadhu Kishore

  • 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

  • Can you please help me out the Info Cubes info for Budget Execution?????

    Hi,
       Can you please help me out the Info Cubes info for Budget Execution and Cash Management.
    Thanks in advance,
    Andy

    Take the memory card out of the camer and put it in a card reader.  When it mounts on the desktop select it and try to change the name.  However, that might make it incompatible with the camera.  You'll just have to try and see.
    OT

  • Scheduling specific time of day for automatic software updates

    How can one schedule a specific time of day (i.e. between 11:01 pm to 5.59 am when I have unlimited download availability) for an iMac to search for automatic software updates? System preferences only offer frequency, but no time option. If it is possible to schedule a specific time, will invoking the feature override the sleep function, wake up the machine and perform the software update and then let the machine go back to "sleep?" Thank you for all your help.

    to clarify barney's suggestion, the following terminal command will download all available updates and put them in your Downloads folder.
    softwareupdate -d --all
    so what you need to do is this.
    1. turn off automatic software update in software update system preferences.
    2. make a cron or a launch daemon to run the above terminal command periodically at the time of your choosing. to make a launch daemon I recommend using lingon http://tuppis.com/lingon/
    The daemon will only run if the computer is not asleep at the scheduled time so you might want to set to to wake/start shortly before that. this is done in system preferences->energy saver->schedule.
    to install the updates once they are downloaded double-click on the pkg files and follow the instructions.

  • What to do for automatically change over of PHASE from 1 to 2  in case of multilevel method of depreciation.

    Hi all
    As per the statutory requirement we want to maintain Multilevel method of depreciation in which we have maintained two phases given as below-
    Dep/int.
    phase
    base method
    decl. bal method
    prd cont
    mutilev. Method
    change. Me
    change over % rate
    ordinary dep
    1
    ZMR1
    0
    001
    Z02
    2
    0.3
    ordinary dep
    2
    0011
    0
    001
    001
    0
    0
    Because asset need to depreciate upto 70% of its net book value on the basis of SLM percentage base as per phase 1.
    After that it must shift to phase 2 ,where depend upon remaining useful of that asset , balance value of asset need to be spread over.
    But while testing in, it is not automatically shifted to phase 2 directly once asset reaches its 70% (ie.once condition given phase one get exhausted)
    Then pls guide me what to do for automatically change over of PHASE from 1 to 2 ??
    Thanks and regards
    Manjusha  G.

    Hi Manjusha,
    To meet your requirement, you have to mention changeover in T code AFAMA-changeover method "2" and the changeover % 70 and in second line you can give phase 2 changeover within planned life and give your depreciation methods after changeover.
    Refer the sample screenshot.
    Hope it solves..
    Regards,
    G.Sethuraman

  • Define Control for Automatic Creation of Pick HUs

    We are using full blown HU management and in the customizing for the Control for Automatic Creation of Pick HU's you define the packaging materials to use.  The help in from of this customizing says that if this is blank the system attempts to find a common packaging material for all materials in the transfer order. 
    My issue is that when I leave this blank the packaging material that the system proposes is not the packaging material that is contained on the source HU nor is it the packaging material that is contained in the Packing Instructions.
    How does the system determine the packaging material on the destination HU?  Am I required to maintain a value in this customizing?
    Thanks
    Nick

    I found my own answer so i will give myself many points.  See question to get answer.

Maybe you are looking for

  • Adobe pdf resource files not found

    All of a sudden I can't convert MS Office 2007 files to PDF. I get the error message 'unable to find adobe pdf resource files.' The solutions recommended on other forums don't work. I can print to abobe PDF. Using Vista for Business, all service pack

  • Pre-Mac book Pro purchasing quesiton

    Evening. I am looking to purchasing a Mac book Pro for my next 4 years at college. I was wondering if I would be able to set-up the Mac Book Pro so it's display could be used as a monitor. Could I hook up say, an Xbox 360, to the Mac and use the disp

  • HT1725 I have more than one apple id,can't remember ID or password.  Have many downloads incomplete and showing up in light gray in my iTunes unplayable. What to do??

    I have 2-3 apple id's and cannot remember what they are. I have numerous songs that are under these unknown apple id's that are in light gray And are incomplete downloads. ***??

  • Rebate rate

    Hi, Pls tell me use of REBATE RATE field in rebate agreement & in REBATE SETTLEMENT. what is the relation between REBATE RATE & ACCRUAL?

  • QTKit - ProRes Code

    Hi all, Just looking for a bit of advice. I'm looking to output a movie file (using the QTKit) in ProRes format. Using the sample code taken from the QTKit tutorials: <pre> // Set the compression for the audio/video that is recorded to the hard disk.