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-Grid complex F4

Former Member
0 Likes
470

Hi guys.

I have ALV-Grid in which fieldcatalog is created based on DDIC-Structure, let's name it 'STRUC'.

There are 2 fields A and B. In 'STRUC' a complex F4 is seted for these fields: A and B are imported parameters for F4 and B is exported parameter. So everything is good, this F4 is called for fields automatically, and it picks up the values from A and B but.....when field A is empty, then F4 get the space-value as value of A, I mean = ' ', and therefore the initial list of values in F4 is emty.

Does anybody know the way, how I can solve it without using F4-event of Grid and colling the F4 manually?

Thank you

Hi guys.

I have ALV-Grid in which fieldcatalog is created based on DDIC-Structure, let's name it 'STRUC'.

There are 2 fields A and B. In 'STRUC' a complex F4 is seted for these fields: A and B are imported parameters for F4 and B is exported parameter. So everything is good, this F4 is called for fields automatically, and it picks up the values from A and B but.....when field A is empty, then F4 get the space-value as value of A, I mean = ' ', and therefore the initial list of values in F4 is emty.

Does anybody know the way, how I can solve it without using F4-event of Grid and colling the F4 manually?

Thank you

2 REPLIES 2
Read only

Former Member
0 Likes
439

Hi,

While fetching the value for the complex F4,

also provide a check for the initial values of A,

inside tat check, write a piece of code to inform the system what it has to do when the parameter A is empty.

Hope this can solve the problem.

Reward if helpful.

Sharin.

Read only

0 Likes
439

Hi Sharin,

It's standard F4-help, so I don't want to change it. The best decision would be to force ALV not to pass the "A value = space" when the A is emty. I wonder if it's possible.

Thanks.