‎2009 Jun 04 8:19 AM
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
‎2009 Jun 04 8:29 AM
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
‎2009 Jun 04 8:25 AM
‎2009 Jun 04 8:29 AM
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
‎2009 Jun 04 9:46 AM