Está en la página 1de 3

CREAR RANGOS DE NUMEROS

TRANSACCION SNUM
CREAR UN NOMBRE DE OBJETO PARA CADA PROCESO (UNO PARA
ORDENES DE COMPRA, UNO PARA PEDIDOS DE VENTA, UNO PARA PAGOS)
Definir longitue! el "#$%o & %or"ent#'e! e #(erten"i# ) el !i!te$# $#n# $en!#'e
"u#no !e e!t# %or ter$in#r el r#ngo e n*$ero!)
CREAR RANGO D NUMEROS "on el +ot,n R#ngo e n*$ero!
CREAR INTERVA-O
E! en e!te %unto one %oe$o! efinir nue!tro RANGO e n*$ero! .ue utili/#re$o!
%#r# nue!tro o"u$ento))
GRABAR))
CODIGO ABAP

-l#$#o e R#ngo e n*$ero! %#r# o+tener NUMERO SIGUIENTE
DATA0 12folio2fi!"#l (3))
DATA0 12r#ngo -I4E INRI5NRRANGENR, 6C7#8
12o+'e"t -I4E nri(5o+'e"t) 6C7#r9:
12r#ngo ; <:9=)
12o+'e"t ; <>CTR-2DOC?=)
CA-- @UNCTION ANUMBER2GET2NEBTA
EBPORTING
nr2r#nge2nr ; 12r#ngo
o+'e"t ; 12o+'e"t
IMPORTING
nu$+er ; 12folio2fi!"#l
EBCEPTIONS
inter(#l2not2foun ; 9
nu$+er2r#nge2not2intern ; 8
o+'e"t2not2foun ; C
.u#ntit&2i!2: ; D
.u#ntit&2i!2not29 ; E
inter(#l2o(erflo1 ; ?
OTFERS ; G)
I@ !&5!u+r" HI :)
RAISE f#ll#2en2r#ngo)
E-SE)
J 12folio2fi!"#l MANDA E- NUMERO -IBRE
ENDI@)
ENDI@)

También podría gustarte

  • LSMW Manual
    LSMW Manual
    Documento30 páginas
    LSMW Manual
    Senaniraj
    100% (1)
  • User Exit
    User Exit
    Documento8 páginas
    User Exit
    Juan Pablo Palominos
    Aún no hay calificaciones
  • ABAP Popups
    ABAP Popups
    Documento10 páginas
    ABAP Popups
    Joanteaj TA
    Aún no hay calificaciones
  • Dlver Trucos Abap
    Dlver Trucos Abap
    Documento26 páginas
    Dlver Trucos Abap
    Kensai Kenshin Ryokuda
    Aún no hay calificaciones
  • SAP: Field Symbols en ABAP
    SAP: Field Symbols en ABAP
    Documento8 páginas
    SAP: Field Symbols en ABAP
    Alex de Cuenca
    80% (5)
  • Guia LSMW
    Guia LSMW
    Documento22 páginas
    Guia LSMW
    Joanteaj TA
    Aún no hay calificaciones
  • Tutorial Android
    Tutorial Android
    Documento23 páginas
    Tutorial Android
    Joanteaj TA
    Aún no hay calificaciones
  • ABAPIntro
    ABAPIntro
    Documento20 páginas
    ABAPIntro
    Oscar Edgar Barrera
    Aún no hay calificaciones
  • Tiempos
    Tiempos
    Documento8 páginas
    Tiempos
    Joanteaj TA
    Aún no hay calificaciones
  • Guía Resuelta
    Guía Resuelta
    Documento19 páginas
    Guía Resuelta
    Joanteaj TA
    50% (2)
  • Media Wiki
    Media Wiki
    Documento5 páginas
    Media Wiki
    Joanteaj TA
    Aún no hay calificaciones
  • Instalar EasyPHP
    Instalar EasyPHP
    Documento14 páginas
    Instalar EasyPHP
    Joanteaj TA
    Aún no hay calificaciones