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

Collect message into internal table

Hi,

does any one knows how BAPIs or CALL TRANSACTIONs collect messages into internal table.

My problem is that some BI with CALL TRANSACTION doesn't collect right message into return table and I would like to collect this last message after CALL TRANSACTION and therefore be sure that everything went OK.....

thx

mario

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 22, 2008 at 10:14 AM

    Hi,

    Use FM:FORMAT_MESSAGE

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 22, 2008 at 10:15 AM

    Hi,

    data:

    itab type table of bdcmsgcoll.

    call transaction se11 MESSAGES INTO itab

    all the messages sent during batch input processing are stored in an internal table itab of the type BDCMSGCOLL from the ABAP Dictionary.

    In the same way Bapi will have return table where all the messages are stored in it.

    PLzz reward points if it helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 22, 2008 at 10:37 AM

    hi

    good

    check this

    Call Transaction p_trans using ZBDC_Table

    Mode p_mode

    Update p_update

    Messages into p_messages.

    Move sy-subrc to w__subrc.

    • Scan the messages in YDCRAISES to see if we need to

    • change the message class.

    Loop at p_messages.

    Select single msgtyp

    into w__msgtp

    from zdcraise

    where tcode = p_messages-tcode and

    msgid = p_messages-msgid and

    msgnr = p_messages-msgnr.

    If sy-subrc = 0.

    Move w__msgtp to p_messages-msgtyp.

    Modify p_messages.

    EndIf.

    EndLoop.

    • Dump the message table ?

    If w__ydcset-dumpmsg = True.

    thanks

    mrutyun^

    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.