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

ALV layout check

Former Member
0 Likes
2,138

Hello experts,

I have a program which shows an ALV using FM REUSE_ALV_GRID_DISPLAY. It has a button to save layouts and it works fine. However, I would like to check the layout name just before saving definetely. I mean, pushing save layout and once I write its name and accept, I want to check the layout with my own code. Is this possible? Is there any user exit available in this process or should I implement my code for the whole layout process?

Thanks in advance.

PD: I did research of this issue in SCN.

1 ACCEPTED SOLUTION
Read only

Kishoregokara
Participant
0 Likes
1,803

Hello Jorge,

Please check the below function modules.

LT_DBDATA_WRITE_TO_LTDX

LT_DB_UPDATE_LTDXD

Thanks,

Kishore.

Hello experts,

I have a program which shows an ALV using FM REUSE_ALV_GRID_DISPLAY. It has a button to save layouts and it works fine. However, I would like to check the layout name just before saving definetely. I mean, pushing save layout and once I write its name and accept, I want to check the layout with my own code. Is this possible? Is there any user exit available in this process or should I implement my code for the whole layout process?

Thanks in advance.

PD: I did research of this issue in SCN.

8 REPLIES 8
Read only

Former Member
0 Likes
1,803

Any idea? I want to check the ALV layout just after saving it.

Read only

0 Likes
1,803

Probably not, but not sure. Can't you just find a place where to implement an implicit enhancement option? (enhancement framework)

Read only

0 Likes
1,803

Thanks for your answer,

I did not find anything in the function responsible for saving the layout. I believe that it is not possible.

Regards.

Read only

0 Likes
1,803

Add a breakpoint at function module LVC_VARIANT_SAVE_LOAD, execute, and debug "backward" (manually), you'll probably find easily a place to add your code.

Read only

0 Likes
1,803

I have not found a place for my code so far following your advice. Anyway, I keep trying. I will let you know in case I find something.

Read only

0 Likes
1,803

Why do you say LVC_VARIANT_SAVE_LOAD has no spot to place a control?

i see a wonderful


form f25_initialization

where to place your checks within an implicit enhancement.

It also provides a flag to stop the execution of the FM!

Read only

Kishoregokara
Participant
0 Likes
1,804

Hello Jorge,

Please check the below function modules.

LT_DBDATA_WRITE_TO_LTDX

LT_DB_UPDATE_LTDXD

Thanks,

Kishore.

Read only

0 Likes
1,803

Hello Kishore,

Thank you for your answer. LT_DBDATA_WRITE_TO_LTDX and LT_DB_UPDATE_LTDXD are the functions which I need. Just after saving my layout, these functions are executed. Unfortunately I did not find any enhancement spot.

Regards.