Reading spool data

Hello experts,
I have been given an assignment to read an output from the spool file.
I am asked to run report MB51 give materialno,posting date and run report
for movement types 551,701.
Then download the spool and read the records and identify them and
do computations later on.
I haven't worked on such a task before.If someone can give me such a coding
snippet,i will be higly obliged.
Points will be awarded for sure.

Hi pick ur part from the below code
*&u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*& Report  ZSPOOLTOPDF                                                 *
*&u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*& Converts spool request into PDF document and emails it to           *
*& recipicant.                                                         *
*& Execution                                                           *
*& u2014u2014u2014                                                           *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on      *
*& screen                                                              *
*&u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
REPORT  zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT u2018abap at sapdev.co.uku2019,
p_sender LIKE somlreci1-receiver
DEFAULT u2018abap at sapdev.co.uku2019,
p_delspl  AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error    TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA:  w_recsize TYPE i.
DATA: gd_subject   LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type     LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE  sy-sysid VALUE u2018DEVu2019,
c_no(1)     TYPE c   VALUE u2018 u2018,
c_device(4) TYPE c   VALUE u2018LOCLu2019.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
WRITE u2018Hello Worldu2019.
new-page.
commit work.
new-page print off.
IF sy-batch EQ u2018Xu2019.
PERFORM get_job_details.
PERFORM obtain_spool_id.
*** Alternative way could be to submit another program and store spool
*** id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
*        to sap-spool
*        spool parameters   %_print
*        archive parameters %_print
*        without spool dynpro
*        and return.
* Get spool id from program called above
*  IMPORT w_spool_nr FROM MEMORY ID u2018SPOOLTOPDFu2019.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ u2018Xu2019.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode   = u2018INTu2019
WITH output = u2018Xu2019
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ u2018Program must be executed in background in-order for spoolu2019,
u2018request to be created.u2019.
ENDIF.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*       FORM obtain_spool_id                                          *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM  tbtcp
INTO TABLE it_tbtcp
WHERE      jobname     = gd_jobname
AND        jobcount    = gd_jobcount
AND        stepcount   = gd_stepcount
AND        listident   <> u20180000000000u2032
ORDER BY   jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*       FORM get_job_details                                          *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM get_job_details.
* Get current job details
CALL FUNCTION u2018GET_JOB_RUNTIME_INFOu2019
IMPORTING
eventid                 = gd_eventid
eventparm               = gd_eventparm
external_program_active = gd_external_program_active
jobcount                = gd_jobcount
jobname                 = gd_jobname
stepcount               = gd_stepcount
EXCEPTIONS
no_runtime_info         = 1
OTHERS                  = 2.
ENDFORM.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*       FORM convert_spool_to_pdf                                     *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM convert_spool_to_pdf.
CALL FUNCTION u2018CONVERT_ABAPSPOOLJOB_2_PDFu2019
EXPORTING
src_spoolid              = gd_spool_nr
no_dialog                = c_no
dst_device               = c_device
IMPORTING
pdf_bytecount            = gd_bytecount
TABLES
pdf                      = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob     = 1
err_no_spooljob          = 2
err_no_permission        = 3
err_conv_not_possible    = 4
err_bad_destdevice       = 5
user_cancelled           = 6
err_spoolerror           = 7
err_temseerror           = 8
err_btcjob_open_failed   = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed  = 11
OTHERS                   = 12.
CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING u2018 ~u2019.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING u2018~ u2018.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*       FORM process_email                                            *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
*  perform send_email using p_email2.
ENDFORM.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*       FORM send_email                                               *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*  u2013>  p_email                                                       *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
* Default subject matter
gd_subject         = u2018Subjectu2019.
gd_attachment_desc = u2018Attachnameu2019.
*  CONCATENATE u2018attach_nameu2019 u2018 u2018 INTO gd_attachment_name.
it_mess_bod        = u2018Message Body text, line 1u2032.
APPEND it_mess_bod.
it_mess_bod        = u2018Message Body text, line 2u2026u2019.
APPEND it_mess_bod.
* If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type  = space.
ELSE.
gd_sender_type  = u2018INTu2019.
ENDIF.
* Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
u2018Example .xls documnet attachmentu2019
u2018PDFu2019
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*       FORM delete_spool                                             *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION u2018RSPO_R_RDELETE_SPOOLREQu2019
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*&u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
*&u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*       Send email
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014-*
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error    TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE  somlreci1-receiver,
ld_format TYPE  so_obj_tp ,
ld_attdescription TYPE  so_obj_nam ,
ld_attfilename TYPE  so_obj_des ,
ld_sender_address LIKE  soextreci1-receiver,
ld_sender_address_type LIKE  soextreci1-adr_typ,
ld_receiver LIKE  sy-subrc.
data:   t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email   = p_email.
ld_mtitle = p_mtitle.
ld_format              = p_format.
ld_attdescription      = p_attdescription.
ld_attfilename         = p_filename.
ld_sender_address      = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
* Fill the document data.
w_doc_data-doc_size = 1.
* Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name  = u2018SAPRPTu2019.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = u2018Fu2019.
* Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu  = sy-langu.
w_doc_data-obj_name   = u2018SAPRPTu2019.
w_doc_data-obj_descr  = ld_mtitle.
w_doc_data-sensitivty = u2018Fu2019.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
* Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = u2018RAWu2019.
APPEND t_packing_list.
* Create attachment notification
t_packing_list-transf_bin = u2018Xu2019.
t_packing_list-head_start = 1.
t_packing_list-head_num   = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type   =  ld_format.
t_packing_list-obj_descr  =  ld_attdescription.
t_packing_list-obj_name   =  ld_attfilename.
t_packing_list-doc_size   =  t_packing_list-body_num * 255.
APPEND t_packing_list.
* Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = u2018Uu2019.
t_receivers-com_type = u2018INTu2019.
t_receivers-notif_del = u2018Xu2019.
t_receivers-notif_ndel = u2018Xu2019.
APPEND t_receivers.
CALL FUNCTION u2018SO_DOCUMENT_SEND_API1u2032
EXPORTING
document_data              = w_doc_data
put_in_outbox              = u2018Xu2019
sender_address             = ld_sender_address
sender_address_type        = ld_sender_address_type
commit_work                = u2018Xu2019
IMPORTING
sent_to_all                = w_sent_all
TABLES
packing_list               = t_packing_list
contents_bin               = t_attachment
contents_txt               = it_message
receivers                  = t_receivers
EXCEPTIONS
too_many_receivers         = 1
document_not_sent          = 2
document_type_not_exist    = 3
operation_no_authorization = 4
parameter_error            = 5
x_error                    = 6
enqueue_error              = 7
OTHERS                     = 8.
* Populate zerror return code
ld_error = sy-subrc.
* Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.

