ALSM_EXCEL_TO_INTERNAL_TABLE:error:sy-subrc=2

hi all,
    i got a problem in transfering data from excel sheet to internal table.
   it throws sy-subrc value =2.it shoes this value when reading fm pgm.
can anyone pl help me.

hi,
this function module uploads data from excel to internal table,
check this sample code and make the changes needed in your program
TYPE-POOLS truxs.
TABLES:zmatnr.
DATA : itab LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
DATA row LIKE alsmex_tabline-row.
data : g_matnr like mara-matnr.
data : count type i.
data : itab_count type i.
data : gi_final like zmatnr occurs 0 with header line.
*data : begin of gi_final occurs 0,
mat_old like mara-matnr,
mat_new like mara-matnr,
end of gi_final.
************************Selection Screen**************************
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETER : pfname LIKE rlgrap-filename OBLIGATORY.
select-options : records for count.
SELECTION-SCREEN END OF BLOCK b1.
**********************At Selection Screen**************************
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pfname.
PERFORM search.
START-OF-SELECTION.
perform process.
form process.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = pfname
i_begin_col = 1
i_begin_row = 2
i_end_col = 12
i_end_row = 65000
TABLES
intern = itab
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
describe table itab lines itab_count.
row = 1.
loop at itab.
if itab-row row.
append gi_final.
clear gi_final.
endif.
case itab-col.
when '1'.
CLEAR G_MATNR.
gi_final-OLD_MATNR = itab-value.
CONCATENATE 'NEW' gi_final-old_matnr INTO itab-value.
gi_final-new_MATNR = itab-value.
endcase.
row = itab-row.
endloop.
append gi_final.
clear gi_final.
CALL FUNCTION 'PROGRESS_INDICATOR'
EXPORTING
I_TEXT = 'File Has Been Successfully Uploaded from Workstation ' .
if not gi_final[] is initial.
if not records-low is initial .
if not records-high is initial.
records-high = records-high + 1.
DESCRIBE TABLE gi_final LINES count.
IF records-high < count.
DELETE gi_final FROM records-high TO count.
ENDIF.
IF records-low <> 1.
IF records-low 0.
DELETE gi_final FROM 1 TO records-low.
ENDIF.
ENDIF.
endif.
endif.
endif.
IF NOT GI_FINAL[] IS INITIAL.
CALL FUNCTION 'PROGRESS_INDICATOR'
EXPORTING
I_TEXT = 'Processing zmatnr table'
I_OUTPUT_IMMEDIATELY = 'X'.
if itab_count count.
message i000 with 'records are not matching'.
exit.
else.
modify zmatnr from table gi_final.
message i000 with 'data base table modified successfully'.
endif.
endif.
endform.
*& Form search
text
--> p1 text
<-- p2 text
FORM search .
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
static = 'X'
CHANGING
file_name = pfname.
ENDFORM. " search
Cheers,
Chandru

