Skip to content

Instantly share code, notes, and snippets.

@hugo-dc
hugo-dc / borrar_tablas_z.txt
Created May 16, 2013 21:44
Borrar datos de tabla Z con mandante cerrado
Entrar a la SE16N
Escribir en el campo donde se escribe la transacción: &sap_edit
Ejecutar la selección con F8, eliminar lo que se necesite.
x = traceback.print_exc(file=open('exc.txt', 'w'))
@hugo-dc
hugo-dc / filltable.py
Created May 10, 2013 16:31
Fill RFC Table (easysap)
rfc.init_table('TNAME')
line = rfc.tables['TNAME'].struc()
line['FIELD1'] = value
rfc.tables['TNAME'].append(line)
@hugo-dc
hugo-dc / sapconn.ini
Created March 13, 2013 03:15
Sapconn.ini example
; This is sample .ini files containing connection definitons.
; Modify values to suit your needs.
; Any connection parameter recognized by SAP connection string may be used as key
; To connect to system defined as 'Connection 1' use:
; conn=pysap.Rfc_connection(conn_file='/path/to/this/file',conn_name='Connection 1')
; conn.open()
[DEFAULT]
@hugo-dc
hugo-dc / rfc_test.py
Created March 13, 2013 03:07
Pysap Code Example
# This examples show how to perform remote function calls
import pysap
# Set configuration file (contains server, mandant, user, password, etc)
sap_conn = pysap.Rfc_connection(conn_file='sapconn.ini')
# Open connection
sap_conn.open()
@hugo-dc
hugo-dc / wxArtProvider
Created January 11, 2013 16:33
wx Bitmaps
wx.ART_ADD_BOOKMARK
wx.ART_DEL_BOOKMARK
wx.ART_HELP_SIDE_PANEL
wx.ART_HELP_SETTINGS
wx.ART_HELP_BOOK
wx.ART_HELP_FOLDER
wx.ART_HELP_PAGE
wx.ART_GO_BACK
@hugo-dc
hugo-dc / wxPythonColors
Last active December 10, 2015 18:48
wxPython colors
AQUAMARINE
BLACK
BLUE
BLUE VIOLET
BROWN
CADET BLUE
CORAL
CORNFLOWER BLUE
CYAN, DARK GREY
DARK GREEN
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sap="http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/sapzpolcreapedidoventascom">
<soapenv:Header/>
<soapenv:Body>
<sap:SapZpolCreaPedidoVentasCom>
<I_APELLIDO1>?</I_APELLIDO1>
<I_APELLIDO1_ENTREGA>?</I_APELLIDO1_ENTREGA>
<!--Optional:-->
<I_APELLIDO1_FACTURA>?</I_APELLIDO1_FACTURA>
<!--Optional:-->
<I_APELLIDO1_PAGO>?</I_APELLIDO1_PAGO>
@hugo-dc
hugo-dc / saprouter.txt
Created October 12, 2012 00:49
SapRouter Expert Mode Configuration - SAPGui for Java
conn=/H/<sap_router_ip>/S/3299/H/<sap_server>/S/3200
@hugo-dc
hugo-dc / zbackup.abap
Created October 10, 2012 18:56
Backup to transparent tables with common key
*&---------------------------------------------------------------------*
*& Report ZMAY_BACKUP
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zmay_backup.