‎2006 Oct 15 6:12 AM
Hi All,
Can any one kindly give me the solution for this.
I have to pass the quantity field to divbep-wmeng.
in the userexit include zxvdbu01.
but it is giving the runtime error while moving the divbep data to work area(like non convertable.)
tha run time error is UC_OBJECT_NOT_CONVERTIBLE.
Is Divbep some thing different to othe internal tables
like dxvbap,dxvbak.
Please kindly suggest me how declare a wa for this divbepa and how pass the data.
Thaks in Advance.
Thanks&Regards.
Ramu.
‎2006 Oct 15 7:10 AM
HI Ramu
Please note that if you are passing the data w.r.t structures both should be same in UNICODE enabled systems.
Alternatively if you just need to pass the quantity, do it explicitly like in below example.
data:l_qty like divbep-wmeng.
populate the quantity with the value
now pass the quantity like
divbep-wmeng = l_qty.
I guess this will resolve your problem.
Kind Regards
Eswar
‎2006 Oct 16 5:44 AM
Hi,
As for u r suggestion i have declered the qty field like
w_wmeng like divbep-wmeng.
but it is showing the error like
The data object "DIVBEP" has no structure and therefore no component
called "WMENG". called "WMENG".
but divbep is having the field wmeng.i am not able to understand what is this error.
Can please give me sggestion.
Thanks in Advance.
Thanks&Regards.
Ramu.
‎2006 Oct 16 5:58 AM
Please declare as VBEP-WMENG and check.
data: w_wmeng like vbep-wmeng.
Kind Regards
Eswar
‎2006 Oct 16 6:06 AM
Hi,
Divbep the wmeng is chr(18).
but the vbep-wmeng is quan.
i decleared as w_wmeng as char(18).
when assigning the value like
divbep-wmeng = w_wmeng.
the same error it is showing.
not for only wmeng,when i use other fields of divbep,the same error is comming.
Please suggest.
Thanks in Advance.
Thanks&Regards.
Ramu.
‎2006 Oct 16 6:19 AM
Can you tell us, what happened when you declared the variable as VBEP-WMENG.
Kind Regards
Eswar
‎2006 Oct 16 6:29 AM
Hi,
when i declered like vbep-wmeng it is accepting .
but when retrieving wmeng form vbep it is going to dump.
So i declered two veriables:
w_wmeng like vbep-wmeng,
w_wmeng1(18) type c.
and i retrieved the qty form vbep.
SELECT SINGLE wmeng INTO w_wmeng FROM vbep
WHERE vbeln = w_salesorder
AND posnr = w_item.
and i moved to w_wmeng1.
w_wmeng1 = w_wmeng.
here i am assigning to divbep-wmeng.
divbep-wmeng = w_wmeng1.
The data object "DIVBEP" has no structure and therefore no component
called "WMENG". called "WMENG".
above error is comming.
Thanks in Advance.
Thanks&Regards.
Ramu.
‎2006 Oct 16 7:15 AM
‎2006 Oct 16 7:18 AM
Hi Ramu
Can you provide us the exit which you are using, and the whole code to get some picture.
Kind Regards
Eswar
‎2006 Oct 16 8:01 AM
I dont find any object DIVBEP. Pl provide us the code or screen shot to be able to understand
‎2006 Oct 16 9:49 AM
Hi,
the include is zxvdbu01(exit_saplvedb_001).
the divbep is releated to unicode program.
i find a statement in abapdocu like
MOVE-CORRESPONDING STRU 1 TO STRU 2.
this statement is for unicode programs to pass the field values.
THIS statement saloved my problem.
Thanks&Regards.
Ramu.
‎2006 Oct 15 2:46 PM
Ramu,
Especially in a Unicode enabled system the source and the target should be of same type. Where as this not the case in a non-unicode system.
Hence you may need to make the source and target of same type. I believe after that a individual MOVE: for each field will be a solution
Hope I could help you.
thomas
‎2006 Oct 16 8:33 AM
HI Ramu,
Just declare 1 variable of type c as below-
DATA: qty(19) TYPE c,
and now transfer the value of tht field into this variable like-
qty = itab-kwmeng.
Hope this helps!!!
Regds,
SeEmA.