cancel
Showing results for 
Search instead for 
Did you mean: 

How to control numbers of characters in a input field?

Former Member
0 Kudos

Hi all

I need to limit the maximum of input characters to 255 in the field: vendortxt at the Shopping Cart. Do anyone know how to do this.

Regards, Bjarne

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can use the BBP_DOC_CHECK_BADI to read the number of characters entered in the text field VENDOR_TEXT and accordingly throw the error message if it exceeds 125 characters.

In the BADI,use the FM BBP_PD_SC_GETDETAIL to read the details of the SC.In the table E_LONGTEXT,you wil get the value for Vendor text.

BR,

Disha.

Pls reward points for useful answers.

Former Member
0 Kudos

Hi

It's a SRM 4.0

Regards,

Bjarne

Former Member
0 Kudos

Hi

Which SRM version are you using ?

It is possible by making changes in the HTML Template of the Internet Service - BBP_PDH_TEXT using SE80 Transaction.

You need to figure out which Template you need to modify based on your requirement.

Regards

- Atul