‎2007 Dec 03 11:10 AM
Hi!
I need to modify LIKP-LIFEX with a value.
Are there any function to modify LIKP table? I have the delivery number.
Thank you!
‎2007 Dec 03 11:25 AM
Hi,
Yes there is a Function Module WS_DELIVERY_UPDATE(Check the Import parameters VBKOK_WA-LIFEX), but which is obsolete. So you can directly modify the database table.
Cheers,
Bujji
‎2007 Dec 03 11:17 AM
‎2007 Dec 03 11:19 AM
Hi,
Try like this
&----
*& Form SUB_READ_UPDATE_BSEG
&----
text
----
FORM sub_read_update_bseg.
IF NOT it_final[] IS INITIAL.
LOOP AT it_final INTO wa_final.
UPDATE bseg SET zuonr = wa_final-ccnum
WHERE bukrs EQ wa_final-bukrs
AND belnr EQ wa_final-vbeln
AND rfzei EQ wa_final-rfzei
AND saknr NE ' '.
ENDLOOP.
*--Message data updated successfully
MESSAGE i888 WITH text-002.
LEAVE LIST-PROCESSING.
ELSE.
*--Message No data found
MESSAGE i888 WITH text-003.
LEAVE LIST-PROCESSING.
ENDIF.
ENDFORM. " SUB_READ_UPDATE_BSEG
Regards,
prashant
‎2007 Dec 03 11:24 AM
‎2007 Dec 03 11:25 AM
Hi,
Yes there is a Function Module WS_DELIVERY_UPDATE(Check the Import parameters VBKOK_WA-LIFEX), but which is obsolete. So you can directly modify the database table.
Cheers,
Bujji
‎2007 Dec 03 11:37 AM
How do you know it is obsolete? Are you sure i can modify the table directly?
Although it is obsolete, can i use it?
Thank you!
‎2007 Dec 03 11:48 AM
hey you need not go for Function modules and all.
Write "UPDATE LIKP SET VSTEL = w_vstel where vbeln eq w_vbeln.
That's enough. check subrc to find it is succesful or not.
‎2007 Dec 03 11:58 AM
Hi Jyothi,
Modify standard sap tables with MODUFY, UPDATE or INSERT is not good for the system. You are modifing the table ignoring the relations between sap tables so you can leave an inconsistent system.
So if it is possible you have to use standard functions to modify standard tables.
If WS_DELIVERY_UPDATE is obsolete i am sure that exists another function which do the same.
Thank you all!
‎2007 Dec 03 12:01 PM
Hi
Have you tried to use the BAPIs BAPI_INB_DELIVERY_SAVEREPLICA or BAPI_OUTB_DELIVERY_SAVEREPLICA
Max