<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2845943354929345880</id><updated>2024-08-29T15:00:37.285-07:00</updated><category term="abap"/><category term="transaccion"/><category term="tablas"/><category term="MM"/><category term="SD"/><category term="archivos"/><category term="screen"/><category term="FI"/><category term="sonido"/><title type='text'>ABAP Adventure</title><subtitle type='html'>Código ABAP y transacciones SAP utiles para sobrevivir en el mundo moderno</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://abapadventure.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-5780612004521795800</id><published>2012-09-30T11:05:00.002-07:00</published><updated>2012-09-30T11:05:47.573-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><category scheme="http://www.blogger.com/atom/ns#" term="tablas"/><title type='text'>Bloquear una tabla completa</title><content type='html'>&lt;br /&gt;
Para bloquear todos los registros de una tabla utilizar:&lt;br /&gt;
&lt;br /&gt;
CALL FUNCTION&#39;ENQUEUE_E_TABLE&#39;&lt;br /&gt;
EXPORTING&lt;br /&gt;
&amp;nbsp; MODE_RSTABLE =&#39;E&#39;&lt;br /&gt;
&amp;nbsp; TABNAME =&#39;ZNOMBRETABLA&#39;&lt;br /&gt;
* VARKEY =&lt;br /&gt;
* X_TABNAME = &#39; &#39;&lt;br /&gt;
* X_VARKEY = &#39; &#39;&lt;br /&gt;
* _SCOPE = &#39;2&#39;&lt;br /&gt;
* _WAIT = &#39; &#39;&lt;br /&gt;
* _COLLECT = &#39; &#39;&lt;br /&gt;
&amp;nbsp;EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp;FOREIGN_LOCK = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp;SYSTEM_FAILURE = 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp;OTHERS = 3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;br /&gt;
IF sy-subrc = 0.&lt;br /&gt;
&amp;nbsp;WRITE: &#39;Lock table successfully!&#39;.&lt;br /&gt;
&amp;nbsp;else.&lt;br /&gt;
&amp;nbsp; write: &#39;Failed&#39;.&lt;br /&gt;
ENDIF.&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/5780612004521795800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/5780612004521795800'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/bloquear-una-tabla-completa.html' title='Bloquear una tabla completa'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-1546970242817376238</id><published>2012-09-30T11:04:00.002-07:00</published><updated>2012-09-30T11:04:47.214-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><category scheme="http://www.blogger.com/atom/ns#" term="SD"/><category scheme="http://www.blogger.com/atom/ns#" term="tablas"/><title type='text'>Bloquear un registro de tabla VBAK</title><content type='html'>&lt;br /&gt;
* Bloquea un registro de tabla VBAK&lt;br /&gt;
&amp;nbsp; CALL FUNCTION &#39;ENQUEUE_EVVBAKE&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mode_vbak &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39;E&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mandt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= sy-mandt&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; vbeln &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= p_vbeln&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; x_vbeln &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39; &#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; _scope &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = &#39;2&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; _wait &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39; &#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; _collect &amp;nbsp; &amp;nbsp; &amp;nbsp; = &#39; &#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; foreign_lock &amp;nbsp; = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; system_failure = 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Desbloquea un registro de tabla VBAK&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CALL FUNCTION &#39;DEQUEUE_EVVBAKE&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mode_vbak = &#39;E&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mandt &amp;nbsp; &amp;nbsp; = sy-mandt&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vbeln &amp;nbsp; &amp;nbsp; = p_vbeln&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x_vbeln &amp;nbsp; = &#39; &#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _scope &amp;nbsp; &amp;nbsp;= &#39;3&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _synchron = &#39; &#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _collect &amp;nbsp;= &#39; &#39;.&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/1546970242817376238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/1546970242817376238'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/bloquear-un-registro-de-tabla-vbak.html' title='Bloquear un registro de tabla VBAK'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-1098316540720431816</id><published>2012-09-30T11:03:00.007-07:00</published><updated>2012-09-30T11:03:53.069-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Llamar a función en background</title><content type='html'>&lt;br /&gt;
Para llamar a función en background.&lt;br /&gt;
&lt;br /&gt;
data: w_tid &amp;nbsp;TYPE arfctid,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; w_fnum TYPE qretstate-qrfnum.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; CALL FUNCTION &#39;ZNOMBREFUNCION&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IN BACKGROUND TASK&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i_incentivo = w_incentivo&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i_inc_act &amp;nbsp; = p_act1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i_archivo &amp;nbsp; = p_file&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TABLES&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t_vbak &amp;nbsp; &amp;nbsp; &amp;nbsp;= t_vbak_back&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t_vbak_agru = t_vbak_agru_back&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t_liq &amp;nbsp; &amp;nbsp; &amp;nbsp; = u_liq_back.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; CALL FUNCTION &#39;START_OF_BACKGROUNDTASK&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; startdate = sy-datum&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; starttime = sy-uzeit.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; CALL FUNCTION &#39;ID_OF_BACKGROUNDTASK&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IMPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tid &amp;nbsp;= w_tid&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fnum = w_fnum.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; IF sy-subrc EQ 0.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COMMIT WORK.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
Y en los atributos de la función, Módulo de acceso remoto y inicio inmediato&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/1098316540720431816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/1098316540720431816'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/llamar-funcion-en-background.html' title='Llamar a función en background'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-6245079247207016505</id><published>2012-09-30T11:02:00.001-07:00</published><updated>2012-09-30T11:02:42.066-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Mensajes de error varios en una pantalla</title><content type='html'>&lt;br /&gt;
data:&lt;br /&gt;
e_log &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TYPE bapiret2,&lt;br /&gt;
t_log &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TYPE bapiret2tab,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; CLEAR e_log.&lt;br /&gt;
&amp;nbsp; e_log-type &amp;nbsp; &amp;nbsp;= &#39;S&#39;.&lt;br /&gt;
&amp;nbsp; e_log-id &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39;ZZZZZ&#39;.&lt;br /&gt;
&amp;nbsp; e_log-number &amp;nbsp;= 437.&lt;br /&gt;
&amp;nbsp; APPEND e_log TO t_log.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; CALL FUNCTION &#39;SUSR_DISPLAY_LOG&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; display_in_popup = abap_true&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; log_title &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= text-002&lt;br /&gt;
&amp;nbsp; &amp;nbsp; TABLES&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; it_log_bapiret2 &amp;nbsp;= t_log[]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; parameter_error &amp;nbsp;= 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 2.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; IF NOT sy-subrc IS INITIAL.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;br /&gt;
&amp;nbsp; ENDIF.&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/6245079247207016505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/6245079247207016505'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/mensajes-de-error-varios-en-una-pantalla.html' title='Mensajes de error varios en una pantalla'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-632515902642391454</id><published>2012-09-30T11:01:00.003-07:00</published><updated>2012-09-30T11:01:20.244-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>2 checkbox en una misma línea</title><content type='html'>&lt;br /&gt;
SELECTION-SCREEN BEGIN OF LINE.&lt;br /&gt;
SELECTION-SCREEN: COMMENT 23(22) text-062,&amp;nbsp;POSITION 20.&lt;br /&gt;
PARAMETERS: v_cm_mod AS CHECKBOX.&lt;br /&gt;
&lt;br /&gt;
SELECTION-SCREEN: COMMENT 53(24) text-063,&amp;nbsp;POSITION 50.&lt;br /&gt;
PARAMETERS: v_cm_sld AS CHECKBOX.&lt;br /&gt;
SELECTION-SCREEN END OF LINE.&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/632515902642391454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/632515902642391454'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/2-checkbox-en-una-misma-linea.html' title='2 checkbox en una misma línea'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-3350857436603793235</id><published>2012-09-30T10:59:00.002-07:00</published><updated>2012-10-07T20:19:16.502-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Caja de texto en dynpro</title><content type='html'>&lt;br /&gt;
Crear custom control en dynpro&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;TYPES: BEGIN OF tp_text,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; line TYPE c LENGTH 120,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; END OF tp_text.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
data:&lt;br /&gt;
v_container_104_1 &amp;nbsp;TYPE REF TO cl_gui_custom_container,&lt;br /&gt;
&lt;br /&gt;
v_ccontrol_104_1 &amp;nbsp; TYPE scrfname VALUE &#39;CCCOMENTARIOS&#39;,&lt;br /&gt;
v_texto &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TYPE REF TO cl_gui_textedit,&lt;br /&gt;
t_text &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TYPE tp_ttext,&lt;br /&gt;
tp_ttext &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TYPE STANDARD TABLE OF tp_text.&lt;br /&gt;
&lt;br /&gt;
EN PAI:&lt;br /&gt;
FORM f_crea_contenedor_texto .&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; DATA lw_line_length TYPE i VALUE 120.&lt;br /&gt;
&lt;br /&gt;
* Crea contenedor y lo asocia con la DYNPRO&lt;br /&gt;
&amp;nbsp; CREATE OBJECT v_container_104_1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; container_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= v_ccontrol_104_1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; cntl_error &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; cntl_system_error &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; create_error &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; lifetime_error &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; lifetime_dynpro_dynpro_link = 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 6.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; IF NOT sy-subrc IS INITIAL.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; MESSAGE ID sy-msgid TYPE &#39;I&#39; NUMBER sy-msgno&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;br /&gt;
&amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
*$ Crea &amp;nbsp;el Objeto EDITOR&lt;br /&gt;
&amp;nbsp; CREATE OBJECT v_texto&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; wordwrap_mode &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; wordwrap_position &amp;nbsp; &amp;nbsp; &amp;nbsp;= lw_line_length&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; parent &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = v_container_104_1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; error_cntl_create &amp;nbsp; &amp;nbsp; &amp;nbsp;= 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; error_cntl_init &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; error_cntl_link &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; error_dp_create &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; gui_type_not_supported = 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 6.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; IF NOT sy-subrc IS INITIAL.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; MESSAGE ID sy-msgid TYPE &#39;I&#39; NUMBER sy-msgno&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;br /&gt;
&amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; IF v_actvt = &#39;03&#39; AND v_edit IS INITIAL.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CALL METHOD v_texto-&amp;gt;set_readonly_mode&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; readonly_mode &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39;1&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error_cntl_call_method = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; invalid_parameter &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2.&lt;br /&gt;
&amp;nbsp; ELSE.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CALL METHOD v_texto-&amp;gt;set_readonly_mode&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; readonly_mode &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39;0&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error_cntl_call_method = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; invalid_parameter &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2.&lt;br /&gt;
&amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; CALL METHOD v_texto-&amp;gt;set_toolbar_mode&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; toolbar_mode &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = cl_gui_textedit=&amp;gt;false&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; error_cntl_call_method = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; invalid_parameter &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 3.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; CALL METHOD v_texto-&amp;gt;set_statusbar_mode&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; statusbar_mode &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = cl_gui_textedit=&amp;gt;false&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; error_cntl_call_method = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; invalid_parameter &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ENDFORM. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot; f_crea_contenedor_texto&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
EN PBO: fuera de todo&lt;br /&gt;
MODULE rescata_comentarios INPUT.&lt;br /&gt;
&amp;nbsp; CHECK sy-ucomm NE &#39;YPR9_NO&#39;. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; IF NOT v_texto IS INITIAL. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PERFORM f_rescata_dd_dynpro.&lt;br /&gt;
&amp;nbsp; ENDIF. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
ENDMODULE. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot; rescata_comentarios &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FORM f_rescata_dd_dynpro .&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; DATA: u_text TYPE tp_ttext,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; w_true TYPE i.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; CLEAR u_text[].&lt;br /&gt;
&amp;nbsp; w_true = 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; CALL METHOD v_texto-&amp;gt;get_text_as_r3table&lt;br /&gt;
&amp;nbsp; &amp;nbsp; IMPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; table &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= u_text&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; error_dp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; error_cntl_call_method = 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; error_dp_create &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; potential_data_loss &amp;nbsp; &amp;nbsp;= 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 5.&lt;br /&gt;
&amp;nbsp; .&lt;br /&gt;
&amp;nbsp; IF NOT sy-subrc IS INITIAL.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;br /&gt;
&amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; t_text[] = u_text[].&lt;br /&gt;
&lt;br /&gt;
ENDFORM. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot; f_rescata_dd_dynpro&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
FORM f_recupera_comentarios .&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; TYPES: tp_lines TYPE STANDARD TABLE OF tline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; DATA: w_name &amp;nbsp;TYPE tdobname,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; u_line &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TYPE tp_lines,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x_line &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TYPE tline,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x_line_txt &amp;nbsp; &amp;nbsp;TYPE tp_text.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; w_name = v_vbeln.&lt;br /&gt;
&lt;br /&gt;
* Rescata comentarios&lt;br /&gt;
&amp;nbsp; CALL FUNCTION &#39;READ_TEXT&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= c_0002&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; language &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= c_s&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= w_name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; object &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= c_vbbk&lt;br /&gt;
&amp;nbsp; &amp;nbsp; TABLES&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; lines &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = u_line&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; language &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; not_found &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; object &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; reference_check &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 6&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; wrong_access_to_archive = 7&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 8.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; IF sy-subrc IS INITIAL.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; LOOP AT u_line INTO x_line.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; x_line_txt-line &amp;nbsp; &amp;nbsp; &amp;nbsp;= x_line-tdline.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; APPEND x_line_txt TO t_text.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; CLEAR &amp;nbsp;x_line_txt.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ENDLOOP.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
* Mueve el texto al Objeto Editor&lt;br /&gt;
&amp;nbsp; IF NOT t_text[] IS INITIAL.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; IF v_vehiculo_rasa = abap_true.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; CALL METHOD v_texto-&amp;gt;set_enable&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; enable &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= abap_false&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cntl_error &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cntl_system_error = 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; IF NOT sy-subrc IS INITIAL.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CALL METHOD v_texto-&amp;gt;set_text_as_stream&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; text &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= t_text&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error_dp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error_dp_create = 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; IF NOT sy-subrc IS INITIAL.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; sy-msgv3 sy-msgv4.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
ENDFORM. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot; f_recupera_comentarios&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/3350857436603793235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/3350857436603793235'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/caja-de-texto-en-dynpro.html' title='Caja de texto en dynpro'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-4137582241901624327</id><published>2012-09-30T10:58:00.002-07:00</published><updated>2012-09-30T10:58:41.168-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Día laboral próximo</title><content type='html'>&lt;br /&gt;
&amp;nbsp; CALL FUNCTION &#39;BKK_GET_NEXT_WORKDAY&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; i_date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = p_fecha&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; i_calendar1 &amp;nbsp; &amp;nbsp;= &#39;SI&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; IMPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; e_workday &amp;nbsp; &amp;nbsp; &amp;nbsp;= p_vto&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; calendar_error = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 2.&lt;br /&gt;
&amp;nbsp; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;br /&gt;
&amp;nbsp; ENDIF.&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/4137582241901624327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/4137582241901624327'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/dia-laboral-proximo.html' title='Día laboral próximo'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-9164407385742415567</id><published>2012-09-30T10:57:00.005-07:00</published><updated>2012-09-30T10:57:54.306-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><category scheme="http://www.blogger.com/atom/ns#" term="transaccion"/><title type='text'>Averiguar en que transacción estamos</title><content type='html'>&lt;br /&gt;
DATA w_dynpro TYPE sy-tcode.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; CALL METHOD cl_dynpro=&amp;gt;get_current_transaction&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RECEIVING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; transaction_name = w_dynpro.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; LEAVE TO TRANSACTION w_dynpro.&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/9164407385742415567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/9164407385742415567'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/averiguar-en-que-transaccion-estamos.html' title='Averiguar en que transacción estamos'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-8190218994483902016</id><published>2012-09-30T10:57:00.001-07:00</published><updated>2012-09-30T10:57:11.288-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Crear un List box en pantalla</title><content type='html'>&lt;br /&gt;
Para crear un list box en selection screen:&lt;br /&gt;
&lt;br /&gt;
PARAMETERS: p_day TYPE char4 AS LISTBOX VISIBLE LENGTH 6 OBLIGATORY.&lt;br /&gt;
&lt;br /&gt;
TYPE-POOLS: vrm.&lt;br /&gt;
DATA: l_sid TYPE &amp;nbsp;vrm_id,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; l_i_val TYPE vrm_values,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; l_val LIKE LINE OF l_i_val.&lt;br /&gt;
&lt;br /&gt;
INITIALIZATION.&lt;br /&gt;
&amp;nbsp; l_sid = &#39;p_day&#39;.&lt;br /&gt;
&amp;nbsp; l_val-key = &#39;0&#39;.&lt;br /&gt;
&amp;nbsp; l_val-text = &#39;SUN&#39;.&lt;br /&gt;
&amp;nbsp; APPEND l_val TO l_i_val.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; l_val-key = &#39;1&#39;.&lt;br /&gt;
&amp;nbsp; l_val-text = &#39;MON&#39;.&lt;br /&gt;
&amp;nbsp; APPEND l_val TO l_i_val.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; l_val-key = &#39;2&#39;.&lt;br /&gt;
&amp;nbsp; l_val-text = &#39;TUE&#39;.&lt;br /&gt;
&amp;nbsp; APPEND l_val TO l_i_val.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; CALL FUNCTION &#39;VRM_SET_VALUES&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= l_sid&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; values &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= l_i_val&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; id_illegal_name = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2.&lt;br /&gt;
&amp;nbsp; IF sy-subrc = 0.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------&lt;br /&gt;
Para crear un list box en una dynpro:&lt;br /&gt;
&lt;br /&gt;
THE TOP INCLUDE:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TYPES: begin of stru_t161t,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BSTYP type t161t-BSTYP,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BSART type t161t-BSART,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BATXT type BATXT,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end of stru_t161t.&lt;br /&gt;
&lt;br /&gt;
types : BEGIN OF STRU_TEXT, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;STRUCTURE FOR FUNCTION MODULE&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;KEY(40) TYPE C, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot; FOR DROPDOWN BOX&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEXT(80) TYPE C,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; END OF STRU_TEXT.&lt;br /&gt;
&lt;br /&gt;
data : it_t161t type TABLE OF stru_t161t,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wa_t161t type stru_t161t,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; it_text type &amp;nbsp;TABLE OF STRU_TEXT,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wa_text type STRU_TEXT.&lt;br /&gt;
&lt;br /&gt;
IN THE PBO:&lt;br /&gt;
MODULE STATUS_1000 OUTPUT.&lt;br /&gt;
SELECT&lt;br /&gt;
&amp;nbsp; &amp;nbsp;BSTYP&lt;br /&gt;
&amp;nbsp; &amp;nbsp;BSART&lt;br /&gt;
&amp;nbsp; &amp;nbsp;BATXT&lt;br /&gt;
&amp;nbsp; into table it_t161t&lt;br /&gt;
&amp;nbsp; from t161t&lt;br /&gt;
&amp;nbsp; where bstyp = &#39;B&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; and SPRAS = &#39;E&#39;.&lt;br /&gt;
&lt;br /&gt;
clear wa_text.&lt;br /&gt;
refresh it_text.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; loop at it_t161t into wa_t161t.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;move wa_t161t-bsart to wa_text-key.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;move wa_t161t-batxt to wa_text-text.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; append wa_text to it_text.&lt;br /&gt;
&amp;nbsp; endloop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; CALL FUNCTION &#39;VRM_SET_VALUES&#39;&lt;br /&gt;
&amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39;V_DRPDWN&#39; &amp;nbsp;&quot;&#39;V_DRPDWN&#39; is the screen name of the dropdown field&lt;br /&gt;
&amp;nbsp; &amp;nbsp; VALUES &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= it_text&lt;br /&gt;
EXCEPTIONS&lt;br /&gt;
&amp;nbsp; ID_ILLEGAL_NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; = 1&lt;br /&gt;
&amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;br /&gt;
IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;br /&gt;
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;br /&gt;
ENDIF.&lt;br /&gt;
ENDMODULE. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot; STATUS_1000 &amp;nbsp;OUTPUT&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/8190218994483902016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/8190218994483902016'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/crear-un-list-box-en-pantalla.html' title='Crear un List box en pantalla'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-1399768277998694116</id><published>2012-09-30T10:55:00.002-07:00</published><updated>2012-09-30T10:55:09.333-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SD"/><category scheme="http://www.blogger.com/atom/ns#" term="tablas"/><title type='text'>Modificaciones en un documento buscarlas por tablas</title><content type='html'>&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT SINGLE changenr&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; INTO w_changenr&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; FROM cdhdr&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE objectclas = &#39;VERKBELEG&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND objectid &amp;nbsp; = v_salesdocu &quot;Numero de documento&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND udate &amp;nbsp; &amp;nbsp; &amp;nbsp;= v_zfech_reg. &quot;Fecha&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT SINGLE value_old&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; INTO w_contract_header_in-ord_reason&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; FROM cdpos&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE objectclas = &#39;VERKBELEG&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND objectid &amp;nbsp; = v_salesdocu&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND changenr &amp;nbsp; = w_changenr&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND fname &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39;AUGRU&#39;. &quot;Campo a buscar&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/1399768277998694116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/1399768277998694116'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/modificaciones-en-un-documento.html' title='Modificaciones en un documento buscarlas por tablas'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-1668307925855660605</id><published>2012-09-30T10:54:00.000-07:00</published><updated>2012-09-30T10:54:01.168-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SD"/><category scheme="http://www.blogger.com/atom/ns#" term="tablas"/><title type='text'>Interlocutores de un documento</title><content type='html'>&lt;br /&gt;
Para obtener el interlocutor de un documento, acceder a la tabla VBPA.&lt;br /&gt;
Ejemplo:&lt;br /&gt;
&amp;nbsp; SELECT SINGLE kunnr&lt;br /&gt;
&amp;nbsp; &amp;nbsp; INTO w_kunnr&lt;br /&gt;
&amp;nbsp; &amp;nbsp; FROM vbpa&lt;br /&gt;
&amp;nbsp; &amp;nbsp;WHERE vbeln EQ v_doc_number&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;AND parvw EQ &#39;AG&#39;.&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/1668307925855660605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/1668307925855660605'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/interlocutores-de-un-documento.html' title='Interlocutores de un documento'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-6168097319418450473</id><published>2012-09-30T10:52:00.002-07:00</published><updated>2012-09-30T10:52:45.209-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Crear un ENTER en tiempo de ejecución</title><content type='html'>&lt;br /&gt;
&amp;nbsp; CALL FUNCTION &#39;SAPGUI_SET_FUNCTIONCODE&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; functioncode &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = &#39;=/00&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; function_not_supported = 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 0.&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/6168097319418450473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/6168097319418450473'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/crear-un-enter-en-tiempo-de-ejecucion.html' title='Crear un ENTER en tiempo de ejecución'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-47924153789611090</id><published>2012-09-30T10:51:00.004-07:00</published><updated>2012-09-30T10:51:52.460-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Radiobuttons en un ALV</title><content type='html'>&lt;br /&gt;
Para utilizar radiobuttons en un alv, se puede mostrar en una celda de ALV el dibujo de un radiobutton como icono y capturar cuando se presiona sobre el para cambiarlo por el icono del radiobutton presionado.&lt;br /&gt;
Ejemplo:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
INCLUDE &amp;lt;icons&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
DATA: BEGIN OF it_alv_flight OCCURS 0,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;carrid TYPE sflight-carrid,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;connid TYPE sflight-connid,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;radio1(4), &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;Radio button&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;radio2(4),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; END OF it_alv_flight.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En fieldcat:&lt;br /&gt;
wa_fcat-fieldname = &#39;RADIO2&#39;.&lt;br /&gt;
wa_fcat-tabname = &#39;IT_ALV_FLIGHT&#39;.&lt;br /&gt;
wa_fcat-seltext_l = &#39;RADIO2&#39;.&lt;br /&gt;
&amp;nbsp; x_fieldcat-edit &amp;nbsp; &amp;nbsp; &amp;nbsp;= c_x.&lt;br /&gt;
&amp;nbsp; x_fieldcat-icon &amp;nbsp; &amp;nbsp; &amp;nbsp;= c_x.&lt;br /&gt;
&amp;nbsp; x_fieldcat-hotspot &amp;nbsp; = c_x.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A la celda asignarle de valor inicial:&lt;br /&gt;
x_alv-pedidos = icon_wd_radio_button_empty. &quot;Radio no seleccionado&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
en creación de alv definir el evento:&lt;br /&gt;
&amp;nbsp; SET HANDLER lcl_event_receiver=&amp;gt;hotspot_click&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FOR og_grid1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CLASS lcl_eventhandler DEFINITION.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; PUBLIC SECTION.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CLASS-DATA:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; md_cnt &amp;nbsp; &amp;nbsp;TYPE i.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CLASS-METHODS:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IMPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e_row_id&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e_column_id&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; es_row_no&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sender.&lt;br /&gt;
&lt;br /&gt;
ENDCLASS. &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CLASS lcl_eventhandler IMPLEMENTATION.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; METHOD handle_hotspot_click.&lt;br /&gt;
* define local data&lt;br /&gt;
&amp;nbsp; &amp;nbsp; FIELD-SYMBOLS:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ls_entry&amp;gt; &amp;nbsp; &amp;nbsp;TYPE ty_s_sflight,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ld_fld&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;TYPE ANY.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; READ TABLE gt_sflight ASSIGNING &amp;lt;ls_entry&amp;gt; INDEX es_row_no-row_id.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CHECK ( &amp;lt;ls_entry&amp;gt; IS ASSIGNED ).&lt;br /&gt;
&lt;br /&gt;
* &amp;nbsp; Set all radio buttons &quot;unselected&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;ls_entry&amp;gt;-button1 = &amp;nbsp;icon_wd_radio_button_empty.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;ls_entry&amp;gt;-button2 = &amp;nbsp;icon_wd_radio_button_empty.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;ls_entry&amp;gt;-button3 = &amp;nbsp;icon_wd_radio_button_empty.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;ls_entry&amp;gt;-button4 = &amp;nbsp;icon_wd_radio_button_empty.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ASSIGN COMPONENT e_column_id-fieldname OF STRUCTURE &amp;lt;ls_entry&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TO &amp;lt;ld_fld&amp;gt;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; IF ( &amp;lt;ld_fld&amp;gt; IS ASSIGNED ).&lt;br /&gt;
* &amp;nbsp; &amp;nbsp; Set selected radio button &quot;selected&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ld_fld&amp;gt; = icon_wd_radio_button.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ENDIF.&lt;br /&gt;
&lt;br /&gt;
* &amp;nbsp; Force PAI followed by refresh of table display in PBO&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new_code = &#39;DUMMY&#39;&lt;br /&gt;
* &amp;nbsp; &amp;nbsp; &amp;nbsp;IMPORTING&lt;br /&gt;
* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RC &amp;nbsp; &amp;nbsp; &amp;nbsp; =&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; ENDMETHOD. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;handle_hotspot_click&lt;br /&gt;
&lt;br /&gt;
ENDCLASS. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;lcl_eventhandler IMPLEMENTATION&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/47924153789611090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/47924153789611090'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/radiobuttons-en-un-alv.html' title='Radiobuttons en un ALV'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-5225855158082068374</id><published>2012-09-30T10:49:00.003-07:00</published><updated>2012-09-30T10:49:26.672-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Smartform signo de número a izquierda</title><content type='html'>Dentro de un smartform si queremos mostrar el signo de un número a la izquierda, en la ventana al momento de mostrar una variable utilizar:&lt;br /&gt;
&amp;amp;variable(&amp;lt;)&amp;amp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/5225855158082068374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/5225855158082068374'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/smartform-signo-de-numero-izquierda.html' title='Smartform signo de número a izquierda'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-3224281969911455631</id><published>2012-09-30T10:47:00.002-07:00</published><updated>2012-09-30T10:47:53.908-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Cantidad de caracteres de un string</title><content type='html'>Para obtener la cantidad de caracteres de un string utilizar:&lt;br /&gt;
&lt;br /&gt;
data: v_cantidad type i,&lt;br /&gt;
v_texto(50) type c.&lt;br /&gt;
v_texto = &#39;Hola mundo&#39;.&lt;br /&gt;
&lt;br /&gt;
v_cantidad = STRLEN( v_texto ).&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/3224281969911455631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/3224281969911455631'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/cantidad-de-caracteres-de-un-string.html' title='Cantidad de caracteres de un string'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-7036541605344369713</id><published>2012-09-30T10:45:00.003-07:00</published><updated>2012-09-30T10:45:51.285-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>SAVE_TEXT y CREATE_TEXT</title><content type='html'>&lt;br /&gt;
Ejemplo de utilización de grabación de texto standard, si ya existe el texto utiliza la función save_text para modificarlo, si no existe utiliza la función create_text para crearlo.&lt;br /&gt;
&lt;br /&gt;
FORM f_guarda_comentarios.&lt;br /&gt;
&amp;nbsp; DATA: u_line &amp;nbsp; TYPE STANDARD TABLE OF tline,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; u_line_aux TYPE STANDARD TABLE OF tline,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x_line &amp;nbsp; TYPE tline,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x_text &amp;nbsp; TYPE tp_text,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x_header TYPE thead,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; w_name &amp;nbsp; TYPE tdobname.&lt;br /&gt;
&amp;nbsp; CHECK NOT t_text[] IS INITIAL.&lt;br /&gt;
&amp;nbsp; REFRESH u_line.&lt;br /&gt;
&amp;nbsp; LOOP AT t_text INTO x_text.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CLEAR x_line.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; x_line-tdline = x_text-line.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; APPEND x_line TO u_line.&lt;br /&gt;
&amp;nbsp; ENDLOOP.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; CHECK NOT u_line[] IS INITIAL.&lt;br /&gt;
&amp;nbsp; CHECK NOT v_vbeln IS INITIAL.&lt;br /&gt;
&lt;br /&gt;
* Busca si ya existe el texto&lt;br /&gt;
&amp;nbsp; w_name = v_vbeln.&lt;br /&gt;
&lt;br /&gt;
* Rescata comentarios&lt;br /&gt;
&amp;nbsp; CALL FUNCTION &#39;READ_TEXT&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39;0002&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; language &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39;S&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= w_name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; object &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39;VBBK&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; TABLES&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; lines &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = u_line_aux&lt;br /&gt;
&amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; language &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; not_found &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; object &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; reference_check &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 6&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; wrong_access_to_archive = 7&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 8.&lt;br /&gt;
&amp;nbsp; IF sy-subrc NE 0.&lt;br /&gt;
* Crea texto&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CALL FUNCTION &#39;CREATE_TEXT&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fid &amp;nbsp; &amp;nbsp; &amp;nbsp; = &#39;0002&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flanguage = sy-langu&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fname &amp;nbsp; &amp;nbsp; = w_name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fobject &amp;nbsp; = &#39;VBBK&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; TABLES&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flines &amp;nbsp; &amp;nbsp;= u_line&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no_init &amp;nbsp; = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no_save &amp;nbsp; = 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp;= 3.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; IF sy-subrc NE 0.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXIT.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ENDIF.&lt;br /&gt;
&amp;nbsp; ELSE.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CLEAR x_header.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; x_header-tdname = w_name.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; x_header-tdid = &#39;0002&#39;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; x_header-tdspras = sy-langu.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; x_header-tdobject = &#39;VBBK&#39;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; x_header-mandt = sy-mandt.&lt;br /&gt;
&lt;br /&gt;
* Guarda texto&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CALL FUNCTION &#39;SAVE_TEXT&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; client &amp;nbsp; = sy-mandt&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; header &amp;nbsp; = x_header&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; savemode_direct = &#39;X&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; TABLES&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lines &amp;nbsp; &amp;nbsp;= u_line&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXCEPTIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id &amp;nbsp; &amp;nbsp; &amp;nbsp; = 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; language = 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name &amp;nbsp; &amp;nbsp; = 3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object &amp;nbsp; = 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OTHERS &amp;nbsp; = 5.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; EXIT.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ENDIF.&lt;br /&gt;
&amp;nbsp; ENDIF.&lt;br /&gt;
&amp;nbsp; CALL FUNCTION &#39;COMMIT_TEXT&#39;.&lt;br /&gt;
ENDFORM. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot; F_GUARDA_COMENTARIOS&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/7036541605344369713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/7036541605344369713'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/savetext-y-createtext.html' title='SAVE_TEXT y CREATE_TEXT'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-2596625463483367227</id><published>2012-09-30T10:42:00.001-07:00</published><updated>2012-09-30T10:42:12.376-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Obtener el nombre de los meses</title><content type='html'>&lt;br /&gt;
Para obtener el listado de nombres de los meses utilizar la función:&lt;br /&gt;
CALL FUNCTION &#39;MONTH_NAMES_GET&#39;&lt;br /&gt;
&amp;nbsp;EXPORTING&lt;br /&gt;
&amp;nbsp; &amp;nbsp;language &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= sy-langu&lt;br /&gt;
* IMPORTING&lt;br /&gt;
* &amp;nbsp; RETURN_CODE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&lt;br /&gt;
&amp;nbsp; TABLES&lt;br /&gt;
&amp;nbsp; &amp;nbsp; month_names &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = t_month&lt;br /&gt;
* EXCEPTIONS&lt;br /&gt;
* &amp;nbsp; MONTH_NAMES_NOT_FOUND &amp;nbsp; &amp;nbsp; &amp;nbsp; = 1&lt;br /&gt;
* &amp;nbsp; OTHERS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;br /&gt;
IF sy-subrc &amp;lt;&amp;gt; 0.&lt;br /&gt;
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;br /&gt;
* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;br /&gt;
ENDIF.&lt;br /&gt;
&lt;br /&gt;
en la tabla interna t_month obtendremos el listado completo de los meses en el idioma sy-langu.&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/2596625463483367227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/2596625463483367227'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/obtener-el-nombre-de-los-meses.html' title='Obtener el nombre de los meses'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-9016895790706905241</id><published>2012-09-30T10:36:00.000-07:00</published><updated>2012-09-30T10:36:07.810-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>Signo menos a la izquierda</title><content type='html'>Para mover el signo menos de un número a la izquierda (ya que SAP utiliza por defecto el signo a la derecha). Utilizar la función:&lt;br /&gt;
&lt;br /&gt;
CALL FUNCTION &#39;CLOI_PUT_SIGN_IN_FRONT&#39;&lt;br /&gt;
&amp;nbsp; CHANGING&lt;br /&gt;
&amp;nbsp; &amp;nbsp; value = p_amount.&lt;br /&gt;
(donde&amp;nbsp;p_amount es la variable que contiene el número con el signo que queremos modificar).&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/9016895790706905241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/9016895790706905241'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/09/signo-menos-la-izquierda.html' title='Signo menos a la izquierda'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-3230804586788857215</id><published>2012-05-25T19:30:00.002-07:00</published><updated>2012-05-25T19:30:35.348-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>ABAP - Sacar el separador decimal</title><content type='html'>&lt;br /&gt;
Para eliminar el separador decimal o el de miles.&lt;br /&gt;
Hay que directamente ingresar que lo remplace por espacio (realmente lo eliminara).&lt;br /&gt;
&lt;br /&gt;
w_cant = &#39;100.00&#39;.&lt;br /&gt;
REPLACE ALL OCCURRENCES OF &#39;.&#39; IN w_cant WITH space.&lt;br /&gt;
&lt;br /&gt;
despues de esta sentencia nos quedara:&lt;br /&gt;
w_cant = &#39;10000&#39;. &quot;Todo junto y sin separador&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/3230804586788857215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/3230804586788857215'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/05/abap-sacar-el-separador-decimal.html' title='ABAP - Sacar el separador decimal'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-3353552489509655205</id><published>2012-05-25T19:28:00.000-07:00</published><updated>2012-05-25T19:28:13.059-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="abap"/><title type='text'>ABAP - Sacar decimales de un número</title><content type='html'>&lt;br /&gt;
Si queremos sacar los decimales, primero copiar los datos a una variable tipo char,&amp;nbsp;luego hacer split para separar los datos por el . o la , segun corresponda.&lt;br /&gt;
&lt;br /&gt;
data: w_cant(6) &amp;nbsp;type c,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; w_scrap(6) type c.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPLIT w_cant &amp;nbsp;AT &#39;.&#39; INTO w_cant w_scrap.&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/3353552489509655205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/3353552489509655205'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/05/abap-sacar-decimales-de-un-numero.html' title='ABAP - Sacar decimales de un número'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-5061990505191521255</id><published>2012-05-13T15:04:00.002-07:00</published><updated>2012-05-13T15:05:01.670-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MM"/><title type='text'>MMPV - Desplazar periodo MM</title><content type='html'>&lt;br /&gt;
Con la transacción &lt;b&gt;MMPV&lt;/b&gt; es posible desplazar el período MM.&lt;br /&gt;
Apareceran para ingresar los datos de:&lt;br /&gt;
&lt;i&gt;from company:&lt;/i&gt; A041 (ingresar la sociedad que corrresponda)&lt;br /&gt;
&lt;i&gt;to company: &lt;/i&gt;A041&amp;nbsp;(ingresar la sociedad&amp;nbsp;que corrresponda)&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;periodo:&lt;/i&gt; 08 (número que se desea abrir)&lt;br /&gt;
&lt;i&gt;fiscal year:&lt;/i&gt; 2011 (año del periodo)&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;X check and close period&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;x Allow neg. qties in prev. per.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;x Allow neg. vals in prev. per.&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/5061990505191521255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/5061990505191521255'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/05/mmpv-desplazar-periodo-mm.html' title='MMPV - Desplazar periodo MM'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-4835243114187209320</id><published>2012-03-03T14:46:00.002-08:00</published><updated>2012-03-03T14:49:25.277-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="tablas"/><category scheme="http://www.blogger.com/atom/ns#" term="transaccion"/><title type='text'>Vista de actualización crearle una transacción</title><content type='html'>Para crearle una transacción a una vista de actualización de tablas, ir a la transacción: se93&lt;br /&gt;trx: SM30&lt;br /&gt;X Omitor imagen inicial&lt;br /&gt;X Heredar propiedades GUI&lt;br /&gt;nombre campo:&lt;br /&gt;VIEWNAME poner nombre vista&lt;br /&gt;UPDATE X</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/4835243114187209320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/4835243114187209320'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/03/vista-de-actualizacion-crearle-una.html' title='Vista de actualización crearle una transacción'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-3684398304011598418</id><published>2012-03-03T14:43:00.001-08:00</published><updated>2012-03-03T14:44:07.338-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SD"/><category scheme="http://www.blogger.com/atom/ns#" term="transaccion"/><title type='text'>VF11 - Cancelar factura</title><content type='html'>Para cancelar una factura, utilizar la transacción VF11</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/3684398304011598418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/3684398304011598418'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/03/vf11-cancelar-factura.html' title='VF11 - Cancelar factura'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-6087041863437194155</id><published>2012-03-03T14:41:00.001-08:00</published><updated>2012-03-03T14:42:41.189-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SD"/><category scheme="http://www.blogger.com/atom/ns#" term="transaccion"/><title type='text'>Transacciones de un circuito de compras comun</title><content type='html'>Transacción VA01: crea pedido&lt;br /&gt;Transacción VKM1: aprueba credito&lt;br /&gt;Transacción VL01N: crea delivery / VL10A: creación delivery masivo&lt;br /&gt;Transacción VF01: crea factura</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/6087041863437194155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/6087041863437194155'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/03/transacciones-de-un-circuito-de-compras.html' title='Transacciones de un circuito de compras comun'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2845943354929345880.post-1650323099170371581</id><published>2012-03-03T14:40:00.001-08:00</published><updated>2012-03-03T14:40:40.366-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MM"/><category scheme="http://www.blogger.com/atom/ns#" term="transaccion"/><title type='text'>MMAM - Modificar tipo de material</title><content type='html'>Para modificar el tipo de material a un material ya creado, hay que utilizar la transacción MMAM.&lt;br /&gt;En la pantalla te pedirá que ingreses el material y el nuevo tipo de material que quieres que tenga.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/1650323099170371581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2845943354929345880/posts/default/1650323099170371581'/><link rel='alternate' type='text/html' href='http://abapadventure.blogspot.com/2012/03/mmam-modificar-tipo-de-material.html' title='MMAM - Modificar tipo de material'/><author><name>Leopaldo</name><uri>http://www.blogger.com/profile/17797630487217425877</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>