Programing issue

Hi Gurus,
Can someone please help me with one issue. I copied the program from this forum and adopted it with my selections and it works ok before Unicode. Now we will have an Unicode system and the program doesn't work anymore.
The xls file is created and also send to the Pearson, but there is file without name and data just an xls blank file...
Can anybody help me with that?
BR
Saso
*& REPORT ZSENDMAIL_SIMOBIL_STOCK                                      *
*& Example of sending external email via SAPCONNECT                    *
REPORT zsendmail_simobil_stock .
TABLES: mard, makt, mara, somlreci1.
SELECT-OPTIONS: matnr FOR mard-matnr.
SELECT-OPTIONS: werks FOR mard-werks.
SELECT-OPTIONS: labst FOR mard-labst.
SELECT-OPTIONS: matkl FOR mara-matkl.
SELECT-OPTIONS: lgort FOR mard-lgort.
SELECT-OPTIONS receiver FOR somlreci1-receiver NO INTERVALS.
*PARAMETERS: p_email TYPE somlreci1-receiver
                                 DEFAULT '   '.
PARAMETERS: p_subj TYPE epsf-epsfilnam.
PARAMETERS: p_filen TYPE epsf-epsfilnam.
TYPES: BEGIN OF t_mard,
  maktx TYPE makt-maktx,
  matnr TYPE mard-matnr,
  werks TYPE mard-werks,
  lgort TYPE mard-lgort,
  labst TYPE mard-labst,
  matkl TYPE mara-matkl,
END OF t_mard.
DATA: it_mard TYPE STANDARD TABLE OF t_mard WITH HEADER LINE,
      wa_mard TYPE t_mard.
TYPES: BEGIN OF t_charekpo,
   maktx(40) TYPE c,
   matnr(18) TYPE c,
   werks(4) TYPE c,
  lgort(4) TYPE c,
  labst(18) TYPE c,
  matkl(3) TYPE c,
  kolicina(15) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                WITH HEADER LINE.
DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                WITH HEADER LINE.
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,
        gd_error    TYPE sy-subrc,
        gd_reciever TYPE sy-subrc.
INCLUDE rfts7001.
INITIALIZATION.
*No intervall for value help
  CLEAR opt_list.
  MOVE 'JUST_EQ'  TO opt_list-name.
  MOVE 'X' TO opt_list-options-eq.
  APPEND opt_list TO restrict-opt_list_tab.
  CLEAR ***.
  MOVE: 'S'          TO ***-kind,
        'RECEIVER'   TO ***-name,
        'I'          TO ***-sg_main,
        'JUST_EQ'    TO ***-op_main.
  APPEND *** TO restrict-***_tab.
  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
    EXPORTING
      restriction = restrict.
*$001 ins end
*START_OF_SELECTION
START-OF-SELECTION.
  Retrieve sample data from table ekpo
  PERFORM data_retrieval.
  Populate table with detaisl to be entered into .xls file
  PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
  PERFORM populate_email_message_body.
Send file by email as .xls speadsheet
  PERFORM send_file_as_email_attachment
                               TABLES it_message
                                      it_attach
                               using p_email
                                 USING receiver
                                      p_subj
                                'Naročilnica Simobil'
                                      'XLS'
                                      p_filen
                                     'filename'
                             CHANGING gd_error
                                      gd_reciever.
  Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
*&      Form  DATA_RETRIEVAL
      Retrieve data form MARD table and populate itab it_mard
FORM data_retrieval.
  SELECT * FROM mard WHERE ( matnr IN matnr ) AND
                           ( labst IN labst ) AND
                           ( werks IN werks ) AND
                           ( lgort IN lgort ).
    SELECT * FROM mara WHERE ( matnr = mard-matnr ) AND
                              ( matkl IN matkl ).
      SELECT SINGLE * FROM makt WHERE ( matnr = mard-matnr ) AND
                                      ( spras = 'E' ).
      IF sy-subrc = 0.
        CLEAR it_mard.
        MOVE mard-matnr TO it_mard-matnr.
   MOVE mard-lgort TO it_mard-lgort.
   MOVE mard-werks TO it_mard-werks.
   MOVE mard-labst TO it_mard-labst.
        MOVE mara-matkl TO it_mard-matkl.
        MOVE makt-maktx TO it_mard-maktx.
        APPEND it_mard.
      ENDIF.
    ENDSELECT.
  ENDSELECT.
