Application Development and Automation 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: 
Read only

Program is deumping - why

Former Member
0 Likes
845

I am getting dump with one of my program

for all the materials of particular plant .....

The program is dumping at below stmt.

at INSERT zadi_m_cr624_tab FROM TABLE gt_output..

Which is in subroutine below..

FORM update_table.

gv_data_found = 'X'.

INSERT zadi_m_tab FROM TABLE gt_output.

ENDFORM. " update_table_624

I need to find the root cause . This program is written in 2003 and since then the program worked with out any problem. However the program dumped 5 days back and I must say what is the root cause for dump.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
824

INSERT zadi_m_cr624_tab FROM TABLE gt_output

gt_output should hold the same structure of zadi_m_cr624_tab

and

use thid addition also FROM TABLE itab [ACCEPTING DUPLICATE KEYS]

8 REPLIES 8
Read only

Former Member
0 Likes
824

Hi ,

May be bcos of duplicate records , what error u are getting in ST22 ?

regards

Prabhu

Read only

Former Member
0 Likes
824

check this link for all forms of insert

http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb361f358411d1829f0000e829fbfe/content.htm

into which table you want to insert

Read only

Former Member
0 Likes
824

Use MODIFY statement OR Try using the addition ACCEPTING DUPLICATE KEYS with INSERT statement. F1 help on INSERT will give you the details.

Read only

Former Member
0 Likes
824

Hi Sam,

I have also face this problem several times.. I also don't know the actual reason behind this. But if this problem is there then you can try the Modify statement this will work.

I have changed my code from insert to Modify statement.

Read only

Former Member
0 Likes
825

INSERT zadi_m_cr624_tab FROM TABLE gt_output

gt_output should hold the same structure of zadi_m_cr624_tab

and

use thid addition also FROM TABLE itab [ACCEPTING DUPLICATE KEYS]

Read only

Former Member
0 Likes
824

THANKS FOR YOUR ANSWERS.

HOWEVER I need to give explanation of what is the root cause for the dump today as this program ran these many years with out interruption ?

Note please the pogram is dumping for a particular plant materials . I don't understand that wy the program is runnung for other plant materials correctly ?

Regards,

Read only

0 Likes
824

instead why can't you use the MODIFY here.., it inserts if there is no record with the key or else it updates.

Read only

Former Member
0 Likes
824

Vijay,

I agree with our answer.

However my team lead told client that we will be finding the rootcause as it was runiing these many years with out interruption.

That is why I am struggling.

Thanks,

I have another problem problem of writing into ftp file...some field values aare missing while writing ftp server. Can you suggest some thing on that if you can ? I was struggling with that problem of writng all fieelds into ftp server...

THANK YOU.