Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

modify LIKP

former_member582701
Contributor
0 Likes
2,435

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!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,859

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,859

Hi,

You can write Modify <DBTABLE> syntax.

Regards,

Satish

Read only

former_member386202
Active Contributor
0 Likes
1,859

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

Read only

Former Member
0 Likes
1,859

Hi

U can create a littele BDC program

Max

Read only

Former Member
0 Likes
1,860

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

Read only

0 Likes
1,859

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!

Read only

0 Likes
1,859

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.

Read only

0 Likes
1,859

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!

Read only

0 Likes
1,859

Hi

Have you tried to use the BAPIs BAPI_INB_DELIVERY_SAVEREPLICA or BAPI_OUTB_DELIVERY_SAVEREPLICA

Max