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

How to get dictionary fields from the screen - dialog programming

Former Member
2,600

Hello guys

I'm learning abap and I'm doing a module pool program.

I want to get the fields (dictionary referenced) from my screen, into a global structure, so that I can use them in the next screen.

This is my top_include:

PROGRAM ZPF_MOVIE_DYNPRO.

* TABLES AND STRUCTURES
data: ls_movie type zpf_movie,
lt_movie TYPE STANDARD TABLE OF zpf_movie.

* USAR COMMAND / BUTTONS
data: ok_code TYPE sy-ucomm.

On my screen I have fields from zpf_movie table, so I want to put them into ls_movie, and bring it to the next screen.

I tried this at an include:

ls_movie-id = zpf_movie-id

ls_movie-field1 = zpf_movie-field1

...

...

But apparently zpf_movie is not recognized.

Does anyone know how can I get these fields from the screen and set them into the ls?

Hello guys

I'm learning abap and I'm doing a module pool program.

I want to get the fields (dictionary referenced) from my screen, into a global structure, so that I can use them in the next screen.

This is my top_include:

PROGRAM ZPF_MOVIE_DYNPRO.

* TABLES AND STRUCTURES
data: ls_movie type zpf_movie,
lt_movie TYPE STANDARD TABLE OF zpf_movie.

* USAR COMMAND / BUTTONS
data: ok_code TYPE sy-ucomm.

On my screen I have fields from zpf_movie table, so I want to put them into ls_movie, and bring it to the next screen.

I tried this at an include:

ls_movie-id = zpf_movie-id

ls_movie-field1 = zpf_movie-field1

...

...

But apparently zpf_movie is not recognized.

Does anyone know how can I get these fields from the screen and set them into the ls?

2 REPLIES 2
Read only

former_member196331
Active Contributor
1,337

This word i did not understood.But apparently zpf_movie is not recognized.
Exactly like zpf_movie ,ls_move is also declared at Global Declaration

After enter the Date definitely You are pressing some thing like button

In first screen pai you need to move

ls_movie-id = zpf_movie-id

Append the table ls_move.

Now call the second screen. Now you are in Second screen imagin,
Already data available ls_movie. then fill the required fields.

Read only

former_member185116
Active Participant
1,337

Hi ,

have you tried like this in SE51

here(marked in red color above) enter the dictionary table from where you want get the fields.

regards,

vinay.