Problem with Scanner input

I want to take an int as first input and string with spaces as 2nd input via scanner input method... it takes int input and immediatly prints the output
without taking string input.... where is the bug.... here is the code...
import java.util.*;
import java.io.*;
public class Ud2
public static void main(String[] args)
Scanner in=new Scanner(System.in);
int x=in.nextInt();
String s=in.nextLine();
System.out.print("the no is "+x+" and name is "+s);
if the prob is due to new line charcter in the stream then how to remove or
ignore it..?
plzzz help.......................

in.nextLine();Insert the above line after your nextInt call. Why? Because nextInt() does not consume the end of line(EOL) character. So when you call nextLine() you assign the EOL to s

Similar Messages

  • HP officejet 6500 E709n problem with scanner

    Hi
    I buy HP officejet 6500 E709n i have problem with scanner when printer work wireless  (when work USB or cable RJ45 it's ok). When I try scanning windows give me problem "4,[2,7,80040007),(3,7,0)]", I change drivers and still not working. I have Vista and router D'link Di-524. Please help    

    Hi
    I am having problem scaning from printer to desk top.Please help me

  • Problem with the input file format to be stored in database

    Hi,
    I am facing some problem with the input format. I am using the table name as data.employee. But i could not able to process the message forward. I am getting this error,
    com.ibm.db2.jcc.c.SqlException: java.sql.Connection.close() requested while a transaction is in progress on the connection.The transaction remains active, and the connection cannot be closed.
    Can you please help me prposing a solution for this format.
    Thanks,
    SOorya

    I think you are missing out the COMMIT operation.
    At the DB2 end before closing the connection if you do a 'COMMIT' then this may remove your error.
    i.e. after you close the Resultset>close the statement object> perform 'COMMIT' operation--> then close the connection.
    Also refer :-
    http://www.dbforums.com/archive/index.php/t-976407.html
    http://www.dbforums.com/showthread.php?t=1628183
    I hope this will help you.
    Thanks,
    Vijaya

  • Problem with direct input program while uploading data into database

    TABLES:  BGR00,                        " Mappensatz
             BMM00,                        " MM01/MM02  BTCI-Kopfdaten
             BMMH1,                        " MM01/MM02 Hauptdaten
             BMMH2,                        " Länderdaten (Steuern)
             BMMH3,                        " Prognosewerte
             BMMH4,                        " Verbrauchswerte
             BMMH5,                        " Kurztexte
             BMMH6,                        " Mengeneinheiten
             BMMH7,                        " Langtexte
             BMMH8.                        " Referentielle EAN's
           Satztypen
    DATA:    MAPPENSATZ  LIKE BMM00-STYPE VALUE '0',
             KOPFSATZ    LIKE BMM00-STYPE VALUE '1',
             HAUPTSATZ   LIKE BMM00-STYPE VALUE '2',
             KUN_SATZ    LIKE BMM00-STYPE VALUE 'Z',
             LANDSATZ    LIKE BMM00-STYPE VALUE '3',
             PROGSATZ    LIKE BMM00-STYPE VALUE '4',
             VERBSATZ    LIKE BMM00-STYPE VALUE '5',
             KTEXTSATZ   LIKE BMM00-STYPE VALUE '6',
             MESATZ      LIKE BMM00-STYPE VALUE '7',
             TEXTSATZ    LIKE BMM00-STYPE VALUE '8',
             EANSATZ     LIKE BMM00-STYPE VALUE '9'.
    Common Data Bereich fuer die extern aufgerufenen Routinen
           Initialstrukturen
    DATA:  BEGIN OF COMMON PART RMMMBIMY.
    DATA:    BEGIN OF I_BMM00.
               INCLUDE STRUCTURE BMM00.    " Kopfdaten
    DATA:    END OF I_BMM00.
    DATA:    BEGIN OF I_BMMH1.
               INCLUDE STRUCTURE BMMH1.    " Haupdaten
    DATA:    END OF I_BMMH1.
    DATA:    BEGIN OF I_BMMH2.
               INCLUDE STRUCTURE BMMH2.    " Länderdaten
    DATA:    END OF I_BMMH2.
    DATA:    BEGIN OF I_BMMH3.
               INCLUDE STRUCTURE BMMH3.    " Prognosewerte
    DATA:    END OF I_BMMH3.
    DATA:    BEGIN OF I_BMMH4.
               INCLUDE STRUCTURE BMMH4.    " Verbrauchswerte
    DATA:    END OF I_BMMH4.
    DATA:    BEGIN OF I_BMMH5.
               INCLUDE STRUCTURE BMMH5.    " Kurztexte
    DATA:    END OF I_BMMH5.
    DATA:    BEGIN OF I_BMMH6.
               INCLUDE STRUCTURE BMMH6.    " Mengeneinheiten
    DATA:    END OF I_BMMH6.
    DATA:    BEGIN OF I_BMMH7.
               INCLUDE STRUCTURE BMMH7.    " Textzeilen
    DATA:    END OF I_BMMH7.
    DATA:    BEGIN OF I_BMMH8.
               INCLUDE STRUCTURE BMMH8.    " Referentielle EAN's
    DATA:    END OF I_BMMH8.
    DATA:  END OF COMMON PART.
    DATA: WA LIKE TEDATA-DATA.
           Einzelfelder
    DATA:    GROUP_COUNT(6) TYPE C,    " Anzahl Mappen
             TRANS_COUNT(6) TYPE C,    " alte Definition für rmmmbim0
             SATZ_COUNT  LIKE MUEB_REST-TRANC, " Trans.zähler neu
             H_IND_COUNT LIKE MUEB_REST-D_IND, " Index welches Feld zurücks.
             SATZ2_COUNT(6) TYPE C.    " Anz. Sätze je Trans. ohne Kopfsatz
    DATA:    XEOF(1)          TYPE C,  " X=End of File erreicht
             XHAUPTSATZ_EXIST TYPE C,  " X=Hauptsatz zum Kopf exi.
             NODATA(1)        TYPE C.  " kein BI für dieses Feld
    mk/15.08.94:
    DATA:    GROUP_OPEN(1)  TYPE C.             " X=Mappe schon geöffnet
    *eject
           Konstanten
    DATA:    C_NODATA(1)    TYPE C VALUE '/'.   " Default für NODATA
    DATA:    MATNR_ERW     LIKE MARA-MATNR  VALUE '0                 '.
    DATA:    MATNR_ERW_INT LIKE MARA-MATNR.  "internal sight of '0      '
    DATA:    MATNR_LAST    LIKE MARA-MATNR.  "Material number
    mk/11.08.94 2.1H:
    If this flag is initial, the database updates will be done directly
    during background maintenance instead of using a separate update
    task. (no usage of this flag in dialogue mode!)
    DATA: DBUPDATE_VB(1) VALUE ' '.       "note 306628
    data: matsync type mat_sync. "wk/99a no update in dialog if called
    ***INCLUDE ZMUSD070.
    TABLES: MARA,                          "Material Master: General Data
            MARC,                          "Material Master: C Segment
            MARD,                          "Material Master: St Loc/Batch
            MBEW,                          "Material Valuation
            MVKE,                          "Material Master: Sales Data
            MLGN,                          "Material Data per Whse Number
            MLAN,                          "Tax Classification: Material
            T001W,                         "Plants/Branches
            TBICU.
    DATA: BEGIN OF VALUTAB OCCURS 0.
            INCLUDE STRUCTURE RSPARAMS.
    DATA: END OF VALUTAB.
    DATA: BEGIN OF VARTECH.
            INCLUDE STRUCTURE VARID.
    DATA: END OF VARTECH.
    DATA: PARMS LIKE ZXXDCONV.
    DATA: REC_COUNT      TYPE  I,
          REC_COUNT_BAD  TYPE  I,
          ZJOBID         LIKE  TBIZU-JOBID,
          ZJOBCOUNT      LIKE  TBIZU-JOBCOUNT,
          ZMATNR         LIKE  MARA-MATNR,
          ZTEXT(80)      TYPE  C.
    CONSTANTS: LIT_ZERO(18)  TYPE  C            VALUE '000000000000000000',
               LIT_CHAR      TYPE  C            VALUE '_',
               LIT_CREATE    LIKE  BMM00-TCODE  VALUE 'MM01',
               LIT_CHANGE    LIKE  BMM00-TCODE  VALUE 'MM02',
               LIT_CHECK(1)  TYPE  C            VALUE 'X'.
    DATA:  BEGIN OF INP_DATA OCCURS 0,
             MATNR(18)  TYPE C,            " Material code
             UMREN(6)   TYPE C,            " Denominator
             MEINH(3)   TYPE C,            " Alternate UOM
             UMREZ(6)   TYPE C,            " Numerator
           END OF INP_DATA.
    *eject
    SELECTION-SCREEN BEGIN OF BLOCK INOUT WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (13) TEXT-004.
    PARAMETERS:     P_PC        RADIOBUTTON GROUP SRC DEFAULT 'X'.
    SELECTION-SCREEN COMMENT (6) TEXT-005.
    PARAMETERS:     P_UNIX      RADIOBUTTON GROUP SRC.
    SELECTION-SCREEN COMMENT (6) TEXT-006.
    PARAMETERS:     P_DS_TYP    LIKE     ZXXDCONV-DS_TYP
                                   DEFAULT 'ASC'.
    SELECTION-SCREEN END OF LINE.
    *SELECT-OPTIONS: S_PATH      FOR      PARMS-PATH
                                  NO INTERVALS
                                  LOWER CASE.
    PARAMETERS:  P_PATH TYPE RLGRAP-FILENAME.
    PARAMETERS:     P_HDRLIN   LIKE     ZXXDCONV-HDR_LINES
                                   DEFAULT 0,
                    P_JOBNAM   LIKE     TBICU_S-JOBNAME
                                   MEMORY ID BM1,
                    P_DI_EXE    AS       CHECKBOX
                                   DEFAULT  LIT_CHECK,
                    P_MAPPE     LIKE     BGR00-GROUP
                                   DEFAULT  'MRP_UOM_LOAD'
                                   NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK INOUT.
    *eject
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PATH.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           EXPORTING
                PROGRAM_NAME  = SYST-REPID
                DYNPRO_NUMBER = SYST-DYNNR
                FIELD_NAME    = 'P_PATH'
           CHANGING
               FILE_NAME     = S_PATH-LOW
                FILE_NAME     = P_PATH
           EXCEPTIONS
                MASK_TOO_LONG = 1
                OTHERS        = 2.
    AT SELECTION-SCREEN.
    Set up parameter record
      PARMS-UNIX      = P_UNIX.
      PARMS-PC        = P_PC.
      PARMS-DS_TYP    = P_DS_TYP.
      PARMS-JOBNAME   = P_JOBNAM.
      PARMS-MAPPE     = P_MAPPE.
      PARMS-HDR_LINES = P_HDRLIN.
    *eject
           Main Processing Routine                                       *
    START-OF-SELECTION.
    Initialization
      PERFORM 0000_HOUSEKEEPING.
    Initialize transaction data in I_BM00
    PERFORM 0500_INIT_BMM00.
    Process input files
    SORT S_PATH BY SIGN OPTION LOW.
         MOVE S_PATH-LOW TO PARMS-PATH.
          MOVE P_PATH TO PARMS-PATH.
    LOOP AT S_PATH.
       AT NEW LOW.
          CLEAR   INP_DATA.
         REFRESH INP_DATA.
    Read source data into internal table
          PERFORM 1000_GET_SOURCE_DATA TABLES INP_DATA.
    Processs each record in internal table
          ZTEXT    = TEXT-007.
          ZTEXT+13 = PARMS-DS_NAME.
          PERFORM 4000_PROGRESS_INDICATOR USING ZTEXT.
    Initialize transaction data in I_BM00
      PERFORM 0500_INIT_BMM00.
          LOOP AT INP_DATA.
    Reset tables for each record
            BMM00              = I_BMM00.
            BMMH1              = I_BMMH1.
            BMMH6              = I_BMMH6.
    Load structures with data
            MOVE-CORRESPONDING INP_DATA TO BMM00.
            PERFORM 2000_WRITE_OUTPUT USING BMM00.
            MOVE-CORRESPONDING INP_DATA TO BMMH1.
            PERFORM 2000_WRITE_OUTPUT USING BMMH1.
            MOVE-CORRESPONDING INP_DATA TO BMMH6.
            PERFORM 2000_WRITE_OUTPUT USING BMMH6.
            REC_COUNT = REC_COUNT + 1.
          ENDLOOP.
       ENDAT.
    ENDLOOP.
      IF  REC_COUNT GT 0
      AND P_DI_EXE  EQ LIT_CHECK.
        PERFORM 3000_START_DI_JOB.
      ENDIF.
    WRITE: / TEXT-008,
               REC_COUNT.
      PERFORM 9000_END_OF_JOB.
    *eject
    Include containing common routines used by direct input programs
      INCLUDE ZMUSD071.
    *eject
          FORM 0500_INIT_BMM00                                          *
          Initialize I_BMM00 with transaction code and views selected   *
    FORM 0500_INIT_BMM00.
    ***this changes done by samson**
    if not inp_data[] is initial.
    select single matnr from mara INTO ZMATNR where matnr = inp_data-matnr.
    if sy-subrc = 0.
      I_BMM00-TCODE = LIT_CHANGE.
    Basic data
      I_BMM00-XEIK1  = LIT_CHECK.
    else.
      I_BMM00-TCODE = LIT_CREATE.
    Basic data
      I_BMM00-XEIK1 = LIT_CHECK.
    endif.
    endif.
    **this changes above done by samson**
    Transaction code
    I_BMM00-TCODE = LIT_CHANGE.
    Basic data
    I_BMM00-XEIK1  = LIT_CHECK.
    ENDFORM.
    INCLUDE ZMUSD069.
    *eject
          FORM 0000_HOUSEKEEPING                                        *
          Initialization routines                                       *
    FORM 0000_HOUSEKEEPING.
      PERFORM 0010_LDS_NAME.
      PERFORM 0020_DS_NAME.
      PERFORM 0030_OPEN_FILE.
      PERFORM 0040_INIT_STRUCTS.
    ENDFORM.
    *eject
          FORM 0010_LDS_NAME                                            *
          Obtain logical file name from DI job details                  *
    FORM 0010_LDS_NAME.
    Check valid job name
      SELECT SINGLE * FROM  TBICU
                      WHERE JOBNAME EQ PARMS-JOBNAME.
      IF SY-SUBRC EQ 0.
        CALL FUNCTION 'RS_VARIANT_VALUES_TECH_DATA'
             EXPORTING
                  REPORT               = TBICU-REPNAME
                  VARIANT              = TBICU-VARIANT
             IMPORTING
                  TECHN_DATA           = VARTECH
             TABLES
                  VARIANT_VALUES       = VALUTAB
             EXCEPTIONS
                  VARIANT_NON_EXISTENT = 1
                  VARIANT_OBSOLETE     = 2
                  OTHERS               = 3.
        IF SY-SUBRC EQ 0.
          READ TABLE VALUTAB WITH KEY 'LDS_NAME'.
          MOVE VALUTAB-LOW TO PARMS-LDS_NAME.
        ELSE.
          MESSAGE I001 WITH PARMS-JOBNAME.
          MESSAGE A099.
        ENDIF.
      ELSE.
        MESSAGE I000 WITH PARMS-JOBNAME.
        MESSAGE A099.
      ENDIF.
    ENDFORM.
    *eject
          FORM 0040_INIT_STRUCTS                                        *
          Initialize structures for direct input records                *
    FORM 0040_INIT_STRUCTS.
    Start of standard SAP initialization from example program RMMMBIME
    *------- Write session record -
      CLEAR BGR00.
      BGR00-STYPE  = MAPPENSATZ.
      BGR00-GROUP  = PARMS-MAPPE.
      BGR00-NODATA = C_NODATA.
      BGR00-MANDT  = SY-MANDT.
      BGR00-USNAM  = SY-UNAME.
      BGR00-START  = BGR00-NODATA.
      BGR00-XKEEP  = BGR00-NODATA.
      PERFORM 2000_WRITE_OUTPUT USING BGR00.
    *----- Initialize structures -
      NODATA = BGR00-NODATA.
      PERFORM INIT_STRUKTUREN_ERZEUGEN(RMMMBIMI) USING NODATA.
    End of standard SAP initialization from example program RMMMBIME
    ENDFORM.
    *eject.
          FORM 3000_START_DI_JOB                                        *
          Start direct input job                                        *
    FORM 3000_START_DI_JOB.
      ZTEXT = 'Starting '(021).
      ZTEXT+9 = TBICU-JOBNAME.
      PERFORM 4000_PROGRESS_INDICATOR USING ZTEXT.
      CALL FUNCTION 'BI_START_JOB'
           EXPORTING
                JOBID                 = ' '
                JOBTEXT               = TBICU-JOBNAME
                REPNAME               = TBICU-REPNAME
                SERVER                = TBICU-EXECSERVER
                VARIANT               = TBICU-VARIANT
                NEW_JOB               = 'X'
                CONTINUE_JOB          = ' '
                START_IMMEDIATE       = 'X'
                DO_NOT_PRINT          = 'X'
                USERNAME              = SY-UNAME
           IMPORTING
                JOBID                 = ZJOBID
                JOBCOUNT              = ZJOBCOUNT
           EXCEPTIONS
                JOB_OPEN_FAILED       = 1
                JOB_CLOSE_FAILED      = 2
                JOB_SUBMIT_FAILED     = 3
                WRONG_PARAMETERS      = 4
                JOB_DOES_NOT_EXIST    = 5
                WRONG_STARTTIME_GIVEN = 6
                JOB_NOT_RELEASED      = 7
                WRONG_VARIANT         = 8
                NO_AUTHORITY          = 9
                DIALOG_CANCELLED      = 10
                JOB_ALREADY_EXISTS    = 11
                PERIODIC_NOT_ALLOWED  = 12
                ERROR_NUMBER_GET_NEXT = 13
                OTHERS                = 14.
      IF SY-SUBRC EQ 0.
        WRITE: / 'Direct input job'(022), TBICU-JOBNAME, 'started'.
      ELSE.
        WRITE: / 'Direct input failed with return code'(023), SY-SUBRC.
      ENDIF.
    FORM 0020_DS_NAME.
      CALL FUNCTION 'FILE_GET_NAME'
           EXPORTING
                CLIENT           = SY-MANDT
                LOGICAL_FILENAME = PARMS-LDS_NAME
                OPERATING_SYSTEM = SY-OPSYS
           IMPORTING
                FILE_NAME        = PARMS-DS_NAME
           EXCEPTIONS
                FILE_NOT_FOUND   = 1
                OTHERS           = 2.
      IF SY-SUBRC NE 0.
        MESSAGE E002 WITH PARMS-LDS_NAME.
        MESSAGE A099.
      ENDIF.
    ENDFORM.
    *eject
          FORM 0030_OPEN_FILE                                           *
          Open physical file for output                                 *
    FORM 0030_OPEN_FILE.
    OPEN DATASET PARMS-DS_NAME FOR OUTPUT IN TEXT MODE. "thg191105
      OPEN DATASET PARMS-DS_NAME FOR OUTPUT IN TEXT MODE
                                     encoding default. "thg191105
      IF SY-SUBRC NE 0.
        MESSAGE E003 WITH PARMS-DS_NAME.
        MESSAGE A099.
      ENDIF.
    ENDFORM.
    *eject
          FORM 1000_GET_SOURCE_DATA                                     *
          Read source data into internal table                          *
    -->  INP_DATA   " Name of internal table passed as parameter       *
    FORM 1000_GET_SOURCE_DATA TABLES INP_DATA.
      CALL FUNCTION 'Z_FILE_UPLOAD'
           EXPORTING
                UNIX                = PARMS-UNIX
                PC                  = PARMS-PC
                FILETYPE            = PARMS-DS_TYP
                FILENAME            = PARMS-PATH
                HDR_LINES           = PARMS-HDR_LINES
           TABLES
                DATA_TAB            = INP_DATA
           EXCEPTIONS
                CONVERSION_ERROR    = 1
                FILE_OPEN_ERROR     = 2
                FILE_READ_ERROR     = 3
                INVALID_TABLE_WIDTH = 4
                INVALID_TYPE        = 5
                NO_BATCH            = 6
                UNKNOWN_ERROR       = 7
                INVALID_SOURCE      = 8
                OTHERS              = 9.
    ENDFORM.
    *eject
          FORM 2000_WRITE_OUTPUT                                        *
          Write record in standard SAP structure to UNIX file           *
    -->  I_STRUCT   " Name of record passed as parameter               *
    *FORM 2000_WRITE_OUTPUT USING I_STRUCT."SRY28NOV05
    FORM 2000_WRITE_OUTPUT USING I_STRUCT TYPE ANY.      "SRY28NOV05
       TRANSFER I_STRUCT TO PARMS-DS_NAME.
      IF SY-SUBRC NE 0.
        MESSAGE E004 WITH PARMS-DS_NAME.
        MESSAGE A099.
      ENDIF.
    ENDFORM.
    *eject
    *&      Form  2100_WS_DOWNLOAD
          text                                                           *
    -->  p1        text
    <--  p2        text
    FORM 2100_WS_DOWNLOAD TABLES INP_DATA.
    DATA: FILENAME LIKE RLGRAP-FILENAME.   "SRY28NOV05
      DATA: W_FILENAME TYPE STRING.             "SRY28NOV05
      DATA: W_FTYP(10) TYPE C VALUE 'DAT'.      "SRY28NOV05
    MOVE PARMS-DS_NAME TO FILENAME.       "SRY28NOV05
      MOVE PARMS-DS_NAME TO W_FILENAME.      "SRY28NOV05
    *BEGIN OF BLOCK COMMENT BY SRY28NOV05
    CALL FUNCTION 'WS_DOWNLOAD'
          EXPORTING
            BIN_FILESIZE        = ' '
            CODEPAGE            = ' '
               FILENAME            = FILENAME
               FILETYPE            = 'DAT'
            MODE                = ' '
            WK1_N_FORMAT        = ' '
            WK1_N_SIZE          = ' '
            WK1_T_FORMAT        = ' '
            WK1_T_SIZE          = ' '
            COL_SELECT          = ' '
            COL_SELECTMASK      = ' '
       importing
            filelength          =
          TABLES
               DATA_TAB            = INP_DATA
            FIELDNAMES          =
          EXCEPTIONS
               FILE_OPEN_ERROR     = 1
               FILE_WRITE_ERROR    = 2
               INVALID_FILESIZE    = 3
               INVALID_TABLE_WIDTH = 4
               INVALID_TYPE        = 5
               NO_BATCH            = 6
               UNKNOWN_ERROR       = 7
               OTHERS              = 8.
    *END OF BLOCK COMMENT BY SRY28NOV05
    *BEGIN OF BLOCK ADDED BY SRY28NOV05
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                        = W_FILENAME
          FILETYPE                        = W_FTYP
        TABLES
          DATA_TAB                        = INP_DATA
       EXCEPTIONS
         FILE_WRITE_ERROR                = 1
         NO_BATCH                        = 2
         GUI_REFUSE_FILETRANSFER         = 3
         INVALID_TYPE                    = 4
         NO_AUTHORITY                    = 5
         UNKNOWN_ERROR                   = 6
         HEADER_NOT_ALLOWED              = 7
         SEPARATOR_NOT_ALLOWED           = 8
         FILESIZE_NOT_ALLOWED            = 9
         HEADER_TOO_LONG                 = 10
         DP_ERROR_CREATE                 = 11
         DP_ERROR_SEND                   = 12
         DP_ERROR_WRITE                  = 13
         UNKNOWN_DP_ERROR                = 14
         ACCESS_DENIED                   = 15
         DP_OUT_OF_MEMORY                = 16
         DISK_FULL                       = 17
         DP_TIMEOUT                      = 18
         FILE_NOT_FOUND                  = 19
         DATAPROVIDER_EXCEPTION          = 20
         CONTROL_FLUSH_ERROR             = 21
         OTHERS                          = 22.
      IF SY-SUBRC NE 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *END OF BLOCK ADDED BY SRY28NOV05
    ENDFORM.                               " 2100_WS_DOWNLOAD
    *eject
          FORM 4000_PROGRESS_INDICATOR                                  *
          Write progress text to status bar                             *
    -->  TEXT   " Text passed as parameter                             *
    FORM 4000_PROGRESS_INDICATOR USING TEXT.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
           EXPORTING
                PERCENTAGE = 0
                TEXT       = TEXT
           EXCEPTIONS
                OTHERS     = 1.
    ENDFORM.
    *eject.
          FORM 9000_END_OF_JOB                                          *
          Close files on UNIX                                           *
    FORM 9000_END_OF_JOB.
      CLOSE DATASET PARMS-DS_NAME.
    ENDFORM.
    FORM 1000_GET_SOURCE_DATA TABLES INP_DATA.
      CALL FUNCTION 'Z_FILE_UPLOAD'
           EXPORTING
                UNIX                = PARMS-UNIX
                PC                  = PARMS-PC
                FILETYPE            = PARMS-DS_TYP
                FILENAME            = PARMS-PATH
                HDR_LINES           = PARMS-HDR_LINES
           TABLES
                DATA_TAB            = INP_DATA
           EXCEPTIONS
                CONVERSION_ERROR    = 1
                FILE_OPEN_ERROR     = 2
                FILE_READ_ERROR     = 3
                INVALID_TABLE_WIDTH = 4
                INVALID_TYPE        = 5
                NO_BATCH            = 6
                UNKNOWN_ERROR       = 7
                INVALID_SOURCE      = 8
                OTHERS              = 9.
    ENDFORM.
    *eject
          FORM 2000_WRITE_OUTPUT                                        *
          Write record in standard SAP structure to UNIX file           *
    -->  I_STRUCT   " Name of record passed as parameter               *
    *FORM 2000_WRITE_OUTPUT USING I_STRUCT."SRY28NOV05
    FORM 2000_WRITE_OUTPUT USING I_STRUCT TYPE ANY.      "SRY28NOV05
       TRANSFER I_STRUCT TO PARMS-DS_NAME.
      IF SY-SUBRC NE 0.
        MESSAGE E004 WITH PARMS-DS_NAME.
        MESSAGE A099.
      ENDIF.
    ENDFORM.
    *eject
    *&      Form  2100_WS_DOWNLOAD
          text                                                           *
    -->  p1        text
    <--  p2        text
    FORM 2100_WS_DOWNLOAD TABLES INP_DATA.

    Hi,
    Thnaks for your reply, This is my requirement.
    Here my problem is i am trying to upload the data from flatfile which contain materil number, denominator, Actual UOM, Nominator field values.
    Which is the data i need to upload into MM02 and MM01, if material number is new then it has to create the material, if material is already existing it has to update the UOM values.
    here i am getting data into my internal table INP_DATA, from that i am trying to upload the data to database by using job name MRP_MATERIAL_MASTER_DATA_UPLOAD with direct input program RMDATIND.
    when i execute my program i am getting success message all the records writtin from flatfile to application server. and job started message.
    then if i go into sm37 screen there i execute the job it is also giving active message. if i refresh it it is showing job completed message.
    then i look at job log status. there i found that for existing material it is expecting material type, for new material it is giving some gravity error.
    So could u help me in this it will be gr8.
    Thanks & Regards,
    RamNV

  • Problems with gathering input

    Hello everyone!
    i try to write a program that user enter numbers (the amount of numbers are not certain. user decides this) in command line and the program will calculate the average of numbers.
    most things are clear in my mind but there is a problem when user enter number because i don't know how many numbers will user enter.
    can somebody help me?
    thanks already..
    Edited by: 846856 on 23.Mar.2011 15:53

    i will ask for the user enter a negative number at last. i write a program with scanner but after entering a number, user have to press "enter" but i want to do this like;
    java Average 4 5 6 8 7 -1
    I copied program here..
    import java.util.Scanner;
    public class Average{
         public static void main(String args[]){
              Scanner inpt = new Scanner(System.in);
              int a=0, total=0;
              int sayac=0;
                   while(a>=0){
                        total += a;
                        sayac++;
                             System.out.println("enter a number");
                        a = inpt.nextInt();     
                   }//while
                        double avrg = (double)total/sayac;
                        System.out.println("avrg = "+avrg);
         }//main
    }//class

  • Problem with midi input in Mainstage

    Hi all,
    I have a keyboard connected to my mac via USB midi interface.
    When I'm trying to play midi instruments in Garage Band - it works very well, no significant latency and no other problems.
    But in Mainstage the situation with the midi input is different. When I press a key on my keyboard, it plays the sound, then stops responding to other midi commands for about 2-3 seconds. And then after I press another key, it plays it, and stops responding again.
    The "CPU" and "Memory" indicators at the top show a low load.
    All in all, it's just impossible to play a midi instrument in Mainstage.
    As the midi interface is working correctly in GarageBand and doesn't work well in Mainstage, I suspect that it's a Mainstage's software problem. But I haven't found anything like that on the Internet. Any ideas?
    Devices: Macbook Pro 13" (2011), M-Audio MidiSport Uno...
    Thanks!

    I can input Chinese in Firefox, but there are
    problems with the display of characters in input
    fields for searches, etc.
    Can you provide a specific example of a particular search box (url) and exactly what the "problem" is (TC or SC, characters involved, etc)? I would like to try and duplicate it. Perhaps the encoding in View > Text Encoding needs to be adjusted for that page for some reason (though normally that should affect all browsers).
    Since Apple has nothing to do with FireFox, you might want to report the issue to the people responsible for that program (mozilla.org I think), since it may be a bug they can fix.

  • Problem with sound input/output settings

    Hello--
    Last night, my iBook suddenly stopped playing any sounds at all: itunes, CDs, etc, won't play at all. I looked in system preferences/sound, and the computer told me that there are no input or output devices at all. What's more, the sound seems to me on permanent mute, and it won't allow me to change it at all (F4 and F5 functions just show a "mute" sign under the volume bar). Is this a problem with the software, hardware, or what? Thanks in advance for any advice,
    JB Coleman

    here is a set of weird but probable solutions. Good luck
    Solutions

  • Problem with increasing input field length in module pool programming.

    Hi All,
    I have created a screen in which i have used table control wizard. In my table control I have an input field. The problem is, this input filed only takes 23 inputs at a time. I need to make this field unfixed. This is an quantity field. I am not understanding why this is happening. Can anybody plz help me in this regard ?
    Thanks in advance.
    Tripod.

    HI Tripod  ,
    YOu can add  Lines to Table control  .
    Add one button  by name ADD LINES  : give func code 'ADD'
    IN PBO  ...
    if it_mat[] is not initial .
        describe table it_mat lines ln  .
        tab_ctrl-lines = ln .
      endif.
    case sy-ucomm .
    when  'ADD' .
          perform add_lines .
    endcase  .
    form add_lines .
      ln  = ln + 1 .
      clear it_mat .
      append initial line to it_mat .
    endform .
    regards
    deepak.

  • Track audio record , problem with inline input

    Hi Forum !
    I have a Macbookpro with leopard
    I am using logic pro 8
    I cannot record my arrangement, with the input line.
    Garage band does the same thing.
    My sound in the preference is set for input line (not microphone input).
    I can only record with the incorporated microphone.
    any ideas ?
    Thanks
    Jules

    noeqplease wrote:
    No, you can do it, it just takes a little RTFM... that's all...
    julesguertin wrote:
    I guess I have misinterpret my user manual (French version)
    I should had take a English version , the translation is not very good...
    You wouldn't say that noeqplease if you had to deal with the French manual like our friend jules here (and myself for that matter) The French manual is a total joke. It was obviously translated by someone who hasn't the first notion of anything vaguely musical or DAW or sequencer or mixing, or of musical equipment of any kind ! Example : Channel strip translates to "Éléments des bandes de canaux" which, if translated back into English becomes "Elements of bands of canals" - and the whole manual is of the same ilk !!! I kind of wonder if the translations weren't done in an automatic translation programme I don't know if other languages suffer from the same "rubbish" translation - it could be subject of an amusing thread here "Silly excerpts from Logic Pro Manuals" or something

  • COMMUNICATION PROBLEM WITH SCANNER TO COMPUTER OF DESKJET 3050 j610

    WHEN i TRY TO SCAN USING MY DESKJET 3050 j610 A MESSAGE SHOWS 'COMMUNICATION  PROBLEM NOT CONNECTED THEREFORE i AM NOT ABLE TO SCAN.
     i HAVE BEEN TRYING TO RESOLVE THIS PROBLEM OVER 8 HOURS AND I' M GETTING SICK. I'VE TRIED EVERYTHING AVAILABLE ON THE SUPPORT PROGRAMS INCLUDING 'PAINT' AND NOTHING WORKS.
     I NEED A ANSWER OR I;LL THROW THIS THING OUT

    I have the same problem here, i have two PC's both running Windows 7 but only one works printing and scanning wirelessly.
    On the PC running Windows 7 32bit wireless printing and scanning works great.
    On the PC running windows 7 64bit only wireless printing works. Havent found a solution, but just a work around. Here it is......
    1. Got to you printer and hit the Wireless button to find the IP address your router gave it.
    2. Open up your Internet browser and input the IP address.
    and...BAM!!!       if it worked it should take you to the Deskjet 3050 All-in-One J610a Embedded Web Server page and from there you can scan with what looks like all the original options if the thing was working to begin with and save to your PC.

  • Problem with Zhuyin input in Mountain Lion

    Zhuyin input from Lion to Mountain Lion is uncomfortably differently. If you type a wrong word by mistake the dictionary would remember the wrong word and you could not override the auto-fix by typing the right word like in Lion. For example, if I type AB instead of AA (assuming both A and B are Chinese characters), then the Zhuyin system remembers AB indefinitely, unlike in Lion I could just type AA a few times and it would become the primary choice/fix for dictionary. Can anyone verse with Zhuyin help me on this matter?

    Actually, the new Zhuyin input in Mountain Lion is totally broken to me. Not only the behavior that you point out, but more importantly (at least for me) is that you MUST type tones to find the proper character, and if you ever make a mistake in a chain, you have to start again from scratch. You cannot type "toneless" chains anymore, like "ㄨㄟㄕㄣㄇㄜ", this is just stupid. I've learned by ear, and like many Taiwanese (though I'm not one ^^), I don't know exactly which tone to type. I've read somewhere that the new pinyin input in Mountain Lion had the opposite behavior : tones are ignored (or something like that).
    I've already sent Apple a report through their feedback form, the day after Mountain Lion's release. 10.8.1 is out, nothing has changed at all. So I've sent them another report.
    I don't know what's wrong with Apple there, I don't get why they had to break a perfectly working input.
    If you're experiencing a problem, please send them a report here : http://www.apple.com/feedback/macosx.html
    It seems like it's the only way to make things move, and if I'm alone, they'd probably not listen to me ^^

  • Problem with multiple inputs / sequential shaders in flash

    Hi,
    I'm working with pixelbender for the first time and having a little difficulty understanding a couple of things.
    The project is a little flash game with pixel art spaceships, and I've embedded a couple of pixelbender shaders into the swf. I'm writing an editor where you draw an rgba image, the editor infers a greyscale heightmap (at the moment this is done in flash with a blur handcoded using getPixel/setPixel) I use that height map as the source image to make a normal map via a pixel bender shader, I then have another pixelbender shader waiting to take the rgba image and the normal map as two inputs, add a few parameters, with the expected result of a nicely lit sprite output.
    The first problem is accessing the result of the normal map shader to pipe it into the lighting shader. The normal map displays perfectly on screen, but my normalMap.bitmapData still contains the unmodified height map image, how do I get at the post-filter image data to send it to the next shader?
    The second problem is a bit trickier.. I first thought it was just a minor bug in the pixel bender toolkit, compiling for flash when using multiple source images has an issue where only one source image is scaled. I thought the problem would go away eventually because I am using two identically sized bitmaps for source. However, now that it is in a swf, the output is inside a sprite, and this parent sprite has scale and rotation applied to it. The shader output shows one scaled and rotating image mixed with an unscaled, unrotating image in the top left corner. Even if I make a new sprite, and apply the filter before applying the scale / rotation, the effect persists. This does not seem to effect shaders with a single source - they can be scaled and rotated freely. Is there any solution for this short of ditching the two input shader altogether?
    I'm hoping i've missed something simple, but any help at all would be appreciated, thanks.

    Sorry for the double post, after a bit of further experimenting I've swapped the order of the two source bitmap parameters, the result is now spectacularly wrong when running as flash within pixelbender, but still fine as GPU or CPU... if someone could tell me exactly why this is breaking it would help a lot with my other problems:
    <languageVersion : 1.0;>
    kernel dotLight
    <namespace : "com.bludgin"; vendor : "Bludgin"; version : 1; description : "vector based directional lighting";>
    input image4 rgbmap;
    input image4 nmlmap;
    output pixel4 dst;
    parameter float ang< minValue:0.0; maxValue:6.283; defaultValue: 0.0;>;
    parameter float3 lgt1 <minValue: float3(0.0, 0.0, 0.0); maxValue: float3(5.0, 5.0, 5.0); defaultValue:float3(1.0, 1.0, 1.0); >;
    parameter float elev<minValue:-2.0; maxValue:2.0; defaultValue:0.5;>;
    parameter float spread<minValue:-1.0; maxValue:5.0; defaultValue:1.0;>;
    parameter float amb<minValue:-0.0; maxValue:1.0; defaultValue:0.2;>;
    parameter float clip<minValue:-1.0; maxValue:1.0; defaultValue:0.0;>;
    void evaluatePixel() {
    dst = sampleNearest(nmlmap,outCoord())-0.5;
    pixel4 col = sampleNearest(rgbmap,outCoord());
    float4 light = float4(cos(ang), sin(ang),elev,spread);
    float dp = dot(normalize(light),normalize(dst));
    dp = max(dp,clip);
    dst = float4(  col.r*amb + col.r*dp*lgt1.r,
                    col.g*amb + col.g*dp*lgt1.g,
                    col.b*amb + col.b*dp*lgt1.b,
                    col.a);
    a couple of test images to try with it:
    http://evilbastard.org/slight/shipTestNormal.png
    http://evilbastard.org/slight/shipTestRGB.png

  • Problems with Mapping Input Parameter

    Hi everybody,
    just another question. I have a Mapping with an Mapping Input Parameter. If i provide a Parameter with an prefixed 0 e.g.: 01234 the output of this is 1234.
    How can i manage this that the output of the Input Parameter ist 01234 and not like now 1234?
    Many thanks in advance.
    Greetings

    The Mapping Input Parameter is of type varchar2 and it still gives 1234. The Problem is i have to provide the whole input parameter for logging proposes. I managed this now by building a workflow an provide the mapping input parameters to new variables. Now the Input 01234 gives 01234....:-)
    Does anybody know another solution for this problem?
    Greetings

  • Score staff problems with keyboard input

    Hi. I am trying to input midi keyboard notes, in real time, into Logic Pro. This works fine. However, I'd also like to create a reasonable, normal score from those notes. The problem is that the notes are divided between the bass and treble clefs. This isn't at all readable when, for example, a chord played with the right hand is say, an A minor chord with the C note being middle C. The 3 notes should all appear in the treble clef.
    When I try to move the note from the bass clef to the treble clef, I get messages that I need poly voicing and when I follow the help files to add another voice, I get a new clef. The only way I've been able to figure out how to do this is to record the left hand and right hand parts in different tracks, separately, which is quite cumbersome.
    This ought to be easy! What am I missing?

    i have to say i have created extremely complex and sophisticated concert music scores using logic. it can be done despite a myriad of problems and bugs. it's great advantage is flexibility and speed, there is nothing wrong with what it should be able to do, it just trips you up at the very last hurdle - hugely frustrating because it gets you there well ahead of the game.
    i can tell you through the grapevine that improvements and upgrading are on the way for the score editor. it is very useful to have the likes of all the people on this thread posting because score users are under represented on the forum. logic developers don't realize how many of its users depend on its score features, because most of us don't post.
    now some important tips:
    - you can set a default score style in the arrange window in the paramters box when you click on a midi instrument track. that means whenever you create a midi region it will be in that score style.
    - being able to select score styles for different regions is a good thing!!!! this way you can speed up your work flow incredibly - way way faster than sibelius or finale.
    Rests have to be written instead of automatically appearing.
    rubbish! you can set the rests to appear automatically. use differing score styles.
    I wanted to say that I am hugely disappointed with apple's neglect of the score windo
    now there i am with you brother.
    if you want to see what can be achieved using score in logic, even in the state it's in you can have a look at a sample of my violin concerto i have at my website:
    http://www.stevenson.homechoice.co.uk/pdfscores/devil.pdf

  • Problems with Line input

    Maybe somebody can help...
    I'm sending audio signal to the input of my macbook pro...I see the input in the sound section of my system preferences..but hear nothing from headphones or speakers...nothing is muted and all off the input & output adjustments are at about 75%.
    Speakers & headphones work fine when playing audio content from within the macbook..
    I did this all the time with my old g4...no problem.....what am I missing ?
    Thanks !

    i'm having exactly the same problem.
    i can see the input level on the input section of system preferences, but cannot hear it.
    furthermore: i'm also trying to record said input in Logic Pro 8, but anytime i monitor "input 1-2" i get horrible feedback from the internal speaker, even though i've changed the input source to line in.

