Skip to Content
author's profile photo
Former Member

problem in update rules

Hi,

I have created update rules for Master Data Objects. If one of the attributes value is null it should not overwrite the previous value in the Master data attribues. I have written code for one filed:

IF COMM_STRUCTURE-/BIC/Z_NAME <> ' '.

RESULT = COMM_STRUCTURE-/BIC/Z_NAME.

RETURNCODE = 0.

ELSE.

  • if the returncode is not equal zero, the result will not be updated

RETURNCODE = 1.

ENDIF.

But its giving error. Even I tried without ELSE code. but it is overwriting the previous values with blanks.

Any ideas how to do this.

Thanks,

Ram

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jul 13, 2004 at 05:43 PM

    Hello Ram,

    in the start routine, read the complete master data table into memory (using RSAU_READ_MASTER_DATA for example) and merge it with the data package using your logic. Then you don't need the routine for the attribute any more.

    Regards,

    Marc Bernard

    SAP NetWeaver RIG, US BI

    Add comment
    10|10000 characters needed characters exceeded

    • Don't delete the complete record in the start routine, just set the one attribute to blank and leave the others as they are.

      Performance should not be an issue if you read the master data table only once (select * into table) and then use the internal table (read table...).

      Regards,

      Marc

      SAP NetWeaver RIG, US BI