Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data object error in SCreen painter?

Former Member
0 Likes
325

Hi friends,

I want to save the data in a table that is present on the screen when i click save this is my requirement.

My table name is ZSDF

work area- DATA:WA_WSST TYPE ZSDF.

DATA declarations -

Radiobuttons - data:radiobutton1 TYPE C,

radiobutton2 type c.

DATA: WS(35) TYPE C, " entry present for ws

RADIO TYPE C,

X TYPE C.

PBO

CAse WA_WSST-WS.

when '1'.

radiobutton1 = 'X'.

when '2'.

radiobutton2 = 'X'.

PAI

CASE SY-UCOMM.

When 'ZRADIO'.

if radiobutton1 = 'X'.

WA_WSST-Radio = '1'.

WA_WSST-WS = 'option one'.

elseif radiobutton2 = 'X'.

WA_WSST-Radio = '2'.

WA_WSST-WS = 'option two'.

endif.

When 'SAVE'.

WA_WSST-DESCRIPTION = DESCRIPTION.

WA_WSST-WS = WS.

WA_WSST-WSNO = WSNO.

WA_WSST-EMPID = EMPID.

WA_WSST-REQNO = REQNO.

insert into ZSDF values WA_WSST.

Hope you got my code--- in WA_WSST-WS option one or option two has to store according to the choice.

The ERROR i am getting is

The data object "WA_WSST" does not have a component called "RADIO".

Please can you help me is this error..

1 REPLY 1
Read only

Former Member
0 Likes
302

Hi,

Does your table is haveing the field called 'RADIO'?

If No, that is the reason it is giving error.Because your work are is having the structure of your table ZSDF.

WA_WSST-Radio = '2'.

One more doubt have written the CASE statement code in ABAP editor or directly in flow logic editor.

IF flow logic editor.Pls. declare module under PAI and PBO and write code there.

EX;

In Flow logic editor.

PROCESS BEFORE OUTPUT.

MODULE init_screen_100.

PROCESS AFTER INPUT.

MODULE user_command_0100.

IN ABAP EDITOR

MODULE init_screen_100 OUTPUT.

CLEAR input.

radio1 = 'X'.

CLEAR: radio2, radio3.

ENDMODULE.

MODULE user_command_0100 INPUT.

output = input.

box1 = radio1.

box2 = radio2.

box3 = radio3.

IF exit NE space.

LEAVE PROGRAM.

ENDIF.

ENDMODULE.

Pls. reward if useful....