Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8545

Re: Problem related to bdc

$
0
0

Hi Prasanna,

with some modifications i have written these codes but it is giving error that

"

The function module interface allows you to specify only

fields of a particular type under "NUMBER".

The field "I_MESSTAB-MSGNR" specified here is a different

field type

"

The code that i have added is

 

CALL TRANSACTION 'FB01' USING bdcdata MODE bmode MESSAGES  INTO i_messtab.

     CLEAR bdcdata.

     REFRESH bdcdata.

     CLEAR it_final.

 

****IF i_messtab NE 0.

   LOOP AT i_messtab.

     CASE i_messtab-msgtyp.

       WHEN 'E'.

   CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'

     EXPORTING

       ID                = i_messtab-msgid

       NUMBER            = i_messtab-msgnr

      LANGUAGE          = SY-LANGU

       TEXTFORMAT        = 'ASC'

*     LINKPATTERN       =

      MESSAGE_V1        = sy-msgv1

      MESSAGE_V2        = sy-msgv2

      MESSAGE_V3        = sy-msgv3

      MESSAGE_V4        = sy-msgv4

    IMPORTING

      MESSAGE           = l_message.

*     RETURN            =

*   TABLES

*     TEXT              =

             .

   CONCATENATE l_message '-' it_final-newko it_final-wrbtr it_final-budat INTO it_error-text

       SEPARATED BY ' '.

       APPEND it_error.

       CLEAR : it_error, l_message.

*      ENDCASE.

*      ENDLOOP.

     WHEN 'S'.

****    ELSE.

       CONCATENATE 'DATA UPLOADED SUCCESSFULLY :' it_final-newko  it_final-wrbtr it_final-budat

       INTO it_success-text SEPARATED BY ' '.

       APPEND it_success.

***    ENDIF.

     ENDCASE.

     ENDLOOP.

     REFRESH i_messtab.

     CLEAR: it_final,l_message.

 

 

ENDLOOP.


Viewing all articles
Browse latest Browse all 8545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>