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

Textbox disabled when click 'SAVE' button

Former Member
0 Likes
303

I am currently doing a tabstrip with 3 tabs.

Whenever I click on the save button, the first tab will be enabled with the error message like this:

http://img185.imageshack.us/img185/7290/screen1eg6.png

But when I look at my second and third tabs, the screen's input field is disabled when it is suppose to be enabled for the user to key in. The screen as show here:

http://img185.imageshack.us/img185/6615/screen2ns8.png

Can anyone explain why it is like this? The best please post the save button codes for the tabstrip.

Or so anyone have a way to enable the disabled textbox upon clicking the 'SAVE' button?

1 REPLY 1
Read only

Former Member
0 Likes
282

Hi JuzMe,

This si the save button code in ALV Grid.

CALL METHOD G_ALVGRID_HDR->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

I_SAVE = L_SAVE

IS_VARIANT = LS_VARIANT

IS_LAYOUT = LS_LAYOUT

IS_PRINT = LS_PRINT

IT_TOOLBAR_EXCLUDING = I_EXCLUDE

CHANGING

IT_SORT = I_SORT_HDR

IT_OUTTAB = I_OUTTAB_HDR[]

IT_FIELDCATALOG = I_FCAT_HDR

EXCEPTIONS

INVALID_PARAMETER_COMBINATION = 1

PROGRAM_ERROR = 2

OTHERS = 3.

IF SY-SUBRC 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

And, importantly pass the variant and enable is_save = 'A'.

kindly reward if found helpful.

cheers,

Hema.