cancel
Showing results for 
Search instead for 
Did you mean: 

Add new field to komp

Former Member
0 Kudos

Hi,

I need to add new filed to komp.

I know how to do it, i just need one clarification on it.

Proceed as follows:

1. Call up the ABAP Dictionary (Transaction SE11) and create data type ZZPSTYV. Choose PSTYV as a domain.As a short text, you can use, for example, 'ZZ - sales document item category' and as a field label, you can use the field labels of PSTYV.Save, check and activate your entries.

2. Call up structure KOMPAZ in the ABAP Dictionary (Transaction SE11) in the change mode and make the following entry:

The above 2. point says that call KOMPAZ in changes mode.

Does it mean that we change it using the Access key(That would mean modification), other wise will we append structure to add field to it, which I guess is the correct way.

Please suggest.

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Devendar,

Please follow instructions of moderators who suggest to search forums before posting as forums with similar issues may already there.

Anyway the below link might help

http://www.sap-img.com/sap-sd/how-to-create-field-in-komp-komp.htm

balu

Former Member
0 Kudos

Hi Balaji,

I have followed all the steps in the above post.

in exit USEREXIT_PRICING_PREPARE_TKOMP I have added this line.

FORM USEREXIT_PRICING_PREPARE_TKOMP.

  • TKOMP-zzfield = xxxx-zzfield2.

*{ INSERT EDVK907165 1

*tkomp-zzroute = xkomp-zzroute.

move xkomp-zzroute to tkomp-zzroute. <<----


This line added.

*} INSERT

ENDFORM.

But I m still getting a Dump and the message says "Field symbole not assigned".

please tell me where I am making the mistake.

Thanks.

jpfriends079
Active Contributor
0 Kudos

Check following links for understanding:

Take care.

Thanks & Regards

JP

Answers (1)

Answers (1)

Former Member
0 Kudos

I problem was in the codeing part, I m still marking as helpfull answer.