MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Parametro De Pantalla (foro/showthread.php?t=48156)

Eduesqueda 27/01/12 18:01:32

Parametro De Pantalla
 
HOLA NO SE COMO HACER LO SIG. HABER SI ALGUIEN ME PUEDE AYUDAR.

Tengo un parámetro de pantalla y quiero se capture en el sig. formato:

"ERPNOB_B01_FECHA_CONSECUTIVO.TXT"

DONDE FECHA DEBEN SER NUMEROS TIPO:AAAAMMDD
Y
CONSECUTIVO ES DE 6 POSICIONES TIPO: 000100

COMO PUEDO VALIDAR QUE SE ME CAPTURE
ESTE FORMATO QUE QUIERO?

Ejemplo: ERPNOB_B01_20120122_000100.TXT.
SALUDOS

DCErick 27/01/12 18:43:05

Usa expresiones regulares.

Eduesqueda 27/01/12 21:50:17

Ok
 
Saludos, si ya lo hice y quedó así:

IF p_ftpRO+0(11) NE 'ERPCON_B01_'
OR ( NOT p_ftpRO+11(8) CO '01234567890' )
OR p_ftpRO+19(1) NE c_bajo
OR ( NOT p_ftpRO+20(6) CO '01234567890' )
OR p_ftpRO+26(4) NE '.TXT'.

por si a alguien le pueda interesar.


Husos Horarios son GMT. La hora en este momento es 14:33:09.

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