cancel
Showing results for 
Search instead for 
Did you mean: 

string restriction in SDK

former_member825074
Participant
0 Kudos
202

How to put a condition that PO Id numeric, len = 4)

if i want to put a condition on string that it should be numeric, and length should be equal to four then how to do this in SDK

Regards

View Entire Topic
william_xing
Product and Topic Expert
Product and Topic Expert

Hi Zainab,

You could try to use Numeric.IsNumeric() to check whether a string contains a numeric value or not.

You could use Numeric.ParseFromString and Numeric.RoundToString to have a math round the decimal.

Also if trim and math to clean the String data。

You could find more detailed function in SAP Help Document <Built-In Functions for Strings> and <Numeric (Reuse Library)>

Related URL->

https://help.sap.com/docs/SAP_CLOUD_APPLICATIONS_STUDIO/cbcebe3cfb1647a8b0322c18dbb0b481/7594ffd473e...

https://help.sap.com/docs/SAP_CLOUD_APPLICATIONS_STUDIO/cbcebe3cfb1647a8b0322c18dbb0b481/752cb3ff73e...

Best Regards,

William