cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP like validation on input fields in sybase mobile

Former Member
0 Kudos

Hi Experts,

I have a scenario, which have few input field(Plant,Material,Storage location) on the selection screen.When i will click on button,data have to display on the basis on these input field.

Now,I have two things in output, either a message or the data in table.

So,when i create MBO from this RFC, i have selected both the thing(Message and table which have data).But when i entered wrong Plant or wrong material, a message with blank table is coming.

So my concern is how i will remove(deselect) my blank table input fields when the user will enter wrong data in the input field.

With Regards,

Rohit

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Rohit,


you can use default result checker for your validation purpose.When somebody enters wrong data it will show an error in the error list same as BAPI return.

midhun_vp
Active Contributor
0 Kudos

Is this issue resolved ?

midhun_vp
Active Contributor
0 Kudos

I am assuming that you are developing a HWC application and the success screen on the button click is a list screen. If the user select a wrong data and clicks on button it goes to an empty screen, here you have an option to show a message like "No data available" or any other message. To do this select the listview in the screen > properties> you have an option called on empty list. Fill this value and shows the message when the list is empty.

- Midhun VP

Former Member
0 Kudos

Thanks Midhun!

Yes,I am developing my application on HWC.But my concern is to validate the data from ECC.

Lets suppose,when i entered wrong plant in input field,then it display my custom message(Plant not exist) and not display table field as it suppose to do in ABAP.

I does not want to put same message for all wrong input field value.

midhun_vp
Active Contributor
0 Kudos

So you want to show message coming from RFC when user enter a wrong input instead of showing a predefined text, right ? What you can do here is that, make the RFC throw an error (E) when the user enter a wrong input. Hence the navigation to success screen will not happen instead an error screen or alert is shown. This is handled automatically by HWC apps. ie if the input is wrong the RFC should throw a message with type 'E'.

-Midhun VP

Former Member
0 Kudos

Yes,you are right but message and table data are in same RFC.

When i enter wrong data in input field,it comes with respective error message with blank field of table in output.So,i just want to remove this blank table,when the error message comes.

Regards,

Rohit

midhun_vp
Active Contributor
0 Kudos

Can you add a screen shot of the success screen you are getting.

- Midhun VP

Former Member
0 Kudos

Thanks Midhun for all your support! I will come back to you as there is some problem in simulator.