Problem in DME file generation

Hi experts,
I am facing a problem in the generation DME file. Required file format for SPAIN is different to that of the standard file that is generated by executing the standard program RFFOES_T. So I copied that standard program into another and made changes for the new file format in the subroutine DTA_SPANIEN. The file is being generated but with systematically 7 white lines (i.e) blank lines between 2 real lines. Cannot find where the problem lies. Can any one help me in this? Thanks in advance.
Regards,
Asha

Hi Calsadillo,
The below code says how I have passed the different records to the file
types: begin of t_file,
         record(1000),
       end of t_file,
     begin of t_h1,
       rec(2),
       trans(2),
       field1(10),
       crtd(6),
     end of t_h1,
     begin of t_h2,
       rec(2),
       trans(2),
       paynm(6),
     end of t_h2,
     begin of t_h3,
       rec(2),
       trans(2),
       payadd(35),
       filler(2),
       field2(40),
     end of t_h3,
     begin of t_h4,
       rec(2),
       trans(2),
       matdat(6),
       deltype,
       contype(2),
       filler(7),
     end of t_h4.
data : lwa_h1 type t_h1,
       lwa_h2 type t_h2,
       lwa_h3 type t_h3,
       lwa_h4 type t_h4,
       lwa_file type t_file.  
data : li_file type standard table of t_file.
*Start Filling Record 1
      l_count        = l_count + 1.
      lwa_h1-rec     = lc_03.
      lwa_h1-trans   = lc_56.             
      lwa_h1-field1  = t001z-paval.
      lwa_h1-crtd = '0000000O02XR'.
      lwa_file       = lwa_h1.
      APPEND lwa_file TO li_file.
*Start Filling Record 2
      l_count       = l_count + 1.
      lwa_h2-rec    = lc_03.
      lwa_h2-trans  = lc_56.
      lwa_h2-paynm  = t001-butxt.
      lwa_file      = lwa_h2.
      APPEND lwa_file TO li_file.
*Start Filling Record 3
      l_count       = l_count + 1.
      lwa_h3-rec    = lc_03.
      lwa_h3-trans  = lc_56.
      lwa_h3-payadd  = adrc-city1.
    lwa_h3-filler    = lc_06.
      lwa_file      = lwa_h4.
      APPEND lwa_file TO li_file.
*Start Filling Record 4
      l_count       = l_count + 1.
       lwa_h4-rec    = lc_03.
      lwa_h4-trans  = lc_56.
      lwa_h4-matdat = lc_030.
      lwa_h4-deltype    = lc_004.
      lwa_h4-contype    = lc_003.
      lwa_file      = lwa_h3.
      APPEND lwa_file TO li_file.
  OPEN DATASET par_unix FOR OUTPUT IN LEGACY TEXT MODE
                                IGNORING CONVERSION ERRORS.
  IF sy-subrc IS INITIAL.
    LOOP AT li_file INTO lwa_file.
      TRANSFER  lwa_file TO  par_unix.
    ENDLOOP.
    CLOSE DATASET par_unix.
  ENDIF.
where par_unix is the file name entered on the selection screen.
Now where can i fit the two declarations of code which you have sent? Can you please explain.
Regards,
Asha

