RFC communication to presentation sever in background mode

I need to download data in background mode to a presentation server.  I found documentation from 2005 regarding this process and have successfully set up an RFC to send the data.  In my ABAP program, I use RFC_REMOTE_FILE to send an internal table of data to the presentation server via the RFC connection.  The connection works fine except that only the first 80 characters of each line of the internal table are sent.  I found unanswered forum questions regarding the need to send more than 255 characters (which I could live with) so I am hoping that I can send more than an 80 character table.  We are on ECC 6.0 - EHP4 with GUI 720.
Any help would be appreciated.
Lisa

Hi Lisa,
Lisa Carr wrote:
I found documentation from 2005 regarding this process and have successfully set up an RFC to send the data.
> Lisa
Could you provide a link of the above documentation on settiing up RFC to send data to file?
Did you try using FM- DOWNLOAD?
Regards,
Ajay

Similar Messages

  • Can we schedule BDC in Background Mode - SM37

    Hi Guru,
    Can we schedule our BDC in background - SM37 . Upload file will be on Local Sustem - C drive.
    Regards
    Durgesh
    Moderator message: background/GUI problems = FAQ, please search before posting.
    locked by: Thomas Zloch on Oct 6, 2010 2:14 PM

    GUI functions (like GUI_UPLOAD) will not work in background, they need an actual Gui active.
    There are plenty of threads on  this subject, search also in the wiki for threads/guide like [Working with files |http://wiki.sdn.sap.com/wiki/display/ABAP/Workingwithfiles] or [Communication to Presentation Server in Background Mode|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true] or [Working with FTP Server |http://wiki.sdn.sap.com/wiki/display/ABAP/WorkingwithFTP+Server]
    (To execute a BDC in background use report RSBDCSUB.)
    Regards,
    Raymond

  • CAN WE DOWNLOAD A REPORT TO PRESENTATION SERVER IN BACKGROUND

    Hi
    1. Can we download a report into presentation server in background mode and it should be saved in excel. If so plz let me know how to do.
    2. When i look into spool SP01 the report is not in proper format because the report output width is more than 255 characters and now how should i solve the problem to make it in correct format. Can we do this or not?. If so how
    Thanks in advance.

    Hi
    when i wrote the
    REPORT z_mm_rep_000047
                           LINE-SIZE 500
                           LINE-COUNT 65
                           MESSAGE-ID zca.
    it is automatically increasing the width in the print settings when i increased to 500 from 255 but stil its not working.

  • Communicating with presentation server in the background mode

    Hi Folks,
        I have a requirement to communicate the presentation server in the background mode. I'm following the below article for achieving it.
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2?quicklink=index&overridelayout=true]
    But I'm getting an error while testing in the dos prompt. The error is as following.
    The system cannot execute the specified program.
    Kindly Help.
    Regards,
      santosh

    But I'm getting an error while testing in the dos prompt. The error is as following. The system cannot execute the specified program.
    You see this error usually if some libraries (dll's) are missing. To investigate this issue it might help to use the [dependency walker|http://www.dependencywalker.com/] tool on the executable and check for any missing libraries. If you cannot figure it out yourself, please try to post exact comments of what you're doing and complete error messages including ideally version of your RFCSDK.
    Cheers, harald

  • RFC communication error

    hi guys,
    our company has SAP servers in location A which often communicates with servers in location B. recently we moved both DEV and PRD servers to location C from A. the servers from B and C communicates via a VPN link.sequel to this movement we changed the IP configuration of all the systems. presently users in location B can access the PRD server in C but are not able to access the DEV server.
    the following error messages appears:
    ON PRD
    TMS Alert viewer
    transport control program tp ended with error code 0212
    error:could not access file as supposed
    command:SHOWBUFFER PRD PF=
    SAPDEV\sapmnt\trans\bin\TP_DOM
    while on DEV
    message:RFC-communication failure
    RFC communication error with system/destination
    partner not reached
    would appreciate if u culd profer a solution as soon as possible
    Regards walata

    Hi Walat,
    User access problem :-
    You located at location B are not able to access server DEV which is located C
    Pls take help from your system administrator for doing below task if you are not aware about output
    From location B try to telnet server DEV on port 32<NN> or 36<NN>  ( <NN> is your instance no of DEV )
    for e.g
    from command prompt run the following command
    telnet < dev server ip >  32<NN>
    check the ouput
    How to check the ouput
    1   after giving the above command, if you get blank screen it mean ports are open
    2  after giving the above command, if you get ouput on screen like " conneting to server < dev server ip > it mean ports are not open
    If the ports are not open then inform you network team that port mention aboev should be open for users.
    once the ports get open check above step again , if you get the blank screen , then you wil be able to login to SAP
    Server to Server Access problem :-
    From server DEV to PRD and vice versa check whether you can share the drives .
    if yous system team that yor PRD system should be able to to access the share folder sapmnt of server DEV ( SAPDEV )
    As well as check server to server port 33<NN> is open or not
    Any query pls reply.
    Thanks
    Anil

  • Not able to execute custom transaction in Background mode

    Dear All,
    There is a custom modele pool program to update the data in info type 9003. We have written a Z program in that we are calling this custom modele pool through CALL TRANSACTION with mode 'N' and update 'S'.
    Z Program is running successfully and updating data in 9003 info type when we run in foreground mode.
    But it is not updating when runs in Background mode.
    Am I need to take any other precautions when run in background mode for custom transaction?
    We are using 4.6C version.
    Thanks in advance.
    Regards,
    Abaper

    For custom transactions you shouldn't have a problem - unless you're trying to do something that needs dialog with the presentation server.
    Set an infinite loop in the custom transaction, launch your program in backround, then from Sm50, go to debug and find out what's going on.
    DATA: debug.
    WHILE debug IS INITIAL. " Debug from SM50 will get you here, change field DEBUG in the
    ENDWHILE.               " debugger to contain 'X', and the loop will end.
    Also, if your custom tx calls any standard SAP programs/FM, there is a chance that those programs work differently in background than foreground.

  • Execute one thread in background mode.

    hello ,
    I have an application where the user can shows dialogs to displays, adds, modify and delete rows of one tale inside some JTextFields.
    I have a problem to use this application, when one same dialog is showed more then one time....
    Exactly: not problems come the first time the dialog is showed, but the second time, the time to wait because the performance is executed is very long..., and further, ....when the dialog at last was is shoved, no data of the table are in the JTextFields.
    I get errors too when at last the dialog was shoved, and the errors not aways said the same reason..., but all the errors are referred to the impossibility (in the performances that followed the first) to have a suitable resultset containing the data.
    Some error are "null pointer exception" to read the resultSet, other error is "Impossibils get a block in the required time" ...
    I read documentation and I understand that the fault, probably, could came from the Event Dispach Thread that had the task to manage the creation of the ResultSet.
    Now I am trying to solve (at this moment without success) the problem in this direction, ...as well I have not experience about to manage the use of SwingWorker class.
    I should like hear what it is wrong in that I am doing...
    Initially my code was this
         * Create a resultSet, for the current table       
        private void createResultSet() {
                statement = dbconn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
                currentResultSet = statement.executeQuery("Select * from " + tableName);
                boolean validateState = currentResultSet.last();
                regsNmbrOnTheTable = currentResultSet.getRow();
                System.out.println("Numero attuale di records = " + regsNmbrOnTheTable);
                // here come the exception:
                // Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
            } catch (SQLException ex) {
                reportErrors.checkingSyntaxInInputTags("metodo createResultSet(): Errore nel creare il resultSet");
    //            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } // createResultSetrecently I modified it in order to put the creation of the ResultSet in background....
         * Create a resultSet, for the current table
        private void createResultSet() {
            (acquiresResultSetInBackground = new AcquiresResultSetInBackground()).execute();
            currentResultSet = acquiresResultSetInBackground.doInBackground();
        } // createResultSet
      // inner class to manage the performance in background mode.
      class AcquiresResultSetInBackground extends SwingWorker <ResultSet, Void> {
            ResultSet resultSet;
            @Override
            protected ResultSet doInBackground()  {
            try {
                statement = dbconn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
                  resultSet = statement.executeQuery("Select * from " + tableName);
            } catch (SQLException ex) {
                reportErrors.checkingSyntaxInInputTags("metodo createResultSet(): Errore nel creare il resultSet");
            return resultSet;
    }How I said I get again the same behavior that was before......
    thank you
    Regards
    tonyMrsangelo

    For custom transactions you shouldn't have a problem - unless you're trying to do something that needs dialog with the presentation server.
    Set an infinite loop in the custom transaction, launch your program in backround, then from Sm50, go to debug and find out what's going on.
    DATA: debug.
    WHILE debug IS INITIAL. " Debug from SM50 will get you here, change field DEBUG in the
    ENDWHILE.               " debugger to contain 'X', and the loop will end.
    Also, if your custom tx calls any standard SAP programs/FM, there is a chance that those programs work differently in background than foreground.

  • How to upload a Excel document in background mode

    Hello there, how are you?
    I am doing an interface program that needs to upload an excel document into an internal table, to do this I used the FM ALSM_EXCEL_TO_INTERNAL_TABLE. The problem with this FM is that only works in foregroung mode, If I run the programin bcakground the FM does not work.
    I would like to know if exist a way to upload an excel document into an internal table, for a program that have to be execute in background mode.
    Thanks in advance
    Best Regards
    Alexis Ramirez

    *& Form application_server
    * text
    * --> p1 text
    * <-- p2 text
    *----------------------------------------------------------------------*FORM APPLICATION_SERVER .
    TYPE-POOLS: KCDE.
    DATA : lt_intern TYPE kcde_cells OCCURS 0 WITH HEADER LINE.*DATA : INTERN1 TYPE KCDE_INTERN.FILE = PATH.
    OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.**--- Display error messages if any.IF SY-SUBRC NE 0.
    MESSAGE E001(ZSD_MES).
    EXIT.* ENDIF.ELSE.
    DO.
    READ DATASET FILE INTO Wa_TAB.
    append wa_tab to IT_TAB.
    IF SY-SUBRC <> 0.
    EXIT.
    ENDIF.
    ENDDO.
    clear wa_TAB.
    LOOP AT IT_TAB into wa_tab.
    CASE wa_tab-COL.
    WHEN '0001'.
    WA_TAB2-PLANT = wa_tab-VALUE.
    WHEN '0002'.
    WA_TAB2-STGE_LOC = wa_tab-VALUE.
    WHEN '0003'.
    WA_TAB2-MATERIAL = wa_tab-VALUE.
    WHEN '0004'.
    WA_TAB2-QUANTITY = wa_tab-VALUE.
    WHEN '0005'.
    WA_TAB2-BASE_UOM = wa_tab-VALUE.
    WHEN '0006'.
    WA_TAB2-COSTCENTER = wa_tab-VALUE.
    ENDCASE.
    AT END OF ROW.
    APPEND WA_TAB2 TO IT_TAB2.
    CLEAR WA_TAB2.
    ENDAT.
    clear wa_tab.
    ENDLOOP.
    ENDIF.
    CLOSE DATASET FILE.
    ENDFORM. " application_server
    Refer here:[How to Read Excel file from Application or Presentation Server and Download into Internal Table. |https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/how%252bto%252bread%252bexcel%252bfile%252bfrom%252bapplication%252bor%252bpresentation%252bserver%252band%252bdownload%252binto%252binternal%252btable.]

  • File download in Background mode

    Hi All,
    A file need to be downloaded to the folder
    dc20\nt71data\jsox\" while execution in background mode.
    It is also mentioned that the file need not be sent to the application server.
    I am sure in background mode file couldn't be downloaded to the presentation server.
    Can you please predict where would be this folder and how to proceed?
    Thanks & Regards,
    Lakshmanan

    hi,
    Please check in AL11 transaction.Where you will find the list of folders in Application server.
    Regards,
    Shan

  • Local file in background mode

    Hi experts,
    Is it possible to upload data from local drive(presentation server) to sap in background mode.
    As I know ,in the background mode we can upload files from application server only.
    but here my functional consultant saying they did  upload data from local drive to sap in background mode.
    please suggest.
    thanks in advance.
    sastry.

    hey,
    Yes it can be made possible,
    The only way to access files in a background job is to have them on the application server and opened via OPEN DATASET or similar.
    *--Local Variables
    DATA : l_file TYPE string,
    l_line TYPE string,
    l_index TYPE sy-tabix.
    *--Clear
    CLEAR : l_file.
    l_file = p_ipfile.
    *--Read the data from application server file.
    OPEN DATASET l_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    *--Error in opening file
    MESSAGE i368(00) WITH text-005.
    ENDIF.
    *--Get all the records from the specified location.
    DO.
    READ DATASET l_file INTO l_line.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
    SPLIT l_line AT cl_abap_char_utilities=>horizontal_tab
    INTO st_ipfile-vbeln
    st_ipfile-posnr
    st_ipfile-edatu
    st_ipfile-wmeng.
    APPEND st_ipfile TO it_ipfile.
    ENDIF.
    ENDDO.
    Regards,
    Midhun Abraham
    Edited by: Midhun Abraham on Oct 8, 2008 4:36 AM

  • FM not executing in background mode sometimes

    Hi,
    I'm using one Z function module for Production order confirmations which inturn calls 'BAPI_PRODORD_COMPLETE_TECH'.
    There is 'BAPI_TRANSACTION_COMMIT' and 'BAPI_TRANSACTION_ROLLBACK' also present.
    My issue is, this functionality works perfectly fine when I execute the program in foreground mode, but does not go through sometimes when I schedule it in background.
    Note : Its not completely skiping the entries in background mode. It works sometimes and sometimes doesn't.
    Can anyone comment if they have faced similar issues ?
    Regards,
    Shiva

    Hi !
    In my opinion it fails, when there is a popup coming from the BAPI.
    We have the issue that when we process in background the orders where a popup should be shown (e.g. the popup asking if setting TECO is OK although reprocessing records exist).
    When we reprocess our IDOC (which are calling that BAPI) in BD87, the popup is even shown in BD87 !
    Any idea how to tell the BAPI to ignore such messages and still set the TECO ?
    Any other way to set the TECO ?
    thx a lot !

  • RFC Communication error when doing initial indexing

    Hello Everyone,
    I have a quick question, when doing the initial index rollup for a BIA index the job is failing with RFC communication error.
    We currently have the setting related to " TREXRfcServer threads" set to "Automatic Changes" in order to avoid the RFC Communication errors when loading big loads in BI system.
    We currently are on Revision 49.
    I also have referred to OSS Note 1138603.
    The issue is when I am rolling up the BIA Index the rollup job is failing with RFC Communication errors.
    The Global parameters within BIA are:
    BATCHPARA - 2
    NUMPROC - 5
    PKGSIZE - 10000000
    SUBPKGSIZE - 20000
    We have two app servers with 52 Dialog processes and 25 Background processes.
    Any help would be really appreciated.
    Thanks
    Dharma.

    Removing references to systems and ports
    Issue:
    When the initial indexing is being carried out for an InfoCube to
    create the BIA Index and there is more than one application server in
    the system the job is failing with the http error.
    Hello Everyone,
    Thanks for the input, after the automatic changes was configured for concurrent requests the error is different right now.
    The error message is,
    "Remote communication failure with partner http://<Removed>:<removed>/indexCellTable"
    Overview/Background:
    When the indexing job is triggered as a background job the failure happens when the S table index is being filled.
    In our system where we are trying to do the stress testing we currently have two app servers and one central instance.
    When I limit the RFCGROUP in RSDDTREXADMIN table to one App server in terms of logon group the job finishes fine.
    Whereas, when I do not limit the RFCGROUP and all app servers are open for access the background job finishes with the error message
    Remote communication failure with partner http://<Removed>:<removed>/indexCellTable.
    We have looked into the OSS Note 1102652 and our BASIS team confirmed that they were able to ping from BI App servers into BIA blades and vice versa.
    We also confirmed if the local gateway was used for connectivity.
    The above issue was not in other systems where we only had one server.
    We currently are at Revision 49 and SP 13 in BI.
    We have E5345 Clowertown blades (2 x 4) 16GB blades.
    Please let us know if you need additional information.
    Thanks in advance for the input.
    Dharma.
    Edited by: Arun Varadarajan on Apr 24, 2009 1:36 AM

  • Mass BMP upload in background mode

    Hello all,
    I have to upload 20 Gb of BMP images to SE78 with background mode via coding. I wrote a code about this and it works in foreground mode but it gives error in background mode becouse i adressed my local drive for the source of these images . So should i put these images in the folders of AL11 for background mode? How should i do it? Any ideas?
    Thanks..

    HI..,
    u cannot upload a presentation server file in BACKGROUND processing mode.. because it doesnt know where to go for that file....
    The solution for this problem is... save this file in Application server and upload from application server into the program..
    this is the standard procedure for background processing....
    TO save a file in Application server we use OPEN DATASET ... TRANSFER ... and CLOSE DATASET.. commands..
    regards,
    sai ramesh

  • BPC 7.5 NW- error 'Name or password of RFC Communication user is invalid '

    Hi
    Environmen: Win 2008 R2, CPMBPC 7.5 SP09, BW 7.2 Sp09, .NET BPC 7.5 SP09
    I just completed installing .NET BPC 7.5 and when I try to open BPC Server manager, i get "cannot coonect to ABAP server' error.
    When I try to open the website http://localhost/osoft I get the error "name or password of RFC communication user is invalid".
    I see the same error in the BPC logs as well.
    I have the tried the following so far:
    1. Created single domain user for the three communication users BPC_sysadmin, BPC_admin & BPC_user.
    2. I momentarily changed to dialog users and logged in to check their fucntioning.
    3. I have generated their relevant profiles. Inlcuded SAP_ALL, SAP_NEW for the sysadmin ID
    4. I have disabled firewall, allowed port 80 on Windows firewall.
    5. I have disabled UAT
    6. I have followed the rest of the installation as per inst guide.
    When I run BPC server manager diagnostics, I see error "SAP ABAP server connection:database connection:status error".
    Can someone tell is there anything else that I could try ?
    many thanks
    Sreekanth

    Hi,
    If when you launch BPC Server Manager, you do not get "Cannot connect to ABAP server", this means user BPC_SYSADMIN is connecting correctly. And assuming you had invalid RFC user in BPC Web, your issue is then only with user BPC_USER (or BPC_ADMIN if the issue is with BPC Admin client only)
    If you do get that error, it means the error is for more than one user, so I would look for something big missing.
    In point 1 you mention domain users, make sure in BPC Server Manager under "reset login credentials" that you do not have windows users specified there as it's a common mistake, those should be your 3 BW communication users
    On BPC .Net server, if you installed SAP GUI, run an MDX_PARSER test in SM59 to check librfc32.dll is working correctly
    Also quite common issue it is possible your background users have wrong authorizations; in PFCG check the roles SAP_BPC_SYSADMIN SAP_BPC_ADMIN and SAP_BPC_USER were copied to customer namespace and that the role are active (user tab should be displaying green light) and assigned to the background communication users
    Also check the background users are not locked in SU01 (if they are locked the password saved on .Net server was or is not matching the real password defined on NW server)
    Thanks,
    Julien

  • How to transfer file from application server to presentation server in background?

    Hi Experts,
    How to transfer file from application server to presentation server in background?
    Thanks in advance
    Namita

    Thanks Raman and Challa,
    We want to move file from application server to Shared folder, not on local machine. We checked FM which you guys have provided but those are not able to read file from application server.
    We need this program to run in background so that we can use this in daily process chain.
    Appreciate your inputs on this.
    Thanks,
    Namita

Maybe you are looking for

  • How can I get my old password back?

    I need my old password back from my Apple ID

  • What can I do when I see "The backup disk image cannot be mounted"

    I ran the time machine. Then, "preparing backup" showed up for a long time. After that, a window pop out: "Time machine error, The disk image cannot be mounted" What is disk image? What can I do (I can't back up anything) P.S. I use time capsule for

  • BPEL error handling

    Hi All, I am trying to develop a BPEL which has a while loop to insert 5 records. While inserting the 3rd record its failing(its expected as iam simulating the error scenario). I have a catch block to catch the error. In the catch block iam invoking

  • Unsolicted update in communication channel

    I received a counter update in my communications channel for the following post: https://forums.oracle.com/thread/2569282 I'm neither tracking or following the discussion or space and I have not been participating in that discussion. I also have not

  • MobileMe Gallery crashes on my iPod Touch.

    Can anyone suggest why my MobileMe Gallery crashes everytime I try to open it?  I checked for updates, but it says everything is up to date.