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

Display error message in ALV grid using OOPS

Former Member
0 Likes
1,962

Hi,

I have a requirement to display report in ALV. I have created ALV grid using OOPS with three editable cells and 1 button on toolbar. When user enter values in Ediatble cell and click on the Toolbar button, sales order item should be assigned to contract.

When the user select the row and click on toolbar button, a salesorder item should be assigned to contract and i am using BAPI and fine with BAPI. All the error message should be displayed in a popup and the corresponding failed row should change its color .

Once the user identified the failed row, he can edit the value in the ediatble cells and should reprocess in the same screen ( without going back to selection screen).

To display POP Up, I am using FM BAL_LOG_CREATE, BAL_LOG_MSG_ADD, BAL_DSP_PROFILE_NO_TREE_GET, BAL_CNTL_CREATE.

by using above 4 FM , i can display POP UP. but i cannot change the color of the failed row.

Once I identified the failed row and reprocess from the same screen , I am successful in processing the failed row, but my error log still has the reprocessed row as failed row because, error log is not refreshing.

Please suggest me how to clear error log which was created by using the above FM's and change the color of the failed row .

Thanks in Advance

2 REPLIES 2
Read only

Former Member
0 Likes
681

Hi

Please suggest me how to clear error log which was created by using the above FM's....

U can use BAL_LOG_REFRESH

....and change the color of the failed row

You need to insert a new field for Colour Attributes in your output table and input its name in the layout structure:

IS_LAYOUT-INFO_FNAME = <field name for colour>

The field has to be a CHAR 3 and its value can be -


> Cxy

C is a constant

x is the colour number (from 1 to 9)

y is intensified (0 = off, 1 = on)

After changing the value of output table you need to run the method REFRESH_TABLE_DISPLAY for refreshing the output

Max

Read only

0 Likes
681

Hi max,

i am still unable to color the row and refresh the log.