cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in using method cl_crm_isu_order_change=>set_date

sapRSH
Explorer
0 Kudos

Hi All,

As part of a development, I need to set a value for some records in table SCAPPTSEG with Appoint type   'CONTSTART',    'ISURQCONTSRT',    'ISUSUPSTART'.

Currently for the same APPL_GUID, ISUSUPSTART is set to a particular date (say 01/30/2014) and 'CONTSTART',    'ISURQCONTSRT',   are set to another date (say 08/05/2014).

So, I wrote the following code (for all the appointment types one by one ) :

    cl_crm_isu_order_change=>set_date(
                    EXPORTING
                      iv_guid        = iv_guid "'68B5999264261EE48AA1FED46FEBCA08'
                      iv_date        = iv_date " '20140130'
                      iv_appt_type   'CONTSTART'
                    EXCEPTIONS
                      error_occurred = 1
                      OTHERS         = 2
                  ).
  IF sy-subrc <> 0.

  ENDIF.

COMMIT WORK AND WAIT.

But does code is not working. The dates remain the same. I have tried debugging this method but couldn't find what's problem.

Could any please guide if I am doing something wrong here ?

Do I need to call any other code before or after this?

Thanks,

Ravi

Accepted Solutions (0)

Answers (1)

Answers (1)

ceedee666
Active Contributor
0 Kudos

Hi Ravi,

which GUID are you using to update the date?

AFAIK you need to provide the item GUID in cl_crm_isu_order_change=>set_date.

Furthermore, are any exceptioms occurring? You are not handling them in the snippet you provided.

Christian

sapRSH
Explorer
0 Kudos

Hi Christian,

Yes I am providing the Item Guid only. Giving any other GUID was resulting in dump.

And I had checked while debugging, the method is not raising any exception. It's executing without problem but not updating the dates and that's what's frustrating.

I am stuck on kinda big development due to not being able to update this date. If anyone could provide any guidance, I would be grateful.