Urgent: Error in FM FTP_CONNECT

Hello Experts,
I am trying to connect SAP server with external FTP server using FM FTP_CONNECT.
I'm passing following parameters to the FM:
user = p_user
password = p_password
host = ip address of FTP server
rfc_destination = SAPFTPA
p_user and p_password are blank, since no userid and password are required
to access the FTP server.
The FM is giving the following error:
Attempt to setup connection to FTP server failed.
I can access the FTP server directly from my machine through run.
I have tried programs RSFTP002 and RSFTP004. They are giving the same error.
Basically, inside the FM FTP_CONNECT, the system again calls the FM.
CALL FUNCTION 'FTP_CONNECT' DESTINATION RFC_DESTINATION
     EXPORTING USER = USER PWD = PASSWORD ACCT = ACCOUNT HOST = HOST
               TRACE = FTP_TRACE GUSER = GATEWAY_USER
               GPWD = GATEWAY_PASSWORD GHOST = GATEWAY_HOST
     IMPORTING HANDLE = HANDLE ERROR = CERROR
     EXCEPTIONS SYSTEM_FAILURE = 1 COMMUNICATION_FAILURE = 2.
Here it is returning CERROR = 2.
sy-subrc is 0.
Can anybody please help? Its really urgent.

HI SANTOSH,
I had changed according what u said and it is not giving runtime error .
but it is not giving the value as if i send the value of batch and the prd orderr. plz tell me how do it get the output.
i had written the code of program like this:-
TABLES : CHVW.
Parameters : P_CHARG like CHVW-CHARG,
             P_AUFNR like CHVW-AUFNR.
DATA: PRD LIKE CHVW-AUFNR.
CALL FUNCTION 'ZFIND_PRDORD'
EXPORTING
QP_CHARG = P_CHARG
P_AUFNR = P_AUFNR
IMPORTING
P_RETVAL = PRD.
WRITE : / PRD .
PLZ HELPMEOUT HOW TO DO THIS.

