Error In Program

Hi Frds
In my program im displaying Open PO's Number and Quantity and Open PR's Number and Quantity based on Material ,Plant, and Storage location of Material.
In Output its only displaying Open PR's and Quantity ,if it has Open PO's also, for a same material.
Kindly anyone correct my mistake.
TYPE-POOLS: SLIS.
TABLES : EKPO,MARC,EBAN,MSEG,MARD,MARA,MAKT,MBEW.
DATA:BODY        TYPE SLIS_T_FIELDCAT_ALV,
     HEADER      TYPE SLIS_FIELDCAT_ALV,
     GD_LAYOUT   TYPE SLIS_LAYOUT_ALV,
     GD_REPID    LIKE SY-REPID.
DATA : TGR TYPE I,
       CHECK TYPE I.
TGR   = 0.
CHECK = 0.
DATA : MAT_NO LIKE MARA-MATNR, "MATERIAL CODE
       PLA_NO LIKE MARD-WERKS, "PLANT
       STORE  LIKE MARD-LGORT, "STORAGE LOCATION
       COM_NO LIKE EKPO-BUKRS. "COMPANY CODE
DATA : BEGIN OF ITAB OCCURS 0,
       MATNR LIKE MARA-MATNR, "MATERIAL CODE
       MEINS LIKE MARA-MEINS, "UOM
       MAKTX LIKE MAKT-MAKTX, "MATERIAL DESC.,
       MINBE LIKE MARC-MINBE, "ROL
       LBKUM LIKE MBEW-LBKUM, "WAREHOUSE STOCK
       LGORT LIKE MARD-LGORT, "STORAGE
       EBELN LIKE EKPO-EBELN, "PO NUMBER
       EBELP LIKE EKPO-EBELP, "PO LINEITEM
       MENGE LIKE EKPO-MENGE, "OPEN PO QTY
       MENG1 LIKE MSEG-MENGE, "GR QTY
       DQTY  LIKE MSEG-MENGE, "OPEN PO QTY
       BANFN LIKE EBAN-BANFN, "OPEN PR NUMBER
       MENG2 LIKE EBAN-MENGE, "OPEN PR QTY
       BNFPO LIKE EBAN-BANFN, "PR LINEITEM
       END OF ITAB.
DATA : BEGIN OF IMAT OCCURS 0,
       MATNR LIKE MARA-MATNR, "MATERIAL CODE
       MEINS LIKE MARA-MEINS, "UOM
       LVORM LIKE MARA-LVORM, "DELETED MATERIAL FLAG
       MSTAE LIKE MARA-MSTAE, "BLOCKED MATERIAL
       WERKS LIKE MARD-WERKS, "PLANT
       LGORT LIKE MARD-LGORT, "STORAGE
       END OF IMAT.
DATA : BEGIN OF IMAKT OCCURS 0,
       MATNR LIKE MAKT-MATNR, "MATERIAL CODE
       MAKTX LIKE MAKT-MAKTX, "MATERIAL DESC.,
       END OF IMAKT.
DATA : BEGIN OF IMARC OCCURS 0,
       MATNR LIKE MARC-MATNR, "MATERIAL CODE
       MINBE LIKE MARC-MINBE, "ROL
       LVORM LIKE MARC-LVORM, "DELETED MATERIAL FLAG
       END OF IMARC.
DATA : BEGIN OF IMBEW OCCURS 0,
       MATNR LIKE MBEW-MATNR, "MATERIAL CODE
       LBKUM LIKE MBEW-LBKUM, "WAREHOUSE STOCK
       END OF IMBEW.
DATA : BEGIN OF IEKPO OCCURS 0,
       EBELN LIKE EKPO-EBELN, "PO NUMBER
       EBELP LIKE EKPO-EBELP, "PO LINEITEM
       LOEKZ LIKE EKPO-LOEKZ, "DELETED PO'S
       MATNR LIKE EKPO-MATNR, "MATERIAL CODE
       BUKRS LIKE EKPO-BUKRS, "COMPANY
       WERKS LIKE EKPO-WERKS, "PLANT
       LGORT LIKE EKPO-LGORT, "STORAGE
       MENGE LIKE EKPO-MENGE, "PO QUANTITY
       END OF IEKPO.
DATA : BEGIN OF IMSEG OCCURS 0,
       BWART LIKE MSEG-BWART, "MOVEMENT TYPE
       MATNR LIKE MSEG-MATNR, "MATERIAL CODE
       WERKS LIKE MSEG-WERKS, "PLANT
       MENGE LIKE MSEG-MENGE, "GR QUANTITY
       EBELN LIKE MSEG-EBELN, "PO NUMBER
       EBELP LIKE MSEG-EBELP, "PO LINEITEM
       END OF IMSEG.
DATA : BEGIN OF IEBAN OCCURS 0,
       BANFN LIKE EBAN-BANFN, "PR NUMBER
       BNFPO LIKE EBAN-BNFPO, "PR LINEITEM
       LOEKZ LIKE EBAN-LOEKZ, "DELETED PR
       STATU LIKE EBAN-STATU, "OPEN PR FLAG
       MATNR LIKE EBAN-MATNR, "MATERIAL NUMBER
       MENGE LIKE EBAN-MENGE, "PR QUANTITY
       WERKS LIKE EBAN-WERKS, "PLANT
       LGORT LIKE EBAN-LGORT, "STORAGE
       END OF IEBAN.
SELECTION-SCREEN: BEGIN OF BLOCK 01.
SELECTION-SCREEN: BEGIN OF BLOCK 02 WITH FRAME .
SELECT-OPTIONS MATERIAL FOR MAT_NO.
SELECT-OPTIONS COMPANY  FOR COM_NO .
SELECT-OPTIONS PLANT    FOR PLA_NO OBLIGATORY.
SELECT-OPTIONS STORAGE  FOR STORE.
SELECTION-SCREEN: END OF BLOCK 02.
SELECTION-SCREEN: END OF BLOCK 01.
AT SELECTION-SCREEN.
  PERFORM MATERIAL. "GET MATERIAL
START-OF-SELECTION.
  PERFORM P_MAKT. "GET MATERIAL DESC.,
  PERFORM P_MARC. "GET ROL
  PERFORM P_MBEW. "GET WAREHOUSE STOCK
  PERFORM POS.    "GET POS
  SORT IEKPO BY EBELN EBELP.
  PERFORM GRS.    "GET GR QTY
  PERFORM PRS.    "GET OPEN PR NUMBER
  PERFORM READ.
  PERFORM FIELDCATALOG.
  PERFORM BUILD_LAYOUT.
GET ALV DISPLAY
  PERFORM ALVDISPLAY.
