‎2011 Sep 09 7:03 AM
Hi ALL THE GURUS,
I have made a module pool having dropdown of Header Values in first subscreen and a table control below it in next subscreen.
The columns of table control are Detail Desc , Val , Remarks ,Old Value .
When user selects a header value then based on that Detail Desc should be filled and if for that detail ifr there is any old value and remarks then it should also come. For the first time it is working firne. In val the user can enter new value and the remarks can be changed. then save.
After saving the user picks another header value and press enter but this time again under Detail Desc new values are coming corresponding to the header value but in Val the value which was entered previously for the first header value selected is coming. At the time of saving data it should also read the value entered in Val.
How to clear the data of table control each time when new header value is selected. I have already searched in forums but could not find the solution.
Thanks & Regards,
Bharti Jain
‎2011 Sep 09 7:22 AM
Hi Bharti,
For this you will have to refresh the internal table before populating it with the values selected for the second time. Try doing this
in the PBO of the screen.
Regards,
Sagar
‎2011 Sep 09 7:25 AM
Hi,
As per I understood your issue , When New Header is entered check it with your table entries , clear the table holding the contents of table control on saving and repopulate on every Header Input.
Kindly expalin if you are expecting anything else.\
Regards,
‎2011 Sep 09 7:26 AM
Hi Bharti ,
select detail data in table control internal table on the basis of Header data for selection .
before getting data for selection based do clear or refresh data and again do getdata for header data .
regards
Deepak.
‎2011 Sep 09 7:53 AM
Dear All,
I have used REFRESH to lear the entries of internal table after save.
After that again I am fetching the data based on the header value selected.
It is coming correct.
But in PAI as shown in the below code,
PROCESS AFTER INPUT.
LOOP AT T_ZINPP_LOGDATA.
CHAIN.
FIELD: T_ZINPP_LOGDATA-DETAIL_DESC,
T_ZINPP_LOGDATA-VAL_NUM,
T_ZINPP_LOGDATA-VAL_CHAR,
T_ZINPP_LOGDATA-REMARKS,
T_ZINPP_LOGDATA-OLD_VALUE,
T_ZINPP_LOGDATA-OLD_DATE,
T_ZINPP_LOGDATA-OLD_TIME.
MODULE LOG_MODIFY.
ENDCHAIN.
ENDLOOP.
In T_ZINPP_LOGDATA-VAL_NUM, T_ZINPP_LOGDATA-VAL_CHAR, T_ZINPP_LOGDATA-REMARKS, it is holding the value that was previously entered for header value selected first.
How to clear these values ?
Regards,
Bharti Jain
‎2011 Sep 09 8:05 AM
hi ,
PROCESS AFTER INPUT.
LOOP AT T_ZINPP_LOGDATA.
CHAIN.
FIELD: T_ZINPP_LOGDATA-DETAIL_DESC,
T_ZINPP_LOGDATA-VAL_NUM,
T_ZINPP_LOGDATA-VAL_CHAR,
T_ZINPP_LOGDATA-REMARKS,
T_ZINPP_LOGDATA-OLD_VALUE,
T_ZINPP_LOGDATA-OLD_DATE,
T_ZINPP_LOGDATA-OLD_TIME.
MODULE LOG_MODIFY.
ENDCHAIN.
ENDLOOP.
module clear .
in driving program .
module clear input .
clear : T_ZINPP_LOGDATA .
refresh : T_ZINPP_LOGDATA .
endmodule .
See that you clear details table also and again getdata on selection " USE PROPER CONDITION FOR GETTING DATA IN PBO .
regards
Deepak.