Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

change status

$
0
0

Hi there,

 

Ive been tried to change the status of a order using fm 'CRM_ORDER_MAINTAIN' and then 'BAPI_TRANSACTION_COMMIT'

and finally I use 'CRM_ORDER_SAVE' and once again 'BAPI_TRANSACTION_COMMIT'.

 

My idea is to pass the status
10 to status 20. I shouln' be no problem. Ive configured in the transaction crmbs02 the allowed status.

 

In my function CRM_ORDER_MAINTAIN ive this code:


CALL FUNCTION 'CRM_ORDER_MAINTAIN'
       EXPORTING
         it_customer_h     = lt_customer_h
         it_status         = lt_status_t
       CHANGING
         ct_input_fields   = lt_input_t
       EXCEPTIONS
         error_occurred    = 1
         document_locked   = 2
         no_change_allowed = 3
         no_authority      = 4
         OTHERS            = 5.

 

and in the CRM_ORDER_SAVE ive this code:


CALL FUNCTION 'CRM_ORDER_SAVE'
         EXPORTING
           it_objects_to_save = lt_objects_to_save
           iv_save_frame_log  = abap_true
         IMPORTING
           et_saved_objects   = lt_saved_objects
           et_exception       = lt_exception
         CHANGING
           cv_log_handle      = ls_log_handle
         EXCEPTIONS
           document_not_saved = 1
           OTHERS             = 2.

 

Does anybody know what it could be happend ? because the system lets me change from WEB but not trhoug the FM.

 

Thanks in advante.

 

Regards


Viewing all articles
Browse latest Browse all 7775

Trending Articles