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

ABAP objects

Former Member
0 Likes
423

Hi Friends,

Reg. ALV OOPS prog., my requirement is like providin 'traffic_lights' signal at every record.

Pls. suggest me the logic to include with in the PBO include, also required some field in

layout to make it happen.

Please do this needful

TIA

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
387

Hi Suren,

The below suggestiom may help you.

In Declaration part, just include the field as 'traffic_light' type c

In PBO of the screen, include the logic as

Loop at lt_vbak into ls_vbak.

if ls_vbak-ernam = 'value'.

ls_vbak-traffic_light = '2'.

else.

ls_vbak-traffic_light = '1'.

endif.

modify lt_vbak from ls_vbak transporting traffic_light.

endloop.

Also, in layout part, append as 'ls_layo-excp_fname = 'traffic_light'.

Regards,

Manjunath

3 REPLIES 3
Read only

Sm1tje
Active Contributor
0 Likes
387

Sample report BCALV_GRID_04.

Read only

Former Member
0 Likes
388

Hi Suren,

The below suggestiom may help you.

In Declaration part, just include the field as 'traffic_light' type c

In PBO of the screen, include the logic as

Loop at lt_vbak into ls_vbak.

if ls_vbak-ernam = 'value'.

ls_vbak-traffic_light = '2'.

else.

ls_vbak-traffic_light = '1'.

endif.

modify lt_vbak from ls_vbak transporting traffic_light.

endloop.

Also, in layout part, append as 'ls_layo-excp_fname = 'traffic_light'.

Regards,

Manjunath

Read only

0 Likes
387

Hi Manjunath,

Thnx for ur answer.......