Maybe you are looking for

  • Associative  array binding - poor performance

    Dear All i have very very low performence when i am inserting a binary array using associative array bind. i mean when i insert huge jagged binary array. the jagged array has BinarryArray[0][0]........BinarryArray[0][8000] BinarryArray[1][0]........B

  • Can I separate the pages of one PDF file into separate files

    Is there a quick way to separate the pages of a PDF? For example, I want to take a 10 page PDF, separate the pages and save them as 10 separate files. I know I can go through and extract each page, but I need to do this with multiple documents that c

  • Error Occured in __XML_SEQUENTIAL_LOADER

    Hi, I'm re-populating a cube using a procedure that has been working fine for some years when all of a sudden I run into this error: ***Error Occured in __XML_SEQUENTIAL_LOADER: In __XML_UNIT_LOADER: In __XML_LOAD_MEAS_CC_PRT_ITEM: In ___XML_LOAD_TEM

  • Smartforms: logo to PDF

    We need to include our company logo in a PDF. The PDF is generated by FM CONVERT_OTF from Smartforms OTF output. Problem: The printed PDF has a nasty gray background in the white portions of the logo. Output directly from SAP looks fine both on scree

  • How to reduce the Promt size of HideShow Header

    I want to reduce the size of the prompt size of hideshow header, if any one can tell me the style sheet used for this region, i will try to customize it. Thanks Babu