Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartforms

Former Member
0 Likes
445

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.

4 REPLIES 4
Read only

Former Member
0 Likes
402

Hi

Try to save and activate ur smartform. Hope this should help u..

Read only

Former Member
0 Likes
402

hello,

what do u mean by deleting from smartform?

do u mean u deleted it from some transaction?

pls. make this clear...

Read only

0 Likes
402

sorry we have deleted on item from PO.

Read only

0 Likes
402

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.