|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
Gracias Terep, buen documento.
smartin |
#4
|
||||
|
||||
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. |
#5
|
||||
|
||||
Faltaba esto:
*Tablas para el matchcode. tables: vbap, ddshretval. |
Herramientas | Buscar en Tema |
Desplegado | |
|
|