DME file encryption

Hi experts,
We have DME developments for our project and right now we are using Payment Medium Workbench(PMW) method for generating DME files and in this method, the file is being generated and stored it in the Presentation server(User PC).
Our requirement is we need to encrypt the DME file while generation and it needs to be stored in the Presentation server. Please suggest us whether it is able to acheive it in the PMW.
Regds,
Uma

Hi,
1. File transport.
Anyway DME file in only Presentation server as a text file.
Use FM --> GUI_UPLOAD get the data to Internal table and
use FM --> DX_FILE_WRITE Pass the itab and app. file path  create file to appication server.
OR
Run BDC for CG3Z
Like below code
data : t_bdcdata type table of bdcdata,
       w_bdcdata type bdcdata.
  clear : w_bdcdata, t_bdcdata.
  w_bdcdata-program = 'SAPLC13Z'.
  w_bdcdata-dynpro = '1020'.
  w_bdcdata-dynbegin = 'X'.
  w_bdcdata-fnam = 'RCGFILETR-FTFRONT'.
  w_bdcdata-fval = w_wrk_string.
  append w_bdcdata to t_bdcdata.
  w_bdcdata-program = 'SAPLC13Z'.
  w_bdcdata-dynpro = '1020'.
  w_bdcdata-dynbegin = 'X'.
  w_bdcdata-fnam = 'RCGFILETR-FTAPPL'.
  w_bdcdata-fval = w_g_efile_a.
  w_addparam = w_g_efile_a.
  append w_bdcdata to t_bdcdata.
  w_bdcdata-program = 'SAPLC13Z'.
  w_bdcdata-dynpro = '1020'.
  w_bdcdata-dynbegin = 'X'.
  w_bdcdata-fnam = 'RCGFILETR-IEFOW'.
  w_bdcdata-fval = 'X'.
  append w_bdcdata to t_bdcdata.
  w_bdcdata-program = 'SAPLC13Z'.
  w_bdcdata-dynpro = '1020'.
  w_bdcdata-fnam = 'BDC_OKCODE'.
  w_bdcdata-fval = '=EIMP'.
  append w_bdcdata to t_bdcdata.
  w_bdcdata-program = 'SAPLC13Z'.
  w_bdcdata-dynpro = '1020'.
  w_bdcdata-fnam = 'BDC_OKCODE'.
  w_bdcdata-fval = '=ECAN'.
  append w_bdcdata to t_bdcdata.
  call transaction 'CG3Z' using t_bdcdata mode 'E'.
Same way for CG3Y.
2. Encryption Part.
data : l_encrtpt_ap type sxpgcolist-parameters.
data : l_econst(1) type c value 'E'.
data : w_addparam type sxpgcolist-parameters,
       w_finalencrpt type string,
       t_chkfile1 like btcxpm-message.
data : w_status like  extcmdexex-status.
data : w_exitparam like  extcmdexex-exitcode.
data : t_exec_protocol like  btcxpm occurs 0 with header line.
*w_addparam = Appication server TXT file path Name. *F\PROJECT\text_file.txt
*w_finalencrpt = Appication server ENC file (Encrypted file path name)
* F\PROJECT\encrypted_file.txt
* t_chkfile1 = 32 digit key code (checksum code)
*              Example #978708gflkorluf96moldglfj0lhop9#
* w_status  = space (No value).
* w_exitparam = space (No value).
* t_exec_protocol  = space (No value).
w_addparam =    'F:\usr\sap\EED\DVEBMGS00\work\TESTDURAI123.txt'.
w_finalencrpt = 'F:\usr\sap\EED\DVEBMGS00\work\TESTDURAIENC.txt'.
t_chkfile1 = '978708gflkorluf96moldglfj0lhop9D'.
concatenate l_econst w_addparam w_finalencrpt t_chkfile1
                   into l_encrtpt_ap separated by space.
  call function 'SXPG_COMMAND_EXECUTE' destination 'devr3_EED_00'
    exporting
      commandname                = 'XWIZSTOP'
      additional_parameters      = l_encrtpt_ap
    importing
      status                     = w_status
      exitcode                   = w_exitparam
    tables
      exec_protocol              = t_exec_protocol
    exceptions
      no_permission              = 1
      command_not_found          = 2
      parameters_too_long        = 3
      security_risk              = 4
      wrong_check_call_interface = 5
      program_start_error        = 6
      program_termination_error  = 7
      x_error                    = 8
      parameter_expected         = 9
      too_many_parameters        = 10
      illegal_command            = 11
      others                     = 12.
  if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
