MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   ayuda con matchcode (foro/showthread.php?t=10369)

smartin 18/01/08 19:39:38

ayuda con matchcode
 
Hola a todos, tengo una dynpro que pide el codigo de cliente(kna1-kunnr), y este tiene una ayuda de busqueda, pero me pidieron crear un matchcode para que busque por el NIF (kna1-stcd1), mi duda es como se hace.

gracias.
smartinc

TEREP 04/02/08 19:50:30

1 Adjunto(s)

Hola smartinc, te paso un documento que encontré en internet al respecto, yo no lo he probado, pero mira a ver si te sirve.
Un saludo.

smartin 04/02/08 20:05:29

Gracias Terep, buen documento.
smartin

darona 05/02/08 07:19:59

A ver si esto te sirve:

* Matchcode para el campo naturaleza.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_natura-low.
SELECT mtart
mtbez
FROM t134t CLIENT SPECIFIED
INTO TABLE it_natura
WHERE mandt = sy-mandt
AND spras = sy-langu
AND ( mtart EQ 'ZMAT' OR
mtart EQ 'ZMOB' OR
mtart EQ 'ZIND' OR
mtart EQ 'ZCIN').

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MTART'
window_title = 'Naturaleza'
value_org = 'S'
TABLES
value_tab = it_natura
return_tab = it_match
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.

IF sy-subrc EQ 0.
READ TABLE it_match INDEX 1.
MOVE it_match-fieldval TO s_natura-low.
ENDIF.

darona 05/02/08 07:21:04

Faltaba esto:

*Tablas para el matchcode.
tables: vbap, ddshretval.


Husos Horarios son GMT. La hora en este momento es 15:32:22.

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