MUNDOSAP

Regresar   MUNDOSAP > DESARROLLO > Programación ABAP IV
Nombre de Usuario
Contraseña
Home Descargas Registrar FAQ Miembros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos




 
Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Viejo 09/10/09, 18:41:50
jeanficetola jeanficetola is offline
Member
 
Fecha de Ingreso: sep 2007
Localización: Venezuela
Mensajes: 64
Manual Creacion de un RFC

Buen dia ,

como estan ? , Por favor alguien que tenga un manual sobre RFC

me puede decir donde conseguir uno


gracias



saludos
__________________
Jean Carlos Hernandez Ficetola

Consultor ABAP
INFOGESA S.A , Venezuela
Responder Con Cita
  #2  
Viejo 09/10/09, 23:44:18
zonanet zonanet is offline
Senior Member
 
Fecha de Ingreso: mar 2007
Localización: Durango, Dgo. México
Mensajes: 195
hola jeanficetola,


un manual no lo tengo, pero te puedo dar unos tips para que avances en tu requerimiento

1.- Creas un Grupo de Funcion en la SE80
2.- Creas tu modulo de funcion en la SE37 y lo asignas al grupo de función que creaste o a alguno que ya exista para tu proyecto.
3.- En la pestaña IMPORT ahí van los parametros de entrada para tu función
4.- En la pestaña EXPORT es donde regresas el resultado de tu procesamiento
5.- En la pestaña TABLES declaras las tablas que necesites


Ahora, para hacerla remota necesitas un conector para tu sistema externo, aquí hemos usado el .NETConnecto con Visual Studio 2003 y desde ahí se manda llamar la funcion.


Ojalá te sirva de algo, cualquier duda me avisas.


Saludos.
Responder Con Cita
  #3  
Viejo 11/10/09, 01:49:10
MADF MADF is offline
Junior Member
 
Fecha de Ingreso: oct 2006
Mensajes: 12
manuales RFC

Enviame tu correo y te hago llegar un manual.

Saludos.
Responder Con Cita
  #4  
Viejo 14/10/09, 19:12:32
andyoscky andyoscky is offline
Miembro Honorario
 
Fecha de Ingreso: mar 2006
Mensajes: 73
Esto esta en la ayuda basica de sap
Exercise 7: Implementing a Transactional RFC Locate the document in its SAP Library structure

Use

In this exercise you will implement a transactional RFC (tRFC). With a tRFC the function module is not called immediately but only when the statement Commit Work is executed. The system then executes all database operations in one go.

In this exercise you will create a program that allows you to change the phone number of a customer in database table SCUSTOM in two different systems.

Since in this exercise you make changes to a database table, you must create a new parogram and new function modules in the local and in the remote system.

(For an overview see also: Transactional Remote Function Call)

Prerequisites

For this exercise you need two systems in which table SCUSTOM is maintained and contains identical data records. Check whether in both systems a record with the same customer number exists.

Procedure

Create a Function Module in the Calling System:

As described in Exercise 1, use the Object Navigator to create a function module in the calling system. Make it a remote-enabled function module and name it XX_TRFC_CHANGE_SCUSTOM . Rememeber to replace XX with the initials of your name.

1. In the Import tab of the function modules enter in the appropriate columns the parameters to be imported:
2. customer_id with reference type like scustom-id and i_telephone with reference type like scustom-telephone . For each parameter set the Pass value flag. Select the Exceptions tab and specify the exception
3. no_data_found . Select the Source code tab and complete the source text thus that the
4. telephone field in table SCUSTOM is changed according to the id . Compare your source code with the
5. model solution. Check (
STRG+F2 ), save ( STRG+S ), and activate ( STRG+F3 ) the function module.

Create a Function Module in the Remote System:

Repeat the above steps 1 to 6 and create the same function module in the remote system.

If you create the function module in a different system, as in Exercise 3, you must also create another RFC destination ( Exercise 4).

Create a Function Call in the Local System:

1. In the local system, use the Object Navigator to create a program without top include with the name
2. XX_TRFC_TUTORIAL , where you replace XX with the initials of your name. See also Exercise 2. Determine the following data declarations:
PARAMETERS: custid LIKE scustom-id,
phone LIKE scustom-telephone,
dest LIKE rfcdes-rfcdest DEFAULT 'NONE',
time LIKE sy-uzeit DEFAULT sy-uzeit.

TABLES: scustom.
DATA: customeritab LIKE scustom OCCURS 0 WITH HEADER LINE.

3. Use
4. PERFORM to execute the subroutine called read_customeritab . Call the function module
5. TRFC_CHANGE_SCUSTOM locally. Read database table SCUSTOM a second time to compare the data.
6. Write a transactional remote function call for function module
7. XX_TRFC_CHANGE_SCUSTOM . Use the parameter IN BACKGROUND TASK and remember to replace XX with the initials of your name. Leave out exception handling, since for a tRFC no response is possible.
8. Call the existing function module
START_OF_BACKGROUNDTASK locally with the following parameters:
EXPORTING
startdate = sy-datum
starttime = time
EXCEPTIONS
OTHERS = 1
9. By calling this function module, you can explicitly set start date and start time of when to execute the transactional RFC. End the LUW with the
10. COMMIT WORK statement. Display the data read and go to transaction SM58 to check the tRFC process. Use
11. AT LINE-SELECTION to interrupt the display of the results. At the end of the program, write the subroutine
12. read_customeritab . Use a SELECT statement to read the phone number, the name, and the customer number of the customer from database table SCUSTOM. Compare your program code with the
13. model solution and, if required, include what is missing. Check (
STRG+F2 ), save ( STRG+S ), and activate ( STRG+F3 ) the program.

Execute the Program:

1. Choose Test (
2. F8 ). In the input query enter the customer number, the new phone number, and the remote destination.
3. Relay the start time for the change by 5 minutes.
4. Execute the program
( F8) .

The system changes the data in the local system and displays the change. In addition, it displays the name of the remote system and the time at which the change will be executed in that system.

5. Double-click on OK to go to the tRFC administration screen.
6. Do not change the entries but choose Execute
(F8) .

The list that appears should contain the tRFC you saved.

Result

You used a tRFC to change the phone number of a customer in two database tables.




Leaving content frame
Responder Con Cita
  #5  
Viejo 19/02/19, 13:57:34
flor81 flor81 is offline
Member
 
Fecha de Ingreso: abr 2008
Mensajes: 59
Conexión SAP RFC - Consulta.

Buenos días,

Necesitamos enviar información a una página web para un proyecto nuevo donde los proveedores accederán a dicha página y podrán ver si ya les pagó la empresa, podrán además descargar los certificados de retención, entre otras cosas.
Para poder avanzar, el proveedor del servicio de la página web, necesita tomar ciertos datos de SAP ERP como datos maestros del Acreedor, Ordenes de Compra, documentos de pago, etc.
Mi consulta es si RFC podría utilizarse para establecer la conexión entre la página y SAP o si RFC "sólo" se utiliza para conexión entre ambientes diferentes pero siempre pertenecientes a SAP (nosotros lo usabamos para conectar SAP ERP con SAP Banking).

Desde ya, muchísimas gracias por la ayuda que puedan brindarme,
Saludos,
Flor.
Responder Con Cita
Respuesta


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Reglas de Mensajes
no puedes crear nuevos temas
no puedes responder temas
no puedes adjuntar archivos
no puedes editar tus mensajes

El código vB está On
Las caritas están On
Código [IMG] está On
Código HTML está Off
Saltar a Foro


Husos Horarios son GMT. La hora en este momento es 08:45:47.


www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web