Similar Messages

  • URGENT : Error: nca_connect_server: cannot communicate host ...on port....

    URGENT : Error: nca_connect_server: cannot communicate host ...on port....
    Platform :
    front end - Forms6i
    App Server - Oracle 9iAS
    Testing tool - Mercurry Load Runner 8.0
    Database - Oracle 9i
    Hi Gurus,
    I am trying to run a script in Load runner but its always coming out by following error message -
    vuser_init.c(63): Warning: ifError expired (5) during NCA handshake,
    vuser_init.c(63): Warning: ifError expired (5)
    vuser_init.c(63): Error: nca_connect_server: cannot communicate with host 202.46.209.42 on port 7778
    Abort was called from an action.
    forms url which used in test script is running fine without any error with same port, I am wondering why it is returning error with Load Runner ?
    Quick help on pinpointing the issue will be highly appreciated, Following is the Loadrunner script m using -
    vuser_init()
         web_set_max_html_param_len("1024");
         web_url("f6isrvl",
              "URL=http://202.46.209.42:7778/f6i/f6isrvl?config=devjp10_en",
              "Resource=0",
              "RecContentType=text/html",
              "Referer=",
              "Snapshot=t1.inf",
              "Mode=HTML",
              EXTRARES,
              "Url=../forms60java/f60web.jar", "Referer=", ENDITEM,
              "Url=../forms60java/FImageBean.jar", "Referer=", ENDITEM,
              "Url=../forms60java/images.jar", "Referer=", ENDITEM,
              LAST);
         web_url("Registry.dat",
              "URL=http://202.46.209.42:7778/forms60java/oracle/forms/registry/Registry.dat",
              "Resource=0",
              "RecContentType=text/plain",
              "Referer=",
              "Snapshot=t2.inf",
              "Mode=HTML",
              LAST);
         web_reg_save_param("NCAJServSessionId",
              "LB=",
              "RB=",
              "Search=Noresource",
              LAST);
         web_url("f6isrvl_2",
              "URL=http://202.46.209.42:7778/f6i/f6isrvl?config=devjp10_en&acceptLanguage=en-us&ifcmd=startsession",
              "Resource=0",
              "RecContentType=text/plain",
              "Referer=",
              "Snapshot=t3.inf",
              "Mode=HTML",
              EXTRARES,
              "Url=f6ilsnr/?JServSessionIdf6i=i7yjfl33c1.f45nez95eiGIpR1vp2TD/knGnluImQXHcALJmQ5Go6XNr3CSa30R&ifcmd=getinfo&ifhost=MILDH0417&ifip=10.81.6.127", "Referer=", ENDITEM,
              "Url=../forms60java/oracle/ewt/dataSource/OneDDataSourceListener.class", "Referer=", ENDITEM,
              "Url=../forms60java/oracle/ewt/dataSource/OneDDataSource.class", "Referer=", ENDITEM,
              "Url=../forms60java/oracle/ewt/dataSource/ArrayOneDDataSource.class", "Referer=", ENDITEM,
              "Url=../forms60java/oracle/ewt/dataSource/AbstractOneDDataSource.class", "Referer=", ENDITEM,
              "Url=../forms60java/oracle/ewt/dataSource/OneDDataSourceAdapter.class", "Referer=", ENDITEM,
              "Url=../forms60java/oracle/ewt/dataSource/OneDDataSourceEvent.class", "Referer=", ENDITEM,
              LAST);
         nca_set_connect_opt(SCALE_INFO, 8, 20);
         nca_set_connect_opt(REQUIRED_LIST, 0);
         nca_connect_server("202.46.209.42", "7778", "module=ulgprc_em_100_01_c.fmx userid=dbk/dbk@dbkls05 ORA_USER=devjp10 USR_LANG=ENG");
         nca_set_window("Login");
         nca_edit_set("27", "SSC");
         nca_obj_type("27", '\t', 0);
         nca_edit_set("30", lr_decrypt("44b61ad9b8d2295c3768adc952f4"));
         nca_button_press("32");
         nca_message_box_press("Forms", 2);
         nca_menu_select_item("SSC", "Lending;Underwriting");
         nca_set_window(" (Underwriting)(Pending Request : 0)");
         nca_button_set("386", 1);
         nca_menu_select_item(" (Underwriting)(Pending Request : 0)", "Edit;Exit");
         nca_set_window("SSC");
         nca_menu_select_item("SSC", "File;Exit");
         return 0;
    Execution Log
    Virtual User Script started
    Starting action vuser_init.
    vuser_init.c(12): web_set_max_html_param_len was successful      [MsgId: MMSG-26392]
    vuser_init.c(14): Downloading resource "http://202.46.209.42:7778/forms60java/f60web.jar" (specified by argument number 9)      [MsgId: MMSG-26577]
    vuser_init.c(14): Downloading resource "http://202.46.209.42:7778/forms60java/FImageBean.jar" (specified by argument number 12)      [MsgId: MMSG-26577]
    vuser_init.c(14): Downloading resource "http://202.46.209.42:7778/forms60java/images.jar" (specified by argument number 15)      [MsgId: MMSG-26577]
    vuser_init.c(14): web_url("f6isrvl") was successful, 1882891 body bytes, 1386 header bytes, 12 chunking overhead bytes      [MsgId: MMSG-26385]
    vuser_init.c(27): web_url("Registry.dat") was successful, 4117 body bytes, 367 header bytes      [MsgId: MMSG-26386]
    vuser_init.c(36): Registering web_reg_save_param was successful      [MsgId: MMSG-26390]
    vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/f6i/f6ilsnr/?JServSessionIdf6i=i7yjfl33c1.f45nez95eiGIpR1vp2TD/knGnluImQXHcALJmQ5Go6XNr3CSa30R&ifcmd=getinfo&ifhost=MILDH0417&ifip=10.81.6.127" (specified by argument number 9)      [MsgId: MMSG-26577]
    vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/OneDDataSourceListener.class" (specified by argument number 12)      [MsgId: MMSG-26577]
    vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/OneDDataSource.class" (specified by argument number 15)      [MsgId: MMSG-26577]
    vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/ArrayOneDDataSource.class" (specified by argument number 18)      [MsgId: MMSG-26577]
    vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/AbstractOneDDataSource.class" (specified by argument number 21)      [MsgId: MMSG-26577]
    vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/OneDDataSourceAdapter.class" (specified by argument number 24)      [MsgId: MMSG-26577]
    vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/OneDDataSourceEvent.class" (specified by argument number 27)      [MsgId: MMSG-26577]
    vuser_init.c(42): Warning -26652: Response body length (96) does not match the Content-Length header specification (95) for "http://202.46.209.42:7778/f6i/f6isrvl?config=devjp10_en&acceptLanguage=en-us&ifcmd=startsession"      [MsgId: MWAR-26652]
    vuser_init.c(42): web_url("f6isrvl_2") highest severity level was "warning", 4459 body bytes, 3017 header bytes      [MsgId: MMSG-26388]
    vuser_init.c(59): nca_set_connect_opt("SCALE_INFO")
    vuser_init.c(61): nca_set_connect_opt("REQUIRED_LIST")
    vuser_init.c(63): Warning: ifError expired (5) during NCA handshake,
    vuser_init.c(63): Warning: ifError expired (5)
    vuser_init.c(63): Error: nca_connect_server: cannot communicate with host 202.46.209.42 on port 7778
    Abort was called from an action.
    TIA,
    Sheilesh

    Well, the obvious question is what does 'mail.wbe-pli.com' translate to on the machine?
    Does it translate to your public IP address, in which case your traffic has to go out through your router and come back in? In addition to not being ideal, that's also not supported by a number of different routers (they can't handle NAT traffic coming back in from the private network).
    In most cases the solution is to setup internal DNS so that your hostname maps to the internal address of your server, not the external one.
    In this case, though, you could also configure Mail.app to use 'localhost' for the mail server, rather than 'mail.wbe-pli.com'. That will enable it to talk to the server running on the local system.

  • Urgent: Error-Record 39,779, segment 0001 is not in the cross-record table

    Hi Gurus,
    This is an urgent production issue: I got the following error-
    I am updating data records from a DSO to Infocube in delta mode,
    1.Record 39,779, segment 0001 is not in the cross-record table
    2.Error in substep: End Routine
    I dont know problem is in the End Routine or somewhere else,
    The End routine is this:
    PROGRAM trans_routine.
          CLASS routine DEFINITION
    CLASS lcl_transform DEFINITION.
      PUBLIC SECTION.
    Attributs
        DATA:
          p_check_master_data_exist
                TYPE RSODSOCHECKONLY READ-ONLY,
    *-    Instance for getting request runtime attributs;
        Available information: Refer to methods of
        interface 'if_rsbk_request_admintab_view'
          p_r_request
                TYPE REF TO if_rsbk_request_admintab_view READ-ONLY.
      PRIVATE SECTION.
        TYPE-POOLS: rsd, rstr.
      Rule specific types
        TYPES:
          BEGIN OF tys_TG_1,
         InfoObject: ZVEHICLE Unique Vehicle ID.
            /BIC/ZVEHICLE           TYPE /BIC/OIZVEHICLE,
         InfoObject: ZLOCID Mine Site.
            /BIC/ZLOCID           TYPE /BIC/OIZLOCID,
         InfoObject: ZLOCSL Location Storage Location.
            /BIC/ZLOCSL           TYPE /BIC/OIZLOCSL,
         InfoObject: 0VENDOR Vendor.
            VENDOR           TYPE /BI0/OIVENDOR,
         InfoObject: ZNOMTK Nomination Number.
            /BIC/ZNOMTK           TYPE /BIC/OIZNOMTK,
         InfoObject: ZNOMIT Nomination Item.
            /BIC/ZNOMIT           TYPE /BIC/OIZNOMIT,
         InfoObject: ZNOMNR Nomination number.
            /BIC/ZNOMNR           TYPE /BIC/OIZNOMNR,
         InfoObject: ZVSTTIME Vehicle Starting Time Stamp.
            /BIC/ZVSTTIME           TYPE /BIC/OIZVSTTIME,
         InfoObject: ZVEDTIME Vehicle Ending Time Stamp.
            /BIC/ZVEDTIME           TYPE /BIC/OIZVEDTIME,
         InfoObject: ZNETWT Net Weight.
            /BIC/ZNETWT           TYPE /BIC/OIZNETWT,
         InfoObject: TU_GRS_WG Gross Wgt.
            /BIC/TU_GRS_WG           TYPE /BIC/OITU_GRS_WG,
         InfoObject: ZTU_TRE_W Tare Wgt.
            /BIC/ZTU_TRE_W           TYPE /BIC/OIZTU_TRE_W,
         InfoObject: ZCUSTWT Customer Weight.
            /BIC/ZCUSTWT           TYPE /BIC/OIZCUSTWT,
         InfoObject: ZCAR_NO Car Number.
            /BIC/ZCAR_NO           TYPE /BIC/OIZCAR_NO,
         InfoObject: ZINBND_ID Train Consist Inbound ID.
            /BIC/ZINBND_ID           TYPE /BIC/OIZINBND_ID,
         InfoObject: ZOTBND_ID Train Consist Return Load.
            /BIC/ZOTBND_ID           TYPE /BIC/OIZOTBND_ID,
         InfoObject: 0SOLD_TO Sold-to Party.
            SOLD_TO           TYPE /BI0/OISOLD_TO,
         InfoObject: 0CUSTOMER Customer Number.
            CUSTOMER           TYPE /BI0/OICUSTOMER,
         InfoObject: 0SHIP_TO Ship-To Party.
            SHIP_TO           TYPE /BI0/OISHIP_TO,
         InfoObject: ZVEHI_NO Vehicle Number.
            /BIC/ZVEHI_NO           TYPE /BIC/OIZVEHI_NO,
         InfoObject: ZCARSTDAT Car Start Date.
            /BIC/ZCARSTDAT           TYPE /BIC/OIZCARSTDAT,
         InfoObject: ZCAREDDAT Car End Date.
            /BIC/ZCAREDDAT           TYPE /BIC/OIZCAREDDAT,
         InfoObject: ZCARSTTIM Car Start Time.
            /BIC/ZCARSTTIM           TYPE /BIC/OIZCARSTTIM,
         InfoObject: ZCAREDTIM Car End Time.
            /BIC/ZCAREDTIM           TYPE /BIC/OIZCAREDTIM,
         InfoObject: 0COMPANY Company.
            COMPANY           TYPE /BI0/OICOMPANY,
         InfoObject: ZCONTRACT Contract.
            /BIC/ZCONTRACT           TYPE /BIC/OIZCONTRACT,
         InfoObject: 0PLANT Plant.
            PLANT           TYPE /BI0/OIPLANT,
         InfoObject: ZLOADTIME Total Vehicle Loading time.
            /BIC/ZLOADTIME           TYPE /BIC/OIZLOADTIME,
         InfoObject: ZSHIPDATE Shipping Date.
            /BIC/ZSHIPDATE           TYPE /BIC/OIZSHIPDATE,
         InfoObject: ZSHIPTIME Shipping Time.
            /BIC/ZSHIPTIME           TYPE /BIC/OIZSHIPTIME,
         InfoObject: ZMNEDDT Manifest End Date.
            /BIC/ZMNEDDT           TYPE /BIC/OIZMNEDDT,
         InfoObject: ZMNEDTM Manifest End Time.
            /BIC/ZMNEDTM           TYPE /BIC/OIZMNEDTM,
         InfoObject: ZLDEDDT Loaded End Date.
            /BIC/ZLDEDDT           TYPE /BIC/OIZLDEDDT,
         InfoObject: ZLDEDTM Loaded End Time.
            /BIC/ZLDEDTM           TYPE /BIC/OIZLDEDTM,
         InfoObject: ZMANVAR Manifest Variance.
            /BIC/ZMANVAR           TYPE /BIC/OIZMANVAR,
         InfoObject: ZTU_TYPE Trpr Unit Type.
            /BIC/ZTU_TYPE           TYPE /BIC/OIZTU_TYPE,
         InfoObject: ZACTULQTY Actual posted quantity.
            /BIC/ZACTULQTY           TYPE /BIC/OIZACTULQTY,
         InfoObject: ZVEDDT Vehicle End Date.
            /BIC/ZVEDDT           TYPE /BIC/OIZVEDDT,
         InfoObject: ZVEDTM Vehicle End Time.
            /BIC/ZVEDTM           TYPE /BIC/OIZVEDTM,
         InfoObject: ZVSTDT Vehicle Start Date.
            /BIC/ZVSTDT           TYPE /BIC/OIZVSTDT,
         InfoObject: ZVSTTM Vehicle Start Time.
            /BIC/ZVSTTM           TYPE /BIC/OIZVSTTM,
         InfoObject: ZTRPT_TYP Vehicle type.
            /BIC/ZTRPT_TYP           TYPE /BIC/OIZTRPT_TYP,
         InfoObject: 0CALMONTH Calendar Year/Month.
            CALMONTH           TYPE /BI0/OICALMONTH,
         InfoObject: 0CALYEAR Calendar Year.
            CALYEAR           TYPE /BI0/OICALYEAR,
         InfoObject: ZLOEDDT Quality Sent End Date.
            /BIC/ZLOEDDT           TYPE /BIC/OIZLOEDDT,
         InfoObject: ZLOEDTM Quality sent End Time.
            /BIC/ZLOEDTM           TYPE /BIC/OIZLOEDTM,
         InfoObject: ZATMDDT At Mine End Date.
            /BIC/ZATMDDT           TYPE /BIC/OIZATMDDT,
         InfoObject: ZATMDTM At Mine End Time.
            /BIC/ZATMDTM           TYPE /BIC/OIZATMDTM,
         InfoObject: ZDELAY Delay Duration.
            /BIC/ZDELAY           TYPE /BIC/OIZDELAY,
         InfoObject: ZSITYP Schedule type.
            /BIC/ZSITYP           TYPE /BIC/OIZSITYP,
         InfoObject: ZDOCIND Reference document indicator.
            /BIC/ZDOCIND           TYPE /BIC/OIZDOCIND,
         InfoObject: 0BASE_UOM Base Unit of Measure.
            BASE_UOM           TYPE /BI0/OIBASE_UOM,
         InfoObject: 0UNIT Unit of Measure.
            UNIT           TYPE /BI0/OIUNIT,
         InfoObject: ZACT_UOM Actual UOM.
            /BIC/ZACT_UOM           TYPE /BIC/OIZACT_UOM,
         Field: RECORD.
            RECORD           TYPE RSARECORD,
          END   OF tys_TG_1.
        TYPES:
          tyt_TG_1        TYPE STANDARD TABLE OF tys_TG_1
                            WITH NON-UNIQUE DEFAULT KEY.
    $$ begin of global - insert your declaration only below this line  -
    ... "insert your code here
    $$ end of global - insert your declaration only before this line   -
        METHODS
          end_routine
            IMPORTING
              request                  type rsrequest
              datapackid               type rsdatapid
            EXPORTING
              monitor                  type rstr_ty_t_monitors
            CHANGING
              RESULT_PACKAGE              type tyt_TG_1
            RAISING
              cx_rsrout_abort.
        METHODS
          inverse_end_routine
            IMPORTING
              i_th_fields_outbound         TYPE rstran_t_field_inv
              i_r_selset_outbound          TYPE REF TO cl_rsmds_set
              i_is_main_selection          TYPE rs_bool
              i_r_selset_outbound_complete TYPE REF TO cl_rsmds_set
              i_r_universe_inbound         TYPE REF TO cl_rsmds_universe
            CHANGING
              c_th_fields_inbound          TYPE rstran_t_field_inv
              c_r_selset_inbound           TYPE REF TO cl_rsmds_set
              c_exact                      TYPE rs_bool.
    ENDCLASS.                    "routine DEFINITION
    $$ begin of 2nd part global - insert your code only below this line  *
    ... "insert your code here
    $$ end of 2nd part global - insert your code only before this line   *
          CLASS routine IMPLEMENTATION
    CLASS lcl_transform IMPLEMENTATION.
          Method end_routine
          Calculation of result package via end routine
          Note: Update of target fields depends on rule assignment in
          transformation editor. Only fields that have a rule assigned,
          are updated to the data target.
      <-> result package
      METHOD end_routine.
    *=== Segments ===
        FIELD-SYMBOLS:
          <RESULT_FIELDS>    TYPE tys_TG_1.
        DATA:
          MONITOR_REC     TYPE rstmonitor.
    *$*$ begin of routine - insert your code only below this line        *-*
    Fill the following fields by reading Nomination and Vehicls DSO
    SOLD_TO, Customer
    data: L_TIMESTAMP1 TYPE timestamp,
          L_TIMESTAMP2 TYPE timestamp,
          L_TIMESTAMP3 type CCUPEAKA-TIMESTAMP,
          L_TIMESTAMP4 type CCUPEAKA-TIMESTAMP,
          L_TIMESTAMP5 type CCUPEAKA-TIMESTAMP,
          L_TIMESTAMP6 type CCUPEAKA-TIMESTAMP,
          L_TIMESTAMP7 TYPE timestamp,
          L_TIMESTAMP8 TYPE timestamp,
          L_TIMESTAMP9 type timestamp,
          L_TIMESTAMP10 type TIMESTAMP,
          L_CHAR1(14),
          L_CHAR2(14),
          l_duration type I,
          L_TS TYPE TZONREF-TZONE,
          l_flag,
          l_nomit TYPE /BIC/OIZNOMIT,
          l_error_flag.
    l_TS = 'CST'.
    Data: EXTRA_PACKAGE type tyt_TG_1.
    data: extra_fields type tys_TG_1.
    LOOP at RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
    clear l_error_flag.
    Get sold_to and customer from nomination table.
       Select single SOLD_TO /BIC/ZLOCSL /BIC/ZCONTRACT COMPANY
                     /BIC/ZMNEDDT /BIC/ZMNEDTM /BIC/ZLDEDDT
                     /BIC/ZLDEDTM SHIP_TO /BIC/ZACTULQTY
                     /BIC/ZLOEDDT /BIC/ZLOEDTM /BIC/ZDELAY
                     /BIC/ZATMDDT /BIC/ZATMDTM
                     /BIC/ZSITYP /BIC/ZDOCIND
               into (<RESULT_FIELDS>-SOLD_TO,
                     <RESULT_FIELDS>-/BIC/ZLOCSL,
                     <RESULT_FIELDS>-/BIC/ZCONTRACT,
                     <RESULT_FIELDS>-company,
                     <RESULT_FIELDS>-/BIC/ZMNEDDT,
                     <RESULT_FIELDS>-/BIC/ZMNEDTM,
                     <RESULT_FIELDS>-/BIC/ZLDEDDT,
                     <RESULT_FIELDS>-/BIC/ZLDEDTM,
                     <RESULT_FIELDS>-SHIP_TO,
                     <RESULT_FIELDS>-/BIC/ZACTULQTY,
                     <RESULT_FIELDS>-/BIC/ZLOEDDT,
                     <RESULT_FIELDS>-/BIC/ZLOEDTM,
                     <RESULT_FIELDS>-/BIC/ZDELAY,
                     <RESULT_FIELDS>-/BIC/ZATMDDT,
                     <RESULT_FIELDS>-/BIC/ZATMDTM,
                     <RESULT_FIELDS>-/BIC/ZSITYP,
                     <RESULT_FIELDS>-/BIC/ZDOCIND)
               from   /BIC/AZTSW_0000
               where /BIC/ZNOMTK = <RESULT_FIELDS>-/BIC/ZNOMTK
                AND  /BIC/ZNOMIT = <RESULT_FIELDS>-/BIC/ZNOMIT.
    Select Invalid Nominations
      if sy-subrc <> 0.
        l_error_flag = 'X'.
      endif.
       <RESULT_FIELDS>-customer = <RESULT_FIELDS>-SOLD_TO.
    Prepare time stamp for Time Differences
    Vehicle Starting Time Stamp
      clear : L_TIMESTAMP9,L_TIMESTAMP10.
      CONVERT DATE <RESULT_FIELDS>-/BIC/ZCARSTDAT TIME
                   <RESULT_FIELDS>-/BIC/ZCARSTTIM
               INTO TIME STAMP L_TIMESTAMP9 TIME ZONE l_TS.
    Vehicle Ending Time Stamp
      CONVERT DATE <RESULT_FIELDS>-/BIC/ZCAREDDAT TIME
                   <RESULT_FIELDS>-/BIC/ZCAREDTIM
               INTO TIME STAMP L_TIMESTAMP10 TIME ZONE l_TS.
      Clear : L_TIMESTAMP3, L_TIMESTAMP4,
             <RESULT_FIELDS>-/BIC/ZVEDTIME,
             <RESULT_FIELDS>-/BIC/ZVSTTIME.
      <RESULT_FIELDS>-/BIC/ZVEDTIME = L_TIMESTAMP10.
      <RESULT_FIELDS>-/BIC/ZVSTTIME = L_TIMESTAMP9.
      L_TIMESTAMP3 = L_TIMESTAMP10.
      L_TIMESTAMP4 = L_TIMESTAMP9.
    Caliculate the load time
    IF L_TIMESTAMP3 is initial.
       clear <RESULT_FIELDS>-/BIC/ZLOADTIME.
    elseif L_TIMESTAMP4 is initial.
       clear <RESULT_FIELDS>-/BIC/ZLOADTIME.
    else.
       CALL FUNCTION 'CCU_TIMESTAMP_DIFFERENCE'
         EXPORTING
           timestamp1       =  L_TIMESTAMP3
           timestamp2       =  L_TIMESTAMP4
         IMPORTING
           DIFFERENCE        = <RESULT_FIELDS>-/BIC/ZLOADTIME
    ENDIF.
    Caliculate the Manifest Variance
       clear : L_TIMESTAMP5,L_TIMESTAMP6,L_TIMESTAMP7,L_TIMESTAMP8.
       CONVERT DATE <RESULT_FIELDS>-/BIC/ZMNEDDT TIME
                    <RESULT_FIELDS>-/BIC/ZMNEDTM
               INTO TIME STAMP L_TIMESTAMP7 TIME ZONE l_TS.
       CONVERT DATE <RESULT_FIELDS>-/BIC/ZLDEDDT TIME
                    <RESULT_FIELDS>-/BIC/ZLDEDTM
               INTO TIME STAMP L_TIMESTAMP8 TIME ZONE l_TS.
      L_TIMESTAMP5 = L_TIMESTAMP7.
      L_TIMESTAMP6 = L_TIMESTAMP8.
    Caliculate the Maniefest Variance
    IF L_TIMESTAMP5 is initial.
       clear <RESULT_FIELDS>-/BIC/ZMANVAR.
    elseif L_TIMESTAMP6 is initial.
       clear <RESULT_FIELDS>-/BIC/ZMANVAR.
    else.
       CALL FUNCTION 'CCU_TIMESTAMP_DIFFERENCE'
         EXPORTING
           timestamp1       =  L_TIMESTAMP5
           timestamp2       =  L_TIMESTAMP6
         IMPORTING
           DIFFERENCE        = <RESULT_FIELDS>-/BIC/ZMANVAR
       IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    ENDIF.
    Delete datapackets with blank nominations
    Delete datapackets with blank shipdate and Invalid Time Stamps
    *IF <RESULT_FIELDS>-/BIC/ZNOMTK IS INITIAL OR
      <RESULT_FIELDS>-/BIC/ZSHIPDATE IS INITIAL.
    l_error_flag = 'X'.
    *ENDIF.
    <RESULT_FIELDS>-/BIC/ZVEHI_NO = 1.
      <RESULT_FIELDS>-CALMONTH = <RESULT_FIELDS>-/BIC/ZSHIPDATE(6).
      <RESULT_FIELDS>-CALYEAR  = <RESULT_FIELDS>-/BIC/ZSHIPDATE(4).
    if l_error_flag = 'X'.
    Looks like Monitor Entries are not working in SP11.
    Hence the following is commented temporarily.
    CLEAR MONITOR_REC.
    MONITOR_REC-MSGID = '0M'.
    MONITOR_REC-MSGTY = 'S'.
    MONITOR_REC-MSGNO = '501'.
    MONITOR_REC-MSGV1 = <RESULT_FIELDS>-/BIC/ZNOMTK.
    MONITOR_REC-recno = sy-tabix.
    APPEND MONITOR_REC to MONITOR.
    RAISE exception type CX_RSROUT_ABORT.
    DELETE RESULT_PACKAGE index sy-tabix.
    CLEAR L_ERROR_FLAG.
    else.
       MODIFY RESULT_PACKAGE FROM <RESULT_FIELDS>.
    endif.
    clear l_nomit.
    l_nomit = <RESULT_FIELDS>-/BIC/ZNOMIT.
    extra_fields = <RESULT_FIELDS>.
    Actual Qty and Contract details
       Select /BIC/ZLOCSL /BIC/ZNOMIT /BIC/ZCONTRACT /BIC/ZACTULQTY
              /BIC/ZSITYP /BIC/ZDOCIND
              SOLD_TO SHIP_TO COMPANY
               into (extra_fields-/BIC/ZLOCSL,
                     extra_fields-/BIC/ZNOMIT,
                     extra_fields-/BIC/ZCONTRACT,
                     extra_fields-/BIC/ZACTULQTY,
                     extra_fields-/BIC/ZSITYP,
                     extra_fields-/BIC/ZDOCIND,
                     extra_fields-SOLD_TO,
                     extra_fields-SHIP_TO,
                     extra_fields-company)
               from  /BIC/AZTSW_0000
               where /BIC/ZNOMTK = <RESULT_FIELDS>-/BIC/ZNOMTK AND
                     /BIC/ZNOMIT <> l_NOMIT.
           INSERT extra_fields into table EXTRA_PACKAGE.
       endselect.
    ENDLOOP.
    Append lines of extra_package to RESULT_PACKAGE.
    *--  fill table "MONITOR" with values of structure "MONITOR_REC"
    *-   to make monitor entries
    ... "to cancel the update process
       raise exception type CX_RSROUT_ABORT.
    $$ end of routine - insert your code only before this line         -
      ENDMETHOD.                    "end_routine
          Method inverse_end_routine
          This subroutine needs to be implemented only for direct access
          (for better performance) and for the Report/Report Interface
          (drill through).
          The inverse routine should transform a projection and
          a selection for the target to a projection and a selection
          for the source, respectively.
          If the implementation remains empty all fields are filled and
          all values are selected.
      METHOD inverse_end_routine.
    $$ begin of inverse routine - insert your code only below this line-
    ... "insert your code here
    $$ end of inverse routine - insert your code only before this line -
      ENDMETHOD.                    "inverse_end_routine
    ENDCLASS.                    "routine IMPLEMENTATION

    Hi,
    Most probably you are appending some records in the data package or deleting from the data package through end routine or expert routine or start routine.
    I just solved it.....you will have to import the note 1180163.
    Then modify the code which you are using....and include the function module as mentioned in the note 1223532.
    You need to add the function module just before you append the records.This will work perfectly.
    Thanks
    Ajeet

  • Urgent: Error while generating large report

    I'm getting below error when I executing the report for long time duration. The below report is executing only for one or two days. Please let me know how to resolve this error. This is very urgent.

    hard to say what's wrong without knowing many details
    so you can start to check
    11G Error "java.lang.reflect.InvocationTargetException" When Executing Report With Conditional Formatting (Doc ID 1553509.1)
    11G BI Publisher Error oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException When Exporting a Report (Doc ID 1548248.1)
    BI Publisher Reports Fail After Installing BI Publisher 11.1.1.5 January 2012 Update (Patch 13554951) (Doc ID 1453875.1)
    BI Publisher Consolidated Reference (Doc ID 1546377.1)

  • Urgent(error while registering a web provider on portal)

    Hi!
    When i am trying to register any webprovider(even the
    sample provider which comes with jpdk ) on the portal ,I am
    getting the following ora-exception
    An error occurred when attempting to call the providers register
    function. (WWC-43134)
    An unexpected error occurred: ORA-29516: Aurora assertion
    failure:
    Assertion failure at joncomp.c:127
    jtc_active_clint_init_ncomp_slots(oracle/xml/parser/v2/DTD, 0)
    returned 0 (WWC-43000)
    Could anyone please suggest the cause of this error or what can
    be done in this case .This is really urgent for me as my project
    plan is getting delated because of this problem

    Hi Sharmila
    I appreciated your help but I cann't yet figure out the problem.
    First of all the listener is up.
    The datasources.xml file is like that:
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/emulatedPortletPrefs"
              xa-location="jdbc/xa/portletPrefs"
              ejb-location="jdbc/portletPrefs"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="portlet_prefs"
              password="portlet_prefs"
              url="jdbc:oracle:thin:@localhost:tcp:1521:infraDB.localhost"
         />
    where ifraDB.localhost is the Global database name
    and the 1521 is the port of the listener
    If you can point out any mistake please let me know!
    Thanks alot for the help!

  • Urgent : Error in RFC  Look Up using JCO.

    Hi,
    I have a scenario od accessing a database table by passing the name through XI and also giving the Where condition ,passing the fieldnames and getting back the field values . The FM that id used for this on ABAP side is <b>RFC_READ_TABLE</b>. 
    For this Scenario I inserted a Java Code using JCO's in th UDF for the  RFC Look Up's.
    I got errors while activating the MM which i am not able to rectify.Please Help me in this.
    <b>Activation of the change list canceled Check result for Message Mapping MM_Notes_2_ED_Z_SDIDOC |
    Starting compilation  Source code has syntax error:  /usr/sap/EXD/DVEBMGS49/j2ee/cluster/server0/./temp/classpath_resolver/Map303c42607df411dc8b1d00e000c553d9/source/com/sap/xi/tf/_MM_Notes_2_ED_Z_SDIDOC_.java:1539: cannot resolve symbol symbol : method createClient (java.lang.String,java.lang.String) location: class com.sap.mw.jco.JCO JCO.Client mConnection = JCO.createClient("200","EN"); ^ /usr/sap/EXD/DVEBMGS49/j2ee/cluster/server0/./temp/classpath_resolver/Map303c42607df411dc8b1d00e000c553d9/source/com/sap/xi/tf/_MM_Notes_2_ED_Z_SDIDOC_.java:1578: cannot resolve symbol symbol : variable result location: class com.sap.xi.tf._MM_Notes_2_ED_Z_SDIDOC_ result.addValue(resultSet[pos]); ^ 2 errors</b>
    <b>This is an Urgent Requirement. Please reply ASAP.</b>
    Regards,
    Priyanka.

    Hi Priyanka,
    The error message says there are 2 errors:
    1. createClient
    2. result.addValue
    For the first one, I guess you might not have included all the API required for lookup
    For second one, please check what is the type of object you are adding to the resultset, maybe you can just say result.addValue(resultSet[pos] + ""); to typecast it.

  • Urgent: Error while uploading into pdf file

    Hi ,
    I got a requirement that converting smartform into pdf file and sending into application server, And uploading the that pdf file into presentation server once a day am geting error when uploading into pdf format from application server .
    Error : There was an  error while tryinging to parse an image.
    Please help me out its urgent.
    Thanks in advance
    Regards
    krishna
    Edited by: krishna rao on Feb 13, 2008 12:05 PM

    U can use this code
    Reward if useful
    REPORT  ZMN_PDF_UPLOAD.
    data: begin of itab occurs 0,
    field(256),
    end of itab.
    data: dsn(100) value '\usr\sap\DEV\DVEBMGS00\work\testpdf',
    length like sy-tabix,
    lengthn like sy-tabix.
    call function 'GUI_UPLOAD'
    exporting
    filename = 'c:\temp\test.pdf'
    filetype = 'BIN'
    importing
    filelength = length
    tables
    data_tab = itab.
    open dataset dsn for output in binary mode.
    loop at itab.
    transfer itab-field to dsn.
    endloop.
    close dataset dsn.
    clear itab.
    refresh itab.
    *To crosscheck if it went well
    open dataset dsn for input in binary mode.
    do.
    read dataset dsn into itab-field.
    if sy-subrc = 0.
    append itab.
    else.
    exit.
    endif.
    enddo.
    call function 'GUI_DOWNLOAD'
    exporting
    filename = 'c:\temp\testn.pdf'
    filetype = 'BIN'
    bin_filesize = length
    importing
    filelength = lengthn
    tables
    data_tab = itab.
    *Or
    *Use the TCode
    *CG3Z or CG3Y
    *for downloading to Application Server.

  • **Urgent**Errors at Travel and Expenses

    Hi,
    I have configured ESS and also all the backend configurations done.. But when i navigate ESS screens in portal..few of the screens are opening.. few are throughing errors..
    kindly help me to rectify bewlo errors....
    1) Travel and Expenses
    Every link under this workeset....
    com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: DataNodeInfo(OVSPersonnelNumber.Input.Output.Et_Pernr_Name): structure field Sname not found
    2) Working Time
    Record working time link only working....
    All other link are giving below errors
      com.sap.dictionary.runtime.DdException: Type com.sap.ess.model.types.T5Ueffr_Bund_Rec does not exist
    3) Employee Search
    Who's Who is working
    Change own data throughing exception
       com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: failed to create or init instance of model 'com.sap.xss.hr.cod.model.CodModel' in scope APPLICATION_SCOPE with instanceId 'null'
    kinldy put some light on this.. its bit urgent...
    thanks in advance
    Venkat
    Edited by: venkat on Apr 17, 2008 6:01 AM

    Hi,
    For travel and leave we were also getting same problem..
    when we use ESS SP10 problem was solved.
    Regarding Employee search goto st22 and let me know the dump.
    rewad points it u find it helpful
    Thanks
    Sameer

  • Urgent--Error in MIRO reversal

    Hi
    While doing MIRO reversal system giving me error as "Error in account determination for VSE CAIN"
    CAIN is my chart of accounts an VSE is transaction key for higher education cess.
    I checked in VSE ,G/L is there.
    Then I made Dr and Cr for same G/L in VSE.
    Then system giving me error as "Balance is not zero."
    What will be the reason?
    How to solve this problem?
    Its urgent pl?
    Points sure for any help.

    Enter the balance amount in the amount filed then you will not see this error.

  • Urgent: Error in idoc(Application document not posted)

    Hi experts,
    i am getting the error in R/3 side when i am extracting data from it.
    i checked with WE07 it's shows the error as follows
    "Application document not posted".
    it's been urgent how to resolve this issue. please through a light on it.
    Regards
    Harikrishna N

    Hi Hari,
    You start error processing by executing the corresponding work items in your Business Workplace. If a file read error could be corrected, for example, the IDocs which have not yet been read can be read and stored in the database manually, by starting report program RSEINB00.
    This could be the reason for ur error..
    IDoc could not be generated under MC
    EDIN: Evaluates the partner data from the MC record
    TS70008037
    No process code in the additional partner profile MC parameters; Error when writing the application data in the IDoc.
    this link givs u the req info
    [http://help.sap.com/saphelp_nw70/helpdata/EN/dc/6b7f1543d711d1893e0000e8323c4f/frameset.htm]
    Hope it helps U
    Regards,
    NR

  • Urgent: Error while displaying data in OBIEE answers

    Hi,
    I'm facing an issue in OBIEE answers when trying to display values from my fact table. It is displaying something like invalid column identifier in oci call stmt execute...
    I have three dimensions and that particular column is in three dimensional tables and i changed the names and placed in fact table.
    when i'm trying to view data in physical layer it is displaying data.
    why i'm facing this error.. How can I resolve this??
    Its very urgent requirement and any help will be appreciable..
    Regards,
    Sindhu

    Hi,
    I changed the column names in BMM only. Not in physical layer. In physical layer i'm able to view data.
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 904, message: ORA-00904: "T95877"."OBSERVATION_DATETIME": invalid identifier at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    SQL Issued: SELECT "FACT - RISK SLOT Overtime"."In Gas Price Value ID" saw_0 FROM "AO Risk" ORDER BY saw_0
    I'm getting this error...
    Regards,
    Sindhu

  • Urgent: Error in PCUI

    Hi Forum,
    I am facing an error after I have applied SP10 for BBPCRM 400. When I am entering a account no, in the accounts transaction in PCUI and click on the "go" button, it says the Business Partner does not exist. Thouth the BP is existing in the system. I have checked note 660305 which talks about the similar problem, but the correction instruction it talks about is already implemented.
    If somebody faced similar problem, with SP10 please help urgently.
    Regards,
    - Prasenjit

    Hi Sharma,
       Check your Client number first. ("client 000" or someother) and execute PCUI in the same client.
      1. pls check BP number in BUT000
      2. Check Client number also.
      3. then Run PCUI with same client system.
    Regards
    Raju.Pallapotu

  • URGENT: Error while importing personalizations using Functional Admin Resp

    Hi all,
    We are facing problem when importing personalizations using Functional Administrator responsibility.
    We have personalised a standard oracle page in development instance and have successfully exported the personalizations in a file.
    But when we try to import the same files in another instance, we get the following error when opening "Exported Personalizations" tab in "Personalizations> Import/Export" tab .
    The path ' $HOME/ ' you specified does not exist. Please specify an existing path in the profile 'FND: Personalization Document Root Path'.
    We have tried giving different paths in profile option 'FND: Personalization Document Root Path', but it gives the same error for every path in this new instance.
    This was not the case with the development instance where we were able to import/export personalizations successfully.
    Can anybody give inputs on this.
    This is a bit urgent.
    Regards,
    Anas.

    What is the current value in the Profiles Form?
    What is the value that is displayed in the "About this Page" -> "Profiles", from the Functional Administration screen.
    Can you also confirm if the directory has 777 permissions?

  • Urgent: error: user status ECUS is active for equipment.

    Gurus,
    My material is assigned to only one serial no. and one equipment.
    I am trying to do pgi from va02 and the system is throwing an error saying ' user status ecus is active for equip.' but in iq02 when we check the ecus status is not active. infact when we change the user status to anything the error thrown is still the same. Kindly reply urgently as this is affecting the clients production process.
    Thanks,
    Anand.

    hi
    i think once you have delivered the material ,it will create the equipment master record record stating the status as installed at customer site,
    the status you have said i think is user status ,if so kindly change the user status and proceed with the above said procedure
    revert back with any further queries
    regards
    thyagarajan

  • URGENT---Error regarding Cannot connect to Capture Device

    Hello Everyone, I am new to JMF and I am trying to build a project using JMF. In the project I need to capture images from webcam and display it on a window.
    I have written the following class for this:
    import java.awt.*;
    import java.awt.image.*;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import javax.media.util.*;
    public class CameraController
         private Player player;
         * Initialises the video capture device.
         * @param name the name of the device (e.g. <code>vfw:Microsoft WDM Image Capture (Win32):0</code>).
         * @param locator the location of the device (e.g. <code>vfw://0</code>).
         * @param size
         * @throws Exception if there was a problem accessing the camera.
         public CameraController(String name, String locator, Dimension size) throws Exception
              // Create capture device
              System.out.println("Initialising video capture device: "+name);
              try
                   CaptureDeviceInfo captureDeviceInfo = CaptureDeviceManager.getDevice(name);
                   VideoFormat videoFormat = null;
                   Format[] formats = captureDeviceInfo.getFormats();
                   for (int i=0; i<formats.length; i++)
                        if (((VideoFormat)formats).getSize().equals(size))
                             videoFormat = (VideoFormat)formats[i];
                             break;
                   DataSource dataSource = Manager.createDataSource(new MediaLocator(locator));*
                   FormatControl[] formatControls = ((CaptureDevice)dataSource).getFormatControls();
                   for (int i=0; i<formatControls.length; i++)
                        if (formatControls[i]!=null)
                             Format supportedFormats[] = formatControls[i].getSupportedFormats();
                             if (supportedFormats!=null)     
                                  for (int j=0; j<supportedFormats.length; j++)
                                       if (supportedFormats[j].matches(videoFormat))
                                            formatControls[i].setFormat(videoFormat);                              
                   CaptureDeviceInfo deviceInfo = ((CaptureDevice)dataSource).getCaptureDeviceInfo();
                   ((CaptureDevice)dataSource).disconnect();
                   player = Manager.createRealizedPlayer(deviceInfo.getLocator());
                   player.start();
                   try { Thread.sleep(3000); }
                   catch (InterruptedException e) {}
              catch (Exception e)
                   System.out.println("Error Initialising video capture device!");
                   throw e;
         public void shutdown()
              player.close();
              player.deallocate();
         public BufferedImage getFrame()
              FrameGrabbingControl frameGrabber = (FrameGrabbingControl)player.getControl("javax.media.control.FrameGrabbingControl");
              Buffer buf = frameGrabber.grabFrame();
              Image img = (new BufferToImage((VideoFormat)buf.getFormat()).createImage(buf));
              if (img==null)
                   System.out.println("Error: Capture device doesnt appear to be initialised yet.");
                   return null;          // happens if video device isn't properly initialised yet
              BufferedImage buffImg = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
              Graphics2D g = buffImg.createGraphics();          
              g.drawImage(img, null, null);
              return buffImg;
         public Component getVisualComponent()
              return player.getVisualComponent();
    There is another class GUI which calls the shutdown() function on occurrence of WindowClosing event.
    When I try to run this, It does run for the first time but after that, the following exception occurs:
    java.io.IOException: Could not connect to capture device
    javax.media.NoDataSourceException: Error instantiating class: com.sun.media.protocol.vfw.Datasource: java.io.IOException: Could noy connect to capture device
    at javax.media.Manager.createDataSource(Manager.java.1012)
    at CamerController.<init>(CameraController.java:57) ------ line where datasource is declared
    It doesn't run until I restart my laptop and then again after restart it runs only for the first time..
    I don't understand where is the problem. I am using Windows7, JMF 2.1.1, NetBeans 6.7.
    Kindly help me to find out the problem in this. Its extremely URGENT..!!!!

    Anjani_Bansal wrote:
    2. I am not shouting at anyone.Actually, I think even 12-year old girls on MySpace understand that TYPING IN ALL CAPS IS TAKEN TO BE SHOUTING on the internetz... so when you say its URGENT, everyone who understands the internet is going to read that as you SHOUTING the word URGENT.
    Which is simply impolite.
    3. I didn't ask YOU to answer my query. I asked only those people who are there to help and who understand my situation.Actually, you said everyone. Andrew is a person. Therefore, you did ask him to answer your question...and further, you simply asked "Kindly help me to find out the problem in this". Apparently Andrew took "this" to mean forum etiquette, which he was quite kind to help you with.
    For others[ Not You] :-
    Sorry every one if you think I am shouting. I am kindly requesting you for help.
    Thanks for understanding..Telling people on a forum that you need help URGENTLY isn't particularly asking kindly. Ignoring the whole rudeness of typing in all-caps, there's also the whole urgent thing. Do you think that people are going to read your post and then go "Eh, this kid doesn't sound like he's in a hurry. I think I'll come back and answer his question in a few days, let him sweat it out".
    Seriously, people add urgent to their posts like somehow it's the emergency flag on a help desk.
    This isn't a helpdesk, and telling us how urgently you need help isn't going to positively affect the speed at which you get help... in fact, it's far more likely to get you completely ignored by the people with the answer than it is to get you help any faster...
    Speaking of being ignored, I'm pretty sure I "kindly" suggested something for you to try above, and you never reported back the results of my suggestion. Am I to take from the fact you decided to spend your time sparing with Andrew that (1) you don't really care about fixing your problem (2) you're not really paying attention to the people who're trying to help you (3) your problem isn't really all that URGENT to begin with? (4) you somehow think your time is more important than mine and I should ignore your thread entirely? [I'd seriously advise looking through a few threads on this forum to see where the help comes from before you think about answering this one... there are 2 people that regularly help people in here, and you've already pissed one of them off...]

Maybe you are looking for