on 10-28-2009 2:04 PM
Hi,
I have an input form going into a BAPI service. In my input I have a radio group control (for the user role selection) to let the user chose between 3 options:
0 - Admin
1 - Owner
2 - Overseer
The role selection is an int type in my Bapi. So when I map my form output to my BAPI service, I set the following assigned value to my field: NVAL(#ID[ACA1EDQ]@ROLE) to convert my radio group text value into an int value that can be red by the BAPI.
The problem is that it doesn't work. I have tried to map my form output to a table view to see what data was sent to the BAPI service and unfortuately nothing was sent. Is that a formatting problem ? How can I know which radio button was selected using integers ?
Thanks a lot for your help.
Edited by: Thibault Schalck on Oct 28, 2009 3:04 PM
Hi,
What event are you using to send the data to the service? If you have a submit button on your form then use the submit event to send the values. NVAL should work. I use radio buttons on a few of my forms to give different selection options to the user.
Aaron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
My mistake. Try this - Go to the screen where you have selected the event as 'Submit', there is option in the drop down as 'Others' choose that & then in the pop up choose the event 'Select'. Then in the same wiondow go to the assigned value & there you select the radio button string (Something like @STR1).
Make sure you have entered values properly in the Entry List. In Entry List there are 2 columns 'Value' & 'Display Text'. Display text can be anything as you want but Value should be the values which will get accepted by 'BAPI'. Because this value will go to the BAPI through the event 'Select'.
Regards
Sandeep
Thank you Sandeep for your helpful answer. I coudln't do it with the radio button (the value of the button was never sent). So I used a drop down list instead and configured the select action on it and now it is working fine. Now I'll know that the select event is required for that type of control
Regards,
Thibault Schalck
The NVAL function doesn't seem to be working...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.