Skip to Content
0
May 26, 2016 at 09:34 AM

Amount Field is not coming for condition type

32 Views

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

Attachments