Ver Mensaje Individual
  #1  
Viejo 13/03/17, 18:23:56
amam2605 amam2605 is offline
Senior Member
 
Fecha de Ingreso: ene 2009
Mensajes: 150
Funcion PYXX_READ_PAYROLL_RESULT

Hola a todos, estoy trabajando con la fncion: Y necesito señeccionar de la estructura RT los campos lgar, anzhl y betrg y de la estructura Versc los campos molga, waers, fpper,juper, paydt y aibkrs pero si aplico lo mismo que con la estructura rt me dice que versc no es una tabla interna.


DATA: wa_RT LIKE PC207 OCCURS 0 WITH HEADER LINE.
DATA: wa_inter LIKE PC202 OCCURS 0 WITH HEADER LINE.

call function 'PYXX_READ_PAYROLL_RESULT'
exporting
clusterid = iv_relid
employeenumber = iv_pernr
sequencenumber = ls_evp-seqnr
* READ_ONLY_BUFFER = ' '
read_only_international = 'X'
changing
payroll_result = ls_result
exceptions
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
others = 8.


loop at ls_result-inter-rt into wa_rt.
alv_out-lgart = wa_rt-lgart.
alv_out-anzhl = wa_rt-anzhl.
alv_out-betrg = wa_rt-betrg.
append alv_out.
endloop.

loop at ls_result-inter-versc rt into wa_inter.
alv_out-molga = wa_inter-molga.
alv_out-anzhl = wa_inter-fpper.
alv_out-betrg = wa_inter-juper.
append alv_out.
endloop.

Que detalle tengo mal, por favr si me puede orientar al respecto, se los agradeceria.

AMAM
Responder Con Cita