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

user exit.....

Former Member
0 Likes
932

I have add a field zzwbs in pricing table.....and in exit I write

ORM USEREXIT_PRICING_PREPARE_TKOMP.

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(2) Form USEREXIT_PRICING_PREPARE_TKOMP, Start                                                                                                        A

*$*$-Start: (2)---------------------------------------------------------------------------------$*$*

ENHANCEMENT 1  ZPRICEING_SD_ENHANCEMENT.    "active version

*tkomp-zzwbs = komp-zzwbs.

move komp-zzwbs to tkomp-zzwbs.

ENDENHANCEMENT.

*$*$-End:   (2)---------------------------------------------------------------------------------$*$*



*  TKOMP-zzfield = xxxx-zzfield2.



ENDFORM.

I am confused about move from table komp ?why its komp?

9 REPLIES 9
Read only

Former Member
0 Likes
894

Hi Sharmistha,

Go to se11 and put KOMP in table and read its description.

These are runtime structures whihc Standard SAP code uses. Values in them are fetched at runtime and you cannot see its content in se16.

Generally such structures are present in SD module in pairs where one corresponds to header data while other to item data.

Here - KOMK and KOMP.

BR.

Read only

0 Likes
894

I know about komp structure but when I used it in my code then there is no values shows in added field ZZWBS(through debugging)...I want to know in move statement what I have to add in move()to ().

                                    move komp-zzwbs to tkomp-zzwbs.

Read only

0 Likes
894

Hi sharmistha mukherjee

After added custom fields in KOMP table, you need to create condition table for that

then only it will carry values while debugging basically it will done by FC

i hope you have followed this method How To Create Field in KOMP, KOMG

Now you need to discuss with FC, ask him to create condition table for that in SPRO

http://www.gotothings.com/sd/how-to-add-new-fields-to-field-catalog.htm

See above threads for your reference

Regards,

Bastin.G

Read only

0 Likes
894

HI,

I alrady have condition table..and I alrady create value for the added field through vf12....but when I open va01 no amount is shows ..

Read only

0 Likes
894

same thing i have followed here , its working fine here

i don't know why its not working there   can you elaborate more about your requirement?

sharmistha mukherjee wrote:

but when I open va01 no amount is shows ..

this point am confused

Regards,

Bastin.G

Read only

0 Likes
894

when I open vf01 and put the order type and press enter then in item overview tab I put material ,quantity on that I saw net value is 000 .

please check my code under enhancement ...

ORM USEREXIT_PRICING_PREPARE_TKOMP.

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(2) Form USEREXIT_PRICING_PREPARE_TKOMP, Start                                                                                                        A

*$*$-Start: (2)---------------------------------------------------------------------------------$*$*

ENHANCEMENT 1  ZPRICEING_SD_ENHANCEMENT.    "active version

*tkomp-zzwbs = komp-zzwbs.

move komp-zzwbs to tkomp-zzwbs.

ENDENHANCEMENT.

*$*$-End:   (2)---------------------------------------------------------------------------------$*$*



*  TKOMP-zzfield = xxxx-zzfield2.

Read only

0 Likes
894

Hi sharmistha mukherjee

so based on material and quantity , amount should be pick automatically

Sorry i have not worked on such cases

some experts will help you

Regards,

Bastin.G

Read only

0 Likes
894

yes....but I want know what I have to write under userexit  USEREXIT_PRICING_PREPARE_TKOMP

I write : move komp -zzwbs to tkomp-zzwbs.

its wright/wrong?

Read only

0 Likes
894

when I run va01 and when I analysis the condition then I found that waring

60 102 Access not made (initialized field)

?