*Here ZCRYPTOBJECT is commend name in SM49.
*Result : Encrypted file generated to application server  in  w_finalencrpt file name
*        I.e.  F\PROJECT\encrypted_file.txt
*Here Without generated the checksum key we Encrypted the file
*we hard code the checksum key.
*if u want to genereted the checksum code defined on file.
*there we can use SXPG_CALL_SYSTEM  function module
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Thanks,
Durai.V
Edited by: Alvaro Tejada Galindo on Aug 21, 2008 3:19 PM

Similar Messages

  • F110S runs for a long time to produce DME file

    A batch job schduled for "daily payment run + creation of DME files" using F110S (SAP ECC 6.0) . The batch is running in production for more than 20 hours to process payment against just single invoice.
    The job runs in following 2 steps
    1. SAPF110S which processes the payment clears FBL5N.
    2. SAPFPAYM_SCHEDULE.
    The second step seems a non-ending process.
    The job variant has only 15 customers, only one invoice is to be processed against one account.
    However in quality system the same job with more than 10,000 customer account range with more than 10 invoices runs just in few minutes.
    Any idea or suggestion why it's taking so long in production?  Any missing configuration in production server?

    It's not performance issue. When we run F110S or F110 in production with individual login id, program runs the way it should and finishes in reasonable time (for example the scenario I described in question finsihes in few seconds).
    The problem occurs only when production batch job runs with job scheduler; program seems looping somewhere for infinite time - to be particular it keeps reading the table TPRI_DEF which has just few records (must be reading this table inside a loop).

  • DME file in XML format in SAP 4.6C

    Hi Experts,
    For a Belgium client, I have a requirement to generate DME file in XML format for payments made to foreign and domestic vendors.  I want to know the following,
    1.  Can DME file be generated in XML format using classic payment medium programs RFFOBE_E and RFFOBE_I.
    2.  If not why and what are the other options.
    3.  I also came to know that there is an options of using Payment medium workbench - through XML format trees BE_BEPDTA and BE_PIBDTA.  But since we are in 4.6C, i am not able to create a payment format.  Is there any support package or patch that is required.
    4.  I tried for SEPA_CT - again a XML format tree but was not very successful as that too was not available in SAP 4.6C.  Is there any way that I can get this done in 4.6C - any support packages or patches available?
    Thanks

    Hi Kaylan,
    could you please share that documentation with me too.
    Thanks, Regards,
    Alex Cardona

  • F110 - How to prevent multiple creation of DME file?

    Hello,
    I need to prevent multiple creation of DME file for the same Payment Run (after it has been created once).
    "Printout" bottom creates DME file and Payment Advice any time you trigger it.
    I'm searching for some User Exit / BAdi / Function that will help me to add ABAP code that will check if DME file has already been created.
    Thank You in Advance

    Hello,
    Please check if the flag "Create payment medium" is not flagged at the proposal and the payment run file.
    If it is flagged the payment file will be generated. Also when you press the print out button, the print program will be called and the system will try to created a new payment file.
    In order to avoid duplicated payments you should consider using the flag 'Payment Document Validation" in your print program.
    If the 'Payment Document Validation' parameter is not set ON, documents already processed for payment can be selected and paid again in a subsequent payment run, when posting terminations have occurred.
    Please refer to SAP Knowledge Base Article 1713825 in order to activate Payment Document Validation.
    Another option is to suppress  the"Create Payment Medium" flag at Proposal Run.
    In this case you should check the following information:
    Please restrict the activity 15 of object F_REGU_BUK in the user
    profile/role
    You may also refer to the available activities on this:
    - 02 Edit parameters
    - 03 Display parameters
    - 11 Execute proposal
    - 12 Edit proposal
    - 13 Display proposal
    - 14 Delete proposal
    - 15 Create payment medium proposal
    - 21 Execute payment run
    - 23 Display payment run
    - 24 Delete payment run payment data
    - 25 Create payment media of payment run
    - 26 Delete payment orders of payment run
    - 31 Print payment medium manually
    Kind Regards,
    Fernando Evangelista

  • F110 - How to prevent the creation of DME file in Proposal Step

    Hello,
    I would like to prevent the creation of DME file in Proposal Step of Payment Run (F110).
    Is it possible to suppress "Create Payment Medium" checkbox?
    Many Thanks

    If you are using the Payment Medium Workbench, there is perhaps a solution:
    I found the following code in function module FI_PAYMEDIUM_OFX_20
    * We abort the payment if the data is from a payment proposal. With
    * OFX we can pay only if the data does not come from a payment
    * proposal.
      IF I_FPAYH-XVORL = 'X'.
        MESSAGE E404 WITH I_FPAYH-LAUFD I_FPAYH-LAUFI
            RAISING CANCEL_PAYMENT_MEDIUM.
      ENDIF.
    So I think it may be possible to solve your problem by using the event modules in transaction OBPM3, with your own function module based on the code given above. I have not tested such solution and I have no experience with these events, but I'm currently trying to use them for another problem.

  • Minus Sign in the Downloaded DME file using F110 Transaction

    Hi All,
    From the F110 Transaction I navigate to the DME Administration from the menu bar in order to download the DME file into my system. I could open the txt file that is downloaded. Now my requirement is to add a minus sign to the invoice amount of the txt file.
    I tried debugging the program to find out where the data is populated but was unable to. I can see the FM GUI_DOWNLOAD that downloads the file but the internal table contains hexadecimal data.I don't understand how this is converted to the text data.
    I'm unsure of what to do.... Any body has any suggestions.
    Regards,
    Shipin Paul

    Hi Anmol,
    Your answer helped me a lot. I am really thankful. But my issue is not solved.
    I went to the DMEE Transaction and gave the correct format and the tree type as input.
    Inside the format i went into the amount element as you have mentioned and included an exit module with the respective coding.
    Then i execute the transaction F110 with the Run date and Identification.
    I then navigate to the menubar Enviroment->Payment Medium->DME Administration so as to download it into my system as notepad.
    I select one of the entries and press the download button. But it does not stop at the exit which i included in the DMEE Transaction
    even though i have created a breakpoint there..
    Do you have any idea about this.
    Regards,
    Shipin Paul

  • Making changes in DME File TCode F111

    Hi Friends,
    I have to make changes in DME file in Transaction F111.
    Friend please help with some user exit or event module with some some info.
    Thanks in Advance,
    Best Regards

    Give yourself write access to the enclosing folder in that folder's Get Info window.
    (59544)

  • Error in DME file.

    Hello,
    We are executing a payment run. After payment run is executed a DME file is generated. But somehow not the file is not getting generated and we are getting the below error
    File C:\DME0347 cannot be opened.
    Message no. BFIBL02182.
    Please can someone let me how to generate the file.
    BR,
    Zulfikar

    Dear Zulfikar,
    The error message BFIBL02182 normally is showing because the directory that was used when starting the payment media program (for example, in background processing), cannot be read online. You should therefore choose a directory that can be written to and read by different machines.
    or If required, the file created can be held within the SAP System (saved in TemSe, not filed in the file system), and therefore protected from external access. The file can be downloaded to the user's file system  via DME administration.
    You can define the name of the file to be created during the download when you execute the payment media program. The content of the parameters for the file names is then stored in the management data and proposed when you execute the download.
    Regards,
    Paulo

  • Query regarding the conversion of DME file in MT940 format.

    Hello Experts,
    I have a query regarding the generation of MT940 file after generating the payment file from other DME tree.
    After completion of payment run, my payment file is generated in the DME format which is according to the DME tree.
    I want to convert the DME file (which is generated via F110)  from existing format to the standard MT940 format.
    Is there any standard program which converts the DME file to MT940. If so,  please inform me as early.
    I have tried to upload the DME file in FF.5 transaction, but it is not allowing me to convert the file in MT940 structure.
    Or please inform the steps how i can convert the file .
    Awaiting for your inputs.
    Thanks in advance

    Hi Zareena.
    I would like to suggest,
    SX_OBJECT_CONVERT_RAW_TXT.
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Vendor Bank account details not appearing in DME file

    Hi SAP gurus,
    We have maintained bank information for vendor in the master record and also configured the field FPAYH-ZBNKN in the DME structure to retrieve bank information and pass to the DME file.However the values are not passing to the DME output file. Please let me know if any config is missing.
    Answers will be rewarded with good points
    Thanks
    Ravi

    Hi Ravi,
    This is not reply to ur query but, we are implementing the same thing. I have designed the DMEE tree for the format required by the bank. I am able to run the F110 succesfully but after going to env->pay med->DME adm i get the FDTA screen with the message 'no records found'. Can u guide me in this case. I have done all the settings in the customization.
    But when i run the program SAPFPAYM with the proper required values of payment run i get the overview screen in the overview screen when i dbl click the item under output list. I dont get download option in EDIT. In the spool Request when I go to forward and export the file, the file which I get is in different format.
    pls. guide

  • Mapping all one vendor Payments to that Vendor in DME file....  ???

    Hi Gurus
    I am not able to Map all one vendor Payments to that Vendor in DME file. The DME file takes each individual line item (invoice)  but incorrectly  with  the total  amount of vendor payment - not amount of each invoice. We want to pay a total for each supplier and not per individual invoice.
    Please let me know.. How to set up these settings in payment method ?
    Thanks
    Meenakshi.N

    Hi,
    You can influence if open positions to one vendor are paid together or separately are controlled by this:
    - FD02: vendor master
    box: Individual pmnt -> please read F1-Help
    box: Grouping key that can be entered in the document -> F1-Help
    - FBZP: Payment method / comp code
    Single payment for marked item: marked?
    - FBZP: All Company Codes
    Separate payment per business area: marked?
    Beside that please read note 305414. Please be aware that positions can be only regulated together if there is no difference in the entries of the important fields that are contained in the structure ZHLG1.
    Hope that helps to understand to logic how the payment run groups the positions for posting.
    Best regards,
    Jeno

  • MT103 - IBAN fields not output in DME file

    We completed the necessary payment method / payment media configuration using the PMW for MT103.  We are testing payments in EUR which our banks says should output the IBAN number from the vendor master record vs. the SWIFT account.  When the DME file is output, the SWIFT code or the bank account number is output instead of the IBAN.
    Does anyone know how to output the IBAN number instead?
    Thanks,
    Jason

    Hi Jason,
    To populate the IBAN number in the DME File please follow the following configuration process:
    1. Execute Program SAPFPAYM to create a variant.
    2. Enter MT103 in Payment Medium Format and click enter
    3. Then click on the Format Parameters.
    4. One pop-up appears " Other specifications for payment medium formats MT103"
    5. Check the field " Transfer IBAN".
    6. After this assign this variant to your Company Code and House Bank in TCode OBPM4 under MT103 Payment Format.
    This way you would be able to transfer IBAN to your payment file.
    Regards,
    Sanjay

  • Automatic Payment Run - Problem with downloading DME file

    Hi,
    My client recently went live with the Automatic Payment run. But when trying to download ( or export) the DME file he is unable to do so. The message says like "There is no source data for this data record".
    Please help.
    Regards,
    Raj/

    Hello,
    You have to give the destination path where the file needs to be saved in transaction code OBPM4.
    Hope you must have maintained proper variant for your Payment Medium Format.
    Unless, you maintain these values, the file will not be generated at the destination.
    Thanks,
    Ravi

  • Payment run for DME file- error

    I have successfully executed payment run. the varaint is defined for DME file. when i execute the print program i get error
    'Payment run/group (20110701 DME2) locked by user 10609576'

    Hi,
    The user "10609576" is also doing some activity for this payment run id.DME2 Dated: 20110701.
    You can generate the DME after that user has come out of this payment run.
    Regards,
    Kiron Kumar T.

  • DME File not Generating

    Hi Experts,
                    Is there any authorization required for the generation of the DME file after we run the automatic payment program?.
    1. The open line items are cleared once the APP is run.
    2. checked for the dme file using the AL11, But no files has been created.
    Note I have used the payment method S - SWIFT payment
    Regards
    TSR

    Hi,
    I see that you are using PMW format and you have mentioned that you use program RFFOAVIS_FPAYM. Please note that this program creates payment advice notes for payments created using the Generic payment medium program SAPFPAYM.
    Please use program SAPFPAYM to create payment medium file.
    There are 2 types of output medium that can be used 1) File system 2) Temse
    In se38: sapfpaym, use the correct variant, once the Payment medium format is entered, check the Output Control section, here you have an indicator "Output to File System", check the F1 help of this field. If you enable this indicator then File is created on application server path specified. Else file is created and stored with SAP
    TemSe in the SAP System (file for storage of temporary sequential data).
    Hope this helps. Let me know if this information was useful.
    Kind Regards
    Soumya

Maybe you are looking for

  • Sound is not working correctly

    I sound works after using the answers posted in these forums but I have a few additional questions.  When I type dmesg it lists: Intel 810 + AC97 Audio, version 0.21, 00:03:43 Feb  1 2003 PCI: Found IRQ 11 for device 00:02.7 i810: SiS 7012 found at I

  • How do you paste frames that were created in a symbol into the main animation's timeline??

    Hi I've accidently created an entire short flash animation inside a symbol! I've selected all the frames inside this symbol and copied them into a new animation. When I paste these frames, Flash pastes the animation OUTSIDE the boundaries of the stag

  • Presentation Director for T410?

    Hi all, I just got a new T410 Thinkpad for work and it looks like none of the ThinkVantage software is loaded - the OS is Windows XP SP3.  I already miss the Presentation Director so I can Function-F7 my way to different monitors at home and work.  I

  • Need information about Internal Tables

    Hi Every one! I Need some information about Internal tables. Pls help be above the same. Thanks & with Regards, Chandra.

  • Opening a .jar for use in eclipse

    is the a tutorial on how to open a .jar file and use it with in eclipse by keeping the same file structure? i know how to open a .jar but when i just put all the contents under say "src" in a new project errors start popping up, not in the files but