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

Problems modifying a itab

Former Member
0 Likes
626

Hi all.

We are enhacing the tcode vfx3 report adding new fields. At this point we have added 2 fields (netwr and mwsbk) by the use of a user exit. Everything is ok.

Now we want to add a new field(mrnkz 'char 1'), the steps we follow are the same as we followed before, but now it is not working properly.

CODE:


"loop sobre la tabla
LOOP AT c_vmcfa.
  READ TABLE it_struct INTO lwa_struct WITH KEY vbeln = c_vmcfa-vbeln.
  c_vmcfa-netwr = lwa_struct-netwr.
  c_vmcfa-mwsbk = lwa_struct-mwsbk.
  c_vmcfa-mrnkz = lwa_struct-mrnkz.
  MODIFY TABLE c_vmcfa." TRANSPORTING netwr mwsbk mrnkz.
  CLEAR c_vmcfa.
ENDLOOP.

We are having problems when the value of lwa_struct-mrnkz contains a 'X'. In this case, the modify throws an exception. When the value of lwa_struct-mrnkz isn't a 'X', the line is modified properly. The exception thrown is:

"Object SDBLBDDL of class RE and language EN does not exist. "

How can i solve this problem? Is this a documentation problem?.

4 REPLIES 4
Read only

Former Member
0 Likes
578

Hi

use index for modifyin the table.

like;

LOOP AT c_vmcfa.

data; lv_index type sy-tabix.

lv_index = sy-tabix.

READ TABLE it_struct INTO lwa_struct WITH KEY vbeln = c_vmcfa-vbeln.

c_vmcfa-netwr = lwa_struct-netwr.

c_vmcfa-mwsbk = lwa_struct-mwsbk.

c_vmcfa-mrnkz = lwa_struct-mrnkz.

MODIFY TABLE c_vmcfa index lv_index." TRANSPORTING netwr mwsbk mrnkz.

clear lv_index.

ENDLOOP.

Thanks

Lalit

Read only

0 Likes
578

The problem was in the MODIFY statement. I couldn't see the INDEX statements only works with MODIFY, without TABLE. And i couldn't see it.

Thank's.

Read only

0 Likes
578

Looks like some data type mismatch. What is the data type for MRNKZ?

Regards

Ram

Read only

Former Member
0 Likes
578

HI,

Can you explain how you have had new field like netwr in VFX3 list.

Thanks.