Similar Messages

  • Regarding problem with new line feed for DME file generation

    Hello Experts,
    I m facing a problem in the DME file generation.
    we want each record in the DME file should be in new line. for that we have add the new line feed character in the each row end. So in the SAP output it looks ok, But if we download that file the carriage return field is coming in the end of every row.
    can any one tell how to solve this issue.
    Please refer the below line code which i m using for new line
    DATA: GM_newline TYPE c VALUE cl_abap_char_utilities=>CR_LF
    You reply is valuable..
    Thanks,
    Suresh

    DATA: GM_newline TYPE c VALUE cl_abap_char_utilities=>newline.

  • DME File generation

    Hi Guru's
    I am having a small problem in generation of DME file after F110 is done.
    Once the F110 has been run successfully and the Payment has been carried out, we can generate a DME file  from Environment-->Payment medium--->DME Administration, there is also T code (I don't remember the T code)
    I could see the reference no. etc in REGUT table also , but I couldn't see  or generate the  DME File
    I am getting the following error "There is no source for this data record" Error no :FZ205
    Can any one help me out in generating the file
    Regards
    VSK

    Dear
    thanks for the quick response, One small doubt
    I have recreated a Pmt medium thru the program"SAPFPAYM",... i have got a new window saying that posting orders generated , completed
    My doubt is that should we delete the previous entry because the 1st window is showing  me the generated lines...
    I have not deleted, and am still getting the same error message...
    Any pointers in this regard
    Regards
    VSK

  • F110 Payment run - problem with DME file

    We are using a custom Payment medium Program for Colombia to generate a DME file. The problem is that after scheduling the Payment Run the user is trying to download the DME File into a folder on the PC to send to the bank. When the user clicks on the export file button the message says:
    'There is no source for the data record'.
    We tested this thoroughly in the Test environment and the user was able to download the file. But for some strange reason this is not happening in our production. The user has proper authorizations w.r.t F110 and FDTA transaction codes.
    I am not sure if this would be useful but when the user gets this message the SU53 screenshot shows Authorization failure to the object P_ABAP  HR: Reporting. The Object class is HR Human Resources and the ABAP Program name is SAPMFDTA.
    I am not able to understand why we get this because my client does not use SAP HR module.
    Please let me know how to resolve this.
    Regards,
    Raj/

    Hello,
    Please check the variant in OBPM4. To down load the file to PC, you special authorization and it is not rcommended as these files are very critical and changing to PC would allow the user to modify them.
    These files are being downloaded to application servers. You can see the folders in AL11.
    In OBPM1, you have enabled "DME file output".
    Hope this solves your problem.
    Regards,
    Ravi

  • DME File Generation for Thailand

    Hi Gurus,
    I would like to know which DME File format is using for Thailand.
    I need to generate DME file for the Thailand country format while running APP F110. 
    Thanks in Advance.
    Pavan

    Hi,
    If you are using PMW for DME generation than please go to DMEE transaction code and in tree property node at File Data tab select radio button 'Allow Only These Charact.' and don't specify this characters in the field against Character Definition.
    For blank space control it with Length and Conv. function in the segment definition.
    Regards,
    Anand Raichura

  • Problem in DME file

    HI All,
    When I am creating DME file after payment run intermediately bank details are missing in the DME file.
    If I run the same for the other company code then I can see the intermediately Bank details.
    Both the case use same payment method.
    Advice me how can I get the intermediately bank details in the first company code.
    Note: we are using user  defined  format Z_MT103. we updated bank chain details.

    Have you created the format using DMEE?  I think not.  Check the form details in FBZP for your payment method in 'Payment Methods in Co. Code' step, if both are the same.
    It may be that the intermediary bank details info is missing for the particular Co. Code.  You may have to check the Bank chain assignment for your Bank Account and country of the first Co. Code.
    Also, check the form if any conditions given to restrict to a Co. Code.
    Ravi.

  • DME file generation in APP

    Hi All,
    Can you tell me, how i can generate DME file after APP run, what program should i use for this and are there any other specific settings required to generate

    Hello,
    Follow the below step,
    1) Create a structure in the transaction code DMEE
    2) Assign the DMME structure in the payment method by conuntry in FBZP
    3) Create the payment medium Formats with the same name as given in the DMEE structure ( PATH : AP - Business transaction - outgoing payment - automatic outgoing payment - payment media - make settings for payment medium from payment medium workbench - create payment medium formats)
    4) create a variant for the DMEE structure you created (Select the DMEE you created and create a new variant)
    5) Then execute the F110
    based on the above config and settings, DME file will be generated.
    Hope this clarifies.
    Raja.A

  • DME file generation for Bank of Montreal Canada

    Hello Experts,
    We are doing Electronic funds tranfer for direct deposits in CAnada. WE are using DME for this purpose. WE could get the file layout correct but the records in the file are twice as big - every character is followed by a special character - ".'" or "#" or "blank space depending on how we open the file .
    Any thoughts??
    Thanks,
    Leela

    Hi,
    If you are using PMW for DME generation than please go to DMEE transaction code and in tree property node at File Data tab select radio button 'Allow Only These Charact.' and don't specify this characters in the field against Character Definition.
    For blank space control it with Length and Conv. function in the segment definition.
    Regards,
    Anand Raichura

  • Problem in output file generation in AL11 tcode - need quick help

    Hi experts,
    Scenario:- Proxy to File ( file is generated in AL11 directory folder.
    Probelm:
    Last field value is generated with correct values in SXMB_MONI output payload, But when I open a file in AL11 the last field fiew value are getting trimmed. Also when I get the dump of file - file also has the same trimmed value.
    For example: Expected value in MONI is 12345 where as in AL11 i m getting 1234
    I have reduce the length of previous fields and run the scenario again - for this scenario all the values are coming in AL11 as well as in MONI.
    Is somthing to do with screen width length.
    Deepak Jaiswal.
    Edited by: deepak jaiswal on Aug 6, 2009 11:45 AM

    HI ,
          Its a problem with File Transfer tcode sxda_tools and AL11 sometimes. Ask your Basis team to give you file contents from PI Server directly.  This file should have right contents as you expected.
    I also faced the same problem and wasted lot of time to solve it.
    Hence, check the folder where you dump this file on application server and give this path to basis to provide you this file from server.
    Regards,
    Anurag Garg

  • Problem in output file generation in AL11 tcode

    Hi experts,
                     I am doing one proxy to file scenario.file to be generated as a fixed length format .when i run the scenario, i am getting all the values in output payload correctly in Sxmb_moni and file is also created.But when i scroll upto last to the file generated in ALL11 directory. I am not getting whole values that generated in output payload.In my case my last value is generating in output payload but i am getting trimmed value in file generated in al11 directory.when i save this text file also in local system , i am again only getting trimmed values as seen in All11 directory.when i tried with changing any field length value before that last field with small length(size)value.I am able to see the whole output payload value in file also while scrolling in the file generated in al11 directory

    >
    deepak jaiswal wrote:
    > Hi,
    >
    > I summed the fixed length of all fields and it's sum comes 515. But it displays me upto length 514 values in file generated in al11 only.
    >
    > Please help me to reslove this issue.
    >
    > Deepak jaiswal
    Since in AL11 you can have only 256 char in a row, so I hope you will be getting 3 rows in your case. Correct??
    First row 256
    2nd   row 256
    3rd   row   1
    Total     513
    So out will be 513 which is correct because from first 2 rows it has truncated 1 char from both rows. Please check your output length again to confirm.
    So it is not a problem neither your's nor AL11's. When you write your file at legacy system then it will show the correct data or use FTP adapter and write the file on your local machine to see all the char.
    I hope this solves your problem.

  • Problem in csv file generation

    Hi ,
    I am trying to spool a query in csv format using "col sep ,"
    but it is giving problem for the text values like example i have a sql_text column which gives the sql text. in the csv file which was generated the select statement columns are going to next column where the comma is invoked.
    is there any way to format while generating csv file that entire sql_text should come in one column
    Thanks
    Rakesh

    set echo OFF pages 50000 lin 32767 feed off heading ON verify off newpage none trimspool on
    define datef=&1
    define datet=&2
    set colsep ','
    spool querries.csv
    SELECT s.parsing_schema_name,
    p.instance_number instance_number,
    s.sql_id sql_id,
    x.sql_text sql_text,
    p.snap_id snap_id,
    TO_CHAR (p.begin_interval_time,'mm/dd/yyyy hh24:mi') begin_interval_time,
    TO_CHAR (p.end_interval_time,'mm/dd/yyyy hh24:mi') end_interval_time,
    s.elapsed_time_delta / DECODE (s.executions_delta, 0, 1, s.executions_delta) / 1000000 elapsed_time_per_exec,
    s.elapsed_time_delta / 1000000 elapsed_time,
    s.executions_delta executions, s.buffer_gets_delta buffer_gets,
    s.buffer_gets_delta / DECODE (s.executions_delta, 0, 1, s.executions_delta) buffer_gets_per_exec,
    module module
    FROM dba_hist_sqlstat s, dba_hist_snapshot p, dba_hist_sqltext x
    WHERE p.snap_id = s.snap_id
    AND p.dbid = s.dbid
    AND p.instance_number = s.instance_number
    AND p.begin_interval_time >
    TO_TIMESTAMP ('&datef','yyyymmddhh24miss')
    AND p.begin_interval_time <
    TO_TIMESTAMP ('&datet','yyyymmddhh24miss')
    AND s.dbid = x.dbid
    AND s.sql_id = x.sql_id
    ORDER BY instance_number, elapsed_time_per_exec DESC ;
    SPOOL OFF;
    exit;

  • Problem with attaching file to Sales Order

    Hello,
    In my company we have the possibility to attach files to sales orders, e.g. pdf files with the printing details.
    These files are added by the GUI user, this works fine.
    Now we have an extra order creation stream in which a pdf file has to be added to the SO without user interaction.
    I found a helpful link ( /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background )
    This program creates URL links with no problem, but the file generation is not implemented yet.
    I tried to add the file functions to his sample report but still have one problem. The file is uploaded, but not reported as a PDF file in sap. If I select the created attachment SAP allows only the saving of the attachment. After saving the created file is a good PDF file, it opens with PDF-viewers.
    Why does SAP not know this is a PDF file and report it as such (and open the pdf viewer when selected).
    Thanks, Frank.
    source-code:
    REPORT  zzfb_brc                                .
    * Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    * Written By : Ram Manohar Tiwari
    * Function   : We need to maintain links between Business Object and
    *              the attachment.Attachment document is basiclally a
    *              business object of type 'MESSAGE'.In order to maintain
    *              links, first the attachment will be crated as Business
    *              Object of type 'MESSAGE' using Message.Create method.
    *              Need to check if we can also use FM
    *              'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
    *              than using Message.Create method.
    * I took this program and removed all the parts for adding URL's and
    * notes.
    * Include for BO macros
    INCLUDE : <cntn01>.
    * Load class.
    CLASS cl_binary_relation DEFINITION LOAD.
    CLASS cl_obl_object      DEFINITION LOAD.
    PARAMETERS:
    *  Object_a
       p_botype LIKE obl_s_pbor-typeid DEFAULT 'BUS2032',    "SO
       p_bo_id  LIKE obl_s_pbor-instid DEFAULT '0000757830', "example number
    *  Object_b
       p_docty  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       p_msgtyp LIKE sofm-doctp        DEFAULT 'EXT'     NO-DISPLAY,
    *  Relationship
       p_reltyp  LIKE mdoblrel-reltype DEFAULT 'ATTA'.
    TYPES: BEGIN OF ty_message_key,
            foltp     TYPE so_fol_tp,
            folyr     TYPE so_fol_yr,
            folno     TYPE so_fol_no,
            doctp     TYPE so_doc_tp,
            docyr     TYPE so_doc_yr,
            docno     TYPE so_doc_no,
            fortp     TYPE so_for_tp,
            foryr     TYPE so_for_yr,
            forno     TYPE so_for_no,
           END OF ty_message_key.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line,
           ls_doc_content TYPE soli-line.
    * Create an initial instance of BO 'MESSAGE' - to call the
    * instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    * Upload the pdf file, for now from the frontend, in the future from
    * the server.
    DATA:
    *  dsn(40) TYPE C VALUE '/usr/sap/trans/convert/1.pdf', "server location
    l_lines TYPE i. "filelenght
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename   = 'c:t1.pdf'
        filetype   = 'BIN'
      IMPORTING
        filelength = l_lines
      TABLES
        data_tab   = lt_doc_content.
    * no exceptions, the file is there in this example
    break brouwersf.
    ** the coding for the server input, for later
    *OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    *IF sy-subrc <> 0.
    *  EXIT.
    *ENDIF.
    *READ DATASET dsn INTO ls_doc_content.
    *WHILE sy-subrc EQ 0.
    *  APPEND ls_doc_content TO lt_doc_content.
    *  READ DATASET dsn INTO ls_doc_content.
    *ENDWHILE.
    *CLEAR ls_doc_content.
    *CLOSE DATASET dsn.
    * define container to pass the parameter values to the method call
    * in next step.
    swc_container lt_message_container.
    * Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' 'Title'.
    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    swc_set_element lt_message_container 'NO_DIALOG'     'X'.
    swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    swc_set_element lt_message_container 'DocumentSize'    l_lines.
    swc_set_element lt_message_container 'DocumentContent' lt_doc_content.
    swc_call_method lo_message 'CREATE' lt_message_container.
    * Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    * Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    * Now we have attachment as a business object instance. We can now
    * attach it to our main business object instance.
    * Create main BO object_a
    DATA: lo_is_object_a TYPE sibflporb.
    lo_is_object_a-instid = p_bo_id.
    lo_is_object_a-typeid = p_botype.
    lo_is_object_a-catid  = 'BO'.
    * Create attachment BO object_b
    DATA: lo_is_object_b TYPE sibflporb.
    lo_is_object_b-instid = lv_message_key.
    lo_is_object_b-typeid = p_docty.
    lo_is_object_b-catid  = 'BO'.
    *TRY.
    CALL METHOD cl_binary_relation=>create_link
      EXPORTING
        is_object_a = lo_is_object_a
        is_object_b = lo_is_object_b
        ip_reltype  = p_reltyp.
    * Check if everything OK...who cares!!
    COMMIT WORK.

    Hi,
    Welcome to the SDN Forums!!!
    You need to supply the PC file extension in the container element 'DOCUMENTTYPE'.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    In your case change the above statement as below:
    swc_set_element lt_message_container 'DOCUMENTTYPE' 'pdf'.
    <b>OR</b> change the default value of p_msgtyp to 'PDF'.
    Cheers,
    Ramki Maley.
    Please reward points if the answer is helpful.
    For info on awarding points click on this link: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
    Message was edited by: Ramki Maley

  • Error in XML file generation :240416

    Hi All,
    I am facing problem with XML file generation.
    Steps:
    1. Source-->Query Transform and maintained Nested Stucture
    2. Generated XML fomat from query transform
    3. Created XML format file
    4. Make XML format as target and given XML generate path
    source table-->Query(nested structure)-->XML Format
    when I validate the job no errors found.
    Note: XSD file is in Local mechine and XML file will be generated in SFTP.
    Prooblems:
    1. Getting below error
    The input XML refers to file which is not part of the definition of this XML Schema format. Check your schema and XML files,
    and check that the root element in the XML file corresponds to the root element in the XML Schema
    Validate your XML Schema using external schema validators (found at w3.org)
    Thanks,
    Deepa

    Hi,
    I think issue Because in your Query Transform output the Root element is Query and XML target is having some other root element. Make the Query trasform name similar to root element and try...

  • Exchange 2010 SP3, RU5 - Massive Transaction Log File Generation

    Hey All,
    I am trying to figure out why 1 of our databases is generating 30k Log Files a day! The other one is generating 20K log files a day. The database does not grow in size as the log files are generated, the problem is log file generation.
    I've tried running through some of the various solutions out there, reviewed message tracking logs, rpc client access logs, IIS Logs - all of which show important info, but none of which actually provide the answers.
    I Stopped the following services to see if that would affect the log file generation in any way, and it has not!
    MS Exchange Transport
    Mail Submission
    IIS (Site Stopped in IIS)
    Mailbox Assistants
    Content Indexing Service
    With the above services stopped, I still see dozens (or more) log files generated in under 10 minutes, I also checked mailbox size reports (top 10) and found that several users mailboxes were generating item count increases for one user of
    about 300, size increases for one user of about 150Mb (over the whole day).
    I am not sure what else to check here? Any ideas?
    Thanks,
    Robert
    Robert

    Hmm - this sounds like an device is chewing up the logs.
    If you use log parser studio, are there any stand out devices in terms of the # of hits?
    And for the ExMon was that logged over a period of time?  The default 60 second window normally misses a lof of stuff.  Just curious!
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
    Rhoerick, 
    Thanks for the response. When checking the logs the highest number of hits were the (Source) Load Balancers, Port 25 VIP. The problem i was experience was the following: 
    1) I kept expecting the log file generation to drop to an acceptable rate of 10~20 MB Per Minute (Max). We have a large environment and use the exchange sevrers as the mail relays for the hated Nagios monitoring environment
    2) We didn't have our enterprise monitoring system watching SMTP traffic, this is  being resolved. 
    3) I needed to look closer at the SMTP transport database counters, logs, log files and focus less on the database log generation, i did do some of that but not enough of that. 
    4) My troubleshooting kept getting thrown off due to the monitoring notifications seeming to be sent out in batches (or something similar) stopping the transport service for 10 ~ 15 minutes several times seemed to finally "stop the transactions logs
    from growing at a psychotic rate". 
    5) I am re-running my data captures now that i have told the "Nagios Team" to quit killing the exchange servers, with their notifications, sometimes as much as 100+ of the same notifications for the same servers, issues. so far at a quick glance
    the log file generation seems to have dropped by about 30%. 
    Question: What would be the best counters to review in order to "Put it all together"? Also note: our Server roles are split, MBX and CAS/HT. 
    Robert 
    Robert

  • Advising record (ADV - HSBC form) in DME file could not get email address

    Dear all,
    I have problems with DME file that Advising record could not get email that is maintained in vendor master data.
    Standard communication methods in vendor master data must be Emails.
    We use exit module to get this email for below fields:
    Email chnl se. flag
    Email address
    T-code DMEE -> Advising record
    (Attributes tab: Mapping procedures is Exit module.
    Source tab: value was entered for Exit function)
    We test once and got the expected result: email shown on DME file, in advising record.
    However, as I rechecked recently, we have no email shown (though Constant value 'ADV' shown).
    The form is active by the way.
    I do not know if I miss anything in configuration.
    Please advise.
    Thank you very much.
    Rgds,
    Linh

    Hello Linh,
    Did you manage to resolve this. I'm facing the same problem, not able to get the email address.
    Can you please provide the function module you used.
    Thanks,
    Srini

Maybe you are looking for

  • 3.06GHz 24" iMac (Early 2009) Video Question

    Question. Should a white (or any color for that matter) background look completely solid on these displays? I see very subtle hints of gray (looks like a barely visible series of random horizontal bands (for lack of a better term). The glass is clean

  • Is it possible to retrieve text messages if you accidentally delete the contact?

    I accidentally deleted a contact in my text messages and I want to retrieve the old associated texts.  Is there a way to retrieve them?

  • Problem Creating a HTTP Service in SOAMANAGER

    Hi all, I am having difficulty in setting up a HTTP Service in SOAMANAGER. I have generated the Enterprise Service - Service Definition Succesfully in SAP from a RFC Enabled Function Group( this is working fine). I then go into SOAMANAGER -> Single S

  • Creative Cloud app Crashs immediately on launch

    Hello all my creative cloud is up to date. i have been working with illustrator with the new updates and everything was fine. suddenly the Creative Cloud App does does not work. after i click on it nothing at all happens. in the task manager it shows

  • Songs from iTunes to iPod Nano

    My son received an iPod for Christmas today. We plugged it into the iMac, iTunes opened, we registered the little fellow, and it proceeded to download EVERY SONG in the iTunes library rather than the ones my son had chosen in his playlist. How do we