Application Development 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: 

load data to one field(bktxt) for the mkpf table

Former Member
0 Kudos

can any one let me know how to load the data for one field (bktxt) to the mkpf table.

do i need to use move or update or insert or modify command,

when i tried to use the modify , it is going to create another record with that field, but i need to load the data for the existing records.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Example:

DATA message_wa TYPE t100.

message_wa-sprsl = 'EN'.

message_wa-arbgb = 'MYMSGCLASS'.

message_wa-msgnr = '100'.

message_wa-text = 'Some new message ...'.

MODIFY t100 FROM message_wa.

Rgds,

Naren

Message was edited by:

Naren Someneni

2 REPLIES 2

Former Member
0 Kudos

hi,

data : wa like mkpf.

select single * from mkpf into wa where ....

if sy-subrc eq 0.

wa-bktxt = value.

modify mkpf from wa.

endif.

Former Member
0 Kudos

Example:

DATA message_wa TYPE t100.

message_wa-sprsl = 'EN'.

message_wa-arbgb = 'MYMSGCLASS'.

message_wa-msgnr = '100'.

message_wa-text = 'Some new message ...'.

MODIFY t100 FROM message_wa.

Rgds,

Naren

Message was edited by:

Naren Someneni