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

ORDER_MAINTAIN Change Opportunity in Web DynPro Applikation ORDER_SAVE

Hi Gurus!

I've written a WDA to display and modify Opportunities.

After the User has changed e.g. the Description of the Opportunity and wants to save, the WDA performs following steps:

importing IT_ORDERADM_H type CRMT_ORDERADM_H_COMT (LS_ORDERADM_H-DESCRIPTION has changed for example)

ls_input_field_names-fieldname = 'DESCRIPTION'.

append ls_input_field_names to lt_input_field_names.

ls_input_fields-objectname = 'ORDERADM_H'.

ls_input_fields-field_names = lt_input_field_names.

ls_input_fields-ref_kind = 'A'.

ls_input_fields-REF_GUID = ls_orderadm_h-GUID.

append ls_input_fields to lt_input_fields.

ls_objects_to_save = is_orderadm_h-object_id.

append ls_objects_to_save to lt_objects_to_save.

CALL FUNCTION 'CRM_ORDER_MAINTAIN'

CHANGING

CT_ORDERADM_H = lt_orderadm_h

CT_INPUT_FIELDS = lt_input_fields

CALL FUNCTION 'CRM_ORDER_SAVE'

EXPORTING

IT_OBJECTS_TO_SAVE = lt_objects_to_save

IMPORTING

ET_SAVED_OBJECTS = lt_saved_objects

ET_EXCEPTION = lt_exceptions

ET_OBJECTS_NOT_SAVED = lt_objects_not_saved

Thats it. There are no exceptions and all lt_saved_objects, lt_exceptions and lt_objects_not_saved are empty. but nothing is saved in the orderadm_h table!

Where is the problem in that?

Thanks in advice.

Farid

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 08:34 PM

    solved the problem.

    just keep in mind to commit work after changes. that's all.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 08:35 PM

    commit work

    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.