Regarding Error in FM

Hi All,
I am using FM  'CURRENCY_AMOUNT_SAP_TO_DISPLAY' in my code. However after calling this FM in my program it is going to Dump & program is terminated.
I am getting ABAP runtime error   BCD_FIELD_OVERFLOW.
and
Error analysis as
A value generated during processing is too large for
field "P_AMT_DISP" of program "Z_TEST_TEMP ".
Please tell me where I am wrong.....
Points would be rewarded...
Thanks
Jitendra.
Following is my code.
DATA : BEGIN OF IT_OUTTAB OCCURS 0,
              WAERK LIKE VBAK-WAERK,
              CMPRE LIKE VBRP-CMPRE,
              NETWR LIKE VBRP-NETWR,
            END   OF IT_OUTTAB.
PERFORM CURRENCY_DISPLAY USING
                                                    IT_OUTAB-WAERK
                                                    IT_OUTTAB-CMPRE
                                             CHANGING
                                                    IT_OUTTAB-CMPRE.
PERFORM CURRENCY_DISPLAY USING
                                                    IT_OUTAB-WAERK
                                                    IT_OUTTAB-NETWR
                                             CHANGING
                                                    IT_OUTTAB-NETWR.
*&      Form  CURRENCY_DISPLAY
      text
     -->P_IT_DATA_WAERK  text
     -->P_IT_DATA_CMPRE  text
     <--P_IT_OUTTAB_CMPRE  text
FORM CURRENCY_DISPLAY USING    P_CURRENCY
                                                           P_AMOUNT
                                         CHANGING P_AMT_DISP.
DATA : P_CURRECNY TYPE TCURC-WAERS,
           P_AMT TYPE WMTO_S-AMOUNT,
           P_DISP TYPE WMTO_S-AMOUNT.
  P_AMT = P_AMOUNT.
CALL FUNCTION 'CURRENCY_AMOUNT_SAP_TO_DISPLAY'
    EXPORTING
      CURRENCY                    = P_CURRENCY
      AMOUNT_INTERNAL       = P_AMT
    IMPORTING
      AMOUNT_DISPLAY         = P_DISP
    EXCEPTIONS
      INTERNAL_ERROR         = 1
      OTHERS                         = 2.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY
      NUMBER SY-MSGNO WITH SY-MSGV1
      SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    P_AMT_DISP  = P_DISP.
    CLEAR : P_AMT, P_DISP.
ENDFORM.                    " CURRENCY_DISPLAY

Hi Kripa,
               here is my entire code....
I am using this Currency FM to display the values according to the currency specified.
Eg Yen has no decimal places
Dollar euro have 2 decimals... and so on...
Can you tell me any other way  by which I can
Display the data of unit and netprice accoring to currency type...
REPORT Z_TEST_TEMP
       MESSAGE-ID Z64_I
       NO STANDARD PAGE HEADING.
TYPE POOLS
TYPE-POOLS SLIS.
TABLES
TABLES: VBRK,
        VBRP,
        LIKP,
        KNA1,
        VBRL,
        KNMT.
INTERNAL TABLES
DATA : BEGIN OF IT_JOIN OCCURS 0,
         VBELN LIKE VBRK-VBELN,
         FKART LIKE VBRK-FKART,
         FKDAT LIKE VBRK-FKDAT,
         VBELEN LIKE VBRL-VBELN,
         POSNR LIKE VBRL-POSNR,
         VBELN_VF LIKE VBRL-VBELN_VF,
       END OF IT_JOIN.
DATA: BEGIN OF IT_DATA OCCURS 0,
         VBELN LIKE VBRK-VBELN,
         FKART LIKE VBRK-FKART,
         FKDAT LIKE VBRK-FKDAT,
         KUNAG LIKE VBRK-KUNAG,
         KUNRG LIKE VBRK-KUNRG,
         VKORG LIKE VBRK-VKORG,
         VTWEG LIKE VBRK-VTWEG,
         SPART LIKE VBRK-SPART,
         WAERK LIKE VBRK-WAERK,
         MATNR LIKE VBRP-MATNR,
         ARKTX LIKE VBRP-ARKTX,
         CHARG LIKE VBRP-CHARG,
         FKIMG LIKE VBRP-FKIMG,
         PSTYV LIKE VBRP-PSTYV,
         CMPRE LIKE VBRP-CMPRE,
         NETWR LIKE VBRP-NETWR,
         VBELEN LIKE VBRP-VBELN,
         POSNR LIKE VBRP-POSNR,
         AUBEL LIKE VBRP-AUBEL,
         AUPOS LIKE VBRP-AUPOS,
         VGBEL LIKE VBRP-VGBEL,
         VGPOS LIKE VBRP-VGPOS,
      END OF IT_DATA.
DATA : BEGIN OF IT_LIKP OCCURS 0,
        VBELN LIKE LIKP-VBELN,
        LFDAT LIKE LIKP-LFDAT,
        KUNNR LIKE LIKP-KUNNR,
        WADAT_IST LIKE LIKP-WADAT_IST,
       END   OF IT_LIKP.
DATA : BEGIN OF IT_CUST_DATA OCCURS 0,
        KUNNR LIKE KNA1-KUNNR,
        NAME  LIKE KNA1-NAME1,
       END OF IT_CUST_DATA.
DATA : BEGIN OF IT_KNMT OCCURS 0,
        VKORG LIKE KNMT-VKORG,
        VTWEG LIKE KNMT-VTWEG,
        KUNNR LIKE KNMT-KUNNR,
        MATNR LIKE KNMT-MATNR,
        POSTX LIKE KNMT-POSTX,
       END OF IT_KNMT.
DATA : BEGIN OF IT_SAL_DTL OCCURS 0,
         VBELN LIKE VBAK-VBELN,
         BSTNK LIKE VBAK-BSTNK,
       END OF IT_SAL_DTL.
