Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - oscar

Páginas: 1 ... 5 6 [7] 8
91
CRM / Re: Documentacion de Web CRM
« en: 04 de Agosto de 2007, 03:22:35 am »
Hola Gastón.

Te puedo enviar algo de documentación que tengo de CRM, no es mucha pero mándame un privado o un correo con la dirección donde quieres que te lo envíe.


Un saludo...


92
Programación ABAP / Re: Función de fechas
« en: 27 de Julio de 2007, 02:39:53 pm »
Creo que esta función la pensaron para lo que tu querías... ;D


* Esta función suma días laborables
  CALL FUNCTION 'WDKAL_DATE_ADD_FKDAYS'
    EXPORTING
      i_date  = sy-datum
      i_fkday = num_dias
      i_fabkl = 'ES'    "Calendario del pais
    IMPORTING
      e_date  = sig_fecha.


93
Reports / Enviar mail a un correo externo
« en: 26 de Julio de 2007, 01:21:53 pm »
Con este código podremos enviar de forma sencilla un correo a una dirección e-mail externa.

Hay que tener configurado el SAPconect para que el envío se haga de forma inmediata.



  DATA: BEGIN OF i_text OCCURS 0.
          INCLUDE STRUCTURE soli.
  DATA: END OF i_text.

  DATA: wspoolnumber   LIKE  sy-spono ,
        wmailname      LIKE  sood1-objnam,
        wsubject       LIKE  sood1-objdes ,
        wrecepient(40) TYPE  c ,
        wdli           LIKE  soos1-dlinam.

  DATA: object_hd_change LIKE sood1 OCCURS 0 WITH HEADER LINE,
        objpara          LIKE selc  OCCURS 0 WITH HEADER LINE,
        receivers        LIKE soos1 OCCURS 0 WITH HEADER LINE.

  DATA: BEGIN OF i_receivers OCCURS 0.
          INCLUDE STRUCTURE receivers.
  DATA: END OF i_receivers.



  wsubject     = 'Entrega numero....1234567890.'.
  wrecepient   = 'tu_correo@algo.com'.



  object_hd_change-objla  = sy-langu.
  object_hd_change-objnam = wmailname.
  object_hd_change-objdes = wsubject.
  object_hd_change-objsns = 'F'.
  object_hd_change-vmtyp  = 'T'.
  object_hd_change-skips  = 'X'.
  object_hd_change-acnam  = 'SP01'.
  object_hd_change-objcp  = 'X'.



  REFRESH i_text.
  CLEAR i_text.
  i_text-line = 'Texto del mensaje'.
  APPEND i_text.



  REFRESH i_receivers.
  CLEAR i_receivers.
  i_receivers-rcdat  = sy-datum.
  i_receivers-rctim  = sy-uzeit.
  i_receivers-recextnam = wrecepient.
  i_receivers-recesc = 'U'.
  i_receivers-sndex  = 'X'.     " Express-Mail
  APPEND i_receivers.


  objpara-name = 'SPI'.
  objpara-low  = wspoolnumber.
  APPEND objpara.


  CALL FUNCTION 'SO_OBJECT_SEND'
       EXPORTING
            object_hd_change           = object_hd_change
            object_type                = 'RAW'
            owner                      = sy-uname
       TABLES
            objcont                    = i_text
            receivers                  = i_receivers
       EXCEPTIONS
       active_user_not_exist            = 1
       communication_failure            = 2
       component_not_available          = 3
       folder_not_exist                 = 4
       folder_no_authorization          = 5
       forwarder_not_exist              = 6
       note_not_exist                   = 7
       object_not_exist                 = 8
       object_not_sent                  = 9
       object_no_authorization          = 10
       object_type_not_exist            = 11
       operation_no_authorization       = 12
       owner_not_exist                  = 13
       parameter_error                  = 14
       substitute_not_active            = 15
       substitute_not_defined           = 16
       system_failure                   = 17
       too_much_receivers               = 18
       user_not_exist                   = 19
       originator_not_exist             = 20
       x_error                          = 21
       OTHERS                           = 22.

  IF sy-subrc <> 0.
    WRITE: /'Error al enviar el mail'.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  COMMIT WORK.




Fijaros en la línea donde pone: wrecepient   = 'tu_correo@algo.com'. Hay que cambiar la dirección y poner una vuestra.

Saludos...

94
Reports / Busca User-Exit por transacción
« en: 24 de Julio de 2007, 09:45:51 am »
Este es uno de los programas que creo que está mas extendido por la red, es un programa que busca las User-Exit por transacción.

Simplemente hay que copiar el código, ejecutarlo y poner la transacción de la cual quieres buscar sus User...


