‎2010 Dec 29 8:47 AM
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?.
‎2010 Dec 29 8:55 AM
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
‎2010 Dec 29 9:03 AM
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.
‎2011 Jul 26 5:15 PM
Looks like some data type mismatch. What is the data type for MRNKZ?
Regards
Ram
‎2011 Jul 26 4:52 PM
HI,
Can you explain how you have had new field like netwr in VFX3 list.
Thanks.