Ir al contenido principal

Entradas

Mostrando las entradas de agosto, 2019

ABAP - Webs para tener en cuenta

A medida que busco y busco en internet, me encuentro con páginas de tutorías excelentes, las voy posteando aquí para que indaguen también: https://www.saplearners.com/home/ https://training.logaligroup.com/ Estaré actualizando esta entrada de blog. Éxitos!

ABAP - Celda de color en ALV OO

Está tan bueno este tuto, que literalmente me lo copio (abajo va la fuente) Dear SAPLearners, in this tutorial we will learn how to color a particular cell in ALV using the factory class CL_SALV_TABLE. In earlier tutorial we have added colors to row in ABAP ALV, c lick here to know how . This is similar to coloring row. Lets see how we can do it. To apply cell color, Create a new column of Type LVC_T_SCOL in your output internal table. Set the above column as Color Column in ALV by using the method  SET_COLUMN_COLOR( ) . Add the color data to the color column based on your requirement. Create a program in SE38 and copy the below code. *&---------------------------------------------------------------------* *& Add color to cell in ALV using factory class * *&---------------------------------------------------------------------* *& www.saplearners.com * *&------------------------

ABAP - Orientación a objetos (Video)

Excelente video didáctico de ABAP OO: Fuente: logaligroup.com/

ABAP - Tabla para parámetros por SM30

Transaccion para SM30 fuente: https://luislokox.wordpress.com/2013/06/05/crear-una-transaccion-para-una-vista-de-actualizacion-sm30-abap/ otros: Fuentes: https://training.logaligroup.com/generador-de-actualizacion-de-tabla/ https://luislokox.wordpress.com/2013/06/05/crear-una-transaccion-para-una-vista-de-actualizacion-sm30-abap/ http://www.mundosap.com/foro/showthread.php?t=28973

ABAP Rangos

TYPES:   tyr_vtweg  TYPE RANGE OF  vtweg . DATA :   lr_vtweg   TYPE  tyr_vtweg ,   rwl_vtweg  TYPE  LINE  OF  tyr_vtweg . * o DATA:    rg_vtweg TYPE RANGE OF  vtweg,     lr_vtweg  LIKE LINE OF   rg_vtweg . CONSTANTS :   cl_i   TYPE  c  LENGTH  1  VALUE  'I' ,   cl_bt  TYPE  c  LENGTH  2  VALUE  'BT' ,   cl_eq  TYPE  c  LENGTH  2  VALUE  'EQ' . * Canal de distribución con valor único   rwl_vtweg - sign    =  cl_i .   rwl_vtweg - option  =  cl_eq .   rwl_vtweg - low     =  'AA' .    APPEND  rwl_vtweg  TO  lr_vtweg . * o * Canal de distribución con rango de valores   rwl_vtweg - sign    =  cl_i .   rwl_vtweg - option  =  cl_bt .   rwl_vtweg - low     =  'A1' .   rwl_vtweg - high    =  'A9' .    APPEND  rwl_vtweg  TO  lr_vtweg .   respecto a  sign ,  puede tomar valores como :    "I" para incluir    "E" para Excluir Option, puede tomar valores como: =, EQ Igual. <>, NE Diferente, no igual. >=, GE M

Regular Expressions - RegExp

Excelente tuto, sobre RegEx, sirve para ABAP también

Link en campo de ALV

OO ALV with hotspot and call transaction OO ALV report with call transaction on hotspot click using CL_SALV_TABLE There was a requirement to display list of materials in an ALV control and put hyperlink(hotspot) to material no, when ever we click on material number, it should call MM03 and directly display material. In this kind of requirement, we need to use below CALL TRANSACTION with parameter id for calling a transaction with parameters. In the below example, we use object oriented techniques to display ALV table and will use events to handle hyperlink click. CLASS CL_SALV_TABLE Step1:  Display ALV using class CL_SALV_TABLE and method DISPLAY() Refer  working with ALV Factory methods  for more details on factory methods TYPES: BEGIN OF ty_mara, matnr TYPE mara-matnr, mtart TYPE mara-mtart, matkl TYPE mara-matkl, END OF ty_mara. DATA: it_mara TYPE TABLE OF ty_mara, wa_mara TYPE ty_mara. DATA: o_alv TYPE REF TO c

Leer hojas dentro de un XLS - ABAP

Me llego un requerimiento, para leer puntualmente una hoja, la tercera, siempre, guarde, donde se guarde el documento xls, hay varios métodos, pero necesitaba algo que sea independiente de alguna copia Z de una función, les paso el código y la fuente. *&---------------------------------------------------------------------* *& Report  ZTEST_SOURAV_EXCEL *& *&---------------------------------------------------------------------* *& Sourav Bhaduri  02 -Dec- 2008 *&---------------------------------------------------------------------*   REPORT  ztest_sourav_excel NO STANDARD PAGE HEADING.   DATA: oref_container   TYPE REF TO cl_gui_custom_container, iref_control     TYPE REF TO i_oi_container_control, iref_document    TYPE REF TO i_oi_document_proxy, iref_spreadsheet TYPE REF TO i_oi_spreadsheet, iref_error       TYPE REF TO i_oi_error.   DATA: v_document_url TYPE c LENGTH  256 , i_sheets TYPE soi_sheets_table, wa_sheet