on 08-22-2014 5:06 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.