Skip to Content
avatar image
Former Member

Smartform abap Code inside a text node

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



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 27, 2009 at 08:08 PM

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

    Add comment
    10|10000 characters needed characters exceeded