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

unable to capture error message while creating an SO using bapi

Hi,

Can anybody suggest how to capture the error message while creating a SO using BAPI.

I have developed a customeized BAPI and using the BDC format to create the SO.

Note: i am using a call transaction method for the BDC.

I am sending the message into message1.

but i am unable to send the same into an internal table

shyam.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 07:57 AM

    Hi Shyam

    If my understanding is correct, you are performing BDC process within the customized BAPI...

    And you want to collect the messages from BDC to an internal table and pass to the output.

    Proceed as below:

    1. While calling BDC, use CALL TRANSACTION .... with addition: <b>MESSAGES INTO itab</b>. The structure of itab should be like <b>BDCMSGCOLL</b>.

    2. Now the messages will be collected in ita.

    3. Prepare the messages using FM: <b>FORMAT_MESSAGE</b>

    4. Collect to the returning table.

    Hope this helps...

    Though i could not understand the reason of creating a BDC within BAPI, you can opt for loading orders via BAPI's like: BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2.

    Kind Regards

    Eswar

    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.