Ver Mensaje Individual
  #2  
Viejo 02/09/09, 16:58:36
jesusrodriguez jesusrodriguez is offline
Junior Member
 
Fecha de Ingreso: mar 2006
Mensajes: 8
Existe una función que te formatea de forma correcta la tabla de entrada a la función.

Te pongo un ejemplo:
data: ins_tab type wplog
* local data
DATA : BEGIN OF u1001.
INCLUDE STRUCTURE p1001.
DATA : END OF u1001.

* F¸llen der Feldleiste Infotyp 1001 A020
u1001-mandt = sy-mandt.
u1001-plvar = '01'.
u1001-otype = p_otype1.
u1001-objid = fp_1000-objid.
u1001-infty = '1001'.
u1001-rsign = 'A'.
u1001-relat = '020'.
u1001-istat = c_plan.
u1001-begda = fp_1000-begda.
u1001-endda = fp_1000-endda.
u1001-aedtm = sy-datum.
u1001-uname = sy-uname.
u1001-sclas = p_otype2.
u1001-sobid = p_objid.

CLEAR : ins_tab.
CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_wplog
EXPORTING
pnnnn = u1001
IMPORTING
wplog = ins_tab.

APPEND ins_tab.
Responder Con Cita