DATA : BEGIN OF IT_OUTTAB OCCURS 0,
         VBELN LIKE VBRK-VBELN,
         POSNR LIKE VBRP-POSNR,
         FKART LIKE VBRK-FKART,
         LFDAT LIKE LIKP-LFDAT,
         KUNAG LIKE VBRK-KUNAG,
         NAME  LIKE KNA1-NAME1,
         KUNNR LIKE LIKP-KUNNR,
         NAME1 LIKE KNA1-NAME1,
         MATNR LIKE VBRP-MATNR,
         ARKTX LIKE VBRP-ARKTX,
         POSTX LIKE KNMT-POSTX,
         CHARG LIKE VBRP-CHARG,
         FKIMG LIKE VBRP-FKIMG,
         CMPRE LIKE VBRP-NETWR,"VBRP-CMPRE,
         NETWR LIKE VBRP-NETWR,
         INV_FKDAT LIKE VBRK-FKDAT,
         FKDAT LIKE VBRK-FKDAT,
         WADAT_IST LIKE LIKP-WADAT_IST,
         VGBEL LIKE VBRP-VGBEL,
         VGPOS LIKE VBRP-VGPOS,
         AUBEL LIKE VBRP-AUBEL,
         AUPOS LIKE VBRP-AUPOS,
         BSTNK_VF LIKE VBRK-BSTNK_VF,
         REMARK2(20) TYPE C, "LIKE TLINE-TDLINE,
         KUNRG LIKE VBRK-KUNRG,
         NAME2 LIKE KNA1-NAME1,
       END   OF IT_OUTTAB.
ALV List Variables
DATA: IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,        " FieldCat for Output
      IT_EVENTS   TYPE SLIS_T_EVENT,               " ALV Events tab
      GS_LAYOUT   TYPE SLIS_LAYOUT_ALV,            " ALV Layout
      GS_FIELDCAT TYPE SLIS_FIELDCAT_ALV,          " Fieldcat
      GS_EVENTS   TYPE SLIS_ALV_EVENT.             " ALV Events
VARIABLES
DATA: V_REPID LIKE SY-REPID.
SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_BILL FOR VBRK-FKDAT,
                S_SLD FOR VBRK-KUNAG,
                S_SHP FOR LIKP-KUNNR,
                S_PAYER FOR VBRK-KUNRG,
                S_DIV FOR VBRK-SPART,
                S_MATNR FOR VBRP-MATNR,
                S_GI_DAT FOR LIKP-WADAT_IST.
SELECTION-SCREEN END   OF BLOCK B1.
AT SELECTION-SCREEN
AT SELECTION-SCREEN.
  PERFORM VALIDATE_SEL_SCREEN.
START-OF-SELECTION
START-OF-SELECTION.
  PERFORM GET_DATA.
  PERFORM FILL_OUTTAB.
END-OF-SELECTION
END-OF-SELECTION.
  PERFORM DISPLAY_OUT_DATA.
*&      Form  VALIDATE_SEL_SCREEN
      text
-->  p1        text
<--  p2        text
FORM VALIDATE_SEL_SCREEN.
DATA:   L_SLD_TO_PAR LIKE VBRK-KUNAG,
        L_SHP_TO_PAR LIKE LIKP-KUNNR,
        L_PAYER LIKE VBRK-KUNRG,
        L_MATNR LIKE MARA-MATNR,
        L_DIV LIKE VBAK-SPART.
*- Validate Division
        IF NOT S_DIV[] IS INITIAL.
          SELECT SINGLE SPART FROM TSPA
             INTO L_DIV
             WHERE SPART IN S_DIV.
          IF SY-SUBRC <> 0.
            MESSAGE E000 WITH 'Invalid Division'.
          ENDIF.
        ENDIF.
*- Validate Sold To Party
        IF NOT S_SLD[] IS INITIAL.
          SELECT SINGLE KUNNR FROM KNA1
             INTO L_SLD_TO_PAR
             WHERE KUNNR IN S_SLD.
          IF SY-SUBRC <> 0.
            MESSAGE E000 WITH 'Invalid Sold to Party'.
          ENDIF.
        ENDIF.
*- Validate Ship To Party
        IF NOT S_SHP[] IS INITIAL.
          SELECT SINGLE KUNNR FROM KNA1
             INTO L_SHP_TO_PAR
             WHERE KUNNR IN S_SHP.
          IF SY-SUBRC <> 0.
            MESSAGE E000 WITH 'Invalid Ship to Party'.
          ENDIF.
        ENDIF.
*- Validate Payer
        IF NOT S_PAYER[] IS INITIAL.
          SELECT SINGLE KUNNR FROM KNA1
             INTO L_PAYER
             WHERE KUNNR IN S_PAYER.
          IF SY-SUBRC <> 0.
            MESSAGE E000 WITH 'Invalid Payer'.
          ENDIF.
        ENDIF.
*- Validate Material Number
        IF NOT S_MATNR[] IS INITIAL.
          SELECT SINGLE MATNR FROM MARA
             INTO L_MATNR
             WHERE MATNR IN S_MATNR.
          IF SY-SUBRC <> 0.
            MESSAGE E000 WITH 'Invalid Material Number'.
          ENDIF.
        ENDIF.
ENDFORM.                    " VALIDATE_SEL_SCREEN
*&      Form  GET_DATA
      text
-->  p1        text
<--  p2        text
FORM GET_DATA.
WE GET ALL THE BILLING DOCUMENT NO. OF TYPE ZELR (INVOICE LIST) FROM
VBRK AND PASS THESE BILLING DOC NO. AS INVOICE LIST NO. TO VBRL AND
SELECT ALL THOSE BILLING DOCS UNDER THE CORRESPONDING INVOICE LIST NO.
DATA FROM VBRK & VBRL.
    SELECT VBRKVBELN VBRKFKART VBRK~FKDAT
           VBRLVBELN VBRLPOSNR VBRL~VBELN_VF FROM
           VBRK INNER JOIN VBRL ON VBRKVBELN =  VBRLVBELN
           INTO TABLE IT_JOIN WHERE VBRK~FKDAT IN S_BILL
           AND VBRK~FKART = 'ZELR'.
    SORT IT_JOIN BY VBELN.
DATA FROM VBRK AND VBRP.
    SELECT VBRKVBELN VBRKFKART VBRKFKDAT VBRKKUNAG VBRK~KUNRG "
           VBRKVKORG VBRKVTWEG VBRKSPART VBRKWAERK
           VBRPMATNR VBRPARKTX VBRPCHARG VBRPFKIMG
           VBRPPSTYV VBRPCMPRE VBRPNETWR VBRPVBELN VBRP~POSNR
           VBRPAUBEL VBRPAUPOS VBRPVGBEL VBRPVGPOS
    INTO TABLE IT_DATA
    FROM ( VBRK
           INNER JOIN VBRP
           ON VBRPVBELN = VBRKVBELN )
           FOR ALL ENTRIES IN IT_JOIN
           WHERE VBRK~VBELN = IT_JOIN-VBELN_VF
             AND VBRK~KUNAG IN S_Sld
             AND VBRK~KUNRG IN S_payer
             AND VBRK~SPART IN S_Div
             AND VBRP~MATNR IN S_MATNR.
    SORT IT_DATA BY VBELN.
