cancel
Showing results for 
Search instead for 
Did you mean: 

Add custom fields to tcode VKP5

manoj_goyal2
Participant
0 Kudos

Hi Guys,

I am adding 4 custom fields to tcode VKP5 (Create Price Calaculation) and want to make one of the fields as DISPLAY ONLY, as it will be a calculated field. Kindly let me know the tcode or IMG path for configuring the custom fields. I know table TWLF is involved in the configuration.

Thanks

mini

Accepted Solutions (0)

Answers (2)

Answers (2)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

See Note 912856 - Saving further list fields in the pricing document

Regards

Eduardo

od_manikandan
Active Contributor
0 Kudos

Hai mini,

Create a ZT CODE for VKP5 program using se93.

Create a Varinat in ZVKP5 with protect variant.

For the field to be in display mode

Put Tick mark in protect field.

Save it.

Ask abaper to write a code in VKP5 program




DATA itab TYPE TABLE OF sy-ucomm. 


if sy-tcode = 'ZVKP5'. 
 APPEND 'SPOS' TO itab. "save a variant
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
       EXPORTING
            p_status  = sy-pfkey
       TABLES
            p_exclude = itab.
endif.

Now Go to Se93

T CODE : VKP5

Transaction text Create Calculation

Program RWVKP007

Selection screen 1000

Start with variant * give the Variant Name created*

It ensures ZVKP5 with open iwth default varinat and user having authorzation of ZVKP5 can do same activity but the some fields in Display mode.

The code helps that he cannot change any field, the Variant SAVE option is removed.

Regards,

Mani