Skip to Content
author's profile photo Former Member
Former Member

How to update item level Pricing in CRMD_ORDER

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 23, 2009 at 11:54 AM

    i missed Handlers .. its working

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.