cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform abap Code inside a text node

Former Member
0 Kudos

Dear Forms Experts,

I have a question regarding smartforms.

There's a text node under one window in my smartform and it has the summary details as below with some ABAP code.


*             Net Total                                      :  &WF_NET_PRICE_TOTAL&
/:            if &WF_SURDIS& is not initial.
*             Discount/Surcharges Totals       :  &WF_SURDIS&
/:            endif.
*             Functional Compensation            :  &WF_FUNCTIONAL_COMPENSATION&
*             Handling Charges                        :  &WF_HANDLING_CHARGES&
/:            IF &WF_FREIGHT_TOTAL& IS NOT INITIAAL.
*             Freight Charges                          :  &WF_FREIGHT_TOTAL&
/:            ENDIF.
*             VAT                                            :  &WF_TOTAL_VAT_AMOUNT&
*            Gross Total                                 :  &WF_FIN_TOT_AMOUNT&

My problem is the ABAP code if and endif are not executed at all instead its printing everything. My requirement is certain fields should be printed only when they are not initial.

I tried this in SAP Script before inside the text elements, it did work there but not working in smartforms.

Please provide me some clue why the ABAP code did not get executed in smartform text nodes.

Thanks,

Rajesh.

Accepted Solutions (1)

Accepted Solutions (1)

former_member156446
Active Contributor
0 Kudos

its not possible to do that in smartforms..

you need to split the whole content into single text and use the condition tab of the text..

Answers (0)