Access SFTP server out of ABAP program

Hi all,
how can I access an external SFTP server out of an ABAP program? I know how to do that for normal FTP, but don't know a way for doing this with SFTP. Is there any function module available for this?
Thanks in advance.

Hi,
I found this:
Read file from Secure FTP: [Read file from Secure FTP|Read file from Secure FTP]
FTP using ABAP   :              [FTP using ABAP|FTP using ABAP]
File transfer using SFTP   :  [File transfer using SFTP|File transfer using SFTP]
FTPs connection failed - error ".. certificate rejected by ChainVerifier"
                                            [Re: FTPs connection failed - error ".. certificate rejected by ChainVerifier"|Re: FTPs connection failed - error ".. certificate rejected by ChainVerifier"]
FTPs issue-                         [FTPs issue-|FTPs issue-]
I hope it is usefull.
Best Regards,
Daniel Zapardiel

Similar Messages

  • How to access Infocube content using an ABAP program

    Hi,
       I am trying to access infocube contents using a ABAP program in BW.
       It is easy to access ODS content as we have NEW DATA or ACTIVE DATA
       tables. Is there any way we can access Infocube content.
       I tried using the FACT table but it has only Keyfigure data.
    thanks
    arshad.

    Hi,
    I would suggest to use a transactionnal cube, even if you do not use BPS to feed it.
    Then, you create a layout in transaction BPS0 (~ similar to a query), and you can access the cube content by simply using the SAP function <b>API_SEMBPS_GETDATA</b>.
    This is easy and fast.
    Regards,

  • How to execute application server file from abap program

    Hi Friends,
    i have a requirement to execute application server file using abap program.
    i got a file directory like '/home/im3/hrintf/xxx.sh' , it's of unix file, so they want me to execute through abap program.
    pls suggest me with relevant logic.
    Thank you.
    Regards
    Ramesh M

    Define the external command in SM49/SM69
    Try with SXPG_CALL_SYSTEM or SXPG_COMMAND_EXECUTE
    Also check this link
    link:[Execute Unix Script|http://searchsap.techtarget.com/tip/0,289483,sid21_gci774071,00.html]

  • Error out the ABAP program execution

    I have an ABAP program which transfers data from a file to a database table thru function module in packages of 50,000 records.
    Upon the successful completion of this ABAP program, I start dependent processes.
    Sometimes the function module does not transfer the data and returns the exception back to the ABAP program - which is an expected scenario. Currently when ever an exception is received in the function module, I stop the ABAP program with a STOP statement.
    The ABAP program stops, which meets my first objective. But what happens is, if you look at the job log --> it is Completed in terms of program execution and the dependent processes automatically start - which is not meeting my second objective.
    My second objective is to force the ABAP program to error out in such a way that .........
    1) The program execution is stopped
    2) If I look at the job log it should not be Completed (I am looking for something like Cancelled so that the dependent process do not get started automatically)
    Is it possible to error out the ABAP program execution by raising an exception or something, so that when i look at the job log - it shows Cancelled and not Completed?
    Let me know if you have any questions.
    Thanks,
    RK.

    Adrian,
    Thanks - This is exactly what I was looking for, it works.
    For some reason Messages skipped my mind and I was looking at raising Exceptions
    Solution:
    if sy-subrc NE 0.
      message id 'abc' type 'E' number 000.
    endif.
    Thanks,
    RK.
    Edited by: RK on Jan 17, 2010 7:47 PM
    Edited by: RK on Jan 17, 2010 7:50 PM
    Edited by: RK on Jan 17, 2010 7:52 PM

  • Accessing Sql Server from AS400 Java program

    Hi everybody,
    I am trying to access Sql Server from an AS400 Java program. I have tried various Sql Server JDBC drivers including the Microsoft one but no luck yet. When i try to compile my Java program (with driver file in the classpath) it gives some errors on the driver jar file and also it throws out lots of unreadable text characters. This gave me a feeling that probably its a character coding issue with the jar file, so i tried ftp the file in binary mode as well as copying through the Operations Navigator. But still compilation is giving the same kind of errors.
    Do I need to have some special JDBC Drivers compiled for AS400 specifically. My understanding was that Java is platform independent so any JDBC Type 4 driver will work.
    We are running Java 1.3 on the AS400. Any help on this issue would be great.
    Thanks
    Inder

    Thanks for the help. I am writing a Java program after a long time that's why was making that mistake. Now the program gets compiled correctly but on running the program i am getting the following error message:
    java 001-0070: Exception JVAB544 not expected
    /myjava/test/msbase.jar: 001-0050 Syntax error on Line 1: token ')' not expected
    /myjava/test/msutil.jar: 001-0050 Syntax error on Line 1: token ')' not expected
    /myjava/test/mssqlserver.jar: 001-0050 Syntax error on Line 1: token ')' not expected
    I have no idea what is this error about. Though the same driver files don't give any error when running on a Windows machine.
    Thanks

  • Find out SE38 ABAP Program

    Hi Friends,
    How to find out a generated ABAP program for  transaction UPSPL.
    when user executes UPSPL, it generates the one ABAP program. How to find out the corresponing program name.
    It is very urgent for me.
    Please help me.
    will assign the points.
    Thanks
    BPS

    You can find out program name or Transaction code if you know either Transaction code or Program name :
    Just use Table TSTC
    When you see the table at SE16 ->
    UPSPL -> program name is UPB_PM_CUST_START 
    When you see the program -> UPB_PM_CUST_START -> within this program they are calling diffrent transaction depend upon requirement.
    I did not have data at my system otherwise i could explain.
    if you know program name -> goto SE38 -> enter program name -> click on where used list button -> you get pop up window -> here select Transaction code
    -> it will display corresponding program name
    other way goto se80 -> enter program name -> UPB_PM_CUST_START -> below you can see list of transactions
    Thanks
    Seshu

  • Portal Server name through ABAP program

    HI,
      I am looking for an ABAP FM / method which will return me the portal server & port connected to CRM to generate dynamic links for business items.
    http://<b><servername>:<port number></b> /irj/portal/<Dynamic Object Link>
    Can any body help me?
    Thanks and Regards,
    Raja.

    As there can more than 1 portal accessing the CRM system, I can't think how the CRM would know this information...
    Cheers

  • ABAP Query: Access variables in ABAP Program through InfoSet Query.

    Hi,
    While generating a report using ABAP Query Tool, how can we access the variables in the ABAP Program in the InfoSet Query?
    Thanks in Advance!!!

    HI,
    Dear, it seems that you have changed the query in SQ02 and then just save it and not generated.
    or may be after generation again clicked on SAVE button.
    So untill unless you will not generate the query, it won't work.
    Secondly, by chanegs in the query, i don't think it changes the name of the main program.
    Regds,
    Anil

  • Sftp server

    Guy's
    i need to access sftp server, i have got
    ip address,port,username,password,rootpath along with
    folder name,now i need to create a report to access
    this ftp path and read file which is stored in the folder,
    i don't have idea ,how to go about it,
    pls send me the function module that can help
    me ,achiving this,with example

    Hello ,
      you can find some documentation here.
    http://help.sap.com/saphelp_erp2005/helpdata/en/f1/b4a6bddf3911d18e080000e8a48612/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/d6/1b9f4099852e54e10000000a1550b0/frameset.htm
    regards,
    Kinshuk

  • Access table using ABAP program in other database

    Dear SAP Expert,
    We have requirement that related to SAP interface.
    Our SAP system run on Oracle database 11g (Unix).
    Illustration: SAP system = A non SAP system = B
    We need to access a table using ABAP program (from SAP system A) in other database (system B) that are not necessarily SAP database. The non-SAP system using SQL Server 2008 (Windows).
    What is the best practice for this interface
    Do we need database link? If yes, please help to inform me the details step to configure it.
    Thanks and Regards

    Hi Friend,
    You try using an intermediate system..passing your input required to fetch the data..and PI should call the respective query to retrive record..once the full flow is completed you should get the return through some table in the calling program.
    else.
    ask the other system guy to write a function with select query and ask him to expose as RFC and that RFC we have to call it as RFC in our program to get the required values and only thing we need here is a proper connector in place.
    Regards
    S.Janagar

  • Create a table and upload data in MS ACCESS from SAP ABAP programming?

    Hi All,
    How to create a table in MS ACCESS database and Upload SAP database table data into MS ACCESS table using ABAP programming?
    Explain: My client requirement is " If he/she runs a ABAP Program, that will create a table and upload data into MS ACCESS Database table in background. "
    Could you please give the solution or code? I know the program RIACCESS and I went through the SAP Note 583698.
    Is this only solution for this?  Or Any other possibilities?
    Please give me solution.
    Thanks in advance.

    Hi,
    It is not possible to create tables in a non SAP schema from inside SAP.
    The SAP-Oracle license also does not allow you to create the table (see note 581312):
    the following actions, among other things, are therefore forbidden at database level:
    Creating database users
    Creating database segments
    Querying/changing/creating data in the database
    Using ODBC or other SAP external access methods
    Please refer following link,
    [Ckick Here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    You can also do it by LSMW,
    If you are using Access 97, you can download directly into an access
    database from SAP. See program RIACCESS for details. You have to establish
    an RFC destination PS_ACCESS_1 and 2.
    There are then a couple of function modules. Go to SE37 and put in
    msaccess and hit PF4.
    The following is from the readme file: sapgui/ps/readme.sap
    For the MS-Access interface SAP delivers 4 files:
    WDPSASTR.EXE This is an RFC server program that is called by SAP R/3
    (PS module). This program creates a MS Access database. The structure
    information of the tables is transferred from R/3. In addition to
    these tables a table named DDIC is created. This table contains the
    structure information and should in no case be modified or deleted.
    WDPSATAB.EXE This is an RFC server program that is called by SAP R/3
    after WDPSASTR. This program filles the tables of the database with data.
    There must not be made any changes of the structure of
    the tables between the calls of WDPSASTR and WDPSATAB.
    WDPSAZET.EXE This is an RFC client program that triggers work/time
    confirmations in the PS module of SAP R/3 (like transaction CN27 Collectiv
    confirm).
    WDPSAMAT.EXE This is an RFC client program that triggers material
    confirmations in the PS module of SAP R/3 (like transaction MB1A - Goods
    Please also refer following links,
    [Click here|Upload data from MS Access tables, to SAP tables.;
    Before using the program "RIACCESS", you need to install the PS utilities, which are part of SAPGUI install CD.
    It is available in the "SAPGUIPS directory".
    Then do the followings :
    1. Select transaction code SALE -> Systems in network-> Define RFC Destination.
    2. You will need two RFC destinations (TCP/IP connections for the front-end workstation).
    Setup the two RFC destinations PS_ACCESS_1 and PS_ACCESS_2 and you'll have to get them to point to
    wdpsastr.exe and wdpsatab.exe respectively.
    3. Then execute RIACCESS and choose PS_ACCESS_1 to generate access tables.
    The system must also be able to access the RFC-DLL files (librfc2.dll, librfc3.dll, librfc4.dll, librfc5.dll, librfc6.dll, vrfc.dll).
    Please note that Access only supports tables with up to 255 fields.

  • Do itabs in ABAP program memory swap out when the program is swapped out?

    Do itabs in ABAP program memory swap out when the program is swapped out by the app server scheduler?
    If so, has anyone compared the time it takes to open/close an Oracle table n times with the time it takes to swap an itab of 50M in and out n times?

    Andrew -
    Although your suspicion appears to be wrong (according to the answer provided by CharlesF below), I'm awarding 6 because your answer indicates that you are at least sensitive to the issues involved here (which is better than 90% of the SAP practitioners out there.)
    However, I do want to take strong issue with you on the matter of how much available "multi-gig" memory is available, because this is irrelevant to the issue at hand.
    The question is: how does the swapin/out of large program memory affect the scheduler on the app server?
    This is a queueing theory issue that has nothing to do with how much memory is out there.
    Back in the days when folks had to know a little queueing theory (to evaluate the pro's and cons of ISO vs SNA and token-ring vs other protocols, everyone understood that if you ask the scheduler to repeatedly swap "alot" and to do so very often, then there will be a profound ripple effect on system performance, not just for anyone "job" or "program", but for any and every job or program.
    The reason is very simple, and the folks who taught the ISO/SNA seminars always used it: traffic flow on passenger highways is always best when there are few trucks travelling with the cars.  This is why the New Jersey turnpike sometimes splits into two "cars only" and "trucks and cars" highways, and why many other roads have "right lane" only restrictions for trucks in certain areas that tend to get congested ...
    Anyway, always a pleasure to chat with you ...
    Best regards
    djh

  • Editing ABAP Program with out using ABAP Editor

    Dear Gurus,
    I know that ABAP Programs like SAPMSSY1, etc. are stored in Table D010S or REPOSRC as per the version of the SAP Released.
    my problem is that whem i open the table REPOSRC (Having around 34 colums), no doubt thati found the program list but i am not be able to see any thing which is written in Program language..!
    how I will be able to access these program in there source language and so make certain changes in them.
    actually during the RFC Logon, I am getting the error that "Error in Reading Program SAPMSSY1"
    R/3 Basis System: Run-time error "GEN_SOURCE_FORMAT  " occurred in accessing SAPMSSY1.
    So pls tell me where I can find the actual program language so that I can make certian changes in them.
    Pls REMEMBER THAT I CAN NOT USE ANY T-CODE LIKE SE36 etc. TO ENTER INTO ABAP EDITOR, AS STILL I AM NOT LOGGED ON. AT THE TIME OF GUI LOGIN I AM GETTING THE SYSTEM ERROR MESSAGE "DUMMY". WHAT THIS IS MEAN FOR??
    Regards,
    Abhishek

    I CAN NOT ENTER INTO THE SYSTEM. AS I GOT THIS ERROR IN THE LAST STEP (RFC JOBS- POST PROCESSING) OF MY SAP INSTALLATION.so can not log in into the system.
    SO WHERE I CAN MODIFY THE PROGRAMMING OF "SAPMSSY1" ?
    AND RESOLLVED THE ABOVE SAID PROBLEM.
    I am using ORACLE 9i with patch 92080 on Windows 2000 Server with SP 4
    SAP Kernel is 620 with patch no. 251 and patch level 0
    SAP GUI IS 710
    Abhishek

  • How can i get access code to create ABAP Program ?

    hi guys ,
    How can i get access code for creating ABAP Program in my System.
    I am using SAP IDES 4.6 Version
    Please Help me out .
    Regards
    Raghu

    Hi Raghu,
    - license your system (http://service.sap.com/licensekey)
    - create a developer key (http://service.sap.com/sscr)
    - create a key for your ABAP program (httP://service.sap.com/sscr)
    Markus

  • Import issue for ABAP program in Production Server ?

    Hi Experts,
    I have an ABAP program which gets executed properly in BW Development server but getting the following error when I am trying to execute it in the BW Production while  I could activate the program successfully.
    Kindly help me to resolve this issue.
    Thanks in advance !!!
    Regards,
    Gokulkumar RD

    Hi Golkul,
    Can you debug the program while execute?
    I think there is some hardcoding in the program for checkiing the client and then raised a custom message in the program.
    Can you share the coding of the prorgam if possible?
    Try to check for any messages raised in the program. Also click on the on the message pop up and see the details on the message and let us know.
    Thanks
    Amit

Maybe you are looking for

  • In which part of the page i can write java script

    Hi I'm new with ADF and web development I have a java script function that show a tooltip. This is the function: *function positionTip(evt) {* *     if (!tipFollowMouse) {* *          standardbody=(document.compatMode=="CSS1Compat")? document.documen

  • Screen shows static "snow"

    I recently installed os x 10.5.5 on my imac, upgrading from 10.4.11. After upgrading to 10.5.5 sometimes when I start my imac the screen is covered with "static" - similar to a TV screen when it's tuned to a station that doesn't exist. I can take a d

  • List of Deleted delivery note

    Hi, I am new end user on MM and SD.how to get list of delivery notes delited in past with username who deleted and material no qty and Sales Order no. I really need this to find who is deleting DN everyday. Why materila never moved out from W/H. Than

  • LVRefNum in a CIN file descriptor difficulties

    I am currently developing an application that uses labview and IMAQ to acquire images from a 1429 cameralink capture card. We aim to analyse the images using some previously devoped c code. Our complications come when trying to access the images from

  • Unable to open a file.

    Dear Experts, In my desktop, i have a text file. In my system i opened tcode CV01N and i have specified the text file path (in Document Data->orginals) and saved the document.It generated a Document no. When i double click on the file it opens correc