Valores posibles de sy-subrc

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • cosagaucha
    Member
    • ago
    • 64

    #1

    Valores posibles de sy-subrc

    gente, tengo alguna forma de conocer los diferentes valores que puede tomar la variable sy-subrc y conocer su significado?? ya el del 0 lo conozco... pero necesitaria saber ahora si para todos los procesos los valores o significados son los mismos o varian??

    Vamos al grano... estoy procesando unos bach imputs, y luego de hacer el call transaction (a la PO01), el sy-subrc toma el valor 1001, y no sigue hacia el log de errores...

    alguien me puede dar una mano con esto??

    muchisimas gracias!!
    JP.
  • tomasm
    Member
    • jun
    • 87

    #2
    Ese sy-subrc = 1001, puede tratarse de que el número de personal que quieres tratar en ese momento esta bloqueado,
    o falta de autorizaciones para procesar ese número de personal.

    Buscando por otros lados, he encontrado esto:

    Dear Abapers,

    I am updating batch information (not at the item level but at component level) in PO through ME22.

    CALL TRANSACTION 'ME22' USING BDCDATA
    MODE 'N'
    UPDATE 'S'
    MESSAGES INTO GT_ME22_MESSTAB.

    When i execute in all screen mode it is updating the batch information in item components (Subrc is 0). But when i execute in No screen mode program is not updating the information and subrc value is 1001.

    In the help it says : for mode N
    Processing without display of screens. If a breakpoint is reached in one of the called transactions, processing is terminated with sy-subrc same as 1001. The field sy-msgty contains "S", sy-msgid contains "00", sy-msgno contains "344", sy-msgv1 contains "SAPMSSY3", and sy-msgv2 contains "0131".

    There are no break points set any where....

    Thanks in advance.
    Sanjay.




    Saludos.
    Editado por última vez por tomasm; 25/08/2006, 07:44:12.

    Comentario

    Trabajando...