cancel
Showing results for 
Search instead for 
Did you mean: 

Not allow negative amount In webdynpro

0 Kudos

Hai,

In Webdynpro screen Amount fields should not allow negative values ,So how to get this through attribute settings with out code validation in webdynpro .

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member184958
Active Participant
0 Kudos

Hi,

   your issue solved or still you are working on that.

Warm Regards,

John.

former_member184958
Active Participant
0 Kudos

Hi,

  Using domain option (sign) only you can achieve this if it is default you can pass the value at run time.

In webdynpro we have the option to change the position of sign, for that in context attribute do the following,

Warm Regards,

John.

0 Kudos

hai,

that for sign postion change , is there any way to get that through  setting of attribute for input fields with out code validation and conversion exit  in domain of data element

former_member184958
Active Participant
0 Kudos

Hi,

  Use the function module ISJP_GET_SIGN to convert the numerical value to sign,

Pass the value like below screen shots,

For negative,

For positive,

In your webdynpro do the following,

iv_shkzg         = 'S'  -->Nagative

iv_shkzg         = 'H'  -->Positive

output,

Hope this will solve your problem,


Warm Regards,

John.

aferngas
Active Participant
0 Kudos

Hi,

You can use a data element with a domain that have the option "Sign +/-" established with false. This will automatically raise a standard check prohibiting negative values.

Regards,

Alex

0 Kudos

With out Dataelement help is there any way to get same future through attribute settings of input field

aferngas
Active Participant
0 Kudos

Hi,

Unfortunately, you can not restrict that option from the context. Should be from the data element or by a code validation over your input field.

Regards,

Alex