ENDFORM.                    " DATA_RETRIEVAL
*FORM data_retrieval.
SELECT ebeln ebelp aedat matnr
  UP TO 10 ROWS
   FROM ekpo
   INTO TABLE it_ekpo.
*ENDFORM.
*&      Form  BUILD_XLS_DATA_TABLE
      Build data table for .xls document
FORM build_xls_data_table.
CONSTANTS: con_cret TYPE x VALUE '0D',  "OK for non Unicode
            con_tab TYPE x VALUE '09'.   "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
class cl_abap_char_utilities definition load.
  CONSTANTS:
      con_tab  TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
      con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
  CONCATENATE 'Opis Materiala' 'Material' 'Količina'
'Skladišče' 'Zaloga' 'obrat' 'Mat. grupa'
         INTO it_attach SEPARATED BY con_tab.
  CONCATENATE con_cret it_attach  INTO it_attach.
  APPEND  it_attach.
  LOOP AT it_mard INTO wa_mard.
    CLEAR wa_charekpo.
    MOVE-CORRESPONDING wa_mard TO wa_charekpo.
    CONCATENATE wa_charekpo-maktx wa_charekpo-matnr
   wa_charekpo-lgort wa_charekpo-labst
   wa_charekpo-WERKS wa_charekpo-MAKTX wa_charekpo-MATKL
                                INTO it_attach SEPARATED BY con_tab.
    CONCATENATE con_cret it_attach  INTO it_attach.
    APPEND  it_attach.
  ENDLOOP.
ENDFORM.                    " BUILD_XLS_DATA_TABLE
*&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
      Send email
FORM send_file_as_email_attachment TABLES pit_message
                                          pit_attach
                                      USING p_email
                                    using receiver
                                          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.
ld_email   = p_email.
  ld_email   = receiver.
  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  = 'SAPRPT'.
  w_doc_data-obj_descr = ld_mtitle .
  w_doc_data-sensitivty = 'F'.
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_cnt + 1 ) * 255 + STRLEN( it_attach ).
  w_doc_data-obj_langu  = sy-langu.
  w_doc_data-obj_name   = 'SAPRPT'.
  w_doc_data-obj_descr  = ld_mtitle.
  w_doc_data-sensitivty = 'F'.
  CLEAR t_attachment.
  REFRESH t_attachment.
  t_attachment[] = pit_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 = 'RAW'.
  APPEND t_packing_list.
Create attachment notification
  t_packing_list-transf_bin = 'X'.
  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.
  LOOP AT receiver.
t_receivers-receiver = ld_email.
    t_receivers-receiver = receiver-low.
    t_receivers-rec_type = 'U'.
    t_receivers-com_type = 'INT'.
    t_receivers-notif_del = 'X'.
    t_receivers-notif_ndel = 'X'.
    APPEND t_receivers.
  ENDLOOP.
  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
    EXPORTING
      document_data              = w_doc_data
      put_in_outbox              = 'X'
      sender_address             = ld_sender_address
      sender_address_type        = ld_sender_address_type
      commit_work                = 'X'
    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.                    "send_file_as_email_attachment
*&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
      Instructs mail send program for SAPCONNECT to send email.
*FORM initiate_mail_execute_program.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
               WITH output = 'X'
               AND RETURN.
*ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
*&      Form  POPULATE_EMAIL_MESSAGE_BODY
       Populate message body text
FORM populate_email_message_body.
  REFRESH it_message.
  it_message =
  'Pozdravljeni! Želimo Vam lep in uspešen dan Sales Support'.
  APPEND it_message.
ENDFORM.                    " POPULATE_EMAIL_MESSAGE_BODY

