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

Module Pool - Auto update in the 2nd screen

Former Member
0 Likes
2,650

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.

8 REPLIES 8
Read only

Former Member
0 Likes
1,565

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

Read only

Former Member
0 Likes
1,565

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

Read only

Former Member
0 Likes
1,565

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 .

Read only

Former Member
0 Likes
1,565

Use FM DYNP_UPDATE_FIELD   if  'DYNP_VALUES_UPDATE'  doesn't work.

I worked on similar requirement DYNP_UPDATE_FIELD was working fine.

Read only

Former Member
0 Likes
1,565

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.

Read only

0 Likes
1,565

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.

Read only

0 Likes
1,565

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)

Read only

0 Likes
1,565

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.