Improvements on ADT method wizzard
Share

[[{“value”:”

Hello ABAPfreaks out there, 

I raised a ticket at SAP regarding creation of methods using the #ADT wizzard.
During the creation of methods using the Quick Assistant ( Strg + 1 ) parameter types are not correctly computed.

Timo_John1_0-1758531906909.png

Example:

Data: t100 type t100.

“Success Case:
t100-msgnr = any_class_instance->get_msgnr( ). “Methode get_msgnr created using STRG+1 wizzard. Type detected correct

“Error cases – value Statement:
data: t100 type t100.

t100 = value #( msgnr = integra_file_dao->get_msgnr( ) ). “type of returning is not determined -> ANY.
t100 = value t100( msgnr = integra_file_dao->get_msgnr( ) ). “type of returning is also not determined -> ANY.

“Success Case 2

t100 = value t100( msgnr = conv msgnr( integra_file_dao->get_msgnr( ) ) ). ” Typisierung wird auf msgnr erkannt.

 

 

3655122 – ADT improve type determination for quickfix to create method from call

https://me.sap.com/notes/0003655122

Note is available for:

Support Package

 Software Component VersionSupport Package 
  SAP_BASIS 754 SAPK-75413INSAPBASIS  
  SAP_BASIS 755 SAPK-75511INSAPBASIS  
  SAP_BASIS 756 SAPK-75609INSAPBASIS  
  SAP_BASIS 757 SAPK-75707INSAPBASIS  
  SAP_BASIS 758 SAPK-75805INSAPBASIS  
  SAP_BASIS 816 SAPK-81601INSAPBASIS

 

Enjoy better coding experience! 
Best Timo

“}]] 

  Read More Technology Blog Posts by Members articles 

#abap

By ali