Similar Messages

  • Read spool data and send it through e-mail as .txt or .xls attachment

    Hi All,
    I have to read the spool data and send it via e-mail as .txt or .xls attachment. I have used FMs LIST_TO_ASCI, RSPO_RETURN_SPOOLJOB and SO_SOLITAB_TO_SOLIXTAB. I am using FM SO_DOCUMENT_SEND_API1 to send e-mail.
    My problem is, the text file being sent is not showing entire data. It's getting truncated after 255 characters. Is this a standard? If yes, then is there any work around for it?
    Alternatively, I can send the file as excel attachment. How can this be done?
    Thanks,
    Ashwini

    You will have to convert string to Xstring and then to binary to acheive this.
    Check this wiki to send a mail attachment with more than 255 characters.
    [https://wiki.sdn.sap.com/wiki/display/Snippets/Tosendamailattachmentwithmorethan255charactersinaline]
    Vikranth

  • Regarding reading the data from spool

    Hi Experts,
    How can i read the data from spool?
    I need to read the data from the spool and should display on the screen?
    Is there any FM to read the data from spool?
    Sruthi.

    hi please use this..
    CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
        EXPORTING
          rqident              = v_spool
        TABLES
          buffer               = it_spool
        EXCEPTIONS
          no_such_job          = 1
          not_abap_list        = 2
          job_contains_no_data = 3
          selection_empty      = 4
          no_permission        = 5
          can_not_access       = 6
          read_error           = 7

  • Reading Spool files from AS400 through JAVA Applications

    Hi,
    i am trying to read spool fiels through my java application with the help of jt400.jar files,which is developed by IBM.When i try to display the content of the spool file the result is look like this and give some ideas to come out from these
    problems.
    thanks in advance
    selvin
    --- 4- 4++++�+-+@z 4++-_��++_� 4+3@+@+@_���������@M_�����?�] 4+
    s+-�+@z 4+@@@@� � 4+__++@+-@z 4+___ 4+++++++ 4+s--�+@z 4+z_a_�a___� � 4+:-
    ?��@z 4+B__a_�a___� 4+s�+++@z 4+|��z_�z_� � 4+:-�?���@z 4+C__� 4+G` 4+I___ �� 4+
    -�?��� 4+-�?��� 4+B���?�@+�M�] 4+T@@���?� 4+j���?�@_?��� � 4+@+��� 4+@+?�� 4
    B��@����� 4+T+�?����� 4+k��@_�?��� � 4+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~ � 4+__� 4+
    ---++ 4+B@@@@_ 4+Q@@@@@@@@@@_ 4+j@@@@@@@@@@@@@@@@@@K__ � � 4+___ 4+
    ---_++++--+ 4+B@@@@_ 4+Q@@@@@_�k___ 4+j@@@@@@@@@@@@_�k_�_K__ � � 4+___ 4+
    ---++++� 4+B@@@@� 4+Q@@@@@�k___ 4+j@@@@@@@@@@@@__k___K__ � � 4+___ 4+
    ----- 4+B@@@@_ 4+Q@@@@@@@@@@_ 4+j@@@@@@@@@@@@@@@@@@K__ � � 4+@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ � 4+'�+--@��-+@z 4+C@@@@_ 4+R@@@@@�_k___ 4+
    k@@@@@@@@@@@@��k��_K__ � 4+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    If you were expecting the spool file to be translated to ASCII with carriage returns, line feeds, and form feeds, here is the magical piece of code:
    SpooledFile splf = new SpooledFile(sys, splfName, splfNum, jobName, jobUser, jobNum);
    PrintParameterList pl = new PrintParameterList();
    pl.setParameter(SpooledFile.ATTR_MFGTYPE, "*WSCST");
    pl.setParameter(SpooledFile.ATTR_WORKSTATION_CUST_OBJECT, "/QSYS.LIB/QWPDEFAULT.WSCST");
    InputStream in = splf.getTransformedInputStream(pl);
    For reasons not immediately clear to me, the first character in the file appears to be a null byte (hex 0). I also believe that CRs and LFs only appear as needed to return to the beginning of the line (CR) and the feed one line (LF). It is permissible for example to have <data><CR><LF><LF><LF> (i.e. feed three lines). I also assume that <data><CR><data><CR><LF> would result in overprinting (missing line feed). I have even seen <data><CR><CR>, and I assume the second CR should be ignored.
    I have not exhaustively tested these scenarios, but from some of the problems we've had, the above description seems like a reasonable way to think about the data stream

  • Download complete (!) spool data (cvs)

    Hello ABAP-community,
    i want to download the whole spool data (gt 10 pages) to excel. I executed an application in background task. When looking for the results via sm37, i find spool data. Opening the spool data i fined 'only' 10 pages of data. I know i can expand properties, but when extending to 1000 pages i receive a warning (Displaying &1 pages could cause a memory overflow) and risk a shortdump.
    When using the standard export to ms excel, the application only exports the data shown in spool viewer (e.g. page 1 to 10).
    Question is, is there a possibility to download the complete spool data (e.g. page 1 to n; n = 1000 or gt 1000)
    Answers will be rewarded.
    Thanks in advance!
    g

    Question 1 : 50 M records can be easily handled - we have taken dumps of about 7 Crore records - which is about 70 M ..
    Make sure you have the space available in the disk for the same.
    Moving such big files around even after they are zipped is a big task - plan for it if you intend to do anything with these files.
    The most reliable mentod to dump this file is using LISTCUBE.
    Question2 : Getting the delta alone out - preferably have a DSO inbetween that has only the latest request and dump that data out ..
    But what would you want this for ??

  • Reading spools

    Hi,
    How can we read the data in the spool using ABAP program? I am already aware of the function module "RSPO_RETURN_ABAP_SPOOLJOB" using which we can get the data in the spool into an internal table. But here we can't read the internal table for specific records.
    Please let me know if there is any other way for reading the spool for specific data.
    Regards,
    Vinod.

    Hi Vinod,
    TSP01 is the table which stores all the spool numbers.
    Use the spool no to get the spool data using FM RSPO_DOWNLOAD_SPOOLJOB it’ll download the spool to PC using the spool number.
    To display the spool you can use...
    RSPO_DISPLAY_ABAP_SPOOLJOB
    RSPO_DISPLAY_SPOOLJOB
    Regards,
    KK

  • I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?

    I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
    Attachments:
    try2.txt ‏2 KB
    read_array.vi ‏21 KB

    The problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
    Here are some of your choices to fix your problem.
    1. Change the source file to a tab delimited file. Your VI will then run as is.
    2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
    3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
    Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
    Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does.

  • PI 7.3 - AEX "unable to read configuration data" and login problems

    Hello Friends,
    after installation of AEX, i'm facing some problems.
    1.I'm not able to login with any user, i created during installation wizard. So i cannot check any user in NWA -> User Administration.
    2.Once more, while opening http://<host>:<port>/rep or http://<host>:<port>/dir, i get the following error message.
    Can somebody help me?
    I think, there is a problem with the users, which have been created during installation. How can i check this? Is there any chance?
    Second, if i'm able to login, i have to import the exchange profile again. This should solve the problem. Or is this wrong?
    PI (http://<host>:<port>/dir/start/index.jsp). Below is the part of the error message that is showing up. Appreciate your suggestions:
    Exception class: com.sap.aii.utilxi.prop.api.PropertiesException$InitFailed
    Message
    Unable to read configuration data (ExchangeProfile/aii.properties)
    Stacktrace
    Thrown:
    com.sap.aii.utilxi.prop.api.PropertiesException$InitFailed: Unable to read configuration data (ExchangeProfile/aii.properties)
    at com.sap.aii.utilxi.prop.api.PropertySourceFactory.initServerMode(PropertySourceFactory.java:220)
    at com.sap.aii.utilxi.prop.api.AIIProperties.initServerMode(AIIProperties.java:518)
    at com.sap.aii.ib.server.applcomp.StartupServerProperties.initPropertiesForServer(StartupServerProperties.java:97)
    at com.sap.aii.ibdir.server.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:151)
    at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:43)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:438)
    at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:203)
    Please let me know if I am not clear.
    Edited by: Clarence on Feb 6, 2012 3:28 PM
    Edited by: Clarence on Feb 6, 2012 3:28 PM

    hi,
    >>>>Second, if i'm able to login, i have to import the exchange profile again. This should solve the problem. Or is this wrong?
    if you have java stack only there is no exchange profile anymore...
    https://weblogs.sdn.sap.com/pub/wlg/28334
    Regards,
    Michal Krawczyk

  • FCP error message: Unable to read the data on your source tape!

    Hey,
    So I have been editing on the MacPro now for over a year and I have never seen this message before...the message reads:
    _*"Capture encountered a problem reading the data on your source tape. This could be due to a problem with the tape."*_
    Has anyone got this message and could help me out please? I need to edit these tapes A.S.A.P.
    Thank You,
    Erick

    why would it start a month later giving me problems instead of when it was updated?
    That is a good point. Anything change since the time it worked to when it didn't? How about trying another firewire cable. Those can go south without notice, might cause this.
    Shane

  • Problem in Read Master Data rule type in Transformation

    Hi,
    I have 'Tax Classification' & 'Sales Territory' as attributes for 0customer (Master data).  I loaded master data for 0customer & data have come up for this 2 fields.  I want this 2 fields in my DSO with data filled.  As this 2 fields are not in Transaction datasource of my DSO,  i added this 2 fields in the Target side in Transformation of the DSO.  In Transformation, I gave the rule type as 'Read Master Data'  from attribute of '0customer' & mapped KUNAG (Sold-to) to this 2 fields.  Activated the Transformation & executed the DTP.
    When i check the data, i could see that the Infoobject 'Sales Territory' column alone is filled but 'Tax Classification' column is blank.  Tax classification has data in 0customer master data for the displayed customer values but still data is not coming in DSO.
    How does this happen when both the fields have same mapping & rule type and still data not getting populated for one field alone.  Am i missing anything?
    Regards,
    Murali

    hi,
    the green request in MD does not means that the data in MD is activated, you need to activate it after loading everytime so that it reflects in where used list as well.
    regards,
    Arvind.

  • How to read the data in excel sheet

    Dear sir,
    How to read the data in excel sheet when i recieve a data serial communication... ie i have store a data in excel such that
    Cell A       Cell B
       A           Apple 
       B           Ball
       C           Cat
       D           Doll
    when i recieve A from serial communication i have to display Apple, and when i recieve B i have to display Ball and so on.. 

    Hi, 
    I would recommend you to have a look at the VI attached. It makes use of a VI named 'Read from Spreadsheet' to read the row and column data from the tab delimited excel file. The read data is then searched for the Alphabet specified and finally returns you the corresponding string. The test file used to validate the operation of the VI is also attached. 
    Trust this would help you solve the issue. 
    Regards, 
    Sagar G Yadav | Application Engineer | National Instruments
    Attachments:
    read_from_excel.vi ‏10 KB
    Book1.txt ‏1 KB

  • Read Master Data for Process order status change (REL to CRTD)

    I am unable to read master data and thus change the status of process order from REL to CRTD. (COR2)
    The reason it says, error in BOM reading, Transport Requirement (TR) already generated.
    Even after deleting the TR (LB02), the issue still exists.
    Is there another way of changing the status or some more steps are needed for the TR deletion?
    Thnx!
    Abhi.

    Order header Status-
    REL  Released
    MSPT Material shortage
    PRT  Printed
    PRC  Pre-costed
    BASC Batch assignment complete
    BCRQ Order to be handled in batches
    SETC Settlement rule create.
    In the error log it gives-
    Diagnosis
    Transfer requirements have already been generated, so therefore the bill of material cannot be read.
    System Response
    The system does not execute the action.
    Then I deleted the TR (LB02), but still I cannot reread the master data.
    The MSPT was for only 2 materials out of 6 and there is no GMPS status.
    There is prod supply area and control cycle used.
    and the TR generated at order release.

  • How do I change the default from"Mark message as read by date" to "Mark message as read"?

    When I migrated from Windows XP to Windows 7 I downloaded & installed a new version of Thunderbird (v4.10.2) and retrieved my Mail files to the new profile. Everything seems to be working properly except that whenever I close an open message I get the "Mark messages as read by date" popup which has the current date but wants me to specify a starting date. This didn't happen in my previous installations (I've used Thunderbird for years). Options / Advanced / Reading & Display has "Automatically mark messages as read" checked and "Immediately on display" set, but I haven't found anything that lets me choose "Mark as read" rather than "Mark as read by date". How do I turn the "by date" off?
    Thanks --

    'Mark Message as read by Date'
    This can be invoked by right click on email in list and select 'Mark' > 'As read by date' to invoke the 'Mark Message as read by Date' pop up window.
    If you are reading an email in either the Message Pane or in a new tab and press the 'C' key, this will open the 'Mark Message as read by Date' pop up window.
    So can you tell us exactly how you are ''closing'' a previously unread message.
    Do you select an email in the list so that it displays in the Message Pane? Then you do not need to close it because this will auto happen when you select another email in the list.
    OR do you double click to open an email in a tab. Then how do you close it? There are some options on how to do this:
    # Do you click on the small 'x' located in the tab?
    # do you use 'Ctrl'+'W' ?
    # Do you right click on tab to show drop down options and then press 'C' key?
    I notice that there is a similar action - pressing of 'C' key.
    If you do not right click to get drop down, but instead just use 'C' key, you will invoke the 'Mark Message as read by Date' window.
    Can you check what it is you are doing

  • How to read a data from USB port using JAVA

    hi all,
    i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
    Advance Thanks!!

    You can do this. Please use this link
    [http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
    What research did you do of your own? Have you done some testing application and tried yourself??

  • How to read the data from Excel file and Store in XML file using java

    Hi All,
    I got a problem with Excel file.
    My problem is how to read the data from Excel file and Store in XML file using java excel api.
    For getting the data from Excel file what are all the steps i need to follow to get the correct result.
    Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
    Thanks & Regards,
    Sreenu,
    [email protected],
    india,

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

Maybe you are looking for

  • Special Character not appearing

    Hi, Im getting very strange error. Im pulling some content stored in Oracle through JDBC. When im printing that content in log, few characters are appearing as "?" (Question marks). When im printing that content on a JSP with following lines on top o

  • Preview instead of Colorsync or GraphicConverter?

    Can Some one please help me, a couple of months ago when i would transfer pictures from my digital camera to my Desktop I would open them up and they were opened in the PREVIEW application and now I try to open any type of picture or any type of .jpg

  • Loading existing Iweb with new operating system

    I just updated our computer with a new hardrive (old one crashed) and updated to snow leoapord, cant reload the existing Iweb to open up on our computer, I have the Iweb program loaded, cant get in to make changes to our site.

  • BAPI_CTRACCONTRACTACCOUNT_CR1 (Create FI-CA contract account) problem

    I'm trying to test the BAPI: BAPI_CTRACCONTRACTACCOUNT_CR1 Initially I get these errors: - Enter a value in field Account Determ. ID - Enter a value in field Payment Terms - problem solved! Edited by: Berglund Teodor on Jul 3, 2008 4:16 PM

  • Give me answers

    1. what are the advantages of using a decentalised adapter engine? 2.if error during the inbound or outbound binding, where do we look to solve? 3.differences between URI,URL,URN? 4.what is integration process?where is it executed?what stake? Thank y