Hi all,
i have a smartform, in which based on some condition if the condition satisfied then some text gets printed
and if the condition fails then other text gets printed. (Through FLAG , according to the program lines given below).
Now , i have added some text into it and i wants that if the BSART = Z02, then my text wouldn't gets printed.
For which i have used other conditions, and removed my text in that, and called but not getting removed text through
my condition.Please tell me what should i do ,so that i get the desired result.
LOOP AT it_item INTO wa_item.
IF ( wa_item-menge1 IS NOT INITIAL OR wa_item-netpr1 IS NOT INITIAL OR wa_item-netwr1 IS NOT INITIAL ).
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = sform
IMPORTING
fm_name = fname.
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION fname
EXPORTING
lines = lines
adrc = adrc
sum = sum
dis = dis
freight = freight
name = name
dat = dat
flag1 = flag
OTHER1 = OTHER
TABLES
IT_HEAD = it_head
IT_ITEM = it_item
IT_TEMP = it_temp
IT_HDESC = it_hdesc
IT_MDESC = it_mdesc
IT_FINAL = IT_FINAL.
IF sy-subrc <> 0.
ENDIF.
STOP.
ENDIF.
ENDLOOP.