ABAP: Release 740 new features

Below is the list of ABAP new commands and syntax available from version 740.

TYPES:
    BEGIN OF ty_tab,
      pernr TYPE persno,
    END OF ty_tab.

  DATA: tab TYPE STANDARD TABLE OF ty_tab.

  DATA wa_tab TYPE ty_tab.

  wa_tab-pernr = '00000001'.
  INSERT wa_tab INTO TABLE tab.

  wa_tab-pernr = '00000002'.
  INSERT wa_tab INTO TABLE tab.

  wa_tab-pernr = '00000003'.
  INSERT wa_tab INTO TABLE tab.

  LOOP AT tab ASSIGNING FIELD-SYMBOL(<tab>) FROM line_index( tab[ pernr = '00000002' ] ) .
    IF <tab> NE '00000002'.
      EXIT.
    ENDIF.
    WRITE: / sy-tabix, <tab>.
  ENDLOOP.

  "Retrieve WA where field meets condition
  DATA(lw_wa) = tab[ pernr = '00000003' ].

  "Retrieve field field meets condition
  DATA(lv_pernr) = tab[ pernr = '00000003' ]-pernr.

  "Update lines with '99999999' where field meets condition.
  tab[ pernr = '00000003' ]-pernr = '99999999'.

Additional links


http://scn.sap.com/docs/DOC-68458

http://zevolving.com/tag/abap-740/

https://scn.sap.com/community/abap/blog/2013/06/22/abap-news-for-release-740–new-internal-table-functions

Podcast: Entrevista com Max Gehringer na Livraria Cultura

Acompanho há anos os artigos, palestras, programas de rádio deste excelente profissional chamado Max Gehringer. Suas dicas de carreira e explicações com linguagem simples, de como funciona o mundo corporativo, ganharam minha admiração. Tive oportunidade de vê-lo por duas vezes pessoalmente. Em uma delas, estava em um vôo de Curitiba a São Paulo. Ao descer do avião, logo na rampa de desembarque, fiquei um pouco nervoso por não ter ideia de sua reação ao ser abordado. Me apresentei, disse que era grande admirador de seu trabalho, e acompanhava sua carreira bem antes de seu quadro a época na tv. Ele foi de uma gentileza enorme. Com um sorriso no rosto, agradeceu o elogio dizendo que foi muito amável da minha parte. Nos despedimos e desejei tudo de bom a ele. Abaixo segue um link para o podcast com sua entrevista em 05/abr/2019, na livraria Cultura, São Paulo, SP.

https://audioglobo.globo.com/cbn/podcast/feed/97/mundo-corporativo?audioId=255123

SAP transactions Related to Authorization

TCODEDESCRIPTIONFUNCTIONAL AREA
PFCGRole MaintenanceBasis – ABAP Authorization and Role Management
SU53Evaluate authorization CheckBasis – User and Authorization Management
SU24Maintain authorization DefaultsBasis – ABAP Authorization and Role Management
RSECADMINManage Analysis authorizationsBW – OLAP Technology
SU21Maintain authorization objectsBasis – User and Authorization Management
ST01System TraceBasis – Low Level Layer
SUIMUser Information SystemBasis – User Information System
RSSMauthorizations for ReportingBW – OLAP Technology
RSD1Characteristic maintenanceBW – Data Basis
SU22Maintain authorization Defaults(SAP)Basis – User and Authorization Management
SU20Maintain authorization FieldsBasis – User and Authorization Management
PA20display HR Master DataPersonnel Mgmt – Personnel Administration
SU02Maintain authorization ProfilesBasis – User and Authorization Management
SU03Maintain authorizationsBasis – User and Authorization Management
SU56Analyze User BufferBasis – User and Authorization Management
OOSBUser (Structural authorization)Basis – Organizational Management
OOACHR: authorization main switchPersonnel Mgmt – Personnel Administration
SU25Upgrade Tool for Profile GeneratorBasis – ABAP Authorization and Role Management
OOSPauthorization ProfilesBasis – Organizational Management
CV03Ndisplay documentCross Application – Document Management System
PFUDUser Master Data ReconciliationBasis – ABAP Authorization and Role Management
RSCSAUTHMaintain/Restore authorization GroupBasis – System Audit Information System
RSCUSTV23BW Customizing – View 21BW – OLAP Technology
CV02NChange DocumentCross Application – Document Management System
RSECAUTHMaintenance of Analysis Auth.BW – OLAP Technology

ABAP program that “speaks” through local desktop speaker

ABAP program to output words through speaker in local desktop.

REPORT  zspeak.

INCLUDE ole2incl.

DATA objectvar1 TYPE ole2_object.
DATA objvoice   TYPE ole2_object.

PARAMETERS strtext TYPE string DEFAULT 'Hey man! Are you crazy?'.

START-OF-SELECTION.

  CREATE OBJECT objvoice 'SAPI.SpVoice'.

  IF strtext IS INITIAL.
    strtext = 'Hey! Hey! I am talking to you, do not do it! do not do it! this is your first warning, please pay attention!'.
  ENDIF.

  CALL METHOD OF objvoice 'Speak' = objectvar1
    EXPORTING #1 = strtext.

  FREE: objvoice,objectvar1.