Skip to Content
avatar image
Former Member

How to get dictionary fields from the screen - dialog programming

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 28, 2016 at 03:46 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 28, 2016 at 06:52 AM

    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)
    Add comment
    10|10000 characters needed characters exceeded