* Finding the user-exits of a SAP transaction code
*
* Enter the transaction code in which you are looking for the user-exit
* and it will list you the list of user-exits in the transaction code.
* Also a drill down is possible which will help you to branch to SMOD.
*
* Written by : SAP Basis, ABAP Programming and Other IMG Stuff
* http://www.sap-img.com


REPORT zodj_user_exit2 NO STANDARD PAGE HEADING.

TABLES : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
TABLES : tstct.
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.

SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
IF sy-subrc EQ 0.
  SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
  AND object = 'PROG'
  AND obj_name = tstc-pgmna.
  MOVE : tadir-devclass TO v_devclass.
  IF sy-subrc NE 0.
    SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
    IF trdir-subc EQ 'F'.
      SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
      SELECT SINGLE * FROM enlfdir WHERE funcname =
      tfdir-funcname.
      SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
      AND object = 'FUGR'
      AND obj_name EQ enlfdir-area.

      MOVE : tadir-devclass TO v_devclass.
    ENDIF.
  ENDIF.
  SELECT * FROM tadir INTO TABLE jtab
  WHERE pgmid = 'R3TR'
  AND object = 'SMOD'
  AND devclass = v_devclass.
  SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu AND
  tcode EQ p_tcode.
  FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
  WRITE:/(19) 'Transaction Code - ',
  20(20) p_tcode,
  45(50) tstct-ttext.
  SKIP.
  IF NOT jtab[] IS INITIAL.
    WRITE:/(95) sy-uline.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    WRITE:/(95) sy-uline.
    LOOP AT jtab.
      SELECT SINGLE * FROM modsapt
      WHERE sprsl = sy-langu AND
      name = jtab-obj_name.
      FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
      WRITE:/1 sy-vline,
      2 jtab-obj_name HOTSPOT ON,
      21 sy-vline ,
      22 modsapt-modtext,
      95 sy-vline.
    ENDLOOP.
    WRITE:/(95) sy-uline.
    DESCRIBE TABLE jtab.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No of Exits:' , sy-tfill.
  ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'No User Exit exists'.
  ENDIF.
ELSE.
  FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
  WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.

AT LINE-SELECTION.
  GET CURSOR FIELD field1.
  CHECK field1(4) EQ 'JTAB'.
  SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
  CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
*---End of Program



95
Bapis / BAPI para sacar Saldos acumulados de Deudores y Acreedores
« en: 20 de Julio de 2007, 10:20:10 am »

La de Deudores sería:

    CALL FUNCTION 'BAPI_AR_ACC_GETKEYDATEBALANCE'
      EXPORTING
        companycode = companycode
        customer    = customer
        keydate     = keydate
      TABLES
        keybalance  = keybalance.


La de Acreedores:

    CALL FUNCTION 'BAPI_AP_ACC_GETKEYDATEBALANCE'
      EXPORTING
        companycode = companycode
        vendor      = vendor
        keydate     = keydate
      TABLES
        keybalance  = keybalance.

96
Varios / MOVIDO: Imagen en SapScript
« en: 20 de Julio de 2007, 09:03:09 am »

97
Links / Mas Links
« en: 20 de Julio de 2007, 08:50:50 am »
Voy a aportar mi granito de arena... hace tiempo que vi este recolilatorio de enlaces, yo creo que nos va a entretener un rato verlos todos.

Por mi pate no los he visto todos todavía.
Si alguien se da cuenta sobre algún enlace que no funcione o que no sea sobre SAP que me lo diga para ir actualizandolo.

Un saludo...  :o

