Application Development 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: 

Modify values of ALV List before printing

Former Member
0 Kudos

I need to modify the values of the ALV list before printing for the following scenarios:

1) If GR Doc No is blank, Std price column should be blank

2) If GR Doc No is not blank:

a. display zero if Std price (based on the formula) amounts to zero

b. display Std price (based on the formula)

I tried using the no_zero attribute of the fieldcatalog but it suppressed the zeroes and displayed blank for cases when Std price amounts to zero (Case 2A).

Is it possible to modify the ALV List during the 'END_OF_LIST' event via read line/modify line such that it will set the Std price column value to:

1) blank if GR Doc No column (also in the ALV list) is blank/does not exist

2) zero or a specific value if GR Doc No exists

I am using FM 'REUSE_ALV_LIST_DISPLAY'.

Code samples (to call the END_OF_LIST event and to read and modify the ALV fieldcatalog) will greatly be appreciated.

Thanks.

1 REPLY 1

Former Member
0 Kudos

Hi,

Check the demo program:<b>BCALV_TEST_LIST_EVENTS</b>

<b>BCALV_FIELDCAT_TEST</b>

This link will give you info about ALV using FM:

http://www.sap-img.com/abap-function.htm

Regards,

Beejal

**Reward if helpful