*&      FORM  MATERIAL
      TEXT
FORM MATERIAL.
  SELECT MARAMATNR MARAMEINS MARALVORM MARAMSTAE
         MARDWERKS MARDLGORT
    INTO CORRESPONDING FIELDS OF TABLE IMAT
    FROM MARA INNER JOIN MARD ON MARDMATNR = MARAMATNR
    WHERE MARA~MATNR IN MATERIAL AND
          MARD~WERKS IN PLANT AND
          MARD~LGORT IN STORAGE AND
          MARA~LVORM <> 'X' AND
          MARA~MSTAE EQ SPACE.
  IF SY-SUBRC <> 0.
    MESSAGE 'NO DATA FOUND FOR THE SELECTION ' TYPE 'E'.
    EXIT.
  ENDIF.
ENDFORM.                    "MATERIAL
*&      FORM  P_MAKT
      TEXT
FORM P_MAKT.
  LOOP AT IMAT.
    SELECT MATNR MAKTX FROM MAKT APPENDING TABLE IMAKT
         WHERE MATNR = IMAT-MATNR.
  ENDLOOP.
  CLEAR : IMAT, IMAKT.
ENDFORM. "P_MAKT
*&      FORM  P_MARC
      TEXT
FORM P_MARC.
  LOOP AT IMAT.
    SELECT MATNR MINBE LVORM FROM MARC APPENDING TABLE IMARC
      WHERE MATNR = IMAT-MATNR AND
            LVORM <> 'X'.
  ENDLOOP.
  CLEAR : IMAT, IMARC.
ENDFORM. "P_MARC
*&      FORM  P_MBEW
      TEXT
FORM P_MBEW.
  LOOP AT IMAT.
    SELECT MATNR LBKUM FROM MBEW APPENDING TABLE IMBEW
      WHERE MATNR = IMAT-MATNR.
  ENDLOOP.
  CLEAR : IMAT, IMBEW.
ENDFORM.                    "P_MBEW
*&      FORM  POS
      TEXT
FORM POS.
  LOOP AT IMAT.
    SELECT EBELN EBELP LOEKZ MATNR BUKRS WERKS LGORT MENGE
      FROM EKPO APPENDING TABLE IEKPO
      WHERE MATNR = IMAT-MATNR AND
            WERKS = IMAT-WERKS AND
            LGORT = IMAT-LGORT AND
            LOEKZ EQ SPACE.
  ENDLOOP.
  CLEAR : IMAT, IEKPO.
ENDFORM.                    "POS
*&      FORM  GRS
      TEXT
FORM GRS.
  LOOP AT IEKPO.
    SELECT BWART MATNR WERKS MENGE EBELN EBELP FROM MSEG
APPENDING TABLE IMSEG
        WHERE MATNR = IEKPO-MATNR AND
              WERKS = IEKPO-WERKS AND
              EBELN = IEKPO-EBELN AND
              EBELP = IEKPO-EBELP AND
              ( BWART = '101' OR BWART = '103' ).
  ENDLOOP.
  CLEAR: IEKPO, IMSEG.
ENDFORM.                    "GRS
*&      FORM  PRS
      TEXT
FORM PRS.
LOOP AT IMAT.
IF IEKPO[] IS NOT INITIAL.
    SELECT BANFN BNFPO LOEKZ STATU MATNR MENGE WERKS LGORT FROM EBAN
INTO TABLE IEBAN
      FOR ALL ENTRIES IN IMAT
     FROM EBAN APPENDING TABLE IEBAN
     WHERE MATNR = IMAT-MATNR AND
           STATU EQ 'N' AND
           LOEKZ EQ SPACE AND
           WERKS IN PLANT .
ENDLOOP.
ENDIF.
  CLEAR: IMAT, IEBAN.
ENDFORM.                    "PRS
*&      FORM  READ
      TEXT
FORM READ.
  LOOP AT IMAT. " MAIN LOOP
    ITAB-MATNR = IMAT-MATNR.
    ITAB-MEINS = IMAT-MEINS.
    ITAB-LGORT = IMAT-LGORT.
    READ TABLE IMAKT WITH KEY MATNR = IMAT-MATNR.
    ITAB-MAKTX = IMAKT-MAKTX.
    READ TABLE IMARC WITH KEY MATNR = IMAT-MATNR.
    ITAB-MINBE = IMARC-MINBE.
    READ TABLE IMBEW WITH KEY MATNR = IMAT-MATNR.
    ITAB-LBKUM = IMBEW-LBKUM.
SELECTING OPEN PO'S *************************
    CHECK = 0.
    LOOP AT IEKPO WHERE MATNR = IMAT-MATNR. " INNER LOOP
      ITAB-EBELN = IEKPO-EBELN.
      ITAB-EBELP = IEKPO-EBELP.
      ITAB-MENGE = IEKPO-MENGE.
      LOOP AT IMSEG WHERE EBELN = IEKPO-EBELN AND EBELP = IEKPO-EBELP.
        " INNER INNER LOOP.
        TGR = TGR + IMSEG-MENGE.
      ENDLOOP.
      ITAB-DQTY = IEKPO-MENGE - TGR.
      IF ITAB-DQTY > 0.
        CHECK = 1.
      APPEND ITAB.
      CLEAR : ITAB-EBELN,ITAB-EBELP,IEKPO-MENGE,TGR,ITAB-DQTY.
      ENDIF.
      CLEAR : ITAB-EBELN,ITAB-EBELP,IEKPO-MENGE,TGR,ITAB-DQTY.
      ENDLOOP.
      CLEAR : ITAB-EBELN,ITAB-EBELP,IEKPO-MENGE,TGR,ITAB-DQTY.
SELECTING OPEN PR'S ********************
    LOOP AT IEBAN WHERE MATNR = IMAT-MATNR.
      ITAB-BANFN = IEBAN-BANFN.
      ITAB-BNFPO = IEBAN-BNFPO.
      ITAB-MENG2 = IEBAN-MENGE.
      APPEND ITAB.
      CHECK = 1.
      CLEAR : ITAB-BANFN ,ITAB-MENG2.
    ENDLOOP.
    IF CHECK = 0.
      APPEND ITAB.
    ELSEIF CHECK = 1.
    ENDIF.
    CLEAR : IEKPO,ITAB-EBELN,ITAB-EBELP,ITAB-MENGE,ITAB-DQTY,
ITAB-BANFN,ITAB-BNFPO,ITAB-MENG2.
  ENDLOOP.
  CLEAR : ITAB,IEKPO,IMAT,IEBAN.
ENDFORM.                    "READ
Thanks
Pari