http://abap4.tripod.com/Other_Useful_Tips.html
http://cma.zdnet.com/book/abap/ch03/ch03.htm
http://cma.zdnet.com/book/abap/index.htm
http://help.sap.com
http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
http://juliet.stfx.ca/people/fac/infosys/abap.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://members.ozemail.com.au/~anmari/sap/index.html
http://members.tripod.com/abap4/SAP_Functions.html
http://members.xoom.com/pmvsr
http://mini.net/cetus/oo_abap_objects.html
http://sap.ittoolbox.com/documents/document.asp?i=752
http://sapassist.com/
http://sapassist.com/groups/groups.asp?v=sap-r3-dev&m=3&y=2004
http://sapfans.com/
http://sappoint.com/abap/
http://training.saptechies.com/sap-basis-certification-sample-questions/
http://www.abap-cafe.com/
http://www.antarcon.de/
http://www.basisguru.com/
http://www.ct-software.com/reportpool_frame.htm
http://www.davatz.ch/
http://www.easymarketplace.de/online-pdfs-q-s.php
http://www.geocities.com/mpioud/Abap_programs.html
http://www.henrikfrank.dk/abapexamples/index.html
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
http://www.henrikfrank.dk/abapuk.html
http://www.intelligenterp.com/
http://www.kabai.com/abaps/q.htm
http://www.planetsap.com/howdo_a.htm
http://www.planetsap.com/Tips_and_Tricks.htm
http://www.planetsap.com/Userexit_List.htm
http://www.sapassist.com/code/d.asp?whichpage=1&pagesize=10&i=10&a=c&o=&t=&q=&qt=
http://www.sap-basis-abap.com/
http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm
http://www.sapdevelopment.co.uk/
http://www.sapfans.com/
http://www.sapgenie.com/abap/bapi/example.htm
http://www.sapgenie.com/abap/code/abap19.htm
http://www.sapgenie.com/abap/example_code.htm
http://www.sapgenie.com/abap/index.htm
http://www.sapgenie.com/abap/smartforms_detail.htm
http://www.sapgenie.com/abap/tips_and_tricks.htm
http://www.sap-img.com
http://www.sap-img.com/abap.htm
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.sap-img.com/abap-function.htm
http://www.sap-img.com/abap-function.htm
http://www.sappoint.com/
http://www.sapwired.com/ABAPCentral/
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://www.thespot4sap.com
http://www.wisgurd.de/index3.html
http://www50.sap.com/company/saplabs/northamerica/
https://websmp104.sap-ag.de/~SAPIDP/002006825000000234912001E

ABAP System Fields
http://help.sap.com/saphelp_46c/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm

For FAQ
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.sapgenie.com/faq/abap.htm

BAPI-step by step
http://www.sapgenie.com/abap/bapi/example.htm

Weblog for receive email and processing it through ABAP
https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/795

For Logical database
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm

very useful
http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm

Useful link to websites
http://www.hernangn.com.ar/sap.htm

Useful for background
http://www.sappoint.com/basis/bckprsng.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/6f/08703713bf277ee10000009b38f8cf/frameset.htm

http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.wbix_adapters.doc/doc/mysap4/sap4x41.htm

Table control in BDC
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm

BDC
http://www.sap-img.com/bdc.htm

For posting weblog,
https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1936

Dynamic Internal table -weblog in sdn
https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1011

Smartforms
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm

SapScript
http://www.sap-img.com/sapscripts.htm
http://sappoint.com/abap/
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm

How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

Mail
http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
http://www.sap-img.com/abap/sending-email-with-attachment.htm

BOM Explosion
https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1647

BOM
http://help.sap.com/saphelp_erp2005/helpdata/en/ea/e9b7234c7211d189520000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/2e4114a61711d2b423006094b9d648/frameset.htm
http://www.sap-img.com/sap-sd/sales-bom-implementation.htm
http://www.sap-basis-abap.com/sappp007.htm

OLE
http://www.sapgenie.com/abap/ole.htm
http://help.sap.com/saphelp_46c/helpdata/en/59/ae3f2e488f11d189490000e829fbbd/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/59/ae3cac488f11d189490000e829fbbd/content.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE6/BCFESDE6.pdf

ALVGRID with refresh
http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html

ALV Group Heading
http://www.sap-img.com/fu037.htm
http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm
http://www.sap-img.com/abap/sample-alv-heading-in-alv.htm

ALV all Imp
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sap-img.com/fu002.htm

http://www.sapdevelopment.co.uk/reporting/alvhome.htm
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_events.htm

ALV Documentation for Field
http://www.mpls.k12.mn.us/sites/f7071225-9844-4da6-96c0-996b9c74b221/uploads/SAP_Navigation_Training2.ppt

98
Programación ABAP / MOVIDO: Espero que sea de utilidad !
« en: 20 de Julio de 2007, 08:45:21 am »

99
Muy bueno el Link, seguro que a muchos nos vendrá bien tenerlo a mano.

Por mi parte no hay problema, yo creo que a nadie le parecerá mal, no?.... ademas me has dado una idea...  ;D

Voy abrir un apartado para que la gente pueda colgar Links que conozcan sobre SAP.
http://www.abap.es/foro/index.php?board=26.0


Gracias Zpelos.

100
Formularios / Re: Imagen en SapScript
« en: 18 de Julio de 2007, 04:16:28 pm »
Hola,

No puedes poner en dos líneas diferentes el comando /:

Tienes que dejarlo todo en una sola línea, para ello si te fijas en el menú superior vas a Tratar --> Página izq./derecha y continuas escribiendo lo que tienes en la segunda línea.


Un saludo...

101
Programación ABAP / Re: Ocultar campo en module pool.
« en: 18 de Julio de 2007, 12:56:12 pm »
Hola Nuria.

En lugar de poner:
screen-invisible = '1'.

pon esto otro:
screen-active = '0'.


