<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dump while importing an internal Table to a BADI method. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427015#M542232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't pass the table with header line to BADI as it is ABAP OO.&lt;/P&gt;&lt;P&gt;Change your table defination in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2007 14:31:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-29T14:31:46Z</dc:date>
    <item>
      <title>Dump while importing an internal Table to a BADI method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427014#M542231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We came across an issue where if we are Importing an Internal Table(BAN)&lt;/P&gt;&lt;P&gt;from Main Program "SAPFM06B" through a memory ID 'ZYX' to BADI "ME_SOURCE_CHECK" it is giving Dump as: &lt;/P&gt;&lt;P&gt;Runtime Errors:         CONNE_IMPORT_WRONG_STRUCTURE    &lt;/P&gt;&lt;P&gt;Exceptn       :         CX_SY_IMPORT_MISMATCH_ERROR    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whwere as in the same export one structure "COM" is passed with same memory ID 'ZYX' and we are able to import this in the BADI "ME_SOURCE_CHECK".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We checked the structure of both the internal table its acjectly same.&lt;/P&gt;&lt;P&gt;Could you please assist in identifying the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the Internal Table for BAN and Structure for COM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ban OCCURS 100.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE eban.&lt;/P&gt;&lt;P&gt;DATA:    updk1 LIKE t16la-updkz,     "Status der Zuordnung&lt;/P&gt;&lt;P&gt;         updk2 LIKE t16la-updkz,     "Status der Zuordnung (alt)&lt;/P&gt;&lt;P&gt;         updk3 LIKE t16la-updkz,     "Sicherungsstatus&lt;/P&gt;&lt;P&gt;         selkf(2) TYPE p,            "Kz. für Sammelfreigabe&lt;/P&gt;&lt;P&gt;         selkz,                      "Selektiert ja/nein&lt;/P&gt;&lt;P&gt;         szeil LIKE sy-curow,        "Zeilennr. des Selektionskz.&lt;/P&gt;&lt;P&gt;         zeile LIKE sy-curow,        "Zeilennr. der Zuordnungsinfo&lt;/P&gt;&lt;P&gt;         page  LIKE sy-pagno,        "Seite&lt;/P&gt;&lt;P&gt;         aenda,                      "Kz. Berecht. für Änderungsbeleg&lt;/P&gt;&lt;P&gt;         bukrs LIKE ekko-bukrs,      "Buchungskreis für Buchungskreisüb.&lt;/P&gt;&lt;P&gt;         slief LIKE eban-flief,      "Lieferant für Sortierung&lt;/P&gt;&lt;P&gt;         bkmkz,                      "Art der Kontierung      "4.0C&lt;/P&gt;&lt;P&gt;         kont1(24),                  "Kontierungsfeld 1       "4.0C&lt;/P&gt;&lt;P&gt;         kont2(8),                   "Kontierungsfeld 2&lt;/P&gt;&lt;P&gt;         bkuml,                      "Kz. Bukrs-übergreifende Umlagerung&lt;/P&gt;&lt;P&gt;         az_pos TYPE i,              "Anzahl Pos. pro Banf&lt;/P&gt;&lt;P&gt;         sl_pos TYPE i,              "Anzahl selektierter Pos. pro Banf&lt;/P&gt;&lt;P&gt;         arch_date LIKE sy-datlo,    "Archivierungsdatum "TK 4.0B EURO&lt;/P&gt;&lt;P&gt;      END OF ban.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF COM,&lt;/P&gt;&lt;P&gt;         FRGAB LIKE RM06B-FRGAB,&lt;/P&gt;&lt;P&gt;         SRTKZ,&lt;/P&gt;&lt;P&gt;         BKMKZ,&lt;/P&gt;&lt;P&gt;         LSTUB LIKE T16LL-LSTUB,&lt;/P&gt;&lt;P&gt;         ZPFKEY LIKE SY-PFKEY,&lt;/P&gt;&lt;P&gt;         ZFMKEY(3),&lt;/P&gt;&lt;P&gt;         GPFKEY LIKE SY-PFKEY,&lt;/P&gt;&lt;P&gt;         GFMKEY(3),&lt;/P&gt;&lt;P&gt;         CALLD LIKE SY-CALLD,&lt;/P&gt;&lt;P&gt;      END OF COM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 14:27:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427014#M542231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T14:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while importing an internal Table to a BADI method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427015#M542232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't pass the table with header line to BADI as it is ABAP OO.&lt;/P&gt;&lt;P&gt;Change your table defination in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 14:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427015#M542232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T14:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while importing an internal Table to a BADI method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427016#M542233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pankaj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are able to change the EXPORT statement in program SAPFM06B then simply change the exported itab as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Define type for BAN data
TYPES: BEGIN OF ty_s_ban.
INCLUDE TYPE eban.
TYPES: updk1     TYPE t16la-updkz.  " NOTE: use TYPE instead of LIKE !!!
TYPES: ...
TYPES: arch_date TYPE sy-datlo.
TYPES: END OF ty_s_ban.
TYPES: ty_t_ban   TYPE STANDARD TABLE OF ty_s_ban
                             WITH DEFAULT KEY.

DATA:
  lt_ban    TYPE ty_t_ban.

  lt_ban  = ban[].  " itab WITHOUT header line !!!

  EXPORT eban FROM lt_ban TO MEMORY ID 'ZYX'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within your BAdI method add to following coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Add type definition as shown below

  IMPORT eban TO lt_ban FROM MEMORY ID 'ZXY'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you cannot change the EXPORT statement then simply call a function module within your BAdI method which imports the EBAN data from the memory. There you should not have any problems with header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jul 2007 20:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427016#M542233</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-07-01T20:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while importing an internal Table to a BADI method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427017#M542234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you very much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked for the FM to import the EBAN data and found one "ME_FILL_EBAN_FROM_BQPEX" but the current structure BQPEX is not   carrying the data needed to fill EBAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please suggest any other FM for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Pankaj Bonde&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 07:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427017#M542234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T07:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while importing an internal Table to a BADI method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427018#M542235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pankaj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did no mean to use a standard function module but write and code your own customer function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Coding within your BAdI (as in my previous posting)

" Type definition for ty_s_eban
...
DATA:
  lt_ban        TYPE ty_t_eban.


  CALL FUNCTION 'Z_GET_EBAN_FROM_MEMORY'
    EXPORTING
      id_memid = 'ZXY'    " define id_memid of type MEMID
    TABLES
      et_eban   = lt_ban.  " define et_eban of type TABLE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Coding within your function module

  REFRESH: et_ban.
  IMPORT eban TO et_ban[] FROM MEMORY ID id_memid.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427018#M542235</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-07-03T09:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while importing an internal Table to a BADI method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427019#M542236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BADI works on OOPS concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in sap abap oops validation is very strict.&lt;/P&gt;&lt;P&gt;so always use TYPE not LIKE&lt;/P&gt;&lt;P&gt;always use internal without header&lt;/P&gt;&lt;P&gt;always use work area&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 11:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-importing-an-internal-table-to-a-badi-method/m-p/2427019#M542236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T11:00:08Z</dc:date>
    </item>
  </channel>
</rss>

