Encryption through bat file in SAP

dear all,
I want to call a *.bat file ( created in Java ) in mm ABAP program to encrypt the file for Bank use.
Can anyone plz help me in this, will RFC help in this? the file is located at local drive in PC.
how to give Input and Output file parameters??

Hi,
You can use SM69 to define your command and run this command using MF SXPG_COMMAND_EXECUTE. But this can works if you upload the file on the server.
Regards

Similar Messages

  • Encryption through bat file.

    dear all,
    I want to call a *.bat file ( created in Java ) in mm ABAP program to encrypt the file for Bank use.
    Can anyone plz help me in this, will RFC help in this? the file is located at local drive in PC.

    May be you can try these FM.
    Use the following FM to encrypt
    CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
    Use the following FM to decrypt
    CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'
    ******Reward points,if found useful

  • Error in Data upload through Flat files in SAP BPC

    Hi,
    we are trying to upload data from flat files in SAP BPC  but an error is coming viz Object reference not set to an instance of an object .

    Hi,
    Can you please cross check the file structure and the transfer structure.
    Cheers,
    Malli....

  • Update Database Through XML file using SAP B1 business objects

    Hello everyone,
    I am facing a problem ie I am not able to update the Database(SQL 2000) through an XML file.
    Though i am able to insert the data in the databse using xml file but unable to update that data.
    The tables i want to update are OITM,ITM1,OITW. While i was trying to update  the Databse i was getting an error ie " -1107 Object's key is not set".
    I dont want to use DTW for importing or anything.
    Kindly help me out why i am facing this problem asap...

    Hi Pranay,
    My case was that I wanted to replicate an item from one company to another (I guess that's your case also). What I finally did is copy field by field the objects I needed. Later I've find out the solution given here,
    Copy items between databases
    but I haven't try it out. I expect your comments about it :).
    Regards,
    Ian

  • Connect DB through BAT file

    set /p SName=Server Name :
    set /p UName=User Name :
    set /p Pwd=Password :
    set /p DbName=Database Name :
    Can i set permanently or one time above details in batch file instead of given again and again while we execute the batch file to execute the DB scripts

    Did you try using sqlcmd? You can pass credentials  and execute the sql file. 
    for example
    C:\Program Files\Microsoft SQL Server\100\Tools\Binn>SQLCMD.EXE -S hqdbsp18 -i " C:\TestCmd.sql" -d "master" -U xyz -P abcd1234
    http://technet.microsoft.com/en-us/library/ms165702(v=sql.105).aspx
    --Prashanth

  • Package giving error when executed through bat file

    The packages successfully execute in SQL Server Data Tools but when I use DTEXEC to execute it gives me the following error:
    "To run a SSIS package outside of SQL Server Data Tools you must install Send Mail Task of Integration Services or higher .
    I tried 5 different packages and all of them showed similar error except the send mail task is replaced by different other tasks of those packages.

    Go to start-> run
    Type Services.msc. It will launch services window.
    Check for a service named SQL Server Integration Services with or without version number. If its present it means SSIS is installed. Also make sure its started and is in running state.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Reg: call procedure in bat file.

    Hi Friends
       i have created procedure in my oracle database.
    now i want to call this procedure through Bat file.
    and my procedure is like PROC_VALIDATION(FILENAME IN VARCHAR2(50));
    my procedure passing parameter also.
    please help.

    Is this what you are looking for?
    SQL> create table test (no integer);
    Table created.
    SQL> create or replace procedure p(val in integer)
      2  as
      3  begin
      4    insert into test(no) values (val);
      5    commit;
      6  end;
      7  /
    Procedure created.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:>type c:\test.bat
    set hostvar=%1
    echo conn karthick/*****@*****
    echo exec p ^^^(%hostvar%^^^)
    ) | sqlplus -s /nolog
    C:>c:\test.bat 1
    C:>set hostvar=1
    C:>(
    echo conn karthick/*****@*****
    echo exec p ^(1^)
    )  | sqlplus -s /nolog
    PL/SQL procedure successfully completed.
    C:>sqlplus karthick/*****@*****
    SQL*Plus: Release 11.1.0.6.0 - Production on Wed Nov 27 16:35:54 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from test;
            NO
             1
    SQL>

  • To upload a RTF and a PDF file to SAP R/3 and print the same through SAP

    Hi,
    I have a requirement to upload a PDF file and a RTF file to SAP R/3 and print the same.
    I wrote the following code for uploading a RTF file to SAP R/3 and print the same. However, the problem is , the formatting present in the RTF document( bold/italics..etc) is not being reflected when I do the 'print-preview' after the executing the code below :
    report z_test_upload .
    data: begin of itab occurs 0,
             rec type string,
          end of itab.
    data: options like itcpo.
    data: filename type string,
          count type i.
    data: filetype(10) type c value 'ASC'.
    DATA: HEADER  LIKE THEAD    OCCURS   0 WITH HEADER LINE.
    DATA: NEWHEADER  LIKE THEAD    OCCURS   0 WITH HEADER LINE.
    DATA: ITFLINE LIKE TLINE    OCCURS   0 WITH HEADER LINE.
    DATA: RTFLINE LIKE HELP_STFA OCCURS   0 WITH HEADER LINE.
    DATA:   string_len TYPE i,
            n1 TYPE i.
    selection-screen begin of block b1.
      parameter: p_file1(128) default 'C:\test_itf.rtf'.
    selection-screen end of block b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
      CALL FUNCTION 'F4_FILENAME'
           IMPORTING
                file_name = p_file1.
    start-of-selection.
    move p_file1 to filename.
    call function 'GUI_UPLOAD'
         EXPORTING
              filename                = filename
              filetype                = filetype
         TABLES
              data_tab                = itab
         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 <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    loop at itab.
      string_len = strlen( itab-rec ).
      n1 = string_len DIV 134.
      ADD 1 TO n1.
      DO n1 TIMES.
        rtfline-line = itab-rec.
        APPEND rtfline.
        SHIFT itab-rec BY 134 PLACES.
      ENDDO.
    endloop.
    HEADER-TDSTYLE = 'S_DOCUS1'.
    HEADER-TDFORM = 'S_DOCU_SHOW'.
    header-tdspras = 'E'.
    CALL FUNCTION 'CONVERT_TEXT'
      EXPORTING
      CODEPAGE               = '0000'
        DIRECTION              = 'IMPORT'
        FORMAT_TYPE            = 'RTF'
       FORMATWIDTH            = 72
        HEADER                 = header
        SSHEET                 = 'WINHELP.DOT'
        WITH_TAB               = 'X'
        WORD_LANGU             = SY-LANGU
        TABLETYPE              = 'ASC'
      TAB_SUBSTITUTE         = 'X09  '
      LF_SUBSTITUTE          = ' '
      REPLACE_SYMBOLS        = 'X'
      REPLACE_SAPCHARS       = 'X'
      MASK_BRACKETS          = 'X'
      IMPORTING
        NEWHEADER              = NEWHEADER
      WITH_TAB_E             =
      FORMATWIDTH_E          =
      TABLES
        FOREIGN                = RTFLINE
        ITF_LINES              = ITFLINE.
      LINKS_TO_CONVERT       =
    if sy-subrc <> 0.
    endif.
    CALL FUNCTION 'PRINT_TEXT_ITF'
      EXPORTING
         HEADER        = newheader
         OPTIONS       = options
    IMPORTING
      RESULT        =
      TABLES
        LINES         = itfline.
    if sy-subrc <> 0.
    endif.
    Any hints or suggestions to solve this problem will be highly appreciated.
    Thanks,
    Avra

    Hi Vishwas,
    Check out the thread [Efficient way of saving documents uploaded|Re: Efficient way of saving documents uploaded by users; and check the blog by Raja Thangamani.
    Also check the thread [Export Images through Function Modules   |Export Images through Function Modules;.
    Hope it helps you.

  • Pls Help me with steps to add data from xml file to SAP B1 through B1iSN.

    Pls Help me with steps to add data from xml file to SAP B1 through B1iSN. I  am getting stuck in xsl transformation. not able to understand where the mapping code needs to be added.
    Pls explain me the steps for adding data from xml to B1 quotation step by step.
    thanks and regards
    Priya

    Hi,
    Have you checked this: https://sap.na.pgiconnect.com/p45508295/?launcher=false&fcsContent=true&pbMode=normal ?
    Thanks,
    Gordon

  • How to encrypt files in SAP ?

    Dear,
    Today, we have a Banking process that exchange files between us and the
    banks, this files cointains confidential informations of money transactions
    made by our customers. We need to encrypt the .txt files before send it
    thorough FTP server.
    I know that SAP uses Secure Store and Forward(SSF) interface that makes use
    of Public-key Cryptographic Standards(PKCS).
    But SSF is available only for "System Security for SAP Web AS ABAP Only",
    "System Security for SAP Web AS Java Only", SSL protocol and
    HTTPS protocol.
    The Bank that will receive our files uses a DELPHI program that suport the
    following Algorithm RSA (Rivest, Shamir, Adleman), DSA
    (Digital Signature Algorithm) or DH (Diffie-Hellman), Seince these are the
    most common and public algorithm I'll prefer to use them, but I 'don't know
    how to implement a abap code to make use of this encryption.
    I'll appreciate any help or information about this subject you can give.
    Alex

    Have a look at <a href="http://help.sap.com/saphelp_47x200/helpdata/en/53/251a355d0c4d78e10000009b38f83b/frameset.htm">this.</a>
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/21/f36c0e389511d5992200508b6b8b11/content.htm">This</a>is the higher level url.
    Message was edited by: Rob Burbank

  • Encryption through SAP

    Dear Friends,
    I have developed one program which generate Text File on /interface folder on the root.
    Because of Security reason, I want to encrypt that text file through my program.
    Can anyone suggest me the best solution for this.
    Regards,
    Mukul

    please look at this program for encription and decreption.....
    REPORT  zencript                           .
    PARAMETERS : p_pass  TYPE sy-uname.
    DATA : l_password  TYPE string,
           l_encoded TYPE string,
           l_decoded TYPE string.
    l_password = p_pass.
    CONDENSE l_password.
    CALL METHOD cl_http_utility=>if_http_utility~encode_base64    "Method for Encryption
      EXPORTING
        unencoded = l_password
      RECEIVING
        encoded   = l_encoded.
    CALL METHOD cl_http_utility=>if_http_utility~decode_base64    "Method for Decryption
      EXPORTING
        encoded = l_encoded
      RECEIVING
        decoded = l_decoded.
    WRITE : / 'Password Entered   :' , p_pass,
            / 'Encrypted Password :' , l_encoded,
            / 'Decrypted Password :' , l_decoded.

  • How do to encrypt a file in sAP

    hi guys,
               How can we encrypt  a file in SAP.The input file has a extention of .csv
              Can anyone provide help about this Topic . I would be really greatful to any help .
    Thanks in advance

    hi,
    May be you can try these FM.
    Use the following FM to encrypt
    CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
    Use the following FM to decrypt
    CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'
    Hope this is helpful, Do reward.

  • Launch Java app through a bat file

    Hi,
    Because I have to launch my Java App through a batch file, I don't know if I can create a new java class to execute this bat file to launch my Java App? Is that gonna work?
    Henry.

    Yes I created a batch file and tested. If I execute my batch file, the java app will be lauched as expected.
    Here is my java class that execute my batch file
    import java.io.*;
    public class LaunchTest {
    public static void main(String args[])
    String cmd[] = new String[3];
    try
    String osName = System.getProperty("os.name" );
    //System will detect current operating system
    if( osName.equals( "Windows NT" ) || osName.equals( "Windows 2000" ) )
    cmd[0] = "cmd.exe" ;
    cmd[1] = "/C";
    cmd[2] = "c:\\Run.bat"; //Run.bat will set classpath and launch my java app
    else if( osName.equals( "Windows 95" ) || osName.equals( "Windows 98" ) )
    cmd[0] = "command.exe" ;
    cmd[1] = "/C";
    cmd[2] = "c:\\Run.bat";//Run.bat will set classpath and launch my java app
    Runtime rt = Runtime.getRuntime();
    //running the commands
    Process proc = rt.exec(cmd);
    // any error message?
    StreamGobbler errorGobbler = new
    StreamGobbler(proc.getErrorStream(), "ERROR");
    // kick them off
    errorGobbler.start();
                   // any error???
    int exitVal = proc.waitFor();
    catch (Throwable t)
    t.printStackTrace();
    System.out.println("error...");
    And here is my batch file
    @echo off
    set path=e:\jbuilder4\jdk1.3\bin
    set classpath=E:\JBuilder4\jdom-b7\jdom-b7\build\jdom.jar;E:\JBuilder4\jdom-b7\jdom-b7\lib\xerces.jar;.
    d:
    cd AutoTest\classes
    java FirmwareTestPack.FirmwareMainClass
    exit
    When I run the java class above, Dos prompt popped up for a second then disappeared. It did not launch my Firmware pplication.
    Thank you.

  • Process .bat files through the terminal Window?

    Hi,
    I have a large number of .bat file which have been generated from Rendering out of Maya (3D Application) on PC.
    Usually I would process the bat files from within maya's script editor which would generate the Photoshop images.
    The down side is it ties my PC up and I cant really do anything while these are processing .. and it take quiet a while.
    I have Mac which doesn't have Maya... does anybody know if I can process .bat files maybe through the terminal window?. Problem is theres well over 10,000 images to process.
    If it is possible to do this is there a way I can automate this process from the Terminal for all the files?
    Any help would be much appreciated
    Thanks
    Wayne

    No problem, Kurt. There are several possible solutions for the OP (who seems to have disappeared!):
    You mentioned already running Windows on the Mac. I have found Parallels great, so it should be as simple as setting up his virtual machine, installing his app and copying over the batch files. But he would need to purchase Parallels and have a Windows licence.
    Unix has a much more sophisticated range of scripting facilities than the old DOS batch files, and there are free tools that do a lot of graphics processing.
    Applescript can be used to control Graphic Converter (amongst others) - but OP refers to rendering, and I don't know if GC can do that (in fact I am fairly sure it can't).
    So, to advise wr_uk we really need to know what those bat files are doing!
    AK

  • Runing a report through a BAT file

    Hi,
    I'd like to call Report Runtime through a BAT file, indicating the RDF file I want to open and the user-password-host names for the database (so that when the file is executed the report opens without asking to log on).
    Does anybody know how to do this?
    Thanks--

    Hi
    You can call report by creating short cut for the desired Report runtime, but which is hard coded where in you have to create the short cut for the REP you desired to run. when user double clicks that icons its opens Connect dialogue box.
    Other procedure is a bit long, you create a form where in you provide the File-Open dialogue box, so that user can select the desired report, from there you can call the report from Reports
    I don't known how are this will meet your requirements
    Regrads
    Karan
    null
    ---i saw this post
    You can call report by creating short cut for the desired Report runtime, but which is hard coded where in you have to create the short cut for the REP you desired to run. when user double clicks that icons its opens Connect dialogue box.
    and i want to know how iis it done?

Maybe you are looking for

  • How to enter my password after replacing keyboard batteries

    I have just replaced the batteries in my keyboard (first time I've done this). The Mac was asleep and needs a password to wake up, but the keyboard "pairing needed" light is flashing and I cannot enter the password as the keyboard cannot transmit to

  • Service Builder

    Hi everyone, I learn OData and SAPUI5. for tutorial I find this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d59930-791c-3010-2abd-ac7793ad6c57?QuickLink=index&- I faced some problems. 1) when I click the 'Call Browse

  • R9 280X Artifacts, missing/flashing textures, crash to desktop

    Started around the start of the year. Wasn't too frequent. Thought it was just some graphical glitches. But in the last month or two, its been getting a lot worse. Games I'm noticing it a lot in: Just Cause 2, Assassins Creed: Black Flag, Skyrim, Gri

  • Midi to usb. Microphone

    so i have a casio plugged into my garageband via a midi to usb cord, and when i try to record it won't record any sound unless the microphone is on, which of course has horrible quality. then when i turn the microphone off it doesn't register that it

  • Urgent!!! OAM install

    My OAM points to OID (VIP, and separate data store for user and policy,configuration; replicated) It so happened that they reinstalled OID user store and from that time I having problems setting up OAM. It worked fine before that. So, after the reins