10-13-2008 7:52 AM
Hi,
I am trying to updating LIKP table but its not happening. If the same test data is executed twice the update happens correctly a second time.
I tried using commit work and wait but even then its not happening.
10-13-2008 7:55 AM
Hi
I am not sure, why you are updatig LIKP directly.
This is not a good practice and also SAP will not support for the same.
Pls check, whether any enhancements or user exits available.
In case you want to update during delivery creation.
you can use USEREXIT_MOVE_FIELD_TO_LIKP.
Regards
Madhan
10-13-2008 8:05 AM
Hi madhan,
I have to update the LIKP-BEROT field at the time of picking..So, after picking is done this location has to be updated.
Can you suggest a alternative?
10-13-2008 9:01 AM
Hi
I beleive when you do picking, even the deliver program (SAPMV50A) is triggered.
Try to code in USEREXIT_MOVE_FIELD_TO_LIKP.
When you to update while saving means.
You can try
USEREXIT_SAVE_DOCUMENT_PREPARE.
Modify XLIKP internal table
You can try the above in debug mode, keep the break-points at above User exit sub routines and try to change in debug mode and see whether it works.
Regards
Madhan
10-13-2008 7:56 AM
Hi,
By Update you will be changing the existing record right ?
If you are trying to upload new records it is not the right command. I think you need to wait for some time and check after you execute it for the first time.
Regards,
Pramod
10-13-2008 8:07 AM
I am doing Commit work and wait. Even thats not working. And yes I am updating existing record.
10-13-2008 8:13 AM
10-13-2008 8:57 AM
10-13-2008 8:59 AM
Then the key fields in the where condition did change. How does your update statement look like?
10-13-2008 9:04 AM
This is how i am doing it -
UPDATE likp SET aenam = update_by berot = berot WHERE vbeln = delivery.
IF sy-subrc = 0 .
COMMIT WORK AND WAIT.
endif.
10-13-2008 9:05 AM
This is how i am doing it -
UPDATE likp SET aenam = update_by berot = berot WHERE vbeln = delivery.
IF sy-subrc = 0 .
COMMIT WORK AND WAIT.
endif.
10-13-2008 9:05 AM
This is how i am doing it -
UPDATE likp SET aenam = update_by berot = berot WHERE vbeln = delivery.
IF sy-subrc = 0 .
COMMIT WORK AND WAIT.
endif.
10-13-2008 12:10 PM