FOR DELIVERY DATE AND SHIP TO PARTY.
    SELECT VBELN LFDAT KUNNR WADAT_IST FROM LIKP
           INTO TABLE IT_LIKP
           FOR ALL ENTRIES IN IT_DATA
           WHERE VBELN = IT_DATA-VGBEL
           AND   KUNNR IN S_SHP
           AND   WADAT_IST IN S_GI_DAT.
    SORT IT_LIKP BY VBELN.
FOR CUSTOMER MATERIAL DESCRIPTION.
    SELECT VKORG VTWEG KUNNR MATNR POSTX
    FROM KNMT INTO TABLE IT_KNMT
    FOR ALL ENTRIES IN IT_DATA
           WHERE MATNR = IT_DATA-MATNR
             AND VKORG = IT_DATA-VKORG
             AND VTWEG = IT_DATA-VTWEG.
GET CUSTOMER PO DATA FROM VBAK.
    SELECT VBELN BSTNK FROM VBAK INTO TABLE IT_SAL_DTL
    FOR ALL ENTRIES IN IT_DATA WHERE
    VBELN = IT_DATA-AUBEL.
    SORT IT_SAL_DTL BY VBELN.
GET CUSTOMER & CUSTOMER NAME FROM KNA1.
    SELECT KUNNR NAME1 FROM KNA1 INTO TABLE IT_CUST_DATA.
    SORT IT_CUST_DATA BY KUNNR.
ENDFORM.                    " GET_DATA
*&      Form  FILL_OUTTAB
      text
-->  p1        text
<--  p2        text
FORM FILL_OUTTAB.
LOOP AT IT_DATA.
Data : AMT_DISP LIKE WMTO_S-AMOUNT.
  CLEAR : IT_OUTTAB.
  MOVE-CORRESPONDING IT_DATA TO IT_OUTTAB.
FOR UNIT PRICE.
  PERFORM CURRENCY_DISPLAY USING IT_DATA-WAERK
                                 IT_DATA-CMPRE
                       CHANGING IT_OUTTAB-CMPRE.AMT_DISP
                         CHANGING AMT_DISP.
FOR NET VALUE.
  PERFORM CURRENCY_DISPLAY USING IT_DATA-WAERK
                                 IT_DATA-NETWR
                       CHANGING IT_OUTTAB-NETWR.
                        CHANGING AMT_DISP.
  IT_OUTTAB-NETWR = AMT_Disp.
  CLEAR AMT_Disp.
  IF IT_DATA-PSTYV = 'ZREN' OR IT_DATA-PSTYV = 'ZG2N' OR
     IT_DATA-PSTYV = 'G2N'.
    IT_OUTTAB-CMPRE = IT_OUTTAB-CMPRE * -1.
    IT_OUTTAB-NETWR = IT_OUTTAB-NETWR * -1.
  ENDIF.
  READ TABLE IT_JOIN WITH KEY VBELN_VF = IT_DATA-VBELN.
  IT_OUTTAB-INV_FKDAT = IT_JOIN-FKDAT.
  CLEAR IT_JOIN.
  PERFORM READ_REMARKS USING IT_DATA-AUBEL IT_DATA-AUPOS
                       CHANGING IT_OUTTAB-REMARK2.
   IF NOT IT_DATA-KUNAG IS INITIAL.
    READ TABLE IT_CUST_DATA WITH KEY KUNNR = IT_OUTTAB-KUNAG.
    IT_OUTTAB-NAME = IT_CUST_DATA-NAME.
    CLEAR IT_CUST_DATA.
   ENDIF.
   IF NOT IT_DATA-KUNRG IS INITIAL.
     READ TABLE IT_CUST_DATA WITH KEY KUNNR = IT_OUTTAB-KUNRG.
     IT_OUTTAB-NAME2 = IT_CUST_DATA-NAME.
     CLEAR IT_CUST_DATA.
   ENDIF.
   READ TABLE IT_LIKP WITH KEY VBELN = IT_DATA-VGBEL.
   IF SY-SUBRC <> 0.
       CONTINUE.
     ELSE."                               KUNNR IN S_SHP.
       IT_OUTTAB-LFDAT = IT_LIKP-LFDAT.
       IT_OUTTAB-KUNNR = IT_LIKP-KUNNR.
       IT_OUTTAB-WADAT_IST = IT_LIKP-WADAT_IST.
       IF NOT IT_LIKP-KUNNR IS INITIAL.
        READ TABLE IT_CUST_DATA WITH KEY KUNNR = IT_LIKP-KUNNR.
        IT_OUTTAB-NAME1 = IT_CUST_DATA-NAME.
        CLEAR IT_CUST_DATA.
       ENDIF.
   ENDIF.
  READ TABLE IT_KNMT WITH KEY MATNR = IT_DATA-MATNR.
  IT_OUTTAB-POSTX = IT_KNMT-POSTX.
  READ TABLE IT_SAL_DTL WITH KEY VBELN = IT_DATA-AUBEL.
  IT_OUTTAB-BSTNK_VF = IT_SAL_DTL-BSTNK.
APPEND IT_OUTTAB.
CLEAR : IT_OUTTAB, IT_DATA, IT_CUST_DATA, IT_KNMT, IT_LIKP, IT_SAL_DTL.
ENDLOOP.
ENDFORM.                    " FILL_OUTTAB
*&      Form  DISPLAY_OUT_DATA
      text
-->  p1        text
<--  p2        text
FORM DISPLAY_OUT_DATA.
DATA : WS_VARIENT LIKE DISVARIANT.
WS_VARIENT-USERNAME = SY-UNAME.
WS_VARIENT-REPORT = SY-REPID.
PERFORM BUILD_FIELD_CAT.
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
            I_CALLBACK_PROGRAM       = V_REPID
           I_CALLBACK_PF_STATUS_SET = SLIS_EV_PF_STATUS_SET
            I_CALLBACK_USER_COMMAND  = SLIS_EV_USER_COMMAND
           IS_LAYOUT                = P_LAYOUT
            IT_FIELDCAT              = IT_FIELDCAT
            I_SAVE                  = 'U'
            IS_VARIENT               = WS_VARIENT
           IT_EVENTS                = P_EVENTS
       TABLES
            T_OUTTAB                 = IT_OUTTAB
       EXCEPTIONS
            PROGRAM_ERROR            = 1
            OTHERS                   = 2.
  IF SY-SUBRC <> 0.
  ENDIF.
