cancel
Showing results for 
Search instead for 
Did you mean: 

Conditions in SMARTFORMS to display/hide text

kavmp
Explorer
0 Kudos
368

I want to display the text 'text6' only when the value of gc_line2_display EQ 1. But the text is not displaying even if the value of gc_line2_display is 1. The first condition in the screenshot is satisfied. What might be the issue?

Code in initialization for setting gc_line2_display as 1. The internal table has one entry and it is setting the flag to 1.

select SINGLE * from ztbl_appl_sub
into gstr_sp_lh
where appno = wc_app_no
and appsp = 'LH'.

append gstr_sp_lh to gtbl_sp_lh.
if gtbl_sp_lh[] is not initial.
gc_line2_display = 1.
endif.

Please help. Urgent.

Thanks

FredericGirod
Active Contributor
0 Kudos

did you try with '1' ?

Sandra_Rossi
Active Contributor

You should debug your Smart Form function module at the place of the condition and you'll see what the issue is...

FredericGirod
Active Contributor
0 Kudos

sandra.rossi c'est pas facile ca

Sandra_Rossi
Active Contributor
0 Kudos

frdric.girod Not easy to debug a Smart Form function module? Just find the line where the conditions concerning GC_LATE_EXP_DATE and GC_LINE2_DISPLAY are defined and add a break-point.

FredericGirod
Active Contributor
0 Kudos

maybe I have issu with the generated code 🙂

satvik_panchal
Participant
0 Kudos

What's the data type of gc_line2_display?

kavmp
Explorer

gc_line2_display is of the type i. I tried with '1' as well. But what finally worked is that I had to add the variable in the output parameters of the code init for it to work properly. Issue is resolved and thanks for the suggestions guys

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

You can debug a Smart Form generated function module. Just find the line where the conditions concerning GC_LATE_EXP_DATE and GC_LINE2_DISPLAY are defined and add a break-point.

For instance, in a condition of a text node of a Smart Form, I have a condition "RSDAT <> '00000000'", so if I search the line in the generated function module I can find it and I can add a break-point:

kavmp
Explorer
0 Kudos

Thanks for the answer. It worked.

Answers (0)