Skip to Content
Technical Articles
Author's profile photo Marc Schumann

Fix SAPLink regarding message EC473 (SAP note 2159455)

Synopsis

SAPLink, at time of writing this, has a bug which leads to the effects described in SAP note 2159455. This can result in problems, including not being able to edit a GUI status because of message EC473 (Die Definition der Oberfläche &2 ist inkonsistent. Ändern nicht möglich./The definition of interface &2 is inconsistent. Change not possible.).

Root cause

SAPLink omits to transfer the ADM structure.

Solution

Use at your own risk.

Modify SAPLink’s ZSAPLINK_PROGAM class. Method GET_PFSTATUS needs to read the ADM structure and serialize it, and method CREATE_PFSTATUS needs to deserialize it and use it when creating the GUI status.

In detail, make changes like this to method GET_PFSTATUS:

  • Add “DATA: xadm TYPE rsmpe_adm. near the top
  • Add “IMPORTING adm = xadm” to the RS_CUA_INTERNAL_FETCH function module call
  • Add “setattributesfromstructure( node = pfstat_node structure xadm ).” right after the create_element call for pfstat_node

 

Method CREATE_PFSTATUS needs to be changed like this:

  • Add “CALL METHOD getstructurefromattributes EXPORTING node = stat_node CHANGING structure = xadm.” right after the CHECK which ensures that stat_node IS NOT INITIAL

 

Caveats

Both sides need to be patched, export and import. If you import a nugget created by an unpatched SAPLink, the import will fail or result in a broken GUI status. If you import a nugget with an unpatched SAPLink, the result will be a broken GUI status.

Assigned tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Jib Tughlaq
      Jib Tughlaq

      Hello

      I followed the step mentioned, the out come remains same.

      I am trying this in 1709, am I missing something here?

       

      Regards,
      Jib

      Author's profile photo Sanjay Shah
      Sanjay Shah

      Thanks! ZSAPLINK_INSTALLER is still broken though! Any hints on how to fix that, would be a similar fix I presume.

      Edit: NVM, fixed using https://raw.githubusercontent.com/abapGit/build/master/zabapgit.abap as a reference.

      Author's profile photo Erik Thiessen
      Erik Thiessen

      i realize this note is old, but there is a fix oss#2658854 which includes a program to fix the menu status.