Skip to Content
author's profile photo
Former Member

In the BTE -> Process 00002010, I have to write a text file with 2 headers

Hi,

The problem is that I need to generate a text file using the interfase 00002010 (header), 00002020 (detail) and 00002030 (track).

I've already seen the program where the code lines will be ubicated. I just need to know how can I create a text file with two headers???

You can check the FM of your instalation following this steps:

1.- Transaction FIBF.

2.- Menu: Options -> Process Modules -> ...Client.

Resume:

In the BTE (Business Transaction Event) -> Process 00002010, I have to write a text file using an alternative format with two headers.

<b>Alexis Sanchez

Consultor SAP-ABAB Trainee

Caracas, Venezuela</b>

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 02:20 PM

    The process 00002010 in BTE's is one way to use EDI with the banks. In Venezuela there is a Bank named Banesco who wanted a file with three lines header.

    I resolved this problem with a simple way and I give it to try to resolve another similar situations.

    I just had to define in the internal table a field named jump (CHAR 2).

    data: begin of internal_table,

    field_1(80), " First Line

    field_2(10),

    .

    .

    .

    jump(2), " Field with a Carry Return.

    field_n1(80), " Second Line

    field_n2(10),

    field_n3(80),

    field_n4(10),

    end of internal_table.

    ... I had to instanciate the ABAP Class too

    CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.

    ... and to assign

    jump = CL_ABAP_CHAR_UTILITIES=>CR_LF.

    ... finally when you pass the internal table, it has a carry return and separate the internal table in two o the number of required lines...

    MOVE internal_table TO e_dtam100h-h00.

    DESCRIBE FIELD internal_table LENGTH e_dtam100h-h01

    IN CHARACTER MODE.

    I hope it helps you my friends...

    <b>Alexis Sanchez

    Consultor SAP-ABAB Trainee

    Caracas, Venezuela</b>

    Add comment
    10|10000 characters needed characters exceeded