hi had u appended the data to the file ...this is the problem with the append statements...after moving the data from wa to table you need to append the data...like this...
hi check this example program which is working fine..
REPORT  ZMAIL.
TABLES: ekko.
PARAMETERS: p_email   TYPE somlreci1-receiver .
  TYPES: BEGIN OF t_ekpo,
  ebeln TYPE ekpo-ebeln,
  ebelp TYPE ekpo-ebelp,
  aedat TYPE ekpo-aedat,
  matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
      wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
  ebeln(10) TYPE c,
  ebelp(5)  TYPE c,
  aedat(8)  TYPE c,
  matnr(18) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                WITH HEADER LINE.
DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                WITH HEADER LINE.
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,
        gd_error    TYPE sy-subrc,
        gd_reciever TYPE sy-subrc.
*START_OF_SELECTION
START-OF-SELECTION.
  Retrieve sample data from table ekpo
  PERFORM data_retrieval.
  Populate table with detaisl to be entered into .xls file
  PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
  perform populate_email_message_body.
Send file by email as .xls speadsheet
  PERFORM send_file_as_email_attachment
                               tables it_message
                                      it_attach
                                using p_email
                                      'Example .xls documnet attachment'
                                      'XLS'
                                      'filename'
                             changing gd_error
                                      gd_reciever.
  Instructs mail send program for SAPCONNECT to send email(rsconn01)
  PERFORM initiate_mail_execute_program.
*&      Form  DATA_RETRIEVAL
      Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
  SELECT ebeln ebelp aedat matnr
   UP TO 10 ROWS
    FROM ekpo
    INTO TABLE it_ekpo.
ENDFORM.                    " DATA_RETRIEVAL
*&      Form  BUILD_XLS_DATA_TABLE
      Build data table for .xls document
FORM build_xls_data_table.
  data: ld_store(50) type c.  "Leading zeros
  CONSTANTS: con_cret(5) TYPE c VALUE '0D',  "OK for non Unicode
             con_tab(5) TYPE c VALUE '09'.   "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
*class cl_abap_char_utilities definition load.
*constants:
   con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
   con_cret type c value cl_abap_char_utilities=>CR_LF.
  CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR' INTO it_attach SEPARATED BY con_tab.
  CONCATENATE con_cret it_attach  INTO it_attach.
  APPEND  it_attach.
  LOOP AT it_ekpo INTO wa_charekpo.
*Modification to retain leading zeros
  inserts code for excell REPLACE command into ld_store
  =REPLACE("00100",1,5,"00100")
    concatenate '=REPLACE("' wa_charekpo-ebelp '",1,5,"'
                             wa_charekpo-ebelp '")' into ld_store .
  concatenate ld_store into .xls file instead of actual value(ebelp)
    CONCATENATE wa_charekpo-ebeln ld_store  wa_charekpo-aedat wa_charekpo-matnr  INTO it_attach SEPARATED BY con_tab.
    CONCATENATE con_cret it_attach  INTO it_attach.
    APPEND  it_attach.
  ENDLOOP.
ENDFORM.                    " BUILD_XLS_DATA_TABLE
*&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
      Send email
FORM send_file_as_email_attachment tables pit_message
                                          pit_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.
  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  = 'SAPRPT'.
  w_doc_data-obj_descr = ld_mtitle .
  w_doc_data-sensitivty = 'F'.
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   = 'SAPRPT'.
  w_doc_data-obj_descr  = ld_mtitle.
  w_doc_data-sensitivty = 'F'.
  CLEAR t_attachment.
  REFRESH t_attachment.
  t_attachment[] = pit_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 = 'RAW'.
  APPEND t_packing_list.
Create attachment notification
  t_packing_list-transf_bin = 'X'.
  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 = 'U'.
  t_receivers-com_type = 'INT'.
  t_receivers-notif_del = 'X'.
  t_receivers-notif_ndel = 'X'.
  APPEND t_receivers.
  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
       EXPORTING
            document_data              = w_doc_data
            put_in_outbox              = 'X'
            sender_address             = ld_sender_address
            sender_address_type        = ld_sender_address_type
            commit_work                = 'X'
       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.
