Skip to Content
author's profile photo Former Member
Former Member

hELO

Hello i have used the following code i have declared the structure and from the structure i have made a work are and from that i have to pass the values but my progrma is going into dump please helo i am sending the example code

data : begin of itab,

matnr like mara-matnr,

ersda like mara-ersda,

end of itab.

data : i_itab type itab occurs 0,

wa_itab type itab.

select matnr

ersda

from mara

into table i_itab." upto single row.

loop at i_ITAB into itab.

write : ITAB-MATNR.

endloop.

the dump error is

The current ABAP program "ZIM_TEST1" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

analisys is

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not

caught and therefore caused a runtime error.

The reason for the exception is:

In a SELECT access, the read file could not be placed in the target field provided.

Either the conversion is not supported for the type of the target field, the target field is too small to include the value, or the data does not have the format required for the target field.

THE ROFRAM IS GOING IN TO DUM IN THE SELECT STATEMENTS

>>>>> select matnr

ersda

from mara

into table i_itab." upto single row.

I NEED A FAST ANSWER PLZ HELP ME OUT I WILL BE THANKFUL TO U

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 07:42 AM

    Hi,

    define like this.......

    types : begin of itab,

    matnr like mara-matnr,

    ersda like mara-ersda,

    end of itab.

    data : i_itab type standard table of itab ,

    wa_itab type itab.

    select matnr

    ersda

    from mara

    into correspondong fields of table i_itab." upto single row.

    loop at i_ITAB into wa_itab.

    write :/ wa_ITAB-MATNR.

    endloop.

    Regards

    kishore

    Message was edited by: kishore

    kishore ale

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 07:56 AM

    Hi Soni,

    ur program should be like below..

    <b>types</b> : begin of itab,

    matnr like mara-matnr,

    ersda like mara-ersda,

    end of itab.

    data <b>: i_itab type standard table of itab with header line</b>,

    wa_itab type itab.

    select matnr

    ersda

    from mara

    into table i_itab." upto single row.

    loop at i_ITAB into <b>wa_itab</b>.

    write : <b>wa_ITAB-MATNR</b>.

    endloop.

    Regards,

    Kaveri

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.