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

Copy ALV fields to screen fields

Former Member
0 Likes
574

Dear ABAPERS,

i want to copy ALV fieldcatalog data to Screen fields.

for that i have one global structure which contains ALV data and i am creating a same structure of screen fields and doing move-corresponding and by this Global Table of ALV copying data to the structure (of screen fields) but this is not passing to the screen fields.

Please suggest what needs to be done.

Also tell me if i m wrong and you have some other options.

<REMOVED BY MODERATOR>

Thanks

Diva

Edited by: Alvaro Tejada Galindo on Jun 5, 2008 11:06 AM

Dear ABAPERS,

i want to copy ALV fieldcatalog data to Screen fields.

for that i have one global structure which contains ALV data and i am creating a same structure of screen fields and doing move-corresponding and by this Global Table of ALV copying data to the structure (of screen fields) but this is not passing to the screen fields.

Please suggest what needs to be done.

Also tell me if i m wrong and you have some other options.

<REMOVED BY MODERATOR>

Thanks

Diva

Edited by: Alvaro Tejada Galindo on Jun 5, 2008 11:06 AM

4 REPLIES 4
Read only

Former Member
0 Likes
549

Divya,

Is structure contain data?

Amit.

Read only

0 Likes
549

MOVE-CORRESPONDING GS_ALV_HC_MSG_SELECTED TO TT_SCRN_STRUC.

GS_ALV_HC_MSG_SELECTED is my global structutre of ALV

TT_SCRN_STRUC. structure of screen fields.

and by MOVE-CORRESPONDING data get copied to TT_SCRN_STRUC.

but this data is not displaying on my screen field.

Read only

0 Likes
549

Hi,

Where have you written this Move-Corresponding? - Data transfer between program and screen fields should be done in PBO of the screen

Screen fields are created with the same name as in the structure you mentioned? For example, your structure TT_SCRN_STRUC has a field FIELD1. Screen field should be created with the name TT_SCRN_STRUC-FIELD1. Then only it can display the value of that structure field

Are you able to debug and check if data is populated in TT_SCRN_STRUC?

More over, Is it a table - Multiple entries or Single selected entry from ALV? and are you using a table control to display all records?

Brief your requirement a bit.

Thanks and Regards,

Lakshmi.

Read only

0 Likes
549

Divya,

GS_ALV_HC_MSG_SELECTED is my global structutre of ALV

TT_SCRN_STRUC. structure of screen fields.

and by MOVE-CORRESPONDING data get copied to TT_SCRN_STRUC.

you said your ALV structure is like of GS_ALV_HC_MSG_SELECTED and you are displaying TT_SCRN_STRUC data after move-corresponding how can it be possible.

you have to define your ALV structure like TT_SCRN_STRUC than it could be shown.

Amit.

Edited by: Jony on Jun 5, 2008 5:09 PM