*&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
      Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
  WAIT UP TO 2 SECONDS.
  SUBMIT rsconn01 WITH mode = 'INT'
                WITH output = 'X'
                AND RETURN.
ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
*&      Form  POPULATE_EMAIL_MESSAGE_BODY
       Populate message body text
form populate_email_message_body.
  REFRESH it_message.
  it_message = 'Please find attached a list test ekpo records'.
  APPEND it_message.
endform.                    " POPULATE_EMAIL_MESSAGE_BODY
regards,
venkat.

Similar Messages

  • Bank transfer program issue in Indian Payroll

    Dear Experts,
    We have successfully made ban transfer using Pc00_M40_cdta program followed by payroll run and posted the results to FI.
    But now issue is when i run the program Pc00_m40_ffom in MT100 format, there is no output coming and amount is displayed 0.
    Thats why may be, in FDTA transaction from FI side, no output coming in bank transfer tab in spite of line items showing in Data medium.
    And also i am unable to delete my bank transfer results using program RPCDTFD0 due to error in country code happening.
    Please help to resolve the issues, what are the steps i need to carry out for creating the ban transfer document is FI also and how to delete the bank transfer results in Indian scenario.
    Regards
    Tan

    Hi,
    Thanks for your reply. Actually Pre-DME is done successfully with set flag transfer and i could not delete the bank transfer results due to error in country code error as mentioned above.
    Issue is with PC00_M40_FFOM program, where while selecting my document details in MT100 format, transferred amount is showing zero in the output document.
    Please suggest how to get my transferred amount displayed there
    Regards
    Tan

  • Windows 8.1 - Microsoft Office 2013 Program Issues

    After 8.1 Windows and Malicious software updates installed, I cannot open my MS Office 2013 programs without the Error with shortcut coming up and "The item Outlook.exe that the shortcut refers to has been changed or moved, so the shortcut will no longer
    work properly.  Do you want to delete it?"  Also when just clicking on a file, a window comes up to ask how do I want to open this file (see below).  I didn't do anything.  The PC just did updates upon shut down last night. 
    System restore didn't fix issue either.  Please help.

    It sounds as though the executable (.exe) files are configured to open with notepad. Unfortunately you cannot manage .exe association with a launched application from the Default Programs Control Panel applet. You will need to reset the configuration of
    the .exe association within the registry. The default configuration is:
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\.exe]
    @="exefile"
    "Content Type"="application/x-msdownload"
    [HKEY_CLASSES_ROOT\.exe\PersistentHandler]
    @="{098f2470-bae0-11cd-b579-08002b30bfeb}"
    I have exported these keys to a .reg file which you can download and merge on your system to replace the corrupted keys,
    the link is here.
    Disclaimer: As editing the registry can produce an unstable system or even prevent the system from booting, it is only recommended for advanced users comfortable with the ramifications. It is recommended to
    back up any keys that might be edited and to have a
    recovery environment available.                                  
    Brandon
    Windows Outreach Team- IT Pro
    The Springboard Series on TechNet

  • ABAP program issue

    Dear All,
    I have written an ABAP program by which it writes few things on application server (overwrite mode).
    I have included this program in the Process Chain but it is giving dump first time when it is running "DATASET_NOT_OPEN" whereas the path and all directories are created on application server.
    When i try to repeat the process chain it is running successfully.
    Please help on the same.
    Regards,
    SS

    Check these links.
    Re: SHORT DUMP! Exception: CX_SY_FILE_OPEN_MODE
    CX_SY_FILE_OPEN_MODE - short dump on production but not in Dev and Test
    Re: catching an exception 'CX_SY_FILE_OPEN_MODE'
    Re: Issue in Uploading file to application server
    Thanks.

  • Automatic Payment Program - issue

    Hi,
    When we are executing the foreign currency payment through F110 we are getting the below issue.
    Scenario:
    Company code currency: INR
    House bank (for example Citi Bank) and APP customization is already for local payments. Now we have done customization for foreign payments. steps are as mentioned below.
    1. SET UP PAYMENT METHODS PER COMPANY CODE FOR PAYMENT TRANSACTIONS - here we selected "foreign currency allowed"
    2. SET UP BANK DETERMINATION FOR PAYMENT TRANSACTIONS - under BAN ACCOUNTS - we have customized as mentioned below.
    House Bank            Payment method          Currency         Account ID           Bank sub-account
    CITI                                   C                              USD              CITI1                      212002
    3. Payment method is assigned to VENDOR.
    when we are running F110 that time when we are selecting the above payment method and account id that time system is throwing the below error message.
    "Only the following accounts can be used: 000"
    This "000" is the Account ID for local payments. when i select this Account ID then system is allowing the payment but when I am selecting the Account ID "CITI1" (which is having USD currency) that time it is throwing the above error.
    So friends can you please share your thoughts on this issue.
    Thanks in advance.
    Rams N

    HEllo,
    I"m not sure if I understood all you have done but I'll try to explain:
    The payment program, in bank determination-bank accounts,  can only                        
    assign one account id for every house bank, payment method and currency.
    So,  this means that for one payment method in one of your house-banks                        
    you can only use one account ID.    
    In fact, there are bank account checks are processed at document level and the         
    functionality of changing the bank account at payment document level       
    is not available in the standard system.                                             
    On the other side, you have the opportunity to define a second and                   
    third house bank with the same bank key to meet your requirements.
    REgards.
    REnan

  • Payment Program issues

    Hi all...
    when i am creating a automatic payment program in the parameters tab, when i am entering the vendor code range, iam not able to exclude some range of vendor codes, as it was possible in any other screen with multiple selection button.why the same is not available in APP parameters screen?
    and even in free selection tab i am not able to exclude values for vendor codes? (in the field name column there is no field with name LFA1-LIFNR to exclude for the proposal?
    and what payment medium Program and Payment transfer medium can be maintained in the customisation for the payment method T (Bank Transfer).
    kindly give your valuable suggestions to fix these issues ASAP
    i will assign points to each helpful answer
    Thanks in advance
    SRINU

    Hello Srinu,
    Regarding your second question, the payment medium program normally differs from country to country.
    Please look for programs with these names...RFFO[country code]T
    Reward points if the info helps you further.
    With Regards
    Vijay Gajavalli

  • ABAP program issues..Unicode program "ITAB" must have the same structure?

    Dear Expert,
    I coded below code in se38, but system give below error message, could please kindly advie issue reason? Thanks!!
         Error message: A line of "ITAB" and "LINE" are not mutually convertible. In a Unicode program "ITAB" must have the same structure layout as "LINE" independent of the length of a . Unicode character. Unicode character.          
    REPORT  ZTEST_HIHIHI.
    Data: begin of line,
    num type i,
    sqr type i,
    end of line,
    itab type standard table of line with key table_line.
    Do 5 times.
    line-num = sy-index.
    line-sqr = sy-index ** 2.
    append line to itab.
    enddo.
    loop at itab into line.
    write: / line-num, line-sqr.
    endloop.
    clear itab.

    Hello Hoo Laa,
    This is because the way you have defined LINE, it is a structure & not a data type. Hence you are facing the issue
    You have to change the data declaration to:
    itab LIKE STANDARD TABLE OF line WITH KEY table_line.
    BR,
    Suhas

  • Macbook Program Issues

    I've had my Macbook for almost two months now and so far it has been great, other than one issue. Lately I've been getting a yellow line running across random program windows and only in the windows, so when I minimize they minimize with the window. They happen randomly and during random programs. When I restart they will go away. I'm assuming this is a software issue, maybe something I installed is conflicting? Any advise would be appreciated. Should I bring it into the apple store and have them check it out?
    Thanks!

    One of the easiest steps you could take is to create a new user account, log into it and see if the problem exists there. That eliminates it as login items for your account and gives you new property lists (preferences) for that account.
    If it's still problematic you might want to take a quick look in the startup items folders in all your libraries (who knows w/ some installers) for anything you recognize as new and possibly recall installing around the time of the problem.
    If you have haxies remove those and if you rethemed your mac I consider reverting it.
    The most important thing you can do is backup your machine.
    It shouldn't take long to go through what I said, oh yeah, you can do the usual voodoo. Reset the SMU/PMU (shutdown, unplug everything, remove battery, hold down the power button for 10 seconds or something like that, put back together and restart. You can use disk utility to repair permissions, and of course you can probably restart while holding down command + option + p + r and let the machine beep at least once (zap the pram).
    Then call up apple.
    There is one other thing... you can boot from the install cd and see if the lines occur when booted from that (just in the installer or in disk utility that is on that disk. or the startup disk pref (it's all in the menus, just don't install the OS. If it's there when booted from the installer I think you may need a bit of repair action.
    Good Luck,
    -j

  • LSO Course Program Issues (Need Instructions)

    We are currently investigating the need for the course program functionality at our organization and have setup a few with mixed results.  We are running LSOFE603 and have been live for over a year so the portal and configuration appears to be correct.  If I subscribe to the course program then a course program can not be found error is displayed.  In addition to this I can book in the seperate course types from the learner portal but titles seems to be missing from the display.   
    Does anyone know where I can find clear step by step instructions on how to setup a course program? Everything checks out okay from our setup but we continue to have issues.  Thank you in advance for your response(s).
    Regards,
    Matt

    use lso_pvct > Create Course program
    Enter abbrev, name, language, & save
    when you save, it will ask you to manage course blocks.
    you can create sequential or non-sequential course blocks.
    You must save the blocks before you can add course types to them.
    Once saved, edit the course program > Course blocks
    add your course types to the blocks; either sequenced or non-sequenced.
    config for course programs is
    1) number range intervals
    2) relationships for the course type object EK
    3) Define object type > Structure search LSO-l-ek
    4) Followup for course type EK

  • Programming issues?

    Hi again you guys,
    like i said previously, i'm new to LV and my english is not the best...
    I'm constructing a VI to aquire analogic signals from 4 pressure transductors...I
    I need the aquired data on a excel file (table) and the waveform chart on a datasheet file...
    The data exported to excel file should be 2 values each second, and I'm getting something like...700 samples per second....what turns my excel file very extensive....and 1 time column for each channel, I just need 1 time column to all channels....
    Another issue: The x-axis values ( set to 0-300 seconds) when i run program it changes to something else that i don´t really know what is....
    For last, i don´t know how to automatically export the waveform chart to a datasheet file at the elapsed time (like it's happening with the excel export)...
    Can anyone, please, teach or show me how to solve this issues???
    Sorry for  my bad english...
    Best regards
    Jimmy
    Solved!
    Go to Solution.
    Attachments:
    Estanq. CG.vi ‏200 KB

    You need to adjust the sample rate on on DAQ step.  Double click on the DAQ assistant, go down to the bottom right box and enter a different number in the Rate (Hz) box.  You currently have 1k = 1000 samples/sec.  If you only need 2 samples per second, change this to two.  You can also wire in the number 2 to the input called "rate" on the DAQ assistant.
    If I were you, I would use the Write Measurement File VI instead of the export data to Excel.  It will write a file with a *.lvm extension.  But if you double click on the file and tell it to open with Excel, Excel can read it just fine.  You can find this function under Express-Output-Write Meas File.   Place one of these on a block diagram and then read the help about it.
    Craig

  • Good Wife Programming Issues

    IF VERIZON DOES NOT FIX THE PROGRAM GUIDE ISSUES WITH THE GOOD WIFE BY NEXT WEEK, I AM CHANGING SERVICES IMMEDIATELY. TGW is scheduled to come on at 9p, but doesn't start until 9:10 or so. Therefore, when I schedule my DVR to record I miss the last 15 minutes of the show and have to watch on demand. I don't know if the time is a CBS network decision or what, but Verizon needs to fix this error or accommodate the time difference in their guide. I have so many issues with Verizon Fios sub-par service especially when it comes to DVR, but this is really getting on my nerves & will force me to change.

    The guide data is not updated when the schedule is shifted by Sports events.  TGW last night by the MASTERS (PGA) that went a bit over schedule.  This is a common problem with ALL DVR's and not unique to Verizon.

  • J2ME programming issues

    hi all,
    i started work in J2ME recently, i m little confuse that for one task i have to develop different programme for different devices.
    can anyone elaborate it that for what tasks we have to develop different programs and for what task i have to make one programme and run on any device regardless of devices constraints.
    and also differentiate between the nokia 60 series, 40 series and like thats issues.
    plz if its not possible here refer me any good tutrial regarding these issues.

    Dear friend,
              I am a final year post graduate student in computer science .I selected J2ME Technology to do my final semester project. As I am just novice in J2ME, I need help from masters
    Like the guys in this forum. Please go through the following sentences and do help me please. I will be thankful to you if u do so.
    Profile:
              The module comes as part of a college portal. The college has a placement cell and each student register in the site with his/her details and also the mobile no. The recruiter who wishes to conduct campus selection also registers in the site and they be provided with facilities to search CVs, Post jobs and all. So the concerned students will be filtered out and they are informed via SMS.
    Problem:
              Even though I am doing a J2ME based project, there involves nothing to be done via J2ME technology as the mobile handset itself has the provision to send and receive SMS. Then what the hell I have to do?
    What I need:
              How can I incorporate mobile in this project .What I mean is that what all ways can we make use of mobile via MIDP application. So dear please dig up ideas to help me get out of this imbroglio. And contact me as early as possible or my future will be a thick dark fumes.
    Regards,
    dEVIL.

  • Payment Program issue

    Hi,
    I'm working on Automatic Payment Process in the form of Letter generated by SAP SCRIPT. The program program initially it was standand form for the letter/receipt generation, now they want to do the same using another custom FORM which is used by some other custom print. I need to change the standard print program as the custom print prg so that i calls its form. But i'm not able to understand the flow of any of the print prgms. The Tcode I'm using FBZP and the payment method is F. Can any one tell me how can i come to know whether the second form can by used by the copy of the standard print program.
    Thanks,
    shamim

    Hi,
    At my side, my client required me to do a totally new SAP SCRIPT for the cheque printing for auto payment run.
    what i did is to change the configuration for auto payment run for payment method C to change the form they are going to call to my own customized SAP SCRIPT (this SAP SCRIPT i did is a copy of the standard SAP SCRIPT) i just modified the copied SAP SCRIPT to my client requirement.
    i will suggest u not to make changes to the standard program, a slight changes might cause error in the standard program. i did try to copy the standard program and modify it, its just too tedious. you will need a lot of time to understand the whole program.
    just my 2 cents worth.

  • Java Concurrent Program issue

    Hello,
    I am fairly new the Java Concurrent Programs concept. I was just trying a simple Hello World example but I cannot seem to run it from the operating system. Here is my Hello World java program I created using Jdeveloper:
    package oracle.apps.fnd.cp.request;
    public class Hello implements JavaConcurrentProgram {
    public static final String RCS_ID = "$Header$";
    public void runProgram(CpContext ctx) {
    ctx.getLogFile().writeln("-- Hello World! --", 0);
    ctx.getOutFile().writeln("-- Hello World! --");
    ctx.getReqCompletion().setCompletion(ReqCompletion.NORMAL, "");
    It compiles fine in Jdev generating the class file. Here is what I did :
    1) Created directory under $JAVA_TOP as follows :
    mkdir $JAVA_TOP/oracle/apps/fnd/cp/sample
    2) moved the Hello.java file there under sample directory
    3) compiled java file using avac $JAVA_TOP/oracle/apps/fnd/cp/sample/Hello.java ( It compiles fine generating the class file )
    4) Now I wanted to test running it : I tried using jre command first as I saw in other posts but this is not working :
    jre -Ddbcfile=$FND_TOP/secure/k021kp-6180_r115dev1.dbc -Drequest.outfile=/export/home/sqadri/outfile oracle.apps.fnd.cp.request.Run oracle.apps.fnd.cp.sample.Hello
    Error :
    ksh: jre: not found
    Then I tried using the other way I saw on posts which is using the java command :
    java -cp $AF_CLASSPATH -Ddbcfile=$FND_TOP/secure/k021kp-6180_r115dev1.dbc -Drequest.outfile=/export/home/sqadri/outfile oracle.apps.fnd.cp.request.Run oracle.apps.fnd.cp.sample.Hello
    This gives me the following error :
    java.lang.NoClassDefFoundError: oracle/apps/fnd/cp/sample/Hello (wrong name: oracle/apps/fnd/cp/request/Hello)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Can anyone tell me what I am doing wrong ? I have tried everything even tried ftp the class file from my local but I get the same error. Any help would be appreciated.
    Thanks

    Ajay,
    Yes you are right. I did not register my java program yet in the concurrent programs.
    I thought I could test it out from the operating system command line before registering it. But looking at your document you sent me it seems I have to do all the steps i.e. define concurrent program etc before I can test it from the operating system. If that's the case then what's the use of trying to test it via operating system using
    java -cp $AF_CLASSPATH -Ddbcfile=$FND_TOP/secure/k021kp-6180_r115dev1.dbc -Drequest.outfile=/export/home/sqadri/outfile oracle.apps.fnd.cp.request.Run oracle.apps.fnd.cp.sample.Hello
    Thanks
    Syed

  • Payment Run Programe Issue Duplicate Enrty in REGUH & REGUP

    Dear All
    I am facing a problem in F-58 transaction, I have developed customized Cheque format in Smartforms, and I customized the standard payment run program RFFOUS_C to ZRFFOU_C, when I payment with F-58 my predefine format will be printout, it is working fine but some time payment tables(REGUH & REGUP) have duplicate the payment Item anybody have some idea or solution whatu2019s goes wrong. Followings are sample entry
    BKPF Entry                                                                               
    MANDT BUKRS BELNR                GJAHR BLART BLDAT         BUDAT           MONAT           CPUDT
      100         2000   1500003026  2010    KZ       07.04.2010 07.04.2010    10 07.04.2010 11:02:47       
    REGUH Entry
      MANDT LAUFD      LAUFI   ZBUKR LIFNR      KUNNR EMPFG VBLNR      AVISG WAERS
       100   07.04.2010 00001O  2000   0000120886             1500003026       PKR 
      100   07.04.2010 00002O   2000   0000120886             1500003026       PKR   
    REGUP ENTRY
    MANDT LAUFD      LAUFI  XVORL ZBUKR LIFNR      KUNNR EMPFG VBLNR      BUKRS BELNR                                                                               
    100   07.04.2010 00001O       2000   0000120886             1500003026 BPL   1500003026
    100   07.04.2010 00001O       2000   0000120886             1500003026 BPL   1500003026
    100   07.04.2010 00002O       2000   0000120886             1500003026 BPL   1500003026
    100   07.04.2010 00002O       2000   0000120886             1500003026 BPL   1500003026
    Thanks In Advance

    The field LAUFI (additional identification) is used to distinguish between several runs with the same reconciliation key date. You can freely define the identification.So multiple entries are result of multiple runs.