Similar Messages

  • ALSM_EXCEL_TO_INTERNAL_TABLE , ERROR SY-SUBRC = 2 , UPLOAD_OLE

    Hi,
    I would like to know in what cases sy-subrc is '2' in function ALSM_EXCEL_TO_INTERNAL_TABLE
    the result of this function depends the version of excel, office ???
    Somebody can help me ?

    Hi Michael,
    It is a Upload error from Excel file.
    The return value of sy-subrc is as follows in Help.SAP.com
    Return Value
    SY-SUBRC
    Return value set by the following ABAP statements. In general, a content of 0 means that the statement was executed without problems.
    ·        ASSIGN sets SY-SUBRC to 0 if assignment to field symbol is possible, otherwise 4.
    ·        ASSIGN <dref>->* sets SY-SUBRC to 0 if dereferencing is possible, otherwise 4.
    ·        AUTHORITY-CHECK sets SY-SUBRC to 0 if the user has the necessary authorization, otherwise 4, 8, 12, 16, 24, 28, 32, or 36 depending on the cause.
    ·        CALL DIALOG with USING sets SY-SUBRC to 0, if processing was successful, otherwise <>0.
    ·        CALL FUNCTION sets SY-SUBRC according to the exception handling.
    ·        CALL METHOD sets SY-SUBRC according to the exception handling.
    ·        CALL SELECTION-SCREEN sets SY-SUBRC to 0 if the user chose Enter or Execute and 4 if the user chose Cancel.
    ·        CALL TRANSACTION with USING sets SY-SUBRC to 0 if processing was successful, otherwise <>0.
    ·        CATCH SYSTEM-EXCEPTIONS sets SY-SUBRC if there are runtime errors after the ENDCATCH statement. The value is specified in the program.
    ·        COMMIT WORK sets SY-SUBRC to 0.
    ·        COMMIT WORK AND WAIT sets SY-SUBRC to 0 if update was successful, otherwise <>0.
    ·        COMMUNICATION INIT DESTINATION u2026 RETURNCODE sets SY-SUBRC as specified.
    ·        CONCATENATE sets SY-SUBRC to 0 if the result fits into target variable, otherwise 4.
    ·        CREATE OBJECT sets SY-SUBRC if the exceptions of the instance constructor are handled.
    ·        CREATE OBJECT in OLE2 sets SY-SUBRC to 0 if an external object was created, otherwise 1,2, 3 with different causes.
    ·        DELETE sets SY-SUBRC to 0 if the operation was successful, otherwise 4 or <> 0 depending on cause.
    ·        DEMAND u2026 MESSAGES INTO sets SY-SUBRC to 0 if a message table is empty, otherwise <> 0.
    ·        DESCRIBE LIST sets SY-SUBRC to 0 if row or list exists, otherwise 4 or 8.
    ·        EXEC SQL - ENDEXEC sets SY-SUBRC to 0 in almost all cases. Only if no set was read with FETCH is SY-SUBRC 4.
    ·        FETCH sets SY-SUBRC to 0 if at least one row was read, otherwise 4.
    ·         GENERATE SUBROUTINE POOL sets SY-SUBRC to 0 if generation was successful, otherwise 8.
    ·        GET CURSOR sets SY-SUBRC to 0 if the cursor is correctly positioned, otherwise 4.
    ·        GET PARAMETER sets SY-SUBRC to 0 if value found in SAP Memory, otherwise 4.
    ·        IMPORT sets SY-SUBRC to 0 if import of data objects was successful, otherwise 4.
    ·        LOAD REPORT sets SY-SUBRC to 0 if the operation was successful, otherwise 4 or 8 depending on cause.
    ·        LOOP sets SY-SUBRC to 0 if loop over extract was passed at least once, otherwise 4.
    ·        LOOP AT sets SY-SUBRC to 0 if loop over internal table was passed at least once, otherwise 4.
    ·        MODIFY sets SY-SUBRC to 0 if operation was successful, otherwise 4.
    ·        MODIFY LINE sets SY-SUBRC to 0 if list row was changed, otherwise <> 0.
    ·        MODIFY sets SY-SUBRC to 0 if operation was successful, otherwise 4.
    ·        OLE2 automation, bundled commands set SY-SUBRC to 0 if all were successfully executed, otherwise 1, 2, 3, 4 depending on cause.
    ·        OPEN DATASET sets SY-SUBRC to 0 if the file was opened, otherwise 8.
    ·        Open SQL commands set SY-SUBRC to 0 if operation was successful, otherwise <>0.
    ·        OVERLAY sets SY-SUBRC to 0 if at least one character is overlayed, otherwise 4.
    ·        READ DATASET sets SY-SUBRC to 0 if the read operation was successful, otherwise 4 or 8 depending on cause.
    ·        READ LINE sets SY-SUBRC to 0 if list row exists, otherwise <> 0.
    ·        READ TABLE sets SY-SUBRC to 0 if the table row was found, otherwise 2, 4, 8 depending on cause.
    ·        REPLACE sets SY-SUBRC to 0 if search string could be replaced, otherwise <> 0.
    ·        ROLLBACK WORK always sets SY-SUBRC to 0.
    ·        SCROLL sets SY-SUBRC to 0 if scrolling in list successful, otherwise 4 or 8 depending on cause.
    ·        SEARCH sets SY-SUBRC to 0 if search string was found, otherwise 4.
    ·        SELECT sets SY-SUBRC to 0 if at least one row was read, otherwise 4 or even 8 with SELECT SINGLE FOR UPDATE.
    ·        SET COUNTRY sets SY-SUBRC to 0 if country ID was found in table T005X, otherwise 4.
    ·        SET BIT sets SY-SUBRC to 0 if bit was set, otherwise <> 0.
    ·        SET TITLEBAR sets SY-SUBRC to 0 if title exists, otherwise 4.
    ·        SHIFT u2026 UP TO sets SY-SUBRC to 0 if position was found in character string, otherwise 4.
    ·        SPLIT sets SY-SUBRC to 0 if size of target fields is sufficient, otherwise 4.
    ·        UPDATE sets SY-SUBRC to 0 if operation successful, otherwise 4.
    ·        WRITE u2026 TO sets SY-SUBRC to 0 if assignment successful, otherwise 4.
    Thanks & Regards,
    Dileep .C

  • ICM 'SSSLERR_SSL_READ' error, with subrc = 110

    Hi,
    After setting up my HTTP RFC connection, loading third party server certificate, and testing successfully mi connection, I´ve run my code.
    When I send my request, everything is fine.
    When I try to get the response (client->receive), I get no text error, with subrc code= 110.
    ICM trace file says:
    *** ERROR during SecudeSSL_Read() from SSL_read()==SSL_ERROR_SSL
        session uses PSE file "/usr/sap/GSD/DVEBMGS00/sec/SAPSSLC.pse"
    SecudeSSL_Read: SSL_read() failed
      secude_error 536872195 (0x20000503) = "handshake failure"
    >>            Begin of Secude-SSL Errorstack            >>
    ERROR in ssl3_read_bytes: (536872195/0x20000503) handshake failure
    WARNING in ssl3_read_bytes: (536875072/0x20001040) received a fatal SSLv3 handshake failure alert message from the peer
    <<            End of Secude-SSL Errorstack
       SSL NI-sock: local=192.168.79.17:60348  peer=201.175.40.6:443
    <<- ERROR: SapSSLRead(sssl_hdl=0x6000000005f35bc0)==SSSLERR_SSL_READ
    *** ERROR => IcmReadFromConn(id=5/222): SapSSLRead returned (-58): SSSLERR_SSL_READ
    *** ERROR => IcmReadFromConn(id=5/222): read failed (rc = -1)
    *** ERROR => IcmHandleNetRead(id=5/222): IcmReadFromConn failed (rc = -1)
    Any idea of what does it means?
    Thanks in advance.
    Federico

    Hi Olivier,
    I don´t see any further information related to the error in the trace.
    I´ll just show you some lines may be you see anything interesting:
    NiIBlockMode: set blockmode for hdl 9 TRUE                                                                            
    *** ERROR during SecudeSSL_Read() from SSL_read()==SSL_ERROR_SSL                                                      
        session uses PSE file "/usr/sap/GSD/DVEBMGS00/sec/SAPSSLC.pse"                                                     
    SecudeSSL_Read: SSL_read() failed --                                                                               
    secude_error 536872195 (0x20000503) = "handshake failure"                                                                    
    >> -
    Begin of Secude-SSL Errorstack -
    >>                                                            
    ERROR in ssl3_read_bytes: (536872195/0x20000503) handshake failure                                                    
    WARNING in ssl3_read_bytes: (536875072/0x20001040) received a fatal SSLv3 handshake failure alert message from the peer        
    << -
    End of Secude-SSL Errorstack -
    <<- ERROR: SapSSLRead(sssl_hdl=0x60000000009273e0)==SSSLERR_SSL_READ                                                  
    ->> SapSSLErrorName(rc=-58)                                                                               
    <<- SapSSLErrorName()==SSSLERR_SSL_READ                                                                               
    *** ERROR => IcmReadFromConn(id=3/1455): SapSSLRead returned (-58): SSSLERR_SSL_READ               
    *** ERROR => IcmReadFromConn(id=3/1455): read failed (rc = -1)                                     
    *** ERROR => IcmHandleNetRead(id=3/1455): IcmReadFromConn failed (rc = -1)                                                      
    Finally, there´s no doubt about that the destination server is the one who sends the alert, and finish communication, right? I mean, it´s not SAP who interrupts the session.
    Hope you could help me.
    Thanks a lot.
    Federico

  • CRM ACE gives authorization error(sy-subrc 4) when executing CRM_ORDER_READ

    Hi,
    In R pipe, ACE work package is created for ONEORDER service request objects. i have written code in the ACE Class based on the rules required by the business. in that code, i need to call the function module, CRM_ORDER_READ to get the related products and partners of the service request object guid that is being passed. this function module gives me no_change_authority error which is sy-subrc = 4, even though i have given my user id, FULL(read, write,delete) access in the ACE workpackage.
    Any suggestions?
    thanks,
    Anisha.

    Hi Benoit ,
    Thanks for your reply , can you please tell me how we can use CRM_ORDER_INITIALIZE FM , what exporting parameters should I pass :
    CALL FUNCTION 'CRM_ORDER_INITIALIZE'
         EXPORTING
           it_guids_to_init  = lt_guid
         EXCEPTIONS
           error_occurred    = 1
           OTHERS            = 2.
    Thanks & regards,
    Akhilesh Bhagat.

  • Error Passing subrc to Fuinction

    Hi All ,
    I Am getting this error in an upgrade environment testing
    Passing the formal parameter "SUBRC" to the field SY-SUBRC is not appropriate .
    since SY-SUBRC is set by the statement,
    This is  while calling FM 'HR_READ_INFOTYPE'.
    Thanks in advance for any input on the reason for error .
    Vinay

    Hello Vinay
    You try to fetch the value of EXPORTING parameter SUBRC into sy-subrc  which is not correct because the sy-subrc will be set by the fm (either = 0 or in case of an exception = 1).
    Not correct:
      data: gt_pa0001     type STANDARD TABLE OF pa0001.
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
    *     TCLAS                 = 'A'
          pernr                 = '12345678'
          infty                 = '0001'
    *     BEGDA                 = '18000101'
    *     ENDDA                 = '99991231'
    *     BYPASS_BUFFER         = ' '
    *     LEGACY_MODE           = ' '
        IMPORTING
          SUBRC                 = sy-subrc
        tables
          infty_tab             = gt_pa0001
        EXCEPTIONS
          INFTY_NOT_FOUND       = 1
          OTHERS                = 2.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Correct:
      data: gt_pa0001     type STANDARD TABLE OF pa0001,
            gd_rc         type syst-subrc.
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
    *     TCLAS                 = 'A'
          pernr                 = '12345678'
          infty                 = '0001'
    *     BEGDA                 = '18000101'
    *     ENDDA                 = '99991231'
    *     BYPASS_BUFFER         = ' '
    *     LEGACY_MODE           = ' '
        IMPORTING
          SUBRC                 = gd_rc
        tables
          infty_tab             = gt_pa0001
        EXCEPTIONS
          INFTY_NOT_FOUND       = 1
          OTHERS                = 2.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
      Uwe

  • What's the difference between FM 'UPLOAD' and FM 'ALSM_EXCEL_TO_INTERNAL_T'

    What's the difference between FM 'UPLOAD' and FM 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    thanks!

    hi,
    Generally FM 'ALSM_EXCEL_TO_INTERNAL_TABLE'  is used for reading Excel sheet i.e, either row wise or column wise . where as WS_UPLOAD will read the entire data in to an internal table in a file format.
    for illustration as how it is used check this out
    PARAMETER p_infile like rlgrap-filename.
    *START OF SELECTION
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           exporting
                filename                = p_infile
                i_begin_col             = '1'
                i_begin_row             = '2'  "Do not require headings
                i_end_col               = '14'
                i_end_row               = '31'
           tables
                intern                  = itab
           exceptions
                inconsistent_parameters = 1
                upload_ole              = 2
                others                  = 3.
      if sy-subrc <> 0.
        message e010(zz) with text-001. "Problem uploading Excel Spreadsheet
      endif.
    http://www.sapdevelopment.co.uk/file/file_upexcelalt2.htm
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = gd_file
          has_field_separator     = 'X'  "file is TAB delimited
        TABLES
          data_tab                = it_record
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
        IF sy-subrc NE 0.
          write: 'Error ', sy-subrc, 'returned from GUI_UPLOAD FM'.
          skip.
        endif.
    http://www.sapdevelopment.co.uk/file/file_uptabpc.htm
    Regards,
    Santosh

  • Error in bdc uupload

    hi all
    during bdc recording when i upload files using pgm the values are uploaded using a # symbol why such error is occurin can anyone help me plz

    Check out the below code for the uploading of data from an excel sheet...
    *& Report  ZUPLOAD_CLASS                                               *
    REPORT  ZUPLOAD_CLASS                           .
    *added for Excel file upload
    selection-screen begin of block selscr with frame title text-001.
    parameters : p_file type rlgrap-filename obligatory .     "Input File
    parameters: begcol type i default 1 no-display,
                begrow type i default 1 no-display,
                endcol type i default 100 no-display,
                endrow type i default 32000 no-display.
    * Tick don't append header
    parameters: kzheader as checkbox.
    selection-screen end of block selscr.
    data: begin of intern occurs 0.
            include structure  alsmex_tabline.
    data: end of intern.
    data: begin of intern1 occurs 0.
            include structure  alsmex_tabline.
    data: end of intern1.
    data: begin of t_col occurs 0,
           col like alsmex_tabline-col,
           size type i.
    data: end of t_col.
    data: zwlen type i,
          zwlines type i.
    data: begin of fieldnames occurs 3,
            title(60),
            table(6),
            field(10),
            kz(1),
          end of fieldnames.
    data: begin of data_tab occurs 0,
           value_0001(50),
           value_0002(50),
           value_0003(50),
           value_0004(50),
            value_0005(50),
           value_0006(50),
           value_0007(50),
           value_0008(50),
            value_0009(50),
           value_0010(50),
           value_0011(50),
           value_0012(50),
            value_0013(50),
           value_0014(50),
           value_0015(50),
           value_0016(50),
            value_0017(50),
           value_0018(50),
           value_0019(50),
           value_0020(50),
            value_0021(50),
           value_0022(50),
           value_0023(50),
           value_0024(50),
           value_0025(50),
           value_0026(50),
          end of data_tab.
    types : begin of ttab ,
            type(3),
            class(18),
            desc(50),
            alloc(1),
            char1(30),
            char2(30),
            char3(30),
            char4(30),
            char5(30),
            char6(30),
            char7(30),
            char8(30),
            char9(30),
            char10(30),
            char11(30),
            char12(30),
            char13(30),
            char14(30),
            char15(30),
            char16(30),
            char17(30),
            char18(30),
            char19(30),
            char20(30),
            org(10),
            origin(10),
            end of ttab.
    data itab type ttab occurs 0 with header line.
    data: tind(4) type n.
    data: zwfeld(19).
    data : CLASSNUMNEW like BAPI_CLASS_KEY-CLASSNUM.
    data : CLASSTYPENEW like BAPI_CLASS_KEY-CLASSTYPE.
    data : CLASSBASICDATA like BAPI1003_BASIC.
    data : CLASSDESCRIPTIONS like BAPI1003_CATCH occurs 0 with header line.
    data : CLASSLONGTEXTS like BAPI1003_LONGTEXT occurs 0 with header line.
    data : BAPIRET2 like BAPIRET2 occurs 0 with header line.
    data : CLASSCHARACTERISTICS like BAPI1003_CHARACT occurs 0
           with header line.
    field-symbols: <fs1>.
    *include zbdcrecx1.
    data : n type i.
    *  AT SELECTION-SCREEN
    * F4 for Input file
    at selection-screen on value-request for p_file.
      perform get_local_file_name using p_file.
    start-of-selection.
      call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_file
          i_begin_col             = begcol
          i_begin_row             = begrow
          i_end_col               = endcol
          i_end_row               = endrow
        TABLES
          intern                  = intern
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          others                  = 3.
      if sy-subrc <> 0.
        write:/ 'Upload Error ', sy-subrc.
      endif.
    end-of-selection.
      loop at intern.
        intern1 = intern.
        clear intern1-row.
        append intern1.
      endloop.
      sort intern1 by col.
      loop at intern1.
        at new col.
          t_col-col = intern1-col.
          append t_col.
        endat.
        zwlen = strlen( intern1-value ).
        read table t_col with key col = intern1-col.
        if sy-subrc eq 0.
          if zwlen > t_col-size.
            t_col-size = zwlen.
    *                          Internal Table, Current Row Index
            modify t_col index sy-tabix.
          endif.
        endif.
      endloop.
      describe table t_col lines zwlines.
      sort intern by row col.
      if kzheader = 'X'.
        loop at intern.
          fieldnames-title = intern-value.
          append fieldnames.
          at end of row.
            exit.
          endat.
        endloop.
      else.
        do zwlines times.
          write sy-index to fieldnames-title.
          append fieldnames.
        enddo.
      endif.
      sort intern by row col.
      loop at intern.
        if kzheader = 'X'
        and intern-row = 1.
          continue.
        endif.
        tind = intern-col.
        concatenate 'DATA_TAB-VALUE_' tind into zwfeld.
        assign (zwfeld) to <fs1>.
        <fs1> = intern-value.
        at end of row.
          append data_tab.
          clear data_tab.
        endat.
      endloop.
      loop at data_tab.
        itab-type = data_tab-value_0001.
        itab-class = data_tab-value_0002.     
        itab-desc = data_tab-value_0003.
        itab-alloc = data_tab-value_0004.
        itab-char1 = data_tab-value_0005.
        itab-char2 = data_tab-value_0006.
        itab-char3 = data_tab-value_0007.     
        itab-char4 = data_tab-value_0008.
        itab-char5 = data_tab-value_0009.
        itab-char6 = data_tab-value_0010.
        itab-char7 = data_tab-value_0011.     
        itab-char8 = data_tab-value_0012.
        itab-char9 = data_tab-value_0013.
        itab-char10 = data_tab-value_0014.
        itab-char11 = data_tab-value_0015.     
        itab-char12 = data_tab-value_0016.
        itab-char13 = data_tab-value_0017.
        itab-char14 = data_tab-value_0018.
        itab-char15 = data_tab-value_0019.     
        itab-char16 = data_tab-value_0020.
        itab-char17 = data_tab-value_0021.
        itab-char18 = data_tab-value_0022.
        itab-char19 = data_tab-value_0023.     
        itab-char20 = data_tab-value_0024.
        itab-org = data_tab-value_0025.
        itab-origin = data_tab-value_0026.
        append itab.
        clear itab.
      endloop.
    n = 0.
      loop at itab.
        CLASSNUMNEW = itab-class.
        CLASSTYPENEW = itab-type.
    *    CLASSTYPENEW-CLASSNUM = itab-class.
        CLASSBASICDATA-STATUS = '1'.
        CLASSBASICDATA-CLASSGROUP = 'NFG_CLASS'.
        CLASSBASICDATA-DEPARTMENT_VIEW = itab-org.
        CLASSBASICDATA-VALID_FROM = '20050405'.
        CLASSDESCRIPTIONS-LANGU = 'E'.
        CLASSDESCRIPTIONS-LANGU_ISO = 'EN'.
        CLASSDESCRIPTIONS-CATCHWORD = itab-desc.
        append CLASSDESCRIPTIONS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char1.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char2.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char3.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char4.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char5.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char6.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char7.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char8.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char9.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char10.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char11.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char12.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char13.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char14.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char15.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char16.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char17.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char18.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char19.
        append CLASSCHARACTERISTICS.
        CLASSCHARACTERISTICS-NAME_CHAR = itab-char20.
        append CLASSCHARACTERISTICS.
        CALL FUNCTION 'BAPI_CLASS_CREATE'
          EXPORTING
            CLASSNUMNEW                 = CLASSNUMNEW
            CLASSTYPENEW                = CLASSTYPENEW
    *       CHANGENUMBER                =
            CLASSBASICDATA              = CLASSBASICDATA
    *       CLASSDOCUMENT               =
    *       CLASSADDITIONAL             =
    *       CLASSSTANDARD               =
          TABLES
            RETURN                      = BAPIRET2
            CLASSDESCRIPTIONS           = CLASSDESCRIPTIONS
            CLASSLONGTEXTS              = CLASSLONGTEXTS
            CLASSCHARACTERISTICS        = CLASSCHARACTERISTICS
    *       CHARACTOVERWRITE            =
    *       CHARACTVALUEOVERWRITE       =
    *       CHARACTVALUETEXTOVR         =
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *     EXPORTING
    *       WAIT          =
    *     IMPORTING
    *       RETURN        =
      clear CLASSNUMNEW.
      clear CLASSTYPENEW.
      clear CLASSBASICDATA.
      clear CLASSDESCRIPTIONS .
      refresh CLASSDESCRIPTIONS .
      clear CLASSLONGTEXTS.
      refresh CLASSLONGTEXTS.
      clear CLASSCHARACTERISTICS.
      refresh CLASSCHARACTERISTICS.
    loop at bapiret2 where type = 'E'.
           write :/ bapiret2-message  , itab-class.
        endloop.
         loop at bapiret2 where type = 'S' or type = 'W' or type = 'I'.
          at last.
          n = n + 1.
          write : / 'Uploaded class' , itab-class.
          endat.
        endloop.
      endloop.
    write :/ 'Records Uploaded ', n.
    form get_local_file_name using file type rlgrap-filename.
      call function 'KD_GET_FILENAME_ON_F4'
        CHANGING
          file_name     = file
        EXCEPTIONS
          mask_too_long = 1
          others        = 2.
      if sy-subrc <> 0.
        message i000(fb) with
          'Error in getting filename'(004).
      endif.
    endform.                    " GET_LOCAL_FILE_NAME

  • Error while sendinf pdf file as attachment

    hi all.,
    am trying to send the pdf file of a smartform as attachment thru mail .. but its getting failed am getting error (sy-subrc = 6 ) after calling the fm so_new_document_att_send_api1 .. pls. suggest the possible cause of errors.
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
            IMPORTING
              bin_filesize           = lv_bin_filesize
            TABLES
              otf                    = ls_job_output_info-otfdata
              doctab_archive         = it_docs
              lines                  = it_lines
            EXCEPTIONS
              err_conv_not_possible  = 1
              err_otf_mc_noendmarker = 2
              OTHERS                 = 3.
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    *--- Get filename to store DYNAMIC
          IF p_lsdir IS NOT INITIAL.
            MOVE p_lsdir  TO lv_path.
          ENDIF.
          CONDENSE wa_kna1-kunnr.
          CONCATENATE 'SOA' wa_kna1-kunnr  '.pdf' INTO lv_name.
          CONCATENATE  lv_path lv_name INTO  lv_fullpath.
          break ibm_prasad.
          CLEAR wa_buffer.
          LOOP AT it_lines.
            TRANSLATE it_lines USING '~'.
            CONCATENATE wa_buffer it_lines INTO wa_buffer.
          ENDLOOP.
          TRANSLATE wa_buffer USING '~'.
          DO.
            i_record = wa_buffer.
            APPEND i_record.
            SHIFT wa_buffer LEFT BY 255 PLACES.
            IF wa_buffer IS INITIAL.
              EXIT.
            ENDIF.
          ENDDO.
          REFRESH: i_reclist,
                   i_objtxt,
                   i_objbin,
                   i_objpack.
          CLEAR wa_objhead.
          i_objbin[] = i_record[].
          i_objtxt = 'SOA test with pdf-Attachment!'.
          APPEND i_objtxt.
          DESCRIBE TABLE i_objtxt LINES v_lines_txt.
          READ TABLE i_objtxt INDEX v_lines_txt.
          wa_doc_chng-obj_name = 'SOA'.
          wa_doc_chng-expiry_dat = sy-datum + 10.
          wa_doc_chng-obj_descr = 'SOA'.
          wa_doc_chng-sensitivty = 'F'.
          wa_doc_chng-doc_size = v_lines_txt * 255.
    *     Maint Text
          CLEAR i_objpack-transf_bin.
          i_objpack-head_start = 1.
          i_objpack-head_num = 0.
          i_objpack-body_start = 1.
          i_objpack-body_num = v_lines_txt.
          i_objpack-doc_type = 'RAW'.
          APPEND i_objpack.
    * Attachment (pdf-Attachment)
          i_objpack-transf_bin = 'X'.
          i_objpack-head_start = 1.
          i_objpack-head_num = 0.
          i_objpack-body_start = 1.
          DESCRIBE TABLE i_objbin LINES v_lines_bin.
          READ TABLE i_objbin INDEX v_lines_bin.
          i_objpack-doc_size = v_lines_bin * 255 .
          i_objpack-body_num = v_lines_bin.
          i_objpack-doc_type = 'PDF'.
          i_objpack-obj_name = 'SOA Eail'.
          i_objpack-obj_descr = 'test'.
          APPEND i_objpack.
          CLEAR i_reclist.
          i_reclist-receiver =  <mail id>
          i_reclist-rec_type = 'U'.
          APPEND i_reclist.
          CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
              document_data              = wa_doc_chng
              put_in_outbox              = 'X'
              commit_work                = 'X'
            TABLES
              packing_list               = i_objpack
              object_header              = wa_objhead
              contents_bin               = i_objbin
              contents_txt               = i_objtxt
              receivers                  = i_reclist
            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.
    thanks
    suresh

    u need to use this SO_NEW_DOCUMENT_ATT_SEND_API1
    check this code tutorial on how to add pdf file as an attachment
    u need to modify the code to read the pdf from directory then rest of code is same
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/mailsendthroughoutputcontrols
    кu03B1ятu03B9к
    Edited by: kartik tarla on Mar 9, 2009 7:31 PM

  • RFC connection Error in SLDCheck

    Hi All,
    I am trying to logon to Integration builder for that i getting the ESR builder address is not maintain. for this i have chk in SLDCheck t code ,there i am getting LCRSAPRFC connection error.I have test the RFC connection in that i am getting the
    the error in register server program
    Error Details     ERROR: program LCRSAPRFC_XID not registered
    now wht i have to do for troubleshooting
    Regards

    Thanx  for reply
    when I test connection to  Connection Test SLD_UC     error
    Logon     Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: program SLD_UC not registered
    Error Details     LOCATION: SAP-Gateway on host sapdevpi / sapgw00
    Error Details     DETAIL: TP SLD_UC not registered
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 62
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1778
    Error Details     RETURN CODE: 679
    Error Details     SUBRC: 0
    Error Details     RELEASE: 701
    Error Details     TIME: Fri Jan  8 11:05:42 2010
    Error Details     VERSION: 2
    RFC SLD_UC is connection T 
    Gateway Host  sapdevpi
    Gateway server  sapgw00
    same error with
    Connection Test SLD_NUC
    Connection Test SAPSLDAPI   ( program Id SAPSLDAPI_DPI )
    Connection Test SAPJ2EE
    In Connection Test LCRSAPRFC error  program id LCRSAPRFC_DPI
    Logon     Cancel
    Error Details     max no of 100 conversations exceeded / CPIC-CALL: 'ThSAPCMRCV' : cmRc=17 thRc=45
    Error Details     ERROR: max no of 100 conversations exceeded
    Error Details     LOCATION: CPIC (TCP/IP) on host sapdevpi
    Error Details     COMPONENT: CPIC (TCP/IP) with Unicode
    Error Details     COUNTER: 82
    Error Details     MODULE: r3cpic_mt.c
    Error Details     LINE: 10791
    Error Details     RETURN CODE: 466
    Error Details     SUBRC: 0
    Error Details     RELEASE: 701
    Error Details     TIME: Fri Jan  8 11:12:56 2010
    Error Details     VERSION: 3
    Regards
    shahid

  • RFC connection Error

    Dear All,
        when i connect our BI System to R/3 system via RFC in SM59 ,i am getting following error in BI system and also The problem occur  in particular instance .(Other instance working fine in BI system)
    Logon     Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: timeout during allocate
    Error Details     LOCATION: SAP-Gateway on host chwslp05 / sapgw01
    Error Details     DETAIL: no connect of TP sapdp15 from host sapp3b.eame.syngenta.org after 20 s
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 162003
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1973
    Error Details     RETURN CODE: 242
    Error Details     SUBRC: 0
    Error Details     RELEASE: 700
    Error Details     TIME: Mon Apr 27 14:29:33 2009
    Error Details     VERSION: 2
    Any one please suggest.
    Thanks,
    Thirumoorthy.

    mostly your gateway servicve is not working check smgw tcode on that instance
    you can do this goto sm59->select the instace execute tcode smgw
    easy way is restart the instance
    it will start working
    Samrat

  • RFC Connection error in SM59 for SAP J2EE

    Hi All,
    i am getting the following error description while testing the connection for
    SAP J2EE ...
    Connection Test SAPJ2EE  
    Connection Type TCP/IP Connection  
    Logon              Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: program sapfallback not registered
    Error Details     LOCATION: SAP-Gateway on host filip / sapgw00
    Error Details     DETAIL: TP sapfallback not registered
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 1483
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1694
    Error Details     RETURN CODE: 679
    Error Details     SUBRC: 0
    Error Details     RELEASE: 700
    Error Details     TIME: Tue Mar 31 02:44:35 2009
    Error Details     VERSION: 2
    Help me resolve this
    Regards,
    Mahesh.

    Hi,
    Please follow this steps:
    Creating RFC Destinations in the ABAP and Java Environment
    You need to create the following RFC destinations in transaction SM59 (ABAP) and the Visual Administrator (Java):
    u2022 AI_RUNTIME_JCOSERVER
    u2022 AI_DIRECTORY_JCOSERVER
    u2022 LCRSAPRFC
    u2022 SAPSLDAPI
    Depending on your client settings, it may be necessary to be logged on your SAP Exchange Infrastructure host as SAP system user with the authorization to maintain customizing tables and to release transport orders. Note, that user "SAP*" or "DDIC" does not have these authorizations.
    Maintaining the RFC Connections (Transaction SM59)
    1. Log on to your SAP Exchange Infrastructure central instance host.
    2. Call transaction SM59.
    3. Choose Create.
    4. Enter at least the following:
    RFC destination: AI_RUNTIME_JCOSERVER
    Connection type: T
    Description: <your description>
    5. Choose ENTER
    6. Choose the tab Technical settings and do the following:
    a. Select Registered Server Program
    b. In the Program ID field, enter: AI_RUNTIME_<SID> where <SID> is the SAP system ID of your Integration Server host. Use uppercase letters only.
    c. Enter Gateway host and Gateway service of your Integration Server host. To find out the required parameters:
    a. On the Integration Server host, call transaction SMGW
    b. Choose Goto u2192 Parameters u2192 Display (see entries for gateway hostname and gateway service)
    7. Choose tab Special Options and select the flag Unicode in the box Character Width in Target System.
    8. Save your settings.
    9. Repeat the steps 3 u2013 8 for the remaining destinations:
    Destination
    Values
    AI_DIRECTORY_JCOSERVER
    Program ID: AI_DIRECTORY_<SID>, where <SID> is the SAP system ID of your SAP XI host
    LCRSAPRFC
    Program ID: LCRSAPRFC_<SID>, where <SID> is the SAP system ID of your SAP XI host.
    SAPSLDAPI
    Program ID: SAPSLDAPI_<SID>, where <SID> is the SAP system ID of your SAP XI host.
    10. Leave the transaction SM59 open for later tests.
    J2EE Configuration for the Destinations (Visual Administrator)
    1. On your SAP Exchange Infrastructure central instance host, start the J2EE Engine administration tool.
    2. Choose Cluster u2192 Server u2192 Services u2192 JCo RFC Provider
    3. In the section RFC destination, enter exactly the same program ID and gateway options for AI_RUNTIME_JCOSERVER that you used in the step Maintaining the RFC connection above. Additionally, set the number of processes to 10.
    4. In the section Repository, do the following:
    a. Enter the parameter for the SAP XI host: Application Server, System Number, Client and Language.
    b. For User and Password maintain the login parameters for the user SAPJSF.
    c. Select the flag Unicode.
    6. Choose Set.
    7. Repeat the steps 3 u2013 6 for the remaining destinations:
    Destination
    Values
    AI_DIRECTORY_JCOSERVER
    u2022 Corresponding values from SM59
    u2022 Number of processes: 10
    LCRSAPRFC
    u2022 Corresponding values from SM59
    u2022 Number of processes: 3
    SAPSLDAPI
    u2022 Corresponding values from SM59
    u2022 Number of processes: 3
    Testing the RFC Destination
    After you have maintained all RFC destinations in both the ABAP and Java environment, you can check all the connections above as follows:
    1. Call transaction SM59 again.
    2. Open your RFC destination.
    3. Choose Test Connection. No error should be displayed.
    This will solve your problem.
    Thanks
    Laxmi Bhushan

  • RFC connection error (VPN-access)

    Hi!
    I have the following error for the RFC connection:
    The RFC connection is setup as follows.
    /H/10.101.7.1/S/3299/H/10.151.6.194
    10.101.7.1 = IP of our SAP Router
    10.151.6.194 = IP of customer system
    The RFC connection is established:
    SAP Router (intern) --> Target systems
    The error is:
    Logon     Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: partner not reached (host 10.151.6.194, service sapgw20)
    Error Details     LOCATION: SAP-Gateway on host bksapp01 / sapgw20
    Error Details     DETAIL: NiPConnect2
    Error Details     CALL: SiPeekPendConn
    Error Details     COMPONENT: NI (network interface)
    Error Details     COUNTER: 592
    Error Details     ERROR NUMBER: 10060
    Error Details     ERROR TEXT: WSAETIMEDOUT: Connection timed out
    Error Details     MODULE: nixxi.cpp
    Error Details     LINE: 8777
    Error Details     RETURN CODE: -10
    Error Details     SUBRC: 0
    Error Details     RELEASE: 640
    Error Details     TIME: Thu Jun 19 10:42:42 2008
    Error Details     VERSION: 37
    Can some one help to solve the problem?
    Thank you very much
    Thom

    Hi
    Change the saprouter string to
    /H/10.101.7.1/S/3299/H/10.151.6.194/S/32<system number>
    and try !!!

  • RFC connection error when registering PROGRAM ID.

    Hi,
    I created a RFC connection of type T.
    I gave the following parameters ->
    gateway host: hostname and then ip-address
    gateway service: sapgwxx
    Registered program id: xxx
    It is giving me the following error:
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: program sapgwxx not registered
    Error Details     LOCATION: SAP-Gateway on host <hostname> / sapgwxx
    Error Details     DETAIL: TP sapgwxx not registered
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 2696
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1777
    Error Details     RETURN CODE: 679
    Error Details     SUBRC: 0
    Error Details     RELEASE: 700
    Can anyone help me in troubleshooting the issue.
    Also I am not able to register this program id in Visual Admin -> Services -> JCo RFC Provider. Here it is giving me an error. Can anyone guide me in this?
    Points to be rewarded for any kind of small help.

    Thanks Ramesh.
    I followed the blog. Here are the steps that I did.
    RFC destination:
    1. To create the RFC go to TCODE: SM59  <b>-> Done</b>2. Create new destination of type T (TCP/IP) <b>-> Done</b>
    3. Make sure you select Registered Server Program option before writing your program ID <b>-> Done</b>
    4. Write you program ID (remember it's case-sensitive) <b>-> gave the SID name</b>
    5. In the gateway host and gateway service write the values of your "Application system" - business system (not the XI server) <b>-> Typed the gateway hostname and gateway service "sapgw<instance no>", that I got from SMGW.</b>
    But still I face the same problem. It get the following error:
    Logon     Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: program <SID name> not registered
    Error Details     LOCATION: SAP-Gateway on host xxxxx / sapgwxx
    Error Details     DETAIL: TP <SID Name> not registered
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 2719
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1777
    Error Details     RETURN CODE: 679
    Error Details     SUBRC: 0
    Error Details     RELEASE: 700
    Error Details     TIME: Thu Nov  1 10:39:43 2007
    Error Details     VERSION: 2
    Kindly help me out.

  • Error 'Program not registered' while testing RFC

    Hi
    I have created a RFC with type T. When I am testing the same through SM59, I am getting error:
    Logon     Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: program <program name>not registered
    Error Details     LOCATION: SAP-Gateway on host xxxxxx / sapgw01
    Error Details     DETAIL: TP <program name> not registered
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 6268
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1694
    Error Details     RETURN CODE: 679
    Error Details     SUBRC: 0
    Error Details     RELEASE: 700
    Error Details     TIME: Tue Jan 27 00:56:55 2009
    Error Details     VERSION: 2
    Can anybody help me in this?
    Thanks in advance

    Something helpful related to this
    The program in the above error should be registered in the gateway for this connection test to complete successfully. The server program rfcexec is responsible for its registration on the gateway.
    To register the program login into the OS level as sudo su - <sid>adm and execute the following command.
    rfcexec u2013g<program id> -a<gateway host name> -x<gateway service>
    rfcexec is the server program name, the <program id> can be obtained from SM59, it is case sensitive and should match with the entry in SM59. The <gateway host name> and <gateway service> can be obtained from the transaction SMGW. When this command is executed it goes to a hanging loop.
    The connection will fail once this command is terminated or the user executing this command logs off
    To avoid this, instead of using the above mentioned command an entry should be made in the file saprfc.ini
    To do this, execute the following command
    sudo su - <sid>adm
    rfcexec u2013D<destination name>
    <destination name> is the RFC destination name in SM59
    So now we are done with registering the server program, but how do we check it is registered, once a server program is registered it is displayed in the Logged on clients in SMGW.
    In transaction SMGW choose GOTO-> Logged on clients. There should be an entry for the server program in the screen that is displayed with system type Registered_TP (which indicates that the program is registered)

  • Error 'Program not registered' while testing RFC - SRM to MDM / TCP/IP conn

    Hello All,
    While testing RFC connection in SRM, we are getting this error. This connection between SRM to MDM. Any inputs will be highly appreciated.
    Error Details LOCATION: SAP-Gateway on host <hostname> / sapgw<instance no>
    our server OS : windows 2008 server
    We are getting error while doing connection test in SRM.
    This is sm59 connection (TCP/IP ) connection.
    Connection Type: T / RFC destination Name: MDM_API_CATALOG
    Registered server program: hostname.MDS
    I checked smgw transaction ..Logged on clients...Program id is not showing. Any hint will be helpful.
    I Checked this MDM setup also.
    MDS setup
    In mdm server go to folder F:\usr\sap\DM1\MDS00\config
    Open MDM.ini file in notepad
    Add the below 2 entries.
    SAP RFC Gateways= GWHOST=XXXX.hostnamexxx.xxx GWSERV=sapgw00
    Trusted SAP Systems= XXD
    This will enable gateway connection between SRM and MDM and will enable trusted connection.
    For trusted connections to work, we created a service user called SRM_MDM_API with SAP_ALL in SRM  and also created the same user in MDM with Default role.
    Error message:
    Logon  Connection Error
    Error Details    Error when opening an RFC connection
    Error Details    ERROR: program XXXXXXXXPRD.MDS not registered
    Error Details    LOCATION: SAP-Gateway on host XXXXXXXXprd.xx.xxxxxxhostname.xxx / sapgw00
    Error Details    DETAIL: TP XXXXXXXXPRD.MDS not registered
    Error Details    COMPONENT: SAP-Gateway
    Error Details    COUNTER: 77326
    Error Details    MODULE: gwr3cpic.c
    Error Details    LINE: 1778
    Error Details    RETURN CODE: 679
    Error Details    SUBRC: 0
    Error Details    RELEASE: 700
    Error Details    TIME:
    Error Details    VERSION: 2
    Procedure Tried
    1)  This procedure is for Linux OS - Similarly we tried in Windows OS ( If any procedure is wrong also, Please correct us)
    To register the program login into the OS level as sudo su u2013 <sid>adm and execute the following command.
    rfcexec u2013g<program id> -a<gateway host name> -x<gateway service>
    rfcexec is the server program name, the <program id> can be obtained from SM59, it is case sensitive and should match with the entry in SM59. The <gateway host name> and <gateway service> can be obtained from the transaction SMGW. When this command is executed it goes to a hanging loop.
    The connection will fail once this command is terminated or the user executing this command logs off
    2)
    To avoid this, instead of using the above mentioned command an entry should be made in the file saprfc.ini
    To do this, execute the following command
    sudo su u2013 <sid>adm
    rfcexec u2013D<destination name>
    <destination name> is the RFC destination name in SM59
    In order to do above step 2,  we could not find saprfc.ini in windows 2008 server. Please let us know path where it will be usually?
    3) Already checked the notes sapnote_0000684841
    I know that it is generic error..This is happening to specific one of system only.
    Thanks
    Edited by: saptest2011 on May 20, 2011 5:36 PM

    Hello SM,
    Thanks for your quick reply.
    Thanks for sharing link for document ie Configure the MDM Administration_cockpit. It is helpful. I read that document.
    But still issue remain there.
    The same RFC connection works between SRM sandbox to MDM sandbox.
    Only issue with SRM Prod to MDM Prod (newly built system)
    difference between MDM Prod and MDM sandbox.
    MDM Prod runs: Windows server 2008 OS
    MDM Sandbox runs: Windows server 2003 OS
    Landscape: PI7.1, MDM 7.1 and SRM 5.5, SRM-MDM Catalog 3.0
    Even i did os01 tcode ping test using host name (specific IP address) from SRM prod to MDM prod, it is fine.
    Thanks a lot for your help.
    I checked these notes also
    Note 353597 - Registering a server program
    Note 44844 - No connection to registered RFC program
    Note: in smgw tcode in SRM system, the required program id is not showing in logged on clients
    Thanks
    Edited by: saptest2011 on May 23, 2011 5:00 PM
    Edited by: saptest2011 on May 23, 2011 5:39 PM