Esto ocurre solamente en los campos de entrada, para el resto se utiliza lo que tu comentabas del screen-invisible = '1'.

Un saludo...

102
Varios / Cajas y líneas en Sapscript
« en: 16 de Julio de 2007, 10:59:34 am »
Hola,

Como hacer cajas y líneas en Sapscript y algún que otro comando que vendrá bien saber.


/*   Las coordenadas las toma desde la página
/:   POSITION PAGE

/*   Las coordenadas las toma desde la ventana
/:   POSITION WINDOW

/*   Te hace una caja por el perimetro de la ventana
/:   BOX FRAME 10 TW

/*   Es donde se le da el grosor de las linea. 10, 20, 30,…
/:   FRAME 10 TW

/*   Rellena el fondo de una ventana con una escala de grises del 10%
/:   BOX INTENSITY 10

/*   Ejemplo de líneas horizontales    
/:   BOX  YPOS '2.6' CM    WIDTH '19.0' CM   HEIGHT '0.0' CM   FRAME 10 TW       

/*   Ejemplo de líneas verticales 
/:   BOX  XPOS '2.5'  CM   WIDTH 0 TW   HEIGHT '2.6' CM   FRAME 10 TW           

/*   Ejemplo de Cajas
/:   BOX XPOS '4.00' CM YPOS '1.10' CM WIDTH '15.0' CM HEIGHT '0.50' CM FRAME 10 TW
/:   BOX XPOS '4.00' CM YPOS '1.10' CM WIDTH '15.0' CM HEIGHT '0.50' CM INTENSITY 20




103
Programación ABAP / Re: TIME_OUT (EXCEDE TIEMPO DE EJECUCION)
« en: 13 de Julio de 2007, 09:06:49 am »
Hola.

Hay tres posibles soluciones...

1º.- Se puede manipular el tiempo de ejecución, pero tendrías que preguntarle a alguien de sistemas, yo no se donde se cambia.

2º.- Otra opción es que lances el programa en fondo porque de esta manera no te dará el TIME_OUT.

3º.- Y luego hay otra manera de hacerlo (mas que nada a modo informativo), pero creo que si le metes un SUBMIT al programa o un CALL TRANSACTION, el tiempo de ejecución vuelve a empezar desde cero.

Un saludo,
Oscar.

104
Funciones / Cargar un fichero UNIX
« en: 12 de Julio de 2007, 12:58:38 pm »
Si lo que quieres es una carga directa de los ficheros que existan en una ruta en un servidor UNIX puedes probar con esto:


Código: [Seleccionar]

DATA: ld_ruta LIKE sxpgcolist-parameters.            " Ruta de los ficheros
DATA: gt_tabl LIKE btcxpm OCCURS 0 WITH HEADER LINE. " Tabla

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
  EXPORTING
        commandname                     = 'ZLL'
        additional_parameters           = ld_ruta
  TABLES
        exec_protocol                   = gt_tabl
  EXCEPTIONS
        no_permission                   = 1
        command_not_found               = 2
        parameters_too_long             = 3
        security_risk                   = 4
        wrong_check_call_interface      = 5
        program_start_error             = 6
        program_termination_error       = 7
        x_error                         = 8
        parameter_expected              = 9
        too_many_parameters             = 10
        illegal_command                 = 11
        wrong_asynchronous_parameters   = 12
        cant_enq_tbtco_entry            = 13
        jobcount_generation_error       = 14
        OTHERS                          = 15.



El comando 'ZLL' se define en la transacción SM69:
Yo tengo uno definida con el comando de sistema 'ls' y parámetro '-l'.

De este modo carga en la tabla interna gt_tabl todos los ficheros y directorios
del servidor UNIX que existen en el directorio ld_ruta.
Los directorios vienen indicados con una d y los ficheros con un guión.

Después de esto, sólo quedaría pegarte un poco con el formato para ver
la posición exacta en la que viene el nombre del fichero.


105
Reports / Mandar a IMPRIMIR un documento de word
« en: 12 de Julio de 2007, 12:36:45 pm »
Este es un trozo de código con el que vamos a mandar imprimir un documento de word ya existente desde un programa.


Código: [Seleccionar]

Types: OLE2_OBJECT LIKE OBJ_RECORD.

Data : go_word type ole2_object,
           ud_filename(200) value 'C:\documento.doc'.

CREATE OBJECT go_word 'Word.Basic'.
CHECK sy-subrc = 0.

CALL METHOD OF go_word 'FileOpen' EXPORTING #1 = ud_filename.
CHECK sy-subrc = 0.

CALL METHOD OF go_word 'FilePRINT'.
CHECK sy-subrc = 0.

CALL METHOD OF go_word 'DocClose'.


Páginas: 1 ... 5 6 [7] 8