Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

dump at Import statement

Former Member
0 Kudos

Hi All

Could anyone help on the below mentioned issue please...

In a material Consumption Report., I have added few columns such as MTART, NORMT. After adding the columns I get dump at the line

IMPORT gt_submit TO lt_submit FROM MEMORY ID 'ZRM07MLBD'.

FREE MEMORY ID 'ZRM07MLBD'.

Kindly help.

Thanks and Regards

SS Bhat.

3 REPLIES 3

vinita_kasliwal
Active Contributor
0 Kudos

Hi SSK

What does it mean that you added columns? You need to add columns by adding values in structure.

You can only pass data values using import statements you cant add a new column etc using IMPORT ..

Also you have not included what does the dump says ?

Please elaborate

Regards

Vinita

0 Kudos

Hi Vinita

Thanks for the mail.,

In the output screen Material type, MFRPN(Part number) NORMT(Industry Standard Description ) columns with values are added. Just blank columns are displayed but no values, though coding is done for the same.

Yes., Values are added  through structure.(lt_suubmit).

Runtime Errors         CONNE_IMPORT_WRONG_COMP_TYPE

Except.                CX_SY_IMPORT_MISMATCH_ERROR

Date and Time          05/25/2016 23:29:20

short text

   Error when attempting to IMPORT object "GT_SUBMIT".

What happened?

   Error in the ABAP Application Program

   The current ABAP program "ZSD_MAT_CONSUM_REP_COPY" had to be terminated because

    it has

   come across a statement that unfortunately cannot be executed.

Error analysis

   An exception occurred that is explained in detail below.

   The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was

    not caught in

   procedure "GET_BUILD_DATA" "(FORM)", nor was it propagated by a RAISING clause.

   Since the caller of the procedure could not have anticipated that the

   exception would occur, the current program is terminated.

   The reason for the exception is:

   When importing the object "GT_SUBMIT", the component no. 8 in the

   dataset has a different type from the corresponding component

   of the target object in the program "ZSD_MAT_CONSUM_REP_COPY".

   The data type is "P" in the dataset, but "C" in the program.

9          WHERE matnr IN s_matnr AND

0                spras = lc_E. "'E'.

1   SORT lt_makt BY matnr.

2   DELETE ADJACENT DUPLICATES FROM lt_makt COMPARING matnr.

3

4 * MARA-MB5B-VRPMA

5 * Material present in MM master

6 *Shashi

7   SELECT matnr

8           mtart

9            normt  INTO TABLE lt_mara FROM mara

0          WHERE matnr IN s_matnr and

1                mtart in s_mtart .

2 * Passing I/P to MB5B tcode

3   IF lt_mara IS NOT INITIAL.

4     SUBMIT rm07mlbd WITH matnr IN s_matnr                     "MATERIALS

5 *                Shashi

6                  with mtart in s_mtart                     " Material Type

7 *                 WITH mfrpn in s_mfrpn                     "Manufacturer Part no

8 *                WITH werks EQ p_werks                     " Plant

9 *                WITH charg IN s_charg                     " Batch

0                 WITH datum IN s_fkdat                     " Selection Date

1                 WITH lgbst EQ ''                                " Storage loc./batch stock

2                 WITH bwbst EQ lc_X "'X'                         " Valuated Stock

3                 WITH sbbst EQ ''                                " Spl Stock

4                 WITH pa_sumfl  EQ lc_X "'X'                     " totals only - non heirarch

5 *                WITH xchar EQ 'X'                      " only matls handled in batches

6                 EXPORTING LIST TO MEMORY AND RETURN.

   78     IMPORT gt_submit TO lt_submit FROM MEMORY ID 'ZRM07MLBD'.

>>>>>     FREE MEMORY ID 'ZRM07MLBD'.

   80

   81 * fetch Billing doc nr & line item from VRPMA

   82     IF lt_submit IS NOT INITIAL.

   83

   84       SELECT matnr

   85              bwkey

   86              stprs

   87              peinh FROM MBEW INTO TABLE lt_mbew

   88              FOR ALL ENTRIES IN lt_submit WHERE

   89              matnr = lt_submit-matnr AND

   90              bwkey = lt_submit-bwkey.

   91

   92       SELECT MATNR

   93              WERKS

   94              LGORT

   95              LABST

   96              UMLME

   97              INSME

   98              EINME

Above is the dump I receive..Pls help.. This is urgent..

pranay570708
Active Contributor
0 Kudos

HI,

As you have added new columns, pls check if 'gt_submit' and 'lt_submit' have same structure.