ENDFORM.                    " DISPLAY_OUT_DATA
*&      Form  BUILD_FIELD_CAT
FORM BUILD_FIELD_CAT.
  V_REPID = SY-CPROG.
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
            I_PROGRAM_NAME         = V_REPID
            I_INTERNAL_TABNAME     = 'IT_OUTTAB'
            I_INCLNAME             = V_REPID
       CHANGING
            CT_FIELDCAT            = IT_FIELDCAT
       EXCEPTIONS
            INCONSISTENT_INTERFACE = 1
            PROGRAM_ERROR          = 2
            OTHERS                 = 3.
  IF SY-SUBRC <> 0.
  ELSE.
    LOOP AT IT_FIELDCAT INTO GS_FIELDCAT.
      CASE GS_FIELDCAT-FIELDNAME.
        WHEN 'VBELN'.
        PERFORM BUILD_TEXT USING 'BILLING DOCUMENT'
                           CHANGING GS_FIELDCAT.
        WHEN 'POSNR'.
        PERFORM BUILD_TEXT USING 'BILL DOC ITEM'
                           CHANGING GS_FIELDCAT.
        WHEN 'FKART'.
        PERFORM BUILD_TEXT USING 'BILL DOC TYPE'
                           CHANGING GS_FIELDCAT.
        WHEN 'LFDAT'.
        PERFORM BUILD_TEXT USING 'DELIVERY DATE'
                           CHANGING GS_FIELDCAT.
        WHEN 'KUNAG'.
        PERFORM BUILD_TEXT USING 'SOLD-TO-PARTY'
                           CHANGING GS_FIELDCAT.
        WHEN 'NAME'.
        PERFORM BUILD_TEXT USING 'SLD-TO-PAR NAME'
                           CHANGING GS_FIELDCAT.
        WHEN 'KUNNR'.
        PERFORM BUILD_TEXT USING 'SHIP-TO-PARTY'
                           CHANGING GS_FIELDCAT.
        WHEN 'NAME1'.
        PERFORM BUILD_TEXT USING 'SHP-TO-PAR NAME'
                           CHANGING GS_FIELDCAT.
        WHEN 'MATNR'.
        PERFORM BUILD_TEXT USING 'MATERIAL'
                           CHANGING GS_FIELDCAT.
        WHEN 'ARKTX'.
        PERFORM BUILD_TEXT USING 'MATERIAL DESCRIPTION'
                           CHANGING GS_FIELDCAT.
        WHEN 'POSTX'.
        PERFORM BUILD_TEXT USING 'CUSTOMER MATERAL NAME'
                           CHANGING GS_FIELDCAT.
        WHEN 'CHARG'.
        PERFORM BUILD_TEXT USING 'BATCH'
                           CHANGING GS_FIELDCAT.
        WHEN 'FKIMG'.
        PERFORM BUILD_TEXT USING 'BILLED QUANTITY'
                           CHANGING GS_FIELDCAT.
        WHEN 'CMPRE'.
        PERFORM BUILD_TEXT USING 'UNIT PRICE'
                           CHANGING GS_FIELDCAT.
        WHEN 'NETWR'.
        PERFORM BUILD_TEXT USING 'TOTAL PRICE'
                           CHANGING GS_FIELDCAT.
        WHEN 'INV_FKDAT'.
        PERFORM BUILD_TEXT USING 'INVOICE BILL DATE'
                           CHANGING GS_FIELDCAT.
        WHEN 'FKDAT'.
        PERFORM BUILD_TEXT USING 'BILLING DATE'
                           CHANGING GS_FIELDCAT.
        WHEN 'WADAT_IST'.
        PERFORM BUILD_TEXT USING 'ACTUAL GI DATE'
                           CHANGING GS_FIELDCAT.
        WHEN 'VGBEL'.
        PERFORM BUILD_TEXT USING 'DELIVERY DOCUMENT'
                           CHANGING GS_FIELDCAT.
        WHEN 'VGPOS'.
        PERFORM BUILD_TEXT USING 'DEL DOC ITEM'
                           CHANGING GS_FIELDCAT.
        WHEN 'AUBEL'.
        PERFORM BUILD_TEXT USING 'SALES ORDER'
                           CHANGING GS_FIELDCAT.
        WHEN 'AUPOS'.
        PERFORM BUILD_TEXT USING 'SAL ORD ITEM'
                           CHANGING GS_FIELDCAT.
        WHEN 'REMARK2'.
        PERFORM BUILD_TEXT USING 'REMARK 2'
                           CHANGING GS_FIELDCAT.
        WHEN 'BSTNK_VF'.
        PERFORM BUILD_TEXT USING 'CUSTOMER PO ORDER NO.'
                           CHANGING GS_FIELDCAT.
        WHEN 'KUNRG'.
        PERFORM BUILD_TEXT USING 'PAYER'
                           CHANGING GS_FIELDCAT.
        WHEN 'NAME2'.
        PERFORM BUILD_TEXT USING 'PAYER NAME'
                           CHANGING GS_FIELDCAT.
      ENDCASE.
      MODIFY IT_FIELDCAT FROM GS_FIELDCAT.
    ENDLOOP.
  ENDIF. " OF SY-SUBRC.
ENDFORM.                    " BUILD_FIELD_CAT
*&      Form  BUILD_TEXT
   Build the Text to be displayed in the Layout
FORM BUILD_TEXT USING P_I_TEXT
             CHANGING P_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
        P_FIELDCAT-seltext_l = P_I_TEXT.
        P_FIELDCAT-ddictxt = 'L'.
ENDFORM.                    " BUILD_TEXT
*&      Form  READ_REMARKS
      text
     -->P_IT_DATA_AUBEL  text
     -->P_IT_DATA_AUPOS  text
     <--P_IT_OUTTAB_REMARK2  text
FORM READ_REMARKS USING    P_IT_DATA_AUBEL
                           P_IT_DATA_AUPOS
                  CHANGING P_IT_OUTTAB_REMARK2.
CONSTANTS : LV_ID     LIKE THEAD-TDID     VALUE 'ZRM2',
            LV_OBJECT LIKE THEAD-TDOBJECT VALUE 'VBBP',
            LV_JA     LIKE THEAD-TDSPRAS  VALUE 'J',
            LV_EN     LIKE THEAD-TDSPRAS  VALUE 'E'.
