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 help

Former Member
0 Likes
529

Hi all,

I am problem with table control.

I have two screens.

screen 1 have a copy button and field forr id.

I have give an input for id and press copy.

based on my input it retrieves data from ztable and displays in screen 2 where i have to modify few things and save it under new id.

i HAVE FEW FIELD STATMENTS for table control fields IN pai

My problem is that i have error mess age type e if anything is wrong according to validation.

My problem is when i get an error message type e ,only that field is enabled to change.But i want the entire row to be enabled.

I can include the all the field statements in chain and endchain.

if i do that , my problem.

say if i have error in first row first column of table control i.e in first field stament , iam lossing all the fields(i.e 1 row fields) from there on.

if i have error in first row second column of table control, i have firstrow first column value retained and i loose everything starting from first row second column on wards till the end of second row

similarly if the error is in 3 column then i have first and second column values but iam loosing from 3 rd on wards.

I want to retain the values and as well enable the entire row to make changes

Iam retrieving some values from ztable and displaying it in table control

4 REPLIES 4
Read only

Former Member
0 Likes
501

Hi,

any suggestions

Thanks

Read only

0 Likes
501

HI deepthi,

In your PAI section. Are you calling your validation module inside the loop?

loop at itab.

module validate_line.

endloop.

Just do not use any chain-endchain and see.

Regards,

Ravi

Read only

Former Member
0 Likes
501

Hi,

use below code

PROCESS AFTER INPUT.

  • Store internal table information inputted by the end user

LOOP AT INT_ZBKTSTKREC_EDIT. CHAIN.

FIELD INT_ZBK_EDIT-RECONCILED.

FIELD: INT_ZBk_EDIT-KBBLUNREC,

INT_ZBK_EDIT-REASON_CD.

MODULE LINEIN_INT_ZBK_1520.

ENDCHAIN.

ENDLOOP.

Regards

amole

Read only

0 Likes
501

Hi,

WHAT IS THE DIFFERENCE IF I GIVE

LOOP AT ITAB.

END LOOP.

OR

LOOP .

ENDLOOP . IN PAI

loop.

*CHAIN.

FIELD Ztest-Zmatnr MODULE validatematerial.

FIELD Ztest-Zmaktx MODULE givedescription.

FIELD Ztest-zmenge MODULE CHECKqtylessthanten.

*endchain.

endloop.

in screen 1 i give id 123 and click copy,

i retrieving table from zxxx tables and displaying in the table control

then in screen 2 i have output like this

mat1 abc 11

mat2 def 12

FIELD Ztest-Zmatnr MODULE validatematerial.

in this module

i have to check whether material belongs to plant say pl1

if not i give an error type e

i give a new id and click save

then i get an error saying

mat1 doesn't belong to plant pl1 noe iam not using chain endchain which i comented

so it allows only to change mat but i need to change material descption as weel.

when i use chain end chain

i am able to change material descrption along with mat but iam lossing quantity.

the control stops at FIELD Ztest-Zmaktx MODULE givedescription.

i want to change material and material desc and able to retain quantity.

I know this can be done bymess typre s but i want to use mess type e.

is it possible to achieve this.