Program to upload stock count data file through MI09

Hi guys!
I have a situation where currently the users will create SAP physical inventory document, enter count to their external system then mapped it back to SAP physical inventory document.
Then now they want to have a new program to upload the count from their external system into SAP.  Uploading to include auto creation  of product location and batch if it do not exist in SAP based on informations  on the upload files. How can i do that?  Should i use LSMW or develop an abap program? Does anyone know this? Please help me.
Thanks,
Crystal.

Hi guys!
I have a situation where currently the users will create SAP physical inventory document, enter count to their external system then mapped it back to SAP physical inventory document.
Then now they want to have a new program to upload the count from their external system into SAP.  Uploading to include auto creation  of product location and batch if it do not exist in SAP based on informations  on the upload files. How can i do that?  Should i use LSMW or develop an abap program? Does anyone know this? Please help me.
Thanks,
Crystal.

Similar Messages

  • I have a Mac computer and am trying to use a Photoshop CS4 program, but after accessing my desktop files through Adobe Bridge and clicking twice on any of the pictures to get into Photoshop,  instead of entering photoshop I get an enlarged version of the

    I have a Mac computer and am trying to use a Photoshop CS4 program, but after accessing my desktop files through Adobe Bridge and clicking twice on any of the pictures to get into Photoshop, instead of entering photoshop, I get on the lefthand side an enlarged version of the picture with red, yellow and green buttons on top. Any suggestions on what is wrong, or what can be corrected ?

    And there is the problem. Your pictures are opening up in Mac's own Preview app.
    Do you want all your jpegs to open in Photoshop, or only when you are in Bridge?
    Selecting a program to open a certain file is called: File Type Association.
    You can choose this at the MacOS level or the Bridge level.
    Here's how to do both:
    Either MacOS or Bridge has the wrong app associated with the jpeg. Let's start with MacOS
    Close Bridge and Preview. Select one of your jpegs, and press Cmd i, That will bring up the file info window.
    Go down to the "Open with" section of File Info.
    Choose Photoshop CS4 and click on the Change All... button to apply this choice to every jpeg on your Mac.
    Then open Bridge and see if double-clicking opens it in Photoshop.
    Now that means all jpegs on your Mac will open in Photoshop.  Maybe you don't want that.
    You can set your jpegs to open in Preview when Bridge is closed.
    When you open Bridge, there is Preferences > File Type Associations where you can direct Bridge to open the jpegs in Photoshop when you are viewing in Bridge.

  • Any Standard Program to upload the financial data

    Hi Team,
                 Any standard program which will upload the financial data(trail balance) into sap fi.
    The scenario is  that there are few company codes which is not in sap and we need to upload their financial data in sap like trail balance, I need to upload this company code data in sap fi, please suggest some standard program which uploads this data.
    Thanks in advance
    Kind Regards
    sridhar

    Hi,
    Standard programs are there, but those dont fit to your requirement.
    e.g. Based on the account type(D, K, S) there are different different fields should be filled up.
    If it is Vendor invoice, you have to capture Inv.no., text, leacy subledger number if required.
    All these fields are not required for GL data upload.
    Better create 3 LSMW'S for GL, Vedor & Customers.
    Rgds
    Murali. N

  • How do I skip footer records in Data file through control file of sql*loade

    hi,
    I am using sql*loader to load data from data file and i have written control file for it. How do i skip last '5' records of data file or the footer records to be skiped to read.
    For first '5' records to be skiped we can use "skip" to achieve it but how do i acheive for last '5' records.
    2)
    Can I mention two data files in one control file if so what is the syntax(like we give INFILE Where we mention the path of data file can i mention two data file in same control file)
    3)
    If i have datafile with variable length (ie 1st record with 200 charcter, 2nd with 150 character and 3rd with 180 character) then how do i load data into table, i mean what will be the syntax for it in control file.
    4)if i want to insert sysdate into table through control file how do i do it.
    5) If i have variable length records in data file and i have first name then white space between then and then last name, how do i insert this value which includes first name and last name into single column of the table.( i mean how do you handle the white space in between first name and last name in data file)
    Thanks in advance
    ram

    You should read the documentation about SQL*Loader.

  • Best strategy to upload a big data file and then to insert in db the content

    Hi,
    Here's our requirement. We have a web business application developed on JSF 1.2, JE66, WebLogic for application server, and Oracle for the data back end tier. We need to upload big data files (80 to 100 Mb) from a web page, and persist the content in database tables.
    What's the best way in terms of performance to implement this use case ? Once the file is uploaded on server a command button is available on the web page  to trigger a JSF controller action in order to save data in database.
    Actually we plan to keep in memory the content of the http request, and call insert line on each line of the file. But i think it's bad and not scalable.
    Is is better to write the file on server's disk and then use multiple threads to send the lines to the database ? How to use multi threading in a JSF managed bean ?
    Thanks

    In addition, LoadFromFile is overloaded to handle both BLOB and CLOB:
    PROCEDURE LOADFROMFILE
    Argument Name                  Type                    In/Out Default?
    DEST_LOB                       BLOB                    IN/OUT
    SRC_LOB                        BINARY FILE LOB         IN
    AMOUNT                         NUMBER(38)              IN
    DEST_OFFSET                    NUMBER(38)              IN     DEFAULT
    SRC_OFFSET                     NUMBER(38)              IN     DEFAULT
    <BR>
    PROCEDURE LOADFROMFILE
    Argument Name                  Type                    In/Out Default?
    DEST_LOB                       CLOB                    IN/OUT
    SRC_LOB                        BINARY FILE LOB         IN
    AMOUNT                         NUMBER(38)              IN
    DEST_OFFSET                    NUMBER(38)              IN     DEFAULT
    SRC_OFFSET                     NUMBER(38)              IN     DEFAULT

  • Problem generating XML data file through XSD

    Hello there,
    I'm trying to generate an XML data file as per the below steps:
    Making a normal schema in query transform.
    Mapping desired source column into query schema.
    Right click on query transform and generating XML schema (XSD) in my local system.
    In object library XML file format adding the XSD with schema as a root element.
    Creating target instance from object library XML file.
    In target file specifying file creation path in my local system. 
    After performing above steps and executing the job getting below error.
    Any help on this will be much appreciated.
    Regards,
    Jagari

    I found some code looking at a similar issue - I don't know how to recover other data (in I guess) the rest of the HTML in the code. I need to find a better reference with details and examples.
    I fixed it by changing:
        ssDebug.trace(moreStuff.xliff.file.body.trans-unit); // - error
    to:
       ssDebug.trace(moreStuff.file.body['trans-unit']); //- no error
    with expected output (no error):
    <trans-unit id="001" resname="IDS_ZXP7_JAM_01">
      <source>If, while you are printing, your printer stops, ...</source>
    </trans-unit>
    <trans-unit id="002" resname="IDS_ZXP7_JAM_02">
      <source>look at the Operator Control Panel (OCP) for the fault description.</source>
    </trans-unit>
    <trans-unit id="003" resname="IDS_ZXP7_JAM_03">
      <source>If the fault is a card jam, open and close the Print Cover (or Options Cover).</source>
    </trans-unit>
    <trans-unit id="004" resname="IDS_ZXP7_JAM_04">
      <source>The printer will initialize and move the jammed card to the Reject Bin.</source>
    </trans-unit>
    <trans-unit id="005" resname="IDS_ZXP7_JAM_TITLE">
      <source>Card Jam</source>
    </trans-unit>

  • Program for uploading the PO data of known vendor in MM using the flat file

    hi friends,
                    I got problem while uploading PO data for a vendor.what are the possible ways of uploading data.
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Jan 11, 2011 11:37 AM

    hi friends,
                    I got problem while uploading PO data for a vendor.what are the possible ways of uploading data.
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Jan 11, 2011 11:37 AM

  • Digital counter data is not written into a file

    Hello
    I'm a beginner with labview and I'm trying to make a measurement program for my setup (sensor data -> file). I have the USB-6008 and I'm trying to save data from  a digital counter and 3 analog ports. The counter is for RPM and the number of revolutions. Analog is used for force, potential voltage and temperature. Currently data from the analog ports is written to a file normally but all the data from the digital side is lost. So in the measurement text file columns for the digital data are empty.
    The DAQ assist for the counter is set "on demand" but the analog DAQ assist has a sampling rate of 1k (continous). My problem propably comes from the different sampling rates. I could set analog sampling to "on demand" but I need the 1k rate for the measurements. Also making two different measurements files works but it's very inconvinient.
    Am I right about the sampling rate and how would I fix this?
    Attachments:
    measurements.vi ‏144 KB

    Think Data Flow.  For a Loop to "loop", everything inside the loop must execute.  Furthermore, since your loop starts with "Acquire one sample" and ends with "write one sample", the time for the loop to execute will be the sum of the times to sample (1 msec) + write (??).
    Take advantage of the fact that LabVIEW in inherently parallel.  Instead of taking one sample/loop, take (say) 1000, but do not write them in the same loop.  Instead, "export" them to a parallel loop (via a Queue) so that when the 1000 samples arrive, they are written all at once.  While it is true that to acquire 1000 samples at 1KHz will take 1 second, most of that time will be spent "waiting" for the next sample to be taken (it takes almost no time to put a point on a Queue).  Similarly, if I have a whole second to write 1000 points to a file, that's more than enough time.
    Separating "serial" tasks into parallel streams is a common LabVIEW Design Pattern called the Producer/Consumer pattern.  There are numerous examples of this pattern, including a template that will write the basics of the code for you (open the File menu, choose "New...", From Template, Frameworks, Design Patterns, Producer/Consumer Design Pattern (Data)).  A slightly more sophisticated example can be found by starting LabVIEW, New Project, Continuous Measurement and Logging. 
    Bob Schor

  • Upload HR master data Parmanent Address & home address  by a BDC Program.

    Hi exparts,
    I writte a BDC program to upload HR master data for tcode PA30.
    But I can upload parmanet address with this program.
    I want to upload parmanent address then home address .
    Can anybody help , how can I upload  Parmanent Address & home address   by a single BDC program.
    Thanks
    Edited by: Abu Rayhan on Jun 2, 2011 1:01 PM

    report ZHR_SMP
           no standard page heading line-size 255.
    Internal Table TYPE Declaration for keeping Legacy Data
    TYPES: BEGIN OF TW_MAIN,
            PERNR LIKE RP50G-PERNR,
            BEGDA LIKE P0006-BEGDA,
            ANSSA LIKE P0006-ANSSA,
            STRAS LIKE P0006-STRAS,
            ORT01 LIKE P0006-ORT01,
            STATE LIKE P0006-STATE,
            PSTLZ LIKE P0006-PSTLZ,
            LAND1 LIKE P0006-LAND1,
            END OF TW_MAIN,
           TT_MAIN TYPE STANDARD TABLE OF TW_MAIN.
    DATA : WA_MAIN TYPE TW_MAIN,
           IT_MAIN TYPE TT_MAIN,
           WA_ITEM TYPE TW_MAIN,
           IT_ITEM TYPE TT_MAIN,
           WA_BDCDATA TYPE BDCDATA,
           IT_BDCDATA TYPE STANDARD TABLE OF BDCDATA,
           WA_BDCMSGCOLL TYPE BDCMSGCOLL,
           IT_BDCMSGCOLL TYPE STANDARD TABLE OF BDCMSGCOLL.
    Internal table for enable Required options using Call transaction & Session Method.
    DATA: it_intern TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    DATA ls_ctu_params TYPE ctu_params.
    DATA : U_MODE(1),
           U_UPDT(1),
           FNAM(30),
           STR TYPE STRING.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-001.
    PARAMETERS p_fname TYPE localfile OBLIGATORY.
    PARAMETERS: p_begcol TYPE i DEFAULT 1,
                p_begrow TYPE i DEFAULT 2,
                p_endcol TYPE i DEFAULT 20,
                p_endrow TYPE i DEFAULT 1600.
    SELECTION-SCREEN END OF BLOCK bk1.
    SELECTION-SCREEN : BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN : BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS : P_FIRST RADIOBUTTON GROUP RB  DEFAULT 'X',
                 P_SECOND RADIOBUTTON GROUP RB,
                 P_THIRD RADIOBUTTON GROUP RB.
    SELECTION-SCREEN : END OF BLOCK B2.
    SELECTION-SCREEN : BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-003.
    PARAMETERS : P_SYN RADIOBUTTON GROUP RB1,
                 P_ASYN RADIOBUTTON GROUP RB1   DEFAULT 'X'.
    SELECTION-SCREEN : END OF BLOCK B3.
    SELECTION-SCREEN : END OF BLOCK B4.
    Initialize the work are and internal table body
    INITIALIZATION.
      PERFORM INTIALIZE_ITAB.
    *Get F4 help based on which file need to selected
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
      PERFORM GETFILENAME.
    START-OF-SELECTION.
    Upload the file from Excel to Internal Table
      PERFORM FILE_UPLOAD.
    Selection Method for Foreground or background or call transactio or session method.
      PERFORM SCREEN_FLAG.
    Uploading the data from Legacy Sytem to SAP.
      PERFORM BDC_TRANSACTION.
    END-OF-SELECTION.
    *&      Form  BDC_TRANSACTION
          text
    -->  p1        text
    <--  p2        text
    FORM BDC_TRANSACTION.
      IT_ITEM = IT_MAIN.
      PERFORM CALL_TRANSACTION.
    ENDFORM.                    " BDC_TRANSACTION
    *&      Form  CALL_TRANSACTION
          text
    -->  p1        text
    <--  p2        text
    FORM CALL_TRANSACTION .
      LOOP AT IT_MAIN INTO WA_MAIN.
        CLEAR WA_BDCDATA.
        REFRESH IT_BDCDATA.
        perform bdc_dynpro      using 'SAPMP50A' '1300'.
        perform bdc_field       using 'BDC_OKCODE' '/00'.
        perform bdc_field       using 'RP50G-PERNR' WA_MAIN-PERNR.
        perform bdc_field       using 'RP50G-TIMR6' 'X'.
        perform bdc_field       using 'BDC_CURSOR' 'RP50G-CHOIC'.
        perform bdc_field       using 'RP50G-CHOIC' '0006'.
        perform bdc_dynpro      using 'SAPMP50A' '1300'.
        perform bdc_field       using 'BDC_OKCODE' '=INS'.
        perform bdc_field       using 'BDC_CURSOR' 'RP50G-PERNR'.
        perform bdc_field       using 'RP50G-PERNR' WA_MAIN-PERNR.
        perform bdc_field       using 'RP50G-TIMR6' 'X'.
        perform bdc_field       using 'RP50G-CHOIC' 'Addresses'.
        perform bdc_dynpro      using 'SAPMSSY0' '0120'.
        perform bdc_field       using 'BDC_CURSOR' '04/03'.
        perform bdc_field       using 'BDC_OKCODE' '=ENTR'.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-PSTLZ'.
        perform bdc_field       using 'BDC_OKCODE' '/00'.
        perform bdc_field       using 'P0006-BEGDA' WA_MAIN-BEGDA.
        perform bdc_field       using 'P0006-ENDDA' '12-31-9999'.
        perform bdc_field       using 'P0006-ANSSA' WA_MAIN-ANSSA.
        perform bdc_field       using 'P0006-STRAS' WA_MAIN-STRAS.
        perform bdc_field       using 'P0006-ORT01' WA_MAIN-ORT01.
        perform bdc_field       using 'P0006-STATE' WA_MAIN-STATE.
        perform bdc_field       using 'P0006-PSTLZ' WA_MAIN-PSTLZ.
        perform bdc_field       using 'P0006-LAND1' WA_MAIN-LAND1.
        perform bdc_dynpro      using 'SAPLSBAL_DISPLAY' '0200'.
        perform bdc_field       using 'BDC_OKCODE' '=&ONT'.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-STATE'.
        perform bdc_field       using 'BDC_OKCODE'  '/00'.
        perform bdc_field       using 'P0006-BEGDA' WA_MAIN-BEGDA.
        perform bdc_field       using 'P0006-ENDDA' '12-31-9999'.
        perform bdc_field       using 'P0006-ANSSA' WA_MAIN-ANSSA.
        perform bdc_field       using 'P0006-STRAS' WA_MAIN-STRAS.
        perform bdc_field       using 'P0006-ORT01' WA_MAIN-ORT01.
        perform bdc_field       using 'P0006-STATE' WA_MAIN-STATE.
        perform bdc_field       using 'P0006-PSTLZ' WA_MAIN-PSTLZ.
        perform bdc_field       using 'P0006-LAND1' WA_MAIN-LAND1.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_OKCODE' '/EBCK'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-BEGDA'.
        perform bdc_dynpro      using 'SAPLSPO1' '0200'.
        perform bdc_field       using 'BDC_OKCODE' '=YES'.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-PSTLZ'.
        perform bdc_field       using 'BDC_OKCODE'  '/00'.
        perform bdc_field       using 'P0006-BEGDA' WA_MAIN-BEGDA.
        perform bdc_field       using 'P0006-ENDDA' '12-31-9999'.
        perform bdc_field       using 'P0006-ANSSA' WA_MAIN-ANSSA.
        perform bdc_field       using 'P0006-STRAS' WA_MAIN-STRAS.
        perform bdc_field       using 'P0006-ORT01' WA_MAIN-ORT01.
        perform bdc_field       using 'P0006-STATE' WA_MAIN-STATE.
        perform bdc_field       using 'P0006-PSTLZ' WA_MAIN-PSTLZ.
        perform bdc_field       using 'P0006-LAND1' WA_MAIN-LAND1.
        perform bdc_dynpro      using 'SAPLSBAL_DISPLAY' '0200'.
        perform bdc_field       using 'BDC_OKCODE' '=&ONT'.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-PSTLZ'.
        perform bdc_field       using 'BDC_OKCODE'  '/00'.
        perform bdc_field       using 'P0006-BEGDA' WA_MAIN-BEGDA.
        perform bdc_field       using 'P0006-ENDDA' '12-31-9999'.
        perform bdc_field       using 'P0006-ANSSA' WA_MAIN-ANSSA.
        perform bdc_field       using 'P0006-STRAS' WA_MAIN-STRAS.
        perform bdc_field       using 'P0006-ORT01' WA_MAIN-ORT01.
        perform bdc_field       using 'P0006-STATE' WA_MAIN-STATE.
        perform bdc_field       using 'P0006-PSTLZ' WA_MAIN-PSTLZ.
        perform bdc_field       using 'P0006-LAND1' WA_MAIN-LAND1.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-BEGDA'.
        perform bdc_field       using 'BDC_OKCODE' '=UPD'.
        perform bdc_field       using 'P0006-BEGDA' WA_MAIN-BEGDA.
        perform bdc_field       using 'P0006-ENDDA' '12-31-9999'.
        perform bdc_field       using 'P0006-ANSSA' WA_MAIN-ANSSA.
        perform bdc_field       using 'P0006-STRAS' WA_MAIN-STRAS.
        perform bdc_field       using 'P0006-ORT01' WA_MAIN-ORT01.
        perform bdc_field       using 'P0006-STATE' WA_MAIN-STATE.
        perform bdc_field       using 'P0006-PSTLZ' WA_MAIN-PSTLZ.
        perform bdc_field       using 'P0006-LAND1' WA_MAIN-LAND1.
        ls_ctu_params-dismode = U_MODE.
        ls_ctu_params-updmode = U_UPDT.
        ls_ctu_params-NOBINPT = 'X'.
        CALL TRANSACTION 'PA30' USING it_bdcdata
               OPTIONS FROM ls_ctu_params MESSAGES INTO IT_BDCMSGCOLL.
        PERFORM message.
        CLEAR: WA_MAIN, WA_ITEM.
      ENDLOOP.
    ENDFORM.                    " CALL_TRANSACTION
    *&      Form  INTIALIZE_ITAB
          text
    -->  p1        text
    <--  p2        text
    FORM INTIALIZE_ITAB .
      CLEAR: WA_MAIN,
             WA_ITEM,
             WA_BDCDATA,
             WA_BDCMSGCOLL,
             LS_CTU_PARAMS.
      REFRESH: IT_MAIN,
               IT_ITEM,
               IT_INTERN,
               IT_BDCDATA,
               IT_BDCMSGCOLL.
    ENDFORM.                    " INTIALIZE_ITAB
    *&      Form  GETFILENAME
          text
    -->  p1        text
    <--  p2        text
    FORM GETFILENAME .
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SYST-CPROG
          DYNPRO_NUMBER = SYST-DYNNR
          FIELD_NAME    = ' '
        IMPORTING
          FILE_NAME     = p_fname.
    ENDFORM.                    " GETFILENAME
    *&      Form  FILE_UPLOAD
          text
    -->  p1        text
    <--  p2        text
    FORM FILE_UPLOAD .
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename    = p_fname
          i_begin_col = p_begcol
          i_begin_row = p_begrow
          i_end_col   = p_endcol
          i_end_row   = p_endrow
        TABLES
          intern      = it_intern.
    Moving the data to internal table.
      PERFORM MOVE_DATA.
    ENDFORM.                    " FILE_UPLOAD
    *&      Form  MOVE_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM MOVE_DATA .
      DATA : lv_index TYPE i.
      FIELD-SYMBOLS <fs>.
    *--- Sorting the internal table
      SORT it_intern BY row col.
      CLEAR it_intern.
      LOOP AT it_intern.
        MOVE it_intern-col TO lv_index.
    *--- Assigning the each WA_DATA to an internal table row
        ASSIGN COMPONENT lv_index OF STRUCTURE wa_main TO <fs>.
    *--- Asigning the field value to a field symbol
        MOVE it_intern-value TO <fs>.
        AT END OF row.
          APPEND wa_main to it_main.
          CLEAR wa_main.
        ENDAT.
      ENDLOOP.
    ENDFORM.                    " MOVE_DATA
    *&      Form  SCREEN_FLAG
          text
    -->  p1        text
    <--  p2        text
    FORM SCREEN_FLAG .
      IF P_FIRST = 'X'.
        U_MODE = 'A'.
      ENDIF.
      IF P_SECOND = 'X'.
        U_MODE = 'N'.
      ENDIF.
      IF P_THIRD = 'X'.
        U_MODE = 'E'.
      ENDIF.
      IF P_SYN = 'X'.
        U_UPDT = 'S'.
      ENDIF.
      IF P_ASYN = 'X'.
        U_UPDT = 'A'.
      ENDIF.
    ENDFORM.                    " SCREEN_FLAG
    *&      Form  BDC_DYNPRO
          text
         -->P_0161   text
         -->P_0162   text
    FORM BDC_DYNPRO  USING   program dynpro.
      CLEAR WA_BDCDATA.
      wa_bdcdata-program = program.
      wa_bdcdata-dynpro = dynpro.
      wa_bdcdata-dynbegin = 'X'.
      APPEND WA_BDCDATA TO IT_BDCDATA.
    ENDFORM.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
          text
         -->P_0211   text
         -->P_LW_MAIN_TEXT1  text
    FORM BDC_FIELD  USING   FNAM FVAL.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-FNAM = FNAM.
      WA_BDCDATA-FVAL = FVAL.
      APPEND WA_BDCDATA TO IT_BDCDATA.
    ENDFORM.                    " BDC_FIELD
    *&      Form  MESSAGE
          text
    -->  p1        text
    <--  p2        text
    FORM MESSAGE .
      DATA: MSG TYPE STRING.
      LOOP AT IT_BDCMSGCOLL INTO WA_BDCMSGCOLL.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID   = SY-MSGID
            LANG = SY-LANGU
          IMPORTING
            MSG  = MSG.
        IF WA_BDCMSGCOLL-MSGTYP = 'S'.
          WRITE:/ MSG,'For',WA_MAIN-PERNR.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " MESSAGE
    FILE FORMAT:
    PERNR     BEGDA     ANSSA     STRAS     ORT01     STATE     PSTLZ     LAND1
    10270     8/2/2011     1(Permanent)     SSS     ban     01     578987     IN
    10270     8/2/2011     3(Home)     SSS     ban     01     578987     IN

  • Urgent: Function GUI_DOWNLOAD can't create any data file!

    We are using this function GUI_DOWNLOAD to download internal table data to a flat file.  But after running the program, we got no any data file created!  The code is in the following:
    data : v_file type string.
    PARAMETERS: p_file(128) TYPE c OBLIGATORY LOWER CASE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM get_local_file_name USING p_file.
      v_file = p_file.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename = v_file
        write_field_separator = '|'
      TABLES
        data_tab = itab.  "Our internal talbe filled with data
    FORM get_local_file_name USING p_p_file.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          file_name     = p_p_file
        EXCEPTIONS
          mask_too_long = 1
          OTHERS        = 2.
    ENDFORM. " get_local_file_name
    Please help and we will give you reward points!

    Hi Buddy,
    KD_GET_FILENAME_ON_F4 is used to locate file in a directory (on value request). It should be at the time of uploading data from local PC to internal table.
    Insted u can use a simple file locator F4_FILENAME.
    Even the i mentioned also a file locater.
    I think u don't need to locate a file, u need to save the file with new file.
    so u can use the standard function as follows:
    Class - CL_GUI_FRONTENDSERVICES
    Method - FILE_SAVE_DIALOG
    I think ur problem will be resolved.
    If ur problem is not solved go through following code:
    PARAMETERS : pa_fname LIKE rlgrap-filename.
    data : lf_fname TYPE string.
    INITIALIZATION.
    Initializing the File Name
      pa_fname = 'C:\temp\'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_fname.
    F4 functionality for File Name
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = ' '
        IMPORTING
          file_name     = pa_fname.
      lf_fname = pa_fname.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename              = lf_fname
          filetype              = 'ASC'
          append                = ' '
          write_field_separator = 'X'
        TABLES
          data_tab              = ltab.

  • Unable to delete data files from my Ipod if used as data storage...

    Hello everybody
    I bought months ago an Ipod Nano 8GB. I've got an issue when i use it as disk storage i'm not able to sort out. I've checked all the topics but i cannot find any solution.
    Example: I use the Ipod with the option "Manually manage music and videos". I put audio and video files on my Ipod through Itunes, then i put also some files on my Ipod as normal data files through my Mac Finder (Easy, i drag VLC, JPG files etc. from folders to my Ipod). The Ipod/Itunes summary page shows (Correctly) the capacity column colored in blue (Audio), video (Purple) and orange (Data). No probs when i transfer data files to another computer.
    Problem: when i delete the data files from my Ipod (Through finder) the orange column doesn't disappear (I have no problems if i delete audio/video files via Itunes) and although i've actually deleted all the files if i try to add some other data or videos/music files to my Ipod, Itunes says that there is no space available in my device. It's very strange, i check and double check all the options but eventually i have to restore my Ipod all the times and (Pretty annoying) add all my files again.
    It seems that although i sent my files to the trash bin, Itunes (Fully updated) doesn't recognize the change.
    It'd be great if someone can help me out as it's very important for me to be able to use my Ipod as disk storage, thanks a lot!

    It seems that although i sent my files to the trash bin, Itunes (Fully updated) doesn't recognize the change.
    Empty it from the Finder menu or by control-clicking it in the Dock.
    (44613)

  • How can I read/write data files (text file) from PL/SQL Script

    I had an oracle forms pl/sql program to read/write a data file (text file). When this code is run on a command line as a PL/SQL script using the SQL*Plus I am getting an error:
    -- sample.sql
    DECLARE
      vLocation                 VARCHAR2(50)  := 'r:\';
      vFilename                 VARCHAR2(100) := 'sample.dat';
      vTio                   TEXT_IO.FILE_TYPE;
      vLinebuf               VARCHAR2(2000);
      vRownum               NUMBER        := 0;
      -- use array to store data FROM each line of the text file     
      TYPE           array_type IS VARRAY(15) OF VARCHAR2(100);
      vColumn      array_type := array_type('');
      PROCEDURE prc_open_file(p_filename IN VARCHAR, p_access IN VARCHAR2) is
      BEGIN
        vTio := TEXT_IO.FOPEN(vLocation||p_filename,p_access);
      EXCEPTION
        WHEN OTHERS then
          --  raise_application_error(-20000,'Unable to open '||p_filename);
          message(sqlerrm);pause;
      END;
      PROCEDURE prc_close_file is
      BEGIN
        IF TEXT_IO.IS_OPEN(vTio) then
           TEXT_IO.FCLOSE(vTio);
        END IF;
      END;
    BEGIN
      --extend AND initialize the array to 4 columns
      vColumn.EXTEND(4,1);
      prc_open_file(vFilename,'r');
      LOOP
          LTEXT_IO.GET_LINE(vTio,vLinebuf);
          vColumn(1)  := SUBSTR(vLineBuf, 1, 3);
          vColumn(2)  := SUBSTR(vLineBuf, 5, 8);
          vColumn(3)  := SUBSTR(vLineBuf,10,14);     
          Insert Into MySampleTable
          Values
            (vColumn(1), vColumn(2), vColumn(3));
          EXIT WHEN vLinebuf IS NULL;
       END LOOP;
       prc_close_file;
    END;
    SQL> @c:\myworkspace\sql\scripts\sample.sql;
    PLS-00201: identifier 'TEXT_IO.FILE_TYPE' must be declaredIt works on the oracle forms but not on the SQL*Plus. Is there an alternative method using a PL/SQL script? A simple sample would help. Thanks.

    Did you ever noticed the search box at the right side of the forum?
    A quick search (limited to this years entries) brought up this thread for example
    Re: UTL_FILE Examples

  • Synchronous processing of dat file using Adobe Output Server

    Hello everyone
    I have a doubt regarding Adobe Output Server. Currently my output server is running as a window service named "Adobe Central Output Server" in my machine referring to executable path E:\Jetform\Central\Control\jfservic.exe. It keeps on running irrespective of whether .dat file is present for further processing or not. In case .dat is there in data folder[location where my code writes into .dat file] it picks it up and does all the processing to give the result in form of Print/Fax. But when there is no .dat file present , still the service keeps on running consuming memory & cpu resource.
    Curently my code drops a .dat file in data folder and dont bother about what happens to that .dat file afterwards. Its Adobe Output Server service that is running that keeps on monitoring data folder for any new dat file to process them further.
    I want to stop that window service permanently and i wish to change some logic in my code so that as and when my program drops a .dat file in Data folder then i invoke Adobe Output Server or some of its component so that it picks up that dat file and does all the processing to generate Print/Fax and once its done with processing , the execution of Adobe central server ends. And it remains dead till its invoked by the program to process a new dat file.
    So basically i was wondering whether there is possibiliy of invocation of Adobe Output Server is available or not for synchronous processing of dat file from the code.
    Any suggestions , any ideas , any doubts on it are most welcome.
    jaY

    i faced the same thing
    1- you have to do something in SAP ( i am looking for someone to tell me what )
    2- create a job & name it by (ANYNAME_EMAIL)
    3- Inside the Job create the following Tasks
    a- SAPMERGER A
    b- SAPMERGER
    c- SAPEMSEND
    that's it / AS Simple AS That
    Please tell me if you still facing the same problem

  • Transferring data files from OS9.1 to OSX(10.4.7

    I've done a lot of reading this evening and I am still unclear about transferring info from OS9.1 to OSX(10.4.7). Programs are not transferrable, but data files were not addressed directly. The platforms are the issue. My understanding is that Office:Mac 2004 and Quicken 2007 will translate data files from AppleWorks6 and Quicken 2000. I have data files on my iMacOS9.1, also backed up on an Acomdata external harddrive. Is there anything, or way, that I can get these files transferred to my new iMac20"(10.4.7)machine? From what I'm reading, FireWire target disk mode holds some faint hope. I'm concerned that if I access the external harddrive, it may require a re-initializing, even though it was originally partitioned to receive both PC and Apple OS files.

    Continuing trial and error. My old Imation Floppy Drive worked well to transfer Quicken files across from OS9.1 to OSX(10.4.7). The new iMac apparently had the necessary driver, because everything came to life when I hooked into the USB2.0 port. At 1.4m it's slow. Probably the same success can be accomplished by CD's and probably the same with the Fire Wire Target Disk Mode, if you are careful about the material you try to transfer. In the case of Quicken, when the file was transferred, a dialog box came up giving a recommended procedure to follow. Easy!

  • Ovi maps data update through Ovi Suite A bug?

    Don't know if its a problem but the darn Ovi suite keeps prompting to update the maps data in my N97 mini even I have already done it twice. Seems like it just read and check my phone maps data and just erase everything and download all the data over again. Doesn't seems to be optimized. Should have program the updater check the data files size or date tag and just update those outdated files, instead of everything.  If I have a huge maps data in my phone it'll be a loooong wait.
    Anyone having the same problem?
    I'm still getting prompt today to update my maps data. Doubt that nokia tech can update their maps data that fast.

    iwant gps data

Maybe you are looking for