Skip to Content
0

How to get dictionary fields from the screen - dialog programming

Oct 27, 2016 at 07:05 PM

67

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Kali Charan Oct 28, 2016 at 03:46 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
VINAY REDDY Oct 28, 2016 at 06:52 AM
0

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.


m1.jpg (55.5 kB)
m2.jpg (32.2 kB)
Share
10 |10000 characters needed characters left characters exceeded