Hi Frds
In my program im displaying Open PO's Number and Quantity and Open PR's Number and Quantity based on Material ,Plant, and Storage location of Material.
In Output its only displaying Open PR's and Quantity ,if it has Open PO's also, for a same material.
Kindly anyone correct my mistake.
TYPE-POOLS: SLIS.
TABLES : EKPO,MARC,EBAN,MSEG,MARD,MARA,MAKT,MBEW.
DATA:BODY        TYPE SLIS_T_FIELDCAT_ALV,
     HEADER      TYPE SLIS_FIELDCAT_ALV,
     GD_LAYOUT   TYPE SLIS_LAYOUT_ALV,
     GD_REPID    LIKE SY-REPID.
DATA : TGR TYPE I,
       CHECK TYPE I.
TGR   = 0.
CHECK = 0.
DATA : MAT_NO LIKE MARA-MATNR, "MATERIAL CODE
       PLA_NO LIKE MARD-WERKS, "PLANT
       STORE  LIKE MARD-LGORT, "STORAGE LOCATION
       COM_NO LIKE EKPO-BUKRS. "COMPANY CODE
DATA : BEGIN OF ITAB OCCURS 0,
       MATNR LIKE MARA-MATNR, "MATERIAL CODE
       MEINS LIKE MARA-MEINS, "UOM
       MAKTX LIKE MAKT-MAKTX, "MATERIAL DESC.,
       MINBE LIKE MARC-MINBE, "ROL
       LBKUM LIKE MBEW-LBKUM, "WAREHOUSE STOCK
       LGORT LIKE MARD-LGORT, "STORAGE
       EBELN LIKE EKPO-EBELN, "PO NUMBER
       EBELP LIKE EKPO-EBELP, "PO LINEITEM
       MENGE LIKE EKPO-MENGE, "OPEN PO QTY
       MENG1 LIKE MSEG-MENGE, "GR QTY
       DQTY  LIKE MSEG-MENGE, "OPEN PO QTY
       BANFN LIKE EBAN-BANFN, "OPEN PR NUMBER
       MENG2 LIKE EBAN-MENGE, "OPEN PR QTY
       BNFPO LIKE EBAN-BANFN, "PR LINEITEM
       END OF ITAB.
DATA : BEGIN OF IMAT OCCURS 0,
       MATNR LIKE MARA-MATNR, "MATERIAL CODE
       MEINS LIKE MARA-MEINS, "UOM
       LVORM LIKE MARA-LVORM, "DELETED MATERIAL FLAG
       MSTAE LIKE MARA-MSTAE, "BLOCKED MATERIAL
       WERKS LIKE MARD-WERKS, "PLANT
       LGORT LIKE MARD-LGORT, "STORAGE
       END OF IMAT.
DATA : BEGIN OF IMAKT OCCURS 0,
       MATNR LIKE MAKT-MATNR, "MATERIAL CODE
       MAKTX LIKE MAKT-MAKTX, "MATERIAL DESC.,
       END OF IMAKT.
DATA : BEGIN OF IMARC OCCURS 0,
       MATNR LIKE MARC-MATNR, "MATERIAL CODE
       MINBE LIKE MARC-MINBE, "ROL
       LVORM LIKE MARC-LVORM, "DELETED MATERIAL FLAG
       END OF IMARC.
DATA : BEGIN OF IMBEW OCCURS 0,
       MATNR LIKE MBEW-MATNR, "MATERIAL CODE
       LBKUM LIKE MBEW-LBKUM, "WAREHOUSE STOCK
       END OF IMBEW.
DATA : BEGIN OF IEKPO OCCURS 0,
       EBELN LIKE EKPO-EBELN, "PO NUMBER
       EBELP LIKE EKPO-EBELP, "PO LINEITEM
       LOEKZ LIKE EKPO-LOEKZ, "DELETED PO'S
       MATNR LIKE EKPO-MATNR, "MATERIAL CODE
       BUKRS LIKE EKPO-BUKRS, "COMPANY
       WERKS LIKE EKPO-WERKS, "PLANT
       LGORT LIKE EKPO-LGORT, "STORAGE
       MENGE LIKE EKPO-MENGE, "PO QUANTITY
       END OF IEKPO.
DATA : BEGIN OF IMSEG OCCURS 0,
       BWART LIKE MSEG-BWART, "MOVEMENT TYPE
       MATNR LIKE MSEG-MATNR, "MATERIAL CODE
       WERKS LIKE MSEG-WERKS, "PLANT
       MENGE LIKE MSEG-MENGE, "GR QUANTITY
       EBELN LIKE MSEG-EBELN, "PO NUMBER
       EBELP LIKE MSEG-EBELP, "PO LINEITEM
       END OF IMSEG.
DATA : BEGIN OF IEBAN OCCURS 0,
       BANFN LIKE EBAN-BANFN, "PR NUMBER
       BNFPO LIKE EBAN-BNFPO, "PR LINEITEM
       LOEKZ LIKE EBAN-LOEKZ, "DELETED PR
       STATU LIKE EBAN-STATU, "OPEN PR FLAG
       MATNR LIKE EBAN-MATNR, "MATERIAL NUMBER
       MENGE LIKE EBAN-MENGE, "PR QUANTITY
       WERKS LIKE EBAN-WERKS, "PLANT
       LGORT LIKE EBAN-LGORT, "STORAGE
       END OF IEBAN.
SELECTION-SCREEN: BEGIN OF BLOCK 01.
SELECTION-SCREEN: BEGIN OF BLOCK 02 WITH FRAME .
SELECT-OPTIONS MATERIAL FOR MAT_NO.
SELECT-OPTIONS COMPANY  FOR COM_NO .
SELECT-OPTIONS PLANT    FOR PLA_NO OBLIGATORY.
SELECT-OPTIONS STORAGE  FOR STORE.
SELECTION-SCREEN: END OF BLOCK 02.
SELECTION-SCREEN: END OF BLOCK 01.
AT SELECTION-SCREEN.
  PERFORM MATERIAL. "GET MATERIAL
START-OF-SELECTION.
  PERFORM P_MAKT. "GET MATERIAL DESC.,
  PERFORM P_MARC. "GET ROL
  PERFORM P_MBEW. "GET WAREHOUSE STOCK
  PERFORM POS.    "GET POS
  SORT IEKPO BY EBELN EBELP.
  PERFORM GRS.    "GET GR QTY
  PERFORM PRS.    "GET OPEN PR NUMBER
  PERFORM READ.
  PERFORM FIELDCATALOG.
  PERFORM BUILD_LAYOUT.
GET ALV DISPLAY
  PERFORM ALVDISPLAY.
*&      FORM  MATERIAL
      TEXT
FORM MATERIAL.
  SELECT MARAMATNR MARAMEINS MARALVORM MARAMSTAE
         MARDWERKS MARDLGORT
    INTO CORRESPONDING FIELDS OF TABLE IMAT
    FROM MARA INNER JOIN MARD ON MARDMATNR = MARAMATNR
    WHERE MARA~MATNR IN MATERIAL AND
          MARD~WERKS IN PLANT AND
          MARD~LGORT IN STORAGE AND
          MARA~LVORM <> 'X' AND
          MARA~MSTAE EQ SPACE.
  IF SY-SUBRC <> 0.
    MESSAGE 'NO DATA FOUND FOR THE SELECTION ' TYPE 'E'.
    EXIT.
  ENDIF.
ENDFORM.                    "MATERIAL
*&      FORM  P_MAKT
      TEXT
FORM P_MAKT.
  LOOP AT IMAT.
    SELECT MATNR MAKTX FROM MAKT APPENDING TABLE IMAKT
         WHERE MATNR = IMAT-MATNR.
  ENDLOOP.
  CLEAR : IMAT, IMAKT.
ENDFORM. "P_MAKT
*&      FORM  P_MARC
      TEXT
FORM P_MARC.
  LOOP AT IMAT.
    SELECT MATNR MINBE LVORM FROM MARC APPENDING TABLE IMARC
      WHERE MATNR = IMAT-MATNR AND
            LVORM <> 'X'.
  ENDLOOP.
  CLEAR : IMAT, IMARC.
ENDFORM. "P_MARC
*&      FORM  P_MBEW
      TEXT
FORM P_MBEW.
  LOOP AT IMAT.
    SELECT MATNR LBKUM FROM MBEW APPENDING TABLE IMBEW
      WHERE MATNR = IMAT-MATNR.
  ENDLOOP.
  CLEAR : IMAT, IMBEW.
ENDFORM.                    "P_MBEW
*&      FORM  POS
      TEXT
FORM POS.
  LOOP AT IMAT.
    SELECT EBELN EBELP LOEKZ MATNR BUKRS WERKS LGORT MENGE
      FROM EKPO APPENDING TABLE IEKPO
      WHERE MATNR = IMAT-MATNR AND
            WERKS = IMAT-WERKS AND
            LGORT = IMAT-LGORT AND
            LOEKZ EQ SPACE.
  ENDLOOP.
  CLEAR : IMAT, IEKPO.
ENDFORM.                    "POS
*&      FORM  GRS
      TEXT
FORM GRS.
  LOOP AT IEKPO.
    SELECT BWART MATNR WERKS MENGE EBELN EBELP FROM MSEG
APPENDING TABLE IMSEG
        WHERE MATNR = IEKPO-MATNR AND
              WERKS = IEKPO-WERKS AND
              EBELN = IEKPO-EBELN AND
              EBELP = IEKPO-EBELP AND
              ( BWART = '101' OR BWART = '103' ).
  ENDLOOP.
  CLEAR: IEKPO, IMSEG.
ENDFORM.                    "GRS
*&      FORM  PRS
      TEXT
FORM PRS.
LOOP AT IMAT.
IF IEKPO[] IS NOT INITIAL.
    SELECT BANFN BNFPO LOEKZ STATU MATNR MENGE WERKS LGORT FROM EBAN
INTO TABLE IEBAN
      FOR ALL ENTRIES IN IMAT
     FROM EBAN APPENDING TABLE IEBAN
     WHERE MATNR = IMAT-MATNR AND
           STATU EQ 'N' AND
           LOEKZ EQ SPACE AND
           WERKS IN PLANT .
ENDLOOP.
ENDIF.
  CLEAR: IMAT, IEBAN.
ENDFORM.                    "PRS
*&      FORM  READ
      TEXT
FORM READ.
  LOOP AT IMAT. " MAIN LOOP
    ITAB-MATNR = IMAT-MATNR.
    ITAB-MEINS = IMAT-MEINS.
    ITAB-LGORT = IMAT-LGORT.
    READ TABLE IMAKT WITH KEY MATNR = IMAT-MATNR.
    ITAB-MAKTX = IMAKT-MAKTX.
    READ TABLE IMARC WITH KEY MATNR = IMAT-MATNR.
    ITAB-MINBE = IMARC-MINBE.
    READ TABLE IMBEW WITH KEY MATNR = IMAT-MATNR.
    ITAB-LBKUM = IMBEW-LBKUM.
SELECTING OPEN PO'S *************************
    CHECK = 0.
    LOOP AT IEKPO WHERE MATNR = IMAT-MATNR. " INNER LOOP
      ITAB-EBELN = IEKPO-EBELN.
      ITAB-EBELP = IEKPO-EBELP.
      ITAB-MENGE = IEKPO-MENGE.
      LOOP AT IMSEG WHERE EBELN = IEKPO-EBELN AND EBELP = IEKPO-EBELP.
        " INNER INNER LOOP.
        TGR = TGR + IMSEG-MENGE.
      ENDLOOP.
      ITAB-DQTY = IEKPO-MENGE - TGR.
      IF ITAB-DQTY > 0.
        CHECK = 1.
      APPEND ITAB.
      CLEAR : ITAB-EBELN,ITAB-EBELP,IEKPO-MENGE,TGR,ITAB-DQTY.
      ENDIF.
      CLEAR : ITAB-EBELN,ITAB-EBELP,IEKPO-MENGE,TGR,ITAB-DQTY.
      ENDLOOP.
      CLEAR : ITAB-EBELN,ITAB-EBELP,IEKPO-MENGE,TGR,ITAB-DQTY.
SELECTING OPEN PR'S ********************
    LOOP AT IEBAN WHERE MATNR = IMAT-MATNR.
      ITAB-BANFN = IEBAN-BANFN.
      ITAB-BNFPO = IEBAN-BNFPO.
      ITAB-MENG2 = IEBAN-MENGE.
      APPEND ITAB.
      CHECK = 1.
      CLEAR : ITAB-BANFN ,ITAB-MENG2.
    ENDLOOP.
    IF CHECK = 0.
      APPEND ITAB.
    ELSEIF CHECK = 1.
    ENDIF.
    CLEAR : IEKPO,ITAB-EBELN,ITAB-EBELP,ITAB-MENGE,ITAB-DQTY,
ITAB-BANFN,ITAB-BNFPO,ITAB-MENG2.
  ENDLOOP.
  CLEAR : ITAB,IEKPO,IMAT,IEBAN.
ENDFORM.                    "READ
Thanks
Pari

Similar Messages

  • SYNTAX_ERROR unable to log in to SAP system Syntax error in program "SAPMSE

    hi SAP Experts,
    I have applied Basis patch 12 and I scheduled the background.  Backgroud job was terminated. System became slow. Then I stopped the server and restarted.  Now, I am unable to log in to SAP GUI by entering Username and Password and getting syntax error.
    Syntax error in program "SAPMSEM1".
    What happened?
    Error in the ABAP Application Program
    The current ABAP program '????????????????????????????"
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occured in program "SAPMSEM1" in include
    "CL_SALV_FORM_ELEMET==========CU" in
    line 13:
    "the type "IF_SALV_FORM_CONFIG" is unknown."
    The include has been created and last changed by:
    Created by: "SAP "
    Last Changed by: "SAP "
    I am unable to access any transction code.
    Please help me..
    Thanks in advance...
    Raju

    hi,
    Thanks for your response.
    i haven't take any back up.  can u pls tell me step by step procedure to implement the SP with TP.
    your answer will be helpful..
    Regards
    Raju

  • Unable to login in the system ---- Syntex Error is Program SAPLSFES

    Hi,
    We have Sol_Man 7(N/W 700) in Win2003 and MSSQL 2005.
    During Support pack SAPKB70014 application in our Soloution Manager, I have continued all the step in Dialog but today it shows a message that "Inform SAP system for tp termination".The SP application was running for almost 12-14hrs.
    Then I restart my SAP system.Now when I opening SAP GUI
    Message is comming
    ABAP Runtime Error   Error Code <no erorr name or code was mentioned >
    In bottom of the page messege is comming
    " Syntex Error is Program SAPLSFES "
    Login name & password not asking.
    I also found in the Slog that
    "WARNING:       Background job RDDIMPDP could not be started or terminated abnormally."
    In SAPIB70014
    2EETW000 sap_dext called with msgnr "1":
    2EETW000 -
    db call info -
    2EETW000 function:   db_xrtab
    2EETW000 fcode:      RT_MI_LOAD
    2EETW000 tabname:    SPROXHDR                     
    2EETW000 len (char): 1740
    2EETW000 key:        CLASCX_SERVICES_REGISTRY_SIPUBLIS8 CLASCX_SERVICES_REGISTRY_SIPUBLIS82F7E61BA8717B7CD295188A843F6CB8E97F12D39
    2EETW000 retcode:    1
    2EETW125 SQL error "1105" during "" access: "[1105] Could not allocate space for object 'dbo.SPROXHDR'.'SPROXHDR~HAS' in database 'SM1' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup."
    I also checked and found that TRBAT table contains only header information where as TRJOB table is empty.
    Also found tp.exe in Task Manager.
    I have already created a message with SAP.
    Please guide me in this regard.
    Regards,
    Partha

    WARNING: Background job RDDIMPDP could not be started or terminated abnormally."
    login into Client 000 and schedule the background job again.
    Could not allocate space for object 'dbo.SPROXHDR'.'SPROXHDR~HAS' in database 'SM1' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup."
    Check the database space also. i think there is some space problem also, you need to add some space or need to add datafile.
    Regards,
    Subhash

  • Syntax error in program "SAPLXRSA " -SENT

    Hi Guys,
    I have done user exit in R/3 datasource when I do the test extraction using RSA3 and geting the data without any error. I've transport the requet to Test Box and tried to do the extraction in TestBox and getting the below SYNTAX Error message. Kindly advise it's very URGET. Thanks in advance.
    ShrtText
    Syntax error in program "SAPLXRSA ".
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLRSAP" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    In program "SAPLXRSA ", the following syntax error occurred
    in the Include "ZXRSAU01 " in line 21:
    "Field "ZOXPRO0043" is unknown. It is neither in one of the specified t"
    "ables nor defined by a "DATA" statement. "DATA" statement."
    Author and last person to change the Include are:
    Author "SAPCHEOLENG "
    Last changed by "CCEV200 "
    What can you do?
    Please eliminate the error by performing a syntax check
    (or an extended program check) on the program "SAPLXRSA ".
    You can also perform the syntax check from the ABAP/4 Editor.
    If the problem persists, proceed as follows:
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    is especially useful if you want to keep a particular message.
    Error analysis
    In program "SAPLXRSA ", the following syntax error occurred:
    "Field "ZOXPRO0043" is unknown. It is neither in one of the specified t"
    "ables nor defined by a "DATA" statement. "DATA" statement."
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If you cannot solve the problem yourself and you wish to send
    an error message to SAP, include the following documents:
    1. A printout of the problem description (short dump)
    To obtain this, select in the current display "System->List->
    Save->Local File (unconverted)".
    2. A suitable printout of the system log
    To obtain this, call the system log through transaction SM21.
    Limit the time interval to 10 minutes before and 5 minutes
    after the short dump. In the display, then select the function
    "System->List->Save->Local File (unconverted)".
    3. If the programs are your own programs or modified SAP programs,
    supply the source code.
    To do this, select the Editor function "Further Utilities->
    Upload/Download->Download".
    4. Details regarding the conditions under which the error occurred
    or which actions and input led to the error.
    System environment
    SAP Release.............. "640"
    Application server....... "hawk"
    Network address.......... "137.132.12.22"
    Operating system......... "HP-UX"
    Release.................. "B.11.23"
    Hardware type............ "ia64"
    Character length......... 8 Bits
    Pointer length........... 64 Bits
    Work process number...... 0
    Short dump setting....... "full"
    Database server.......... "hawk"
    Database type............ "ORACLE"
    Database name............ "QAS"
    Database owner........... "SAPR3"
    Character set............ "en_US.iso88591"
    SAP kernel............... "640"
    Created on............... "Oct 16 2006 20:35:55"
    Created in............... "HP-UX B.11.23 U ia64"
    Database version......... "OCI_920 "
    Patch level.............. "153"
    Patch text............... " "
    Supported environment....
    Database................. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE
    10.2.0.."
    SAP database version..... "640"
    Operating system......... "HP-UX B.11"
    Memory usage.............
    Roll..................... 16128
    EM....................... 12569760
    Heap..................... 0
    Page..................... 65536
    MM Used.................. 1716768
    MM Free.................. 2470608
    SAP Release.............. "640"
    User and Transaction
    Client.............. 220
    User................ "CCEENGG"
    Language key........ "E"
    Transaction......... "RSA3 "
    Program............. "SAPLRSAP"
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where terminated
    The termination occurred in the ABAP program "SAPLRSAP" in
    "CALL_DATA_CUSTOMER_FUNCTION".
    The main program was "RSFHGEN2 ".
    The termination occurred in line 96 of the source code of the (Include)
    program "LRSAPF06"
    of the source code of program "LRSAPF06" (when calling the editor 960).
    Source Code Extract
    Line
    SourceCde
    66
    CALL FUNCTION BW_BTE_CALL_BW204010_E
    67
    EXPORTING
    68
    I_DATASOURCE = L_DATASOURCE
    69
    I_UPDMODE    = P_UPDMODE
    70
    TABLES
    71
    I_T_SELECT   = P_T_SELECT
    72
    I_T_FIELDS   = P_T_FIELDS
    73
    C_T_DATA     = P_T_DATA
    74
    C_T_MESSAGES = L_T_MESSAGES
    75
    EXCEPTIONS
    76
    OTHERS       = 1.
    77
    DESCRIBE TABLE P_T_DATA LINES L_LINES.
    78
    MESSAGE S408 WITH L_LINES.
    79
    Handle BTE-Exit error messages
    80
    IF SY-SUBRC <> 0.
    81
    P_SUBRC = SY-SUBRC.
    82
    IF 1 = 2. MESSAGE E021 WITH ''. ENDIF.
    83
    MESSAGE_WRITE 'E' 'R3' '021' 'BW_BTE_CALL_BW204010_E' '' '' ''.
    84
    ENDIF.
    85
    IF NOT L_T_MESSAGES IS INITIAL.
    86
    PERFORM WRITE_BTE_EXIT_MESSAGES TABLES   L_T_MESSAGES
    87
    CHANGING P_SUBRC.
    88
    ENDIF.
    89
    ENDIF.
    90
    ENDIF.
    91
    92
    Call Customer-Exit
    93
    DESCRIBE TABLE P_T_DATA LINES L_LINES.
    94
    MESSAGE S407 WITH 'EXIT_SAPLRSAP_001' 'CMOD' L_LINES.
    95
    CLEAR SY-SUBRC.
    >>>>>
    CALL CUSTOMER-FUNCTION '001'
    97
    EXPORTING
    98
    I_DATASOURCE             = L_DATASOURCE
    99
    I_ISOURCE                = L_12B_SOURCE
    100
    I_UPDMODE                = P_UPDMODE
    101
    TABLES
    102
    I_T_SELECT               = P_T_SELECT
    103
    I_T_FIELDS               = P_T_FIELDS
    104
    C_T_DATA                 = P_T_DATA
    105
    C_T_MESSAGES             = L_T_MESSAGES
    106
    EXCEPTIONS
    107
    RSAP_CUSTOMER_EXIT_ERROR = 1
    108
    OTHERS                   = 2.
    109
    DESCRIBE TABLE P_T_DATA LINES L_LINES.
    110
    MESSAGE S408 WITH L_LINES.
    111
    112
    Handle Customer-Exit error messages
    113
    IF SY-SUBRC <> 0.
    114
    P_SUBRC = SY-SUBRC.
    115
    IF 1 = 2. MESSAGE E020 WITH ''. ENDIF.
    Contents of system fields
    Name
    Val.
    SY-SUBRC
    0
    SY-INDEX
    1
    SY-TABIX
    1
    SY-DBCNT
    0
    SY-FDPOS
    0
    SY-LSIND
    0
    SY-PAGNO
    0
    SY-LINNO
    1
    SY-COLNO
    1
    SY-PFKEY
    SY-UCOMM
    SY-TITLE
    Report for the extractor call
    SY-MSGTY
    S
    SY-MSGID
    R3
    SY-MSGNO
    407
    SY-MSGV1
    EXIT_SAPLRSAP_001
    SY-MSGV2
    CMOD
    SY-MSGV3
    100
    SY-MSGV4
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
    Name
    5 FUNCTION     SAPLRSAP                            LRSAPF06                               96
    CALL_DATA_CUSTOMER_FUNCTION
    4 FORM         SAPLRSAP                            LRSAPF06                               96
    CALL_DATA_CUSTOMER_FUNCTION
    3 FORM         GP3PDR0GQDXJ0ZOA35DPGNCU80M         GP3PDR0GQDXJ0ZOA35DPGNCU80M           274
    PROCESS_DATA_PACKAGE
    2 FORM         GP3PDR0GQDXJ0ZOA35DPGNCU80M         GP3PDR0GQDXJ0ZOA35DPGNCU80M           170
    DATA_TRANSFER
    1 EVENT        RSFHGEN2                            RSFHGEN2                               59
    START-OF-SELECTION

    Hello Raja,
    I think some objects should still lying in the dev. server which are yet to be transported, also try to deactivate and reactivate the project for user exit for BW and transport it .
    Also manually request can be created for transporting object "ZOXPRO0043" into quality environment and transport it .
    Let us know the output for the same.
    Hope that helps.
    Regards
    Kapadia
    ***Assigning points is the way to say thanks in SDN.***

  • Short dump in VF01 - Syntax error in program "RKEAK9RECP3000001"

    Helo all,
    We recently copied our production client to a QA client and when we try to save an SD invoice (VF01), we get a short dump titled - Syntax error in program "RKEAK9RECP3000001".
    The dump long text states:
    "The Dictionary structure or table "K9RECP3000001" is either not active"
    " or does not exist."
    and
    NOTE in case of a SHORT DUMP:
    if the following perform statement should lead to a short dump, then
    the report stated in the short dump is missing (RKEAK9Rsssmmmnnnn)
    Check if table K9Rsssmmmnnn exists. If not it should be transported
    from the original system.
    Regenerate the missing reports by using transaction SE37, entering
    function KEDR_REGENERATE_ALL_REPORTS and pressing button 'Test' and
    'Execute'.
    but I tried to run function KEDR_REGENERATE_ALL_REPORTS in SE37 and the problem persists.
    Maybe I'm not running it correctly - there is no execute option when pressing "Test" so I enter the function and press F8, which takes me to a screen titled "Test function module" and then I execute.
    My suspicion is that table "K9RECP3000001" cannot be created or generated since it it a system specific naming convention K9RSSSCCC0001 in which SSS is system ID (in our case ECP is production and ECQ is QA) ans CCC is client number (300 in prod, and should be 286 in ECQ).
    Has anyone encountered this type of a problem and knows how to fix it?
    Needless to say, I looked at OSS notes, but did not find the solution there.
    Any thought will be appreciated,
    Yoel.

    Shalom Yoel,
    This problem may be caused by the fact that some derivation rules
    that were originally created once in a system have been transported
    into target system without transporting the dependent objects
    as well (the generated tables for the derivation rule entries).
    You can see this by execution of program RKEDRCHECK with only
    parameter 'Check in all clients' marked. You will then get
    inconsistent derivation steps (which refer to a generated table
    table for the rule entries that doesn't exist because it was
    not transported).
    There are two ways to solve the problem:
    1.) If you don't need these steps any more in derivation you can get
        rid of them by executing program RKEDRCHECK with both parameters
        marked ('Check in all clients' and 'Delete inconsistent steps').
    2.) If these steps should remain you have to retransport the missing
        tables from the source system in which these tables have to exist
        (creating transport requests for the customizing of derivation by
        pushing on the 'Transport' icon in the source system in transactions
        KEDR and KEPC).
    For each derivation step,the system generates a program RKEAK9R *
    and a table K9R+ System ID+ Mandant+ a number of five figures
    from the object number in KEDR.
    br, Guido

  • Abort system error in program CL_RSDM_READ_MASTER_DATA and form_sidval_dire

    HI All,
    The following error is thrown when I execute the query.
    abort system error in program CL_RSDM_READ_MASTER_DATA and form_sidval_direct_
    However, earlier today, I ran this query successfully several times.This Query is on a multiprovider.
    Appreciate your help in advance.
    Regards,
    Harika

    Dear Harika,
    Try to repair at RSRV and check.
    Check: Re: SID error for characteristic
    Srini

  • BW-WebI Report: MDDataSetBW.GetCellData.  System error in program

    Hi,
    I'm trying to run a WebIntelligence Report connected with BW Query but return error before showing the results.
    The error is:
    Error in MDDataSetBW.GetCellData.  System error in program CL_RSDRC_MULTIPROV and form SETRESOLVE-01- (consid.TxtDescrit.). (WIS 10901)
    My query in BO contain 8 dimensions and 2 measures.
    Someone has been there?
    Tks!
    Edited by: Peeter Cassiano Antunes Bonomo on Sep 6, 2011 7:33 PM

    Ingo,
    running the query in RSRT with the same elements works perfectly.The results are displayed.
    But tested the MDX query in the transaction MDXTest and entered in the ABAP Debugger, press F8 and the following message appeared:
    "The current application triggered a termination with a short dump".
    "The current application program detected a situation which really should not occur. Therefore, a termination with a short dump was triggered on purpose by the key word MESSAGE (type x)."
    "Short text of error message:
    System error in program SAPLRRK0 and form CHECK_KHANDLE (consid.TxtDescrit)."
    Does that help?
    Tks,
    Edited by: Peeter Cassiano Antunes Bonomo on Sep 9, 2011 3:18 PM

  • When I try to open an embedded PDF file I get an error "The program used to create this object is AcroExch.exe.

    When I try to open an embedded PDF file (Word doc) I get an error "The program used to create this object is AcroExch.exe. That program is either not installed on your computer, or is corrupt..."  I've tried  about everything from unchecking
    protected mode at startup to removing & reinstalling Adobe.  Nothing seems to fix this issue.  Any other ideas?
    This is happening on Adobe reader 9, 10 & 11 with MS Word 2010 & 2013.  I've uninstalled, cleaned & reinstalled Reader 9, 10 & 11, as well as Acrobat 10 Pro & 11 Standard.  Removed "Protected mode at startup, and changed
    the default program for viewing from reader to Acrobat.  This will not go away.  It is affecting production at our company.

    " Help > Troubleshooting Information > Profile Directory: Open Containing Folder" . i can't find open containing folder in profile directory. it does give me the option to open the places.sqlite file using graphic converter. when i try that, graphic converter gives me a window saying that it can't be opened because it is corrupted or is not a file type supported by graphic converter.
    i appreciate your help with a workaround to get the old bookmarks. that works. however, the problem has morphed from that concern to why adobe reader [the default app.] won't open firefox .sqlite files. is the problem in adobe reader or firefox? also, how can i tell if the places.sqlite file is corrupt?
    i'm getting in over my head here and do appreciate your help.

  • !!System error in program SAPLRS_EXCEPTION and form RS_EXCEPTION_TO_MESSAGE

    Hi Gurus,
    Mater data text loading from a DSO to a InfoObject has failed in the process Chain at DTP step while trying to extract Data packet 2 from the DSO.
    In the log i am getting following error message:
    "System error in program SAPLRS_EXCEPTION and form RS_EXCEPTION_TO_MESSAGE (see long text)
    Message no. BRAIN299".
    Please help urgent.
    FYI.....
    we have recently done upgrade from BI/ABAP SP11 to SP15 and the latest Java SP || 14 (both included in SPS 14).
    Points will surely be awarded.
    Thanks,
    Anurag

    Hello Anurag,
    Could you solve this problem? If so, please share the solution with me. I'm getting the same error while loading data using DTPs.
    Regards,
    Neha

  • Abort System Error in Program SAPLRRV and for RRSV_CHAVL_TO_VALUE_CONVERT

    Hello SDN
    While refreshing a query in a Workbook, I have received this error message and getting disconnecting form the BW server.
    "Abort System Error in Program SAPLRRV and for RRSV_CHAVL_TO_VALUE_CONVERT"
    Does anyone has any idea? It is happening in Production and need to fix it as soon as possible.
    Appreciate any help and points will be assigned for useful information.
    Thanks
    kumar

    Hi Dinesh
    It is stopping at the BREAK-POINT in Function LRRMSU13(RRMS_X_MESSAGE)
    variable_screen=X&template_id=0QUERY_TEMPLATE
    In the messages , For generation, it display:
    &CAUSE&
    The query contains selection elements with "Constant Selection". Such a
    query cannot be run in the read mode 'Read Everything at Once'.
    &SYSTEM_RESPONSE&
    The read mode is automatically converted.
    &SYS_ADMIN&
    In the Variables, I see
    &CAUSE&
    Variable <(>&<)>V1& is used in the query in such a way, that an
    optional entry is not possible.
    For example, you might be using an "Exclude", or the variable might be
    connected using OR to additional selections for <(>&<)>V2& in the
    global filter, but is still displayed in the columns selections.
    It is also not possible to use an optional parameter variable to fill
    an interval selection in either the from-field or the to-field.
    &SYSTEM_RESPONSE&
    &WHAT_TO_DO&
    If you are able to accept the mandatory entry, you need not do
    anything. Otherwise you must work with several variables in the query.
    You can use an optional interval variable to do this.
    &SYS_ADMIN&
    For Key Figs :
    &CAUSE&
    Quantities are multiplied with values for the key figure &V2& (&V1&).
    This is not sensible.
    A basic key figure was probably defined that contain a price. Only
    addable amounts should be written on the database. Ratios and prices
    are calculated as key figures. Therefore, the system maintains the
    correct sequence, meaning summing takes place on every place and then
    the quotient is formed.
    If a 'price amount' is saved as a basic key figure after all then the
    'non-aggregated indicator' can be undone using 'Change key figure'.
    Therefore, the system carries out the multiplication (or division)
    before the summing. The key figure is then assigned to the group 'Other
    columns'.
    &WHAT_TO_DO&
    Please check the definition of the key figure &V2& (&V1&).
    <DS:TRAN.KDNN>Check or change key figure &V1&</>
    Can you please let me know how to fix this issue?
    Thanks
    Kuamr

  • Error Specify a value for variable-Abort System error in program SAPLRRK0 a

    Dear Experts,
    Could anyone help me to fix this issue?
    I have an Customer exit variable in my query to calulate the first week of the prior year value as per the system calendar. when i execute the query, I am receiving the following error messaged and i am throwing out from the BW server.
    The error message is
    Error Specify a value for variable ZR00**
    Abort System error in program SAPLRRK0 and form APPEND_KHANDLE_1-01-
    Many thanks in advance.
    Regards.
    Krishna.

    Hi Kishor,
    try runnig the same query in RSRT, with execute and debug option.
    Also check in query designer for its correctness.
    Hope this helps...
    Regards,
    umesh

  • Syntax error in program SAPLRRK0 - while running query in Bex/Portal

    Hi all,
    we just transported all the objects from dev to QA and data is loaded and everything went good. We are SPS9 and front end patch 903
    Now I am trying to run queries on Bex analyzer and portal and I am getting this error.
    "Syntax error in program SAPLRRK0."
    Also on portal I am getting these extra messages
    Error while executing function module: BICS_PROV_SUBMIT_VARIABLES
    Error while executing function module: BICS_PROV_OPEN
    I am researching but any input is appreciated.
    Thanks,
    Kiran

    Thanks Prakash,
    I understand the pre-requisite notes issue but when we are moving like 50 notes from BW Dev to BW QA i am not sure how it works. I overheard the basis guy saying he is going to appy notes as per time stamp they were applied in BW Dev system. I will check on that though.
    I have applied notes 969330, 969772, 977912,978359, 981814, 987135 in last 2 weeks. (which probaly are some how related to the issue). We have also applied some BI-Java notes in Portal Dev which are not transported to Portal QA.
    Thanks,
    Kiran

  • Error while executing report : Error in program CL_RSR_RRK0_CURR

    Hi Gurus,
    I am getting an error while executing a report.This error is only for one date seletion. For other selections report runs fine.Below is the error description & long text.
    Please let me know if you have any solution on this.
    A System error in program CL_RSR_RRK0_CURR and form FILL_CUDIM_02-04.
    System error in program CL_RSR_RRK0_CURR and form FILL_CUDIM_02-04- (see long text)
    Message no. BRAIN299
    Diagnosis
    This internal error is an intended termination resulting from a program state that is not
    permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in
    the planning modeler, and if you can reproduce this termination, record a trace (transaction
    RSTT).
    For more information about recording a trace, see the documentation for the trace tool
    environment as well as SAP Note 899572
    Thanks,
    Prasanna N.

    Hi Prasanna,
                 Check the below SAp Note:
    SAP Note : 1030657
    Thanks,
    Vijay.

  • Syntax error in program SAPLPT_ARQ_REQUEST_UIA

    Hello,
    We are stuck with a BADI implementation.
    The scenario is following :
    1. For ESS leave process we have stopped the standard BADI CL_PT_ARQ_REQ
    2. We have implemented a custome BADI which is a modification of standard BADI CL_PT_ARQ_REQ
    Now in our development box it is working fine but when tried it in our production system then
    we are getting the following error while opening the leave request page :
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Syntax error in program SAPLPT_ARQ_REQUEST_UIA                  ., error key: RFC_ERROR_SYSTEM_FAILURE
    Please let us know how to resolve the issue.
    Thanks in advance.
    Regards,
    Partha

    Ensure that you have all related transport requests go to PRD.
    Check logs using transaction ST22 and find out more on where this syntax error is coming... you might be able to pin point code which is causing this.
    Rgds

  • Abort System Error in program SAPLRRS2 and form INITFL_ASSIGN-01 error

    Hi All,
    When I refresh a query/workbook getting following error message and can not proceed further..
    Abort System Error in program SAPLRRS2 and form INITFL_ASSIGN-01
    We are using BW 3.5 and BEX reports.
    I'd appreciate if you could help me on this

    I don't know if you have since been able to resolve this problem.
    Anyway, for future reference, I have just had the same error message and was able to resolve it by simply removing and then reinstalling one of the characteristics, together with its variables and filters, in the free characteristics section of the query.
    Hope that this is of help to someone.

  • Syntax error in program "SAPLOCS_LOG ". for SPAM

    Hi  Team ,
    I have updated SPAM from 730 45 to 730 51 after that i am trying to update SPS from spam , it is throwing the  below error .
    Category          
    ABAP Programming Error
    Runtime Errors    
    SYNTAX_ERROR
    ABAP Program      
    SAPLOCS_LOG
    Application Component  BC-UPG-OCS
    Date and Time     
    07.04.2014 18:21:55
    Short text
        Syntax error in program "SAPLOCS_LOG ".
    What happened?
        Error in the ABAP application program.
        The current ABAP program "SAPLOCS_UI" had to be interrupted because it contains
        a statement that cannot be executed.
        In the include "LOCS_LOGU15 " in the line 97 of program "SAPLOCS_LOG " the
         following syntax
        errors occur:
        "The data object "LS_PATHISTQ" does not have a component called "PRE_VR"
        "S"."
        Author and last person to change the include are:
        Author "SAP "
        Last changer "SAP "
    Error analysis
        The following syntax error was found in the program SAPLOCS_LOG :
        "The data object "LS_PATHISTQ" does not have a component called "PRE_VR"
        "S"."
    Help is much appreciated .
    Thanks,
    Pradeep.

    Hi ,
    After full restart of the system also there is no use , even i tried to upgrade to 52 .
    It is throwing dump .
    Category          
    ABAP Programming Error
    Runtime Errors    
    SYNTAX_ERROR
    ABAP Program      
    SAPLOCS_LOG
    Application Component  BC-UPG-OCS
    Date and Time     
    07.04.2014 23:32:43
    Short text
    Syntax error in program "SAPLOCS_LOG ".
    What happened?
    Error in the ABAP application program.
    The current ABAP program "SAPLOCS_UI" had to be interrupted because it contains
    a statement that cannot be executed.
    In the include "LOCS_LOGU15 " in the line 97 of program "SAPLOCS_LOG " the
    following syntax
    errors occur:
    "The data object "LS_PATHISTQ" does not have a component called "PRE_VR"
    "S"."
    Author and last person to change the include are:
    Author "SAP "
    Last changer "SAP "
    Help is really much appreciated ..
    Thanks,
    Pradeep.

Maybe you are looking for