Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
marc_schumann
Discoverer
4,332

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.


3 Comments
0 Kudos
Hello

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

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

 

Regards,
Jib
0 Kudos

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.

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