‎2007 Oct 01 1:47 PM
Hello guys.
I want ho hide one TC column when creating and changing document.
This column has to be visible when document is in display mode. And this is the
problem. I take value of the field which has to be displayed in this column from DB table into program variable p_v. In screen I have TC column with fields p_v also.
In PBO - in each loop with TC I have this value set with correct value but when the screen comes up the field is empty - no value.
Can anybody help?
Thanks a lot.
screen:
LOOP AT it_services WITH CONTROL services.
ENDLOOP.
pbo inside screen:
IF sy-tcode NE c_tcode_display.
wa_cols-invisible = 1.
MODIFY services-cols FROM wa_cols TRANSPORTING invisible.
ENDIF.
‎2007 Oct 01 1:49 PM
LOOP AT it_services WITH CONTROL services.
ENDLOOP.
pbo inside screen:
IF sy-tcode NE c_tcode_display.
wa_cols-invisible = 1.
MODIFY <b>it_services</b> FROM wa_cols TRANSPORTING invisible.
ENDIF.
‎2007 Oct 01 1:53 PM
No, I do modify TC services -> from column visible into column invisible. Coding is just for ilustration. Is not so important in this case.
‎2007 Oct 01 1:55 PM
It is about loosing value between program and screen. Possible coz of visible/invisible column in TC. Could it be?
‎2007 Oct 01 1:52 PM
hi,
try like this,
screen:
LOOP AT it_services WITH CONTROL services.
ENDLOOP.
pbo inside screen:
IF sy-tcode NE c_tcode_display.
wa_cols-invisible = 1.
MODIFY it_services FROM wa_cols TRANSPORTING invisible.
ENDIF.
if helpful reward some points.
with regards,
Suresh Aluri.
‎2007 Oct 01 2:03 PM
Hi Mark,
In that case, before clearing or modifying the internal table.. move the data to a temp table & check.
Best regards,
Prashant
‎2007 Oct 03 9:54 AM
Inside LOOP AT it_services WITH CONTROL services.
MODULE transfer_into_services.
ENDLOOP.
in transfer_into_services I do
MOVE-CORRESPONDING it_services TO struc_sda_pos. Value struc_sda_pos-status is there i see it in debuging. But when the screen is displayed this column field is empty.
Is it more clear now? I gues you guys didn't get me at the beginning...