Maybe you are looking for

  • Restore files from time machine after new install

    In my office one of my iMac's suffered a complete system crash.  I am reinstalling OS X Lion as I write this post.  The iMac was backed up to an external hard drive using time machine.  After the new install of Lion how do I grab my user files from t

  • Convert  XML page into Internal Table

    Hi, I'm not sure if this post belongs here or not, but here goes. I have a requirement to read in data from a xml page and save the contents into a ABAP internal table. At the moment, I have extracted the contents of the XML page into a string using

  • Create a .jar with a database in mysql????

    Hi !!!! I create a script in .java, and I have none error. My script use a database, to read and to save some data. I create a Manifest.mf Manifest-Version: 1.0 Main-Class: AutoPlanning Class-Path: DriverJava/mm.mysql-2.04/mysql.jar What are the comm

  • Add new configuration item in the List Settings

    All, I would like to add a new item "configuration" in the list settings. For example, the list settings already have following items List name, description and navigation Versioning settings Advanced settings Validation settings Audience targeting s

  • Macbook Pro won't boot! Help me!

    Macbook Pro 15 inch mid 2010 - 4gb - 500gb - running OS X Yosemite Okay. I've tried resetting the NVRAM multiple times. I've also reset the SMC several times as well. I was using my Macbook Pro like usual when all of a sudden it shut down. After that