‎2006 Sep 22 1:13 PM
Hi,
my smart forms is working fine. if i delete one line item from smart forms and execute again the program still the discount is calculating for deteled item too.
how to supress the deleted item from discount calculation.
IF ( <KO>-KNTYP = 'O' OR NOT <KO>-KVARC IS INITIAL )
AND NOT <KO>-KNUMH IS INITIAL.
"***** Variant Condition Description *****
PERFORM GET_VARIANT_DESC
USING GV_LANGUAGE
<KO>-KNUMH
GV_VTEXT.
ELSE.
SELECT SINGLE VTEXT INTO GV_VTEXT FROM T685T
WHERE SPRAS = GV_LANGUAGE
AND KSCHL = <KO>-KSCHL.
ENDIF.
IF SY-SUBRC = 0.
MOVE <KO>-KWERT TO GV_KWERT.
ENDIF.
Check document currency
IF NOT GV_SPEC_CUR_DECIMAL IS INITIAL.
WRITE GV_KWERT TO GV_KWERT_IN_DOC_CUR
CURRENCY IS_EKKO-WAERS.
ENDIF.
*Determine if the discount is based on %
*Determine if the discount is based on %
IF <KO>-KRECH = 'A' OR
<KO>-KRECH = 'H' OR
<KO>-KRECH = 'I' OR
<KO>-KSCHL = 'SKTO'.
<KO>-KBETR = <KO>-KBETR / 10.
MOVE '%' TO <KO>-WAERS.
ENDIF.
‎2006 Sep 22 1:17 PM
Hi
Try to save and activate ur smartform. Hope this should help u..
‎2006 Sep 22 1:19 PM
hello,
what do u mean by deleting from smartform?
do u mean u deleted it from some transaction?
pls. make this clear...
‎2006 Sep 22 1:23 PM
‎2006 Sep 22 1:31 PM
hi pawan,
i entered two values in my PO for testing.
my smartform working fine.
now i deted one item from PO and got only one value now.
but still itz showing the discount for bothe the item values.
hope i am clear this time.