Skip to Content
0
Former Member
Jun 05, 2009 at 05:53 AM

How to update item level Pricing in CRMD_ORDER

113 Views

guys

i am using FM : CRM_ORDER_MAINTAIN to update many fields in CRMD_ORDER t-code

except for the Conditions Tab in item level i am able to update other fields...

here is my code please let me know if i am missing something.....

data: IT_PRIDOC TYPE CRMT_PRIDOC_COMT ,

WA_PRIDOC TYPE CRMT_PRIDOC_COM,

IT_COND_ADD TYPE PRCT_COND_EXTERNAL_INPUT_T ,

WA_COND_ADD TYPE PRCT_COND_EXTERNAL_INPUT.

*********FILL IT_PRIDOC

-


Item Level Conditions Tab

WA_PRIDOC-REF_GUID = WA_ORDERADM_I-GUID.

WA_PRIDOC-REF_KIND = 'B' .

wa_cond_add-KSCHL = '0PSV'.

wa_cond_add-kbetr = '333.00'.

wa_cond_add-kpein = '1'.

INSERT wa_cond_add INTO TABLE it_cond_add.

CLEAR wa_cond_add.

WA_PRIDOC-COND_ADD = it_cond_add.

CLEAR it_cond_add[].

INSERT WA_PRIDOC INTO TABLE IT_PRIDOC .

CLEAR WA_PRIDOC .

*********FILL IT_INPUT_FIELDS

WA_INPUT_FIELDS-REF_GUID = WA_ORDERADM_I-GUID.

WA_INPUT_FIELDS-REF_KIND = 'B' .

WA_INPUT_FIELDS-OBJECTNAME = 'PRIDOC'.

even if v debug by putting break-poing on CRM_ORDER_MAINTAIN and do some changes in the pricing values .. the FM showes no changes in debug mode but values will be updated...

expecting expert comments .

Amshu