Application Development 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: 

Amount Field is not coming for condition type

debdatta_panda
Participant
0 Kudos

Hi Experts,

                Hope you are fine.I have faced one problem.I have developed a code in routine for SD quotation.But the main problem is Amount field  bedide condition type is not populating.The code is under....

FORM FRM_KONDI_WERT_918.

*{   INSERT         DE1K916983                                        1

**************************Condition Type code will be instered***********************

BREAK-POINT.

DATA : it_cond TYPE STANDARD TABLE OF ZSD_AUTO_COND,

        wa_cond TYPE ZSD_AUTO_COND,

        lv_model TYPE TYPBZ,

        lv_model1 TYPE typbz,

        lv_matnr TYPE mbew-matnr,

        wa_komv TYPE komv_index.

IF MBEW-MATNR IS NOT INITIAL.

split MBEW-MATNR at '_' INTO lv_model lv_model1.

CONDENSE lv_model.

ENDIF.

SELECT *

        INTO TABLE IT_COND

        FROM ZSD_AUTO_COND

        WHERE matnr = MBEW-MATNR

        AND TYPBZ = lv_model.

LOOP AT it_cond INTO wa_cond WHERE matnr = MBEW-MATNR.

IF sy-subrc = 0.

XKWERT = wa_cond-ZCOST.

****sto by avijit 26.05.2016****

YKBETR = WA_COND-ZCOST.

***eoc**************************

READ TABLE XKOMV INTO wa_komv with key kschl = 'ZE60'.

IF sy-subrc = 0.

wa_komv-kbetr = WA_COND-ZCOST.

wa_komv-kwert = WA_COND-ZCOST..

MODIFY XKOMV FROM WA_KOMV INDEX SY-TABIX TRANSPORTING KBETR KWERT.

ENDIF.

ENDIF.

endloop.

*************************************************************************************

*}   INSERT

ENDFORM.


Problem it attached in screen shot.


Please help..

1 REPLY 1

Juwin
Active Contributor
0 Kudos

That is based on the condition type configuration.

Condition value may either be directly populated or it may be calculated as Condition amount * Quantity.

In your case, it must be directly populated.

Thanks,

Juwin