Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

modify fields

Dear Gurus,

I was trying to modify a KF data field (ODS) with following code to update on itself but the field is not modified apparently.

LOOP at data_package.

data_package-/BIC/KF2 = data_package-/BIC/KF1.

modify data_package transporting /BIC/KF2.


This is in start routine. Subsequently, update rules will aggregate the records. Each record has more than 1 KF as data fields.

The aggregated record (new record) shows the change in field KF2 but the source records are not showing the change as KF2 remains with old values!

Any ideas how this can be explained? Have I missed something?

Should I have used internal data_package ?

What is the difference if I do not use it?

Must I refresh the package?

What is the difference between using the syntax 'transporting' and not using it?

Must I do anything to the other KFs if their values should remain unchanged?

Best Regards,


Former Member

Hi Suzie:

You don't need the Clear statement.

What is does it, it will clear the current line from Work Area. There are times that you need it, not in this case within a loop becasue when the loop goes to new Record, it will overwrite the old record.

Also, it does different tasks depending on where you write it.

This line will add unnecessary additional time. So, don't use it.

Ram Chamarthy.

Message was edited by: Ram Chamarthy

Message was edited by: Ram Chamarthy

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question