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

table control deactivated on error message display..

Former Member
0 Likes
830

hi,

when user selects multiple rows from my table control and tif they dont match a condition, my control stays in the same screen, but i am not able to operate on the table control anymore !!

like initially i cud select couple of rows and click on a push button, if those rows are not valid, i want to stay in the same screen but the table should allow me to deselect the wrong rows and select the rest again !!

is it possible i can invoke the PBO of the screen which holds the table control ?? that way all the other module statements under that will be executed as if i have moved from previious screen to this one and in that case the control will be activated automatically ??

thks

6 REPLIES 6
Read only

Former Member
0 Likes
708

you have to use chain and endchain. then only you will be able to edit those..

Read only

0 Likes
708

Vijay,

I created this table control using the wizard, so i am given a generated code as follows. what change do u think will help me ?? ..i feel somehow if i can invoke this PBO, things should resolve !! also note MODULE USER_COMMAND_0110 holds the code when the button is clicked... thanks

PROCESS BEFORE OUTPUT.

MODULE FETCH_DATA. " this i wrote to fetch data from tables

" and store in internal table

*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'DUE_DATA'

MODULE DUE_DATA_CHANGE_TC_ATTR.

*&SPWIZARD:

MODULE DUE_DATA_CHANGE_COL_ATTR.

LOOP AT I_DUE

INTO WA_DUE

WITH CONTROL DUE_DATA

CURSOR DUE_DATA-CURRENT_LINE.

MODULE DUE_DATA_GET_LINES.

*&SPWIZARD: MODULE

DUE_DATA_CHANGE_FIELD_ATTR

ENDLOOP.

  • MODULE STATUS_0110.

*

PROCESS AFTER INPUT.

*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'DUE_DATA'

LOOP AT I_DUE.

CHAIN.

FIELD WA_XBOOKDUE-VBELN.

FIELD WA_XBOOKDUE-POSNR.

endchain.

FIELD WA_DUE-IDX

MODULE DUE_DATA_MARK ON REQUEST.

ENDLOOP.

MODULE DUE_DATA_USER_COMMAND.

*&SPWIZARD:

MODULE DUE_DATA_CHANGE_TC_ATTR.

*&SPWIZARD:

MODULE DUE_DATA_CHANGE_COL_ATTR.

MODULE USER_COMMAND_0110.

Read only

0 Likes
708
LOOP AT I_DUE.
CHAIN.
FIELD WA_XBOOKDUE-VBELN.
FIELD WA_XBOOKDUE-POSNR.
endchain.
FIELD WA_DUE-IDX
MODULE DUE_DATA_MARK ON REQUEST.
ENDLOOP.

are you sure the code is syntax free...?

Read only

0 Likes
708

oh yeah, it is syntax free,,i just removed references of my work before posting here .so if there are any, they r just typo errors..

Read only

Former Member
0 Likes
708

In you PBO

do something like this

chain.

field field1.

field field2.

module validate.

endchain.

then only the fields field1 field2 will be greyed out on errors.

Regards,

ravi

Read only

Former Member
0 Likes
708

NO solution so far..cancelling this question