Skip to Content
author's profile photo Former Member
Former Member

BDC msg

Hi experts,

After Successfully uploading data in given Transaction i want to show at-last.

" This ...material has been Uploaded".

or

if its Fail... then

" This ....Not loaded ".

Who to do that..?

**********Point is assured********

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 06:00 AM

    Hi,

    DAta : l_mstring(2000).

    CALL TRANSACTION 'VA01' USING bdcdata

    MODE mode

    UPDATE 'A'

    MESSAGES INTO message.

    LOOP AT message INTO wa_message.

    SELECT SINGLE * FROM t100 WHERE sprsl = wa_message-msgspra

    AND arbgb = wa_message-msgid

    AND msgnr = wa_message-msgnr.

    IF sy-subrc = 0.

    l_mstring = t100-text.

    IF l_mstring CS '&1'.

    REPLACE '&1' WITH wa_message-msgv1 INTO l_mstring.

    REPLACE '&2' WITH wa_message-msgv2 INTO l_mstring.

    REPLACE '&3' WITH wa_message-msgv3 INTO l_mstring.

    REPLACE '&4' WITH wa_message-msgv4 INTO l_mstring.

    ELSE.

    REPLACE '&' WITH wa_message-msgv1 INTO l_mstring.

    REPLACE '&' WITH wa_message-msgv2 INTO l_mstring.

    REPLACE '&' WITH wa_message-msgv3 INTO l_mstring.

    REPLACE '&' WITH wa_message-msgv4 INTO l_mstring.

    ENDIF.

    CONDENSE l_mstring.

    WRITE: / wa_message-msgtyp, l_mstring(250).

    ELSE.

    WRITE: / wa_message.

    ENDIF.

    ENDLOOP.

    regards,

    Santosh Thorat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 11:22 AM

    thanks to all ,

    point has been given Thorat.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.