cancel
Showing results for 
Search instead for 
Did you mean: 

Default attribute value before display in item details and line item

Former Member
0 Kudos

Hello,

I have to add a custom field for lead time in shopping cart.

I am able to add it but I am not able to default it to 0.

I tried in INIT method of the view, but there isn't any data there for me to modify. And if I am not wrong, INIT method is called only once, and will not be executed when adding second item and more.

I am currently using WDMODIFY view to default the value to 0. This is not letting user to set the value to null, as I check for the same and set the value to 0.

Is there any BADI or EXIT i can use to modify the data before it is displayed in line item table? and also check for the value before it is saved?

Please help.

Thanks and regards,

Chinnu.

Accepted Solutions (0)

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Which field do you need to set 0?

Regards,

Masa

Former Member
0 Kudos

Hello Masa,

Thank you for the reply. Sorry for delayed reply.

It is a Z field, which should be set to 0. It is resolved.

Thanks and regards,

Chinnu