Maybe you are looking for

  • Reinstall Photoshop CS6 from Cloud?

    Having problems with Photoshop CS6. I downloaded from the Creative Cloud subscription I purchased and it worked fine for a few days. But now, when I launch photoshop, I get the error: "one or more files in the Adobe Appliation Support folder, necessa

  • Web Page Composer Link

    Hi All, Can anyone tel me the exact link from where Web Page Composer can be downloaded , My portal is running on SP12 .I have gone through SDN but could not find any pointers. Points will be awarded for helpful answer. Thanks Pankaj

  • Consumption movement types

    Hi Greetings I need to develop a Z report for calculating the consumption for a given period. Can you please suggest me the list of movement types to be considered for calculating the stock consumption for the given period. Gobinathan G

  • MacBook Pro SMC Update 1.6 - Freeze

    Hi all, Facts: model: MacBookPro8,1 OS: OS X 10.7.5 Story: i got a Macbook Pro 8,1 (13,3" Early 2011) which worked flawlessly - until yesterday. Yesterday I decided to install the MacBook Pro SMC Update 1.6 (http://support.apple.com/kb/DL1626) - a bi

  • Error when attempting to install itunes

    Alright, this isn't really for me, but a friend of mine has been having some issues with her computer lately, and had to redownload itunes and a few other programs. upon attempting to install the program however, she received an error message saying