Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem with diferent users

Hi Guys,

I have implemented the exit EXIT_SAPMP56T_001.

FIELD-SYMBOLS: <display> TYPE ANY,
               <tab> TYPE ANY,
               <tab1> TYPE any.
CONSTANTS: c_display(22) VALUE '(SAPMP56T)ONLY_DISPLAY',
           c_tab(16)       VALUE '(SAPMP56T)TAB1[]'.

DATA tab1 LIKE ptp1000 OCCURS 0 WITH HEADER LINE.

ASSIGN (c_tab) TO <tab>.
IF <tab> IS ASSIGNED.
  tab1[] = <tab>.
  LOOP AT tab1 WHERE marker EQ 'X'.
    IF ( tab1-status1 EQ '4' AND tab1-status2 EQ '6') OR ( tab1-status1 EQ '4' AND tab1-status2 EQ '2' ). "Para transferidos a FI y liquidados
      ASSIGN (c_display) TO <display>.
      IF <display> IS ASSIGNED.
        <display> = 'X'.
      ENDIF.
      IF sy-ucomm eq 'ST' or sy-ucomm eq 'APPR'.
          MESSAGE 'Viaje liquidado, imposible modificar' type 'E'.
      ELSEIF sy-ucomm eq 'exiT' or sy-ucomm eq 'BACK' OR sy-ucomm eq 'CANC'.
          LEAVE TO TRANSACTION 'PR05' AND SKIP FIRST SCREEN.
      ENDIF.
    ELSE.
      ASSIGN (c_display) TO <display>.
      IF <display> IS ASSIGNED.
        <display> = ' '.
      ENDIF.
    ENDIF.
  ENDLOOP.
ENDIF.

If ie execute the program pr05 with my user ( developer ), it works fine but with another user the table

Moderator message: please use a more meaningful subject line and complete the question.

Edited by: Thomas Zloch on Apr 7, 2010 5:47 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question