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

divbep

Former Member
0 Likes
1,376

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.

12 REPLIES 12
Read only

Former Member
0 Likes
1,309

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

Read only

0 Likes
1,309

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.

Read only

0 Likes
1,309

Please declare as VBEP-WMENG and check.

data: w_wmeng like vbep-wmeng.

Kind Regards

Eswar

Read only

0 Likes
1,309

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.

Read only

0 Likes
1,309

Can you tell us, what happened when you declared the variable as VBEP-WMENG.

Kind Regards

Eswar

Read only

0 Likes
1,309

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.

Read only

0 Likes
1,309

Hi,

can u please suggest .

Thanks&Regards.

Ramu.

Read only

0 Likes
1,309

Hi Ramu

Can you provide us the exit which you are using, and the whole code to get some picture.

Kind Regards

Eswar

Read only

0 Likes
1,309

I dont find any object DIVBEP. Pl provide us the code or screen shot to be able to understand

Read only

0 Likes
1,309

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.

Read only

Former Member
0 Likes
1,309

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

Read only

Former Member
0 Likes
1,309

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.