DATA : LV_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE,
       LV_NAME LIKE THEAD-TDNAME.
          CONCATENATE P_IT_DATA_AUBEL P_IT_DATA_AUPOS INTO LV_NAME.
          CALL FUNCTION 'READ_TEXT'
            EXPORTING
             CLIENT                         = SY-MANDT
              ID                            = LV_ID
              LANGUAGE                      = LV_EN
              NAME                          = LV_NAME
              OBJECT                        = LV_OBJECT
            ARCHIVE_HANDLE                = 0
            LOCAL_CAT                     = ' '
          IMPORTING
            HEADER                        =
            TABLES
              LINES                         = LV_LINES
           EXCEPTIONS
             ID                            = 1
             LANGUAGE                      = 2
             NAME                          = 3
             NOT_FOUND                     = 4
             OBJECT                        = 5
             REFERENCE_CHECK               = 6
             WRONG_ACCESS_TO_ARCHIVE       = 7
             OTHERS                        = 8.
         IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
        IF SY-SUBRC = 0.
            READ TABLE LV_LINES INDEX 1.
              IF SY-SUBRC = 0.
                P_IT_OUTTAB_REMARK2 = LV_LINES-TDLINE.
              ENDIF.
        ELSE.
READ TEXT WITH LANGUAGE AS 'J'.
          CALL FUNCTION 'READ_TEXT'
            EXPORTING
             CLIENT                         = SY-MANDT
              ID                            = LV_ID
              LANGUAGE                      = LV_JA
              NAME                          = LV_NAME
              OBJECT                        = LV_OBJECT
            ARCHIVE_HANDLE                = 0
            LOCAL_CAT                     = ' '
          IMPORTING
            HEADER                        =
            TABLES
              LINES                         = LV_LINES
           EXCEPTIONS
             ID                            = 1
             LANGUAGE                      = 2
             NAME                          = 3
             NOT_FOUND                     = 4
             OBJECT                        = 5
             REFERENCE_CHECK               = 6
             WRONG_ACCESS_TO_ARCHIVE       = 7
             OTHERS                        = 8.
         IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
          IF SY-SUBRC = 0.
            READ TABLE LV_LINES INDEX 1.
              IF SY-SUBRC = 0.
                P_IT_OUTTAB_REMARK2 = LV_LINES-TDLINE.
              ENDIF.
          ENDIF.
        ENDIF.
ENDFORM.                    " READ_REMARKS
*&      Form  CURRENCY_DISPLAY
      text
     -->P_IT_DATA_WAERK  text
     -->P_IT_DATA_CMPRE  text
     <--P_IT_OUTTAB_CMPRE  text
FORM CURRENCY_DISPLAY USING    P_CURRENCY
                               P_AMOUNT
                      CHANGING P_AMT_DISP TYPE WMTO_S-AMOUNT..
DATA : P_CURRECNY TYPE TCURC-WAERS,
       P_AMT TYPE WMTO_S-AMOUNT,
       P_DISP TYPE WMTO_S-AMOUNT.
  P_AMT = P_AMOUNT.
  CALL FUNCTION 'CURRENCY_AMOUNT_SAP_TO_DISPLAY'
    EXPORTING
      CURRENCY              = P_CURRENCY
      AMOUNT_INTERNAL       = P_AMT
    IMPORTING
      AMOUNT_DISPLAY        = P_DISP
    EXCEPTIONS
      INTERNAL_ERROR        = 1
      OTHERS                = 2.
    IF SY-SUBRC <> 0.
   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  P_AMT_DISP  = P_DISP.
  CLEAR : P_AMT, P_DISP.
ENDFORM.                    " CURRENCY_DISPLAY

