2013 May 23 8:16 PM
Hi All,
By the module pool screen i updated a ztable.
And if i want to change the entry in teh 1st screen (input screen) i will enter the input (existing record) in the 1st screen
and i need the items details to be displayed in the 2nd screen automatically .
which is already updated in ztable.
please share your ideas!!
Thnaks,
Pradeep.
Hi All,
By the module pool screen i updated a ztable.
And if i want to change the entry in teh 1st screen (input screen) i will enter the input (existing record) in the 1st screen
and i need the items details to be displayed in the 2nd screen automatically .
which is already updated in ztable.
please share your ideas!!
Thnaks,
Pradeep.
2013 May 24 4:12 AM
Hi Pradeep,
Have you tried fetching the new table entry in PBP of second screen? Or you can also use the function module DYNP_VALUES_UPDATE for updating the field values.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = t_dynpread.
The tables parameter dynfields requires an internal table with screen field name and values for them.
Hope this helps,
~Athreya
2013 May 24 5:02 AM
Hi Pradeep
Just declare a variable in TOP Include and an input field with the same name on the screen will solve your problem.
if you are creating input fields with diff names on the screen you need to use MOVE statement or equals in the program
Please note if the screen fields names and variables declared in the program are same then automatic data transfer will take place
Regards
Suganya
2013 May 24 6:10 AM
Hi Mohan,
In PAI of 1st screen write select Query with where clause of given input of existing record . and then call 2nd screen after select query.
result in 1st screen after entering existing record and press enter button,the 2nd screen display's with existing items .
2013 May 24 7:23 AM
Use FM DYNP_UPDATE_FIELD if 'DYNP_VALUES_UPDATE' doesn't work.
I worked on similar requirement DYNP_UPDATE_FIELD was working fine.
2013 May 24 6:05 PM
Hi All,
Now i am trying to update the table by Table control wizard.
1,The problem i am facing is if i enter the value and i press enter the values got cleared.
2. Please let me know how to pass the value to DB table.
Thanks,
Pradeep.
2013 May 25 4:20 AM
Mr.Pradeep,
Ensure the Input field is checked under the Program tab of Screen painter field Attributes.
Only when this check box is ticked, input values will be accepted.
Regards.
2013 May 25 6:47 AM
hi Mohan,
You Might be using 'Refresh <itab used for table control>' code at some point in program .
please check in debug.
for inserting records use
MODIFY <ztable> from ITAB.(make sure that the structure of the ITAB will have same fields in ztable)
2013 May 25 10:24 AM
Hi Mohan,
for ur first point check if u have following code in ur prog.
IN PBO.
loop at it into wa with controls tc.
endloop.
for 2nd one u can use modify to update database table.
MODIFY <database table> from internal_table.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |