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

Error in value-transfer between program and screen.

Former Member
0 Likes
843

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.

6 REPLIES 6
Read only

Former Member
0 Likes
824

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.

Read only

0 Likes
824

No, I do modify TC services -> from column visible into column invisible. Coding is just for ilustration. Is not so important in this case.

Read only

0 Likes
824

It is about loosing value between program and screen. Possible coz of visible/invisible column in TC. Could it be?

Read only

Former Member
0 Likes
824

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.

Read only

Former Member
0 Likes
824

Hi Mark,

In that case, before clearing or modifying the internal table.. move the data to a temp table & check.

Best regards,

Prashant

Read only

0 Likes
824

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...