Similar Messages

  • General Inquiry Regarding Error Handling with System Exec.vi

    I have a sub vi that uses the System Exec.vi to send SMS messages when triggered. I am confused as to how the error handling works and why all of the errors seem to go to the "standard error" vs the "Error out". The reason I am interested is because I am trying to interrupt the error out of another script to execute a command if error=true.
    I have intentionally created an error to test this, however it does not seem that the signal is ever being sent to the error out, only to the standard error.
    Any help/explanation as to how this works would be greatly appreciated.

    The Facebook discussion board is just a pilot and that functionality is not available yet (as to my knowledge). You will have to use the actual forum thread to add attachments. You can click the arrow just to the right of thread topic in the Facebook thread and that will take you to the ni.com/forums thread. Or you can navigate here:
    http://forums.ni.com/t5/LabVIEW/General-Inquiry-Regarding-Error-Handling-with-System-Exec-vi/m-p/246...
    Having a look at your VI would help to clarify the error handling issue.
    Daniel K | NI Applications Engineer | Certified LabVIEW Developer

  • Dump regarding  'Error in module RSQL 'in dynamic internal table

    Here  is a Dump regarding  'Error in module RSQL of the database interface'.My program runs fine if 100 rows is getting selected from SAP Table.But  for mass selection  program is giving Dump. The program has dynamic selection of  any SAP Table with dynamic selection ranges.I have attached below snippet code for your understanding and analysis.
    Looking forward your kind support.
    *  Select Data from table using field symbol which points to dynamic table with packet size
      SELECT *
        INTO CORRESPONDING FIELDS OF TABLE <fs_table_tmp>
        FROM (p_table) PACKAGE SIZE p_packet.
        INSERT LINES OF  <fs_table_tmp> INTO TABLE <fs_table> .
        UNASSIGN <fs_table_tmp> .
      ENDSELECT.

    Hello Salmali,
    Are you checking in the debugger mode?
    Error CX_SY_OPEN_SQL_DB comes when there is any pause between select and endselect.
    one more thing use INTO in place of APPENDING.
    SELECT (i_field_select)
        FROM (p_table)
        into CORRESPONDING FIELDS OF TABLE <fs_table_tmp>
        PACKAGE SIZE p_packet.
        append LINES OF  <fs_table_tmp> INTO TABLE <fs_table> .
        Refresh <fs_table_tmp> .
      ENDSELECT.
    Please let me know what is the value of p_packet.
    also have you created the table <fs_table_tmp> and <fs_table> of same type . Please check
    Thanks,
    Gaurav

  • Regarding Error in Tax Codes after Creation of Excise Invoice.

    Dear All,
    We are using TAXINN Procedure,I have maintained condition records and given the correct tax codes in them for Basic Excise Duty,Secondary Cess and Higher Secondary Cess on the table 357,however after checking the accounting document which is created post creation of excise invoice the wrong tax codes are getting picked up however when i create my commercial invoice and check the tax codes the correct tax codes are coming,please advice what needs to be done to rectify this error.
    Best Regards
    Atul Keshav

    This query is now resolved

  • Regarding Error message in ME_PROCESS_PO_CUST badi for validation.

    hi Friends,
    I am Using ME_PROCESS_PO_CUST badi for validation in Purchase order (ME21N),
    For that I implemented PROCESS_ITEM method which fires during each row now i  add another validation in same implementation for plant  should be same through out the all line item. Now following code is woking fine but when for second line item user changese plant then it shows error message as per logic which is fine but even after changing plant to correct one the error message is still coming why is it so?
    following is my current validation code
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
      DATA:ls_poitem TYPE mepoitem,
           ls_poitem_set TYPE mepoitem.
      DATA:ls_poheader TYPE MEPOHEADER.
      DATA:lm_poheader TYPE ref to IF_PURCHASE_ORDER_MM.
      DATA:w_mara TYPE mara.
      DATA:IT_ZMMTBL039 TYPE STANDARD TABLE OF ZMMTBL039 ,
           WA_ZMMTBL039 TYPE ZMMTBL039 .
      DATA:ls_poitem1 TYPE mepoitem.
      DATA:V_KUNNR1 TYPE KNA1-KUNNR.
      DATA:V_KUNNR2 TYPE KNA1-KUNNR.
      DATA:W_WERKS(4),
           w_werks_tmp(4),
           w_flag(1).
      ls_poitem = im_item->get_data( ).
      lm_poheader = im_item->GET_HEADER( ).
      ls_poheader = lm_poheader->GET_DATA( ).
      IF ls_poitem-werks IS NOT INITIAL.
        w_werks = ls_poitem-werks.
        import w_flag to w_flag from MEMORY ID 'FLAG'.
        if w_flag is initial.
          w_flag = 'X'.
          EXPORT w_werks_tmp FROM w_werks TO MEMORY ID 'MEMO1'.
          export w_flag from w_flag to MEMORY ID 'FLAG'.
          clear: w_flag.
        endif.
      ENDIF.
      IMPORT w_werks_tmp TO w_werks FROM MEMORY ID 'MEMO1'.
    break swaroopb.
      IF ls_poitem-werks NE w_werks.
          MESSAGE E010(zparts) with 'Different plants are not allowed in single PO.'.
      ENDIF.
      CLEAR: WA_ZMMTBL039,w_mara.
      REFRESH:IT_ZMMTBL039[] .
      SELECT *
        INTO TABLE IT_ZMMTBL039
        FROM ZMMTBL039
       WHERE bsart EQ ls_poheader-bsart.
      IF sy-subrc EQ 0.
        CLEAR: WA_ZMMTBL039,w_mara.
        SELECT SINGLE *
          INTO w_mara
          FROM mara
         WHERE matnr EQ ls_poitem-MATNR.
        IF SY-SUBRC EQ 0.
          READ TABLE IT_ZMMTBL039 INTO WA_ZMMTBL039 WITH KEY  bsart = ls_poheader-bsart
                                                              mtart = w_mara-mtart
                                                              spart = w_mara-spart.
          IF SY-SUBRC NE 0.
            MESSAGE E009(zparts) WITH ls_poitem-MATNR w_mara-spart ls_poheader-bsart .
          ENDIF.
        ENDIF.
      ENDIF.
    end method

    Hello Swarup
    Since you want to compare all items together (having the same plant) I would suggest to implement this logic either in method CHECK or POST of the interface.
    However, if you want to make your checks within the PROCESS_ITEM method then you should change your logic.
    It does not make sense to work with the ABAP memory within a BAdI implementing class because the class itself is your "memory".
    I would use the following logic to implement your validation:
      lo_poheader = im_item->get_header( ).  " retrieve header instance
      lt_items = lo_poheader->get_items( ).   " retrieve all items
      ls_detail_x = im_item->get_detail( ).  " details of currently processed item
      LOOP AT lt_items INTO ls_item.
        ls_detail = ls_item-item->get_detail( ).
        IF ( ls_detail-werks NE ls_detail_x-werks ).  " validation failed
        " do something...
       ENDIF.
      ENDLOOP.
    However, I would prefer to do this kind of validation in CHECK or POST method.
    Regards,
      Uwe

  • Regarding Error in Migo

    Dear All,
    Through transaction code called Migo we are creating the return delivery for a stock transport purchase order by giving the inputs as the material document we have flagged the item as okay and also checked the box which indicates via delivery and captured all details pertaining to invoice however when we are trying to post the item the following error comes.
    Data for creating a delivery is incomplete (Vendor)
    Message no. M7279
    Diagnosis
    The system found that the data required to create a delivery via Shipping is not complete.
    System Response
    The system cannot create a delivery.
    Procedure
    Check that the data for Vendor is maintained in your system:
    loading group
    debtor number
    sales organization
    distribution channel
    division
    shipping condition
    shipping point
    Regards
    Atul kESHAV

    Hello Atul,
    Kindly check whether you have maintain Delivery Plant in your Vender Master Data? To do this, Kindly make following updation in your XK02.:'
    Choose Purchasing Data Tab and goto menu bar and look for additional data and update Delivering plant there. If you are not able see the same in XK01 then activate the same field in Vendor master data:vendor account group.
    If still the problem remains then kindly take MM consultant's help for the same.
    Take care.
    JP

  • Regarding Error in Materialized view Fast Refresh

    ORA-12015: cannot create a fast refresh materialized view from a complex query
    CREATE MATERIALIZED VIEW MVCONTENTHISTORY_01
    BUILD IMMEDIATE
    REFRESH FAST
    WITH PRIMARY KEY
    ENABLE QUERY REWRITE
    AS
    SELECT a.DAY, a.contentname,
    SUM
    (CASE
    WHEN (b.subscriptionstartdate) <= (a.DAY)
    AND ((CASE
    WHEN b.subscriptionenddate IS NOT NULL
    THEN (a.DAY)
    ELSE TO_DATE ('01/20/1990', 'MM/DD/YYYY')
    END
    ) <=
    (CASE
    WHEN b.subscriptionenddate IS NOT NULL
    THEN (b.subscriptionenddate)
    ELSE TO_DATE ('01/20/1990', 'MM/DD/YYYY')
    END
    THEN 1
    ELSE 0
    END
    ) COUNT,
    COUNT
    (CASE
    WHEN (b.subscriptionstartdate) <= (a.DAY)
    AND ((CASE
    WHEN b.subscriptionenddate IS NOT NULL
    THEN (a.DAY)
    ELSE TO_DATE ('01/20/1990', 'MM/DD/YYYY')
    END
    ) <=
    (CASE
    WHEN b.subscriptionenddate IS NOT NULL
    THEN (b.subscriptionenddate)
    ELSE TO_DATE ('01/20/1990', 'MM/DD/YYYY')
    END
    THEN 1
    ELSE 0
    END
    ) cnt
    FROM TBLTDATEWISECONTENT a,
    (SELECT TRUNC (a.subscriptionstartdate) subscriptionstartdate,
    TRUNC (a.subscriptionenddate) subscriptionenddate, b.NAME,
    b.contentid
    FROM syntbltcontentsubscrhistory a, syntblmcontent b
    WHERE b.contentid = a.contentid(+)) b
    WHERE a.contentid = b.contentid(+) AND a.DAY = b.subscriptionstartdate(+)
    GROUP BY a.contentname, a.DAY;
    I can't create Materialized view with fast Refresh .
    Kindly provide solution .
    Regards,
    nayana chavda.

    Kindly provide full Oracle version since option vary by release.
    There error message says it is impossible to fast refresh based on a complex query.
    On 10g Oracle provides a package procedure that will tell you why the view cannot be fast refreshed: dbms_mview.explain_mview.
    Otherwise see the Advanced Replication Manual for a list of restrictions.
    10gR2 >>Restrictions for Materialized Views with Subqueries
    The defining query of a materialized view with a subquery is subject to several restrictions to preserve the materialized view's fast refresh capability.
    The following are restrictions for fast refresh materialized views with subqueries:
    Materialized views must be primary key materialized views.
    The master's materialized view log must include certain columns referenced in the subquery. For information about which columns must be included, see "Logging Columns in the Materialized View Log".
    If the subquery is many to many or one to many, join columns that are not part of a primary key must be included in the materialized view log of the master. This restriction does not apply to many to one subqueries.
    The subquery must be a positive subquery. For example, you can use the EXISTS condition, but not the NOT EXISTS condition.
    The subquery must use EXISTS to connect each nested level (IN is not allowed).
    Each table can be in only one EXISTS expression.
    The join expression must use exact match or equality comparisons (that is, equi-joins).
    Each table can be joined only once within the subquery.
    A primary key must exist for each table at each nested level.
    Each nested level can only reference the table in the level above it.
    Subqueries can include AND conditions, but each OR condition can only reference columns contained within one row. Multiple OR conditions within a subquery can be connected with an AND condition.
    All tables referenced in a subquery must reside in the same master site or master materialized view site.
    <<
    HTH -- Mark D Powell --
    Message was edited by: added list of restrictions left off initial post
    mpowel01

  • Regarding Error Message for the purchase order

    Hello SRM Experts,
    The Status of the purchase order is Archived and PO is not transferred to the backened system.  I ran the transaction bbp_pd_po_transfer_exec in P36 and check the error message in T-Code RZ20, i get the following error in RZ20 for the PO as:
    1.  Error reading the export data for EXEC of purchase order
    2.   and in P36 system, when i press F5, popup message appears - Error while reading PO in backened system. Inform System administrator.
    I want to know, why this problem appears and how to resolve this issue ?
    Thanks in Advance,
    Regards,
    B.Satyanarayan Reddy

    Hello,
    I checked in the bbp_pd and there also i got the popup message as Error while reading PO in backened system. Inform System Administrator.
    I also checked with the backened team, everything seems to be fine there.
    The thing is that PO is not transferred to the backened system since 13.02.2008 to till date and it stuck up in the EB system.
    Kindly let me know, why this problem occurs and what should i do to resolve the issue.
    Thanks in advance,
    Regards,
    B.Satyanarayan Reddy

  • Regarding error "Field symbol is not assigned." during print preview

    Hi experts,
        I am getting dump while trying print preview for particular POs in ME23n transaction(ECC 6.0). Please refer the below dump error:
    Runtime Errors         GETWA_NOT_ASSIGNED_RANGE
    Date and Time          29.09.2009 19:30:39
    Short dump has not been completely stored (too big)
    Short text
         Field symbol is not assigned.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLSTXC" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
         Using Transaction ST22 for ABAP Dump Analysis, you can look
         at and manage termination messages, and you can also
         keep them for a long time.
    Error analysis
         A field symbol that was not assigned was accessed
         (data segment no. 32769).
        The field symbol is no longer assigned because there was an attempt
        makde previously in a Unicode program to set the field symbol using
        ASSIGN with offset and/or length specification. Here, the memory
        addressed by the offset/length specification was not within the
        allowed area.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "GETWA_NOT_ASSIGNED_RANGE" " "
        "SAPLSTXC" or "LSTXCFFT"
        "FT_COMPOSE"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
       2. Corresponding system log
          Display the system log by calling transaction SM21.
          Restrict the time interval to 10 minutes before and five minutes
       after the short dump. Then choose "System->List->Save->Local File
       (Unconverted)".
       3. If the problem occurs in a problem of your own or a modified SAP
       program: The source code of the program
          In the editor, choose "Utilities->More
       Utilities->Upload/Download->Download".
       4. Details about the conditions under which the error occurred or which
       actions and input led to the error.
    I am getting this dump only for few POs.. Rest of the POs are able to print. I am not able to find notes for this issue. Is there any SAP notes available for that  or Is there any configuration issue related to this?
    Please provide solution for thsi as soon as possible.
    Thanks and Regards 
    Subbu

    A field symbol is not assigned, but thats what the dump is telling you. Mostly this happens, when fields or function modules are stored by name, like the fieldnames in the fieldcatalog in an ALV report. It a field referenced in such a way does not exist you will get this error. Always store fieldnames and function names in capital letters and check mistyping of 1L 8B and so on.

  • Regarding error in webdynpro - ABAP

    Hi friends,
      i got error " Error in generated code,Interface expected after interfaces " while activate the object.Please reply as soon.
    Regards
    krish

    Hi Krish,
    Please create an OSS ticket that describes the problem and provides instructions to reproduce it.
    Best regards,
    Thomas

  • Regarding error in fast refresh for Materialized

    ORA-12015: cannot create a fast refresh materialized view from a complex query
    CREATE MATERIALIZED VIEW CRESTELVIEWSDEV510.MVCONTENTHISTORY
    TABLESPACE CRESTELVIEWSDEV510
    NOCACHE
    LOGGING
    NOCOMPRESS
    NOPARALLEL
    BUILD IMMEDIATE
    REFRESH FAST
    ENABLE QUERY REWRITE
    AS
    SELECT a.DAY, a.contentname,
    SUM
    (CASE
    WHEN (b.subscriptionstartdate) <= (a.DAY)
    AND ((CASE
    WHEN b.subscriptionenddate IS NOT NULL
    THEN (a.DAY)
    ELSE TO_DATE ('01/20/1990', 'MM/DD/YYYY')
    END
    ) <=
    (CASE
    WHEN b.subscriptionenddate IS NOT NULL
    THEN (b.subscriptionenddate)
    ELSE TO_DATE ('01/20/1990', 'MM/DD/YYYY')
    END
    THEN 1
    ELSE 0
    END
    ) COUNT,
    COUNT
    (CASE
    WHEN (b.subscriptionstartdate) <= (a.DAY)
    AND ((CASE
    WHEN b.subscriptionenddate IS NOT NULL
    THEN (a.DAY)
    ELSE TO_DATE ('01/20/1990', 'MM/DD/YYYY')
    END
    ) <=
    (CASE
    WHEN b.subscriptionenddate IS NOT NULL
    THEN (b.subscriptionenddate)
    ELSE TO_DATE ('01/20/1990', 'MM/DD/YYYY')
    END
    THEN 1
    ELSE 0
    END
    ) cnt
    FROM TBLTDATEWISECONTENT a,
    (SELECT TRUNC (a.subscriptionstartdate) subscriptionstartdate,
    TRUNC (a.subscriptionenddate) subscriptionenddate, b.NAME,
    b.contentid
    FROM syntbltcontentsubscrhistory a, syntblmcontent b
    WHERE b.contentid = a.contentid(+)) b
    WHERE a.contentid = b.contentid(+)
    AND a.DAY = b.subscriptionstartdate(+)
    GROUP BY a.contentname, a.DAY;
    while creation time of this Materialized I have receive above error ORA-12015
    I have also crated log with Primary on all base tables and index on column that is in where clause.
    Kindly provide solution .
    I want to create this MV with FAST Refresh.
    Regards,
    nayana chavda.

    What's your Oracle version?
    The error is pretty self explanatory. You can not build fast refresh MView with complex query.
    check Oracle document,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14226/repmview.htm#BABEEHGJ
    To be fast refreshed, the defining query for a materialized view must observe certain restrictions. If you require a materialized view whose defining query is more general and cannot observe the restrictions, then the materialized view is complex and cannot be fast refreshed.
    ...

  • Regarding Error Message   in SXMB_MONI ...!

    Hi Experts ,
    I am working on a Scenario where i  have sender side an Table which i need to pass to SAP ECC System
    Sender Channel JDBC
    Receiver Channel :IDOC
    i am using  Sender Bussiness Service and Receiver as Bussiness System
    When the message is triggred from Oracle Table ie (Sender Legacy System)  am getting an Error in moni with Error Status "Unable to convert the sender service BSRV_ICFS to an ALE logical system"
    what might be the issue to solve this .  is it advisable to  have At Sender Bussiness Service or Bussiness System  whenever we are sending Data to IDOC (as Receiver )   
    Kindly help me with this problem
    Regards,
    Aziz khan .

    Hi Aziz,
       please check these links
    http://wiki.sdn.sap.com/wiki/display/XI/UnabletoconvertSendersystemtoALElogicalsystem
    Unable to convert the sender service to an ALE logical system
    regards
    Anupam

  • Regarding Error in Function Module in Update Task

    Hi All,
    If a function module is called in Update Task and there is some error generated from it, it comes as an exit message unlike in a normal function module.
    Is there any possible way to avoid such an exit message?
    Thanks in advance.
    Regards,
    Garima

    Hi,
    The problem is I am updating Z tables in a function and also calling a function in Update task to update a different set of tables.
    Now, if for some reason there is an error in Update Function module, then my requirement is that rather than throwing an Exit message (which it is presently doing) the errors coming from the function should be captured so that the user knows what was wrong with the data he entered.
    Is there any work around to the above requirement? Either all the tables should be updated or none of them should be updated.
    Regards,
    Garima Thapar.

  • Regarding Error: No Authorization for Graphic Access (BDS)

    Hi,
    When I try to view the print preview of a form, I am getting the following error message:
    No Authorization for Graphic Access (BDS)
    Please help me resolve the issue.
    Thanks, Sai.

    Try to check Note 1068808 - Quotation PDF:No authorization for graphic access (BDS)
                               1039489 BDS Access Authorization to Sales Manager Roles
    Regards.

  • Query regarding Error Messages

    Dear All,
                Anyone please tell me how to display 'Error Messages in PCUI'.
    I tried using " Message MESAGEID type MESSAGETYPE number MESSAGENUMBER " but it did not work.
    Please provide some pointers on the above.
    Regards,
    Vijay

    You can use the the function module  'CRM_MESSAGE_COLLECT' to add a message to the application log. These are then displayed in the pc ui.
    For example if you are in an application like opportunities which is working on a one order object you can use something like the following to display a message :
    message w123(mymessageclass) into lv_dummy.
    call function 'CRM_MESSAGE_COLLECT'
            exporting
              iv_caller_name = gc_object_name-orderadm_h
              iv_ref_object  = iv_header_guid.
    Regards, Paul
    Don't forget to award points if this helps

  • REGARDING ERROR MESAGE TRIGGER WHILE MAKING P.R AGAINST WBS ELEMENT.

    Dear FI/CO & PS Consultants,
                                                    in which node shell i have to configure  for getting the error message while creating the PURCHASE REQUISITION when  my budget is excedding.
    Actually i  craeted WBS ELEMENTS and budgeted. I created a PURCHASE REQUISITION and assigned the components , where the cost of all the components is higher than the budget assigned to WBS ELEMENT. But i am not getting the error message.
    Kindly do need full.
    Kindly send me the details to pardha at raincii.com
    Regards,
    Pardhu

    Hi,
    Please refer to the following informational notes that will explain the functionality:                                                                               
    Note: 178837 - Explains why BP604 appears/does not appear.                       
    Note: 783161 - Logic Explanation when AVC is appears not working                 
    Note: 873977 - Controlling elements in availability control                      
    Note: 166394 - Tolerance Limits information                                      
    Note: 1160675  Availability check, commitment carr. fwd. and budget           
    152571 -missing or wrong commitments
    459509 - commitments in purchasing
    634298  - commitment update in services
    772206
    See also note 47992  for checking the commitment activation for projects. 
    In transaction CUNI, the unit of measurements used at item level         
    must be set to value based commitment.                                   
    Regards,
    Edit

Maybe you are looking for