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.

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

Similar Messages

  • Deletion marked material should give error message while creating proc ord

    Hello,
    i had marked the material for deletion through T-code MM06 & saved.
    Now when i'm creating the process order for the deleated material, System is giving only Warning message that " Material XXXX in plant XXXX has been marked for deletion."
    But my requirement is system shold give an ERROR message while creating Process Order for the deleted material.

    Yes Brahman is Right,
    Check the followig..
    Go to OMCQ and change the message category  to E- Error message instead of W- Waring message in Message no M7 127, but
    not  M7 121.
    and check it,
    Regards,
    Pavan idlur.

  • Warning to error message while creating a SC

    Hi,
    How to make a warning message to error message while creating a SC against the Cost Center when the cost center is closed in SRM 4.0.
    Currently we are running on SRM 4.0 with ECC 5.0 as back end and user are able to raise a SC and POs even the cost center is closed.We want to make it as error message and stop users to create a SC /PO against those closed Cost centers.
    Thanks and Appreciate your inputs.
    Regards,
    RK

    Use the BBP_DOC_CHECK_BADI.
    1. Get the backend message with a getmessage* FM.
    2. Check if it's a closed cost center warning.
    3. Add your own error message (can be just a copy of the message you retrieved) as an 'E' error
    Because this is a backend warning, you can't influence it in SRM with the message control in SRM unfortunately.
    Regards,
    Robin

  • Error message while creating Appropriation Request

    Hey there,
    I am getting Error message while creating Appropriation Request.
    I have done all the confiig according to SAP Best Practices U30 Investment Management.
    When going into transaction IMA11(Create an AR) I can full in all fields but as soon as I click on the Control Tab I get a Run time error. Also when attempting to save the AR without clicking on the Control tab I get this message.
    Any help would be greatly appreciated
    RAISE_ exception
    Runtime Errors         RAISE_EXCEPTION                                                            
    Date and Time          18.07.2011 07:15:07                                                                               
    ShrtText                                                                               
    Exception condition "ERROR_IN_STATUS" raised.                                                                               
    What happened?                                                                               
    The current ABAP/4 program encountered an unexpected                                         
         situation.                                                                               
    Error analysis                                                                               
    A RAISE statement in the program "SAPLAIA_TOOL" raised the exception                         
         condition "ERROR_IN_STATUS".                                                                 
         Since the exception was not intercepted by a superior program                                
         in the hierarchy, processing was terminated.                                                                               
    Short description of exception condition:                                                                               
    For detailed documentation of the exception condition, use                                   
         Transaction SE37 (Function Library). You can take the called                                 
         function module from the display of active calls.                                            
    Trigger Location of Runtime Error                                                                
         Program                                 SAPLAIA_TOOL                                         
         Include                                 LAIA_TOOLU11                                         
         Row                                     119                                                  
         Module type                             (FUNCTION)                                           
         Module Name                             AIA_TOOL_GET_STATUS                      
    Source Code Extract                                                                               
    Line  SourceCde                                                                               
    89 *                TYPE       = SY-MSGTY                              
        90 *                CL         = SY-MSGID                              
        91 *                NUMBER     = SY-MSGNO                              
        92 *                PAR1       = SY-MSGV1                              
        93 *                PAR2       = SY-MSGV2                              
        94 *                PAR3       = SY-MSGV3                              
        95 *                PAR4       = SY-MSGV4                              
        96 *           IMPORTING                                               
        97 *                RETURN     = ls_return.                            
        98 *   endif.                                                          
        99 *   if not ls_return is initial.                                    
       100 *      append ls_return to return.                                  
       101 *      raise error_in_status.                                       
       102 *   endif.                                                          
       103 *                                                                   
       104 *  Füllen der Ausgabetabellen                                       
       105    perform fill_output_tables tables lt_status                      
       106                                      lt_jsto                        
       107                                      et_appreq_status               
       108                                      et_appreqvarnt_status          
       109                                      et_appreq_user_status          
       110                                      et_appreqvarnt_user_status     
       111                                      lt_objnr                       
       112                                      lt_objnr_varnt                 
       113                                      lt_return                      
       114                               using  i_language                     
       115                                      i_with_text.                   
       116                                                                     
       117    if not lt_return[] is initial.                                   
       118       append lines of lt_return to return.                          
    >>>>>       raise error_in_status.                                        
       120    endif.                                                           
       121                                                                     
       122                                                                     
       123 ENDFUNCTION.

    Hi,
    You said you are trying to do this stuff in IDES right.
    If you are using IDES provided by a company and where many people play on IDES, then you can get many such issues...
    This is by our experience.  Today you do something in IDES and tommorow that thing or config is screwed up by others.
    If you have your own IDES, then check the suggestion given by the forum Guru's.
    Regards,
    SB

  • Error message while creating or editing a report

    Hi, we acquire the Crystal reports Ver 2008 type full, and this moment we are having an error message while creating or editing a report, the message suddenly appears saying:
    Crw32.exe has enconutered a problem and needs to close.
    Is there a patch available or what can we do?
    Thanks.

    Hi Lucus,
         This is to general an error, 1st try to reinstal the software, make sure you have admin rights on the PC, and try again.  If you still get the error, I would call the support number, and let them help you out.   You may need to know,   the type of PC or server the software was installed on, the current os, available memory... etc    For now, I would go to windows (If that is what you are running ) and re-install or repair the software.

  • Error message while creating an inbound delivery to generate an idoc

    hi,
    i am getting the following error message while creating an inbound delivery(vl31n) where the message has to be sent ot decentralized warehouse mangament using idoc .
    ." No recipient could be determined for object BUS2015 method SAVEREPLICA"
    Procedure for System Administration
    The system attempts to determine a recipient for object BUS2015 method SAVEREPLICA using the filter object types WHSE_NO. The system cannot determine a recipient. Define a filter object type WHSE_NO with a valid filter value for recipient determination for object BUS2015 method SAVEREPLICA.
    need help
    regards
    leo

    Inbound delivery is not part of Sales and Distribution. You might want to move your post to either the Logistics Materials Management (MM) forum or the Workflow forum.
    Also sometimes search for OSS notes by the message class and number helps.

  • Error Message while creating connection pool

    Hi all,
    I got the following error message while creating connection pool for the
    SQL Server thru the Application Server Admin Console.
    The message is,
    An error has occured.
    Operation 'create.Jdbc.ConnectionPool' failed in 'resources' Config Mbean. Target exception message :
    JdbcConnectionPool Already Exists: cannot add duplicate.
    But the connection pool for the SQL Server was not there in the list.
    What may be the possible reason for this error.
    i was trying to deploy a BMP entiy bean using the Sun Application Server.
    Prior deploying i just tried to create connection pool and test the connection using the Admin Console
    Please help me by providing a solution.

    Kriti Sundar Mazumder wrote:
    Hi
    I am getting an following error message, while creating database connection pool
    in weblogic 7.
    "<Jun 18, 2004 4:52:36 AM CDT> <Error> <JDBC> <001060> <Cannot startup connection
    pool "MyJDBCConnectionPool" java.sql.SQLException: [IBM][JDBC Driver] CLI0647E
    Error allocating DB2 environment handle, rc=-1.>"
    Can anyone help me out in this regard
    Regards
    KritiHi. I am no expert, but it sounds like a problem with the privileges the user
    has... The best thing is to step back to a simpler environment. Can you try
    connecting to DB2 with a simple program like utils.dbping? Please look at our
    driver docs for the DB2 driver, because there are several variations in connect
    properties depending on the type of DB2 you are connecting to...
    Joe

  • ERROR Message while creating Rebate condition record T code VBO1

    Dear Experts,
    I am getting error message while creating rebate condition record T code-VBO1-Error Msg-862 system cannot read the structure for table,because of this i could not create condition record.
    Please give the solution to create condition record.
    Regards
    siva

    Hi,
    You said you are trying to do this stuff in IDES right.
    If you are using IDES provided by a company and where many people play on IDES, then you can get many such issues...
    This is by our experience.  Today you do something in IDES and tommorow that thing or config is screwed up by others.
    If you have your own IDES, then check the suggestion given by the forum Guru's.
    Regards,
    SB

  • Error message while creating database

    Log error
    while creating new database
    Robot-properties
    XML Parsing Error: junk after document element
    Location: http://portalserver/psconsole/faces/search/RobotPropertiesHome.jsp
    Line Number 18, Column 1:<body id="_id3" onload="return _id3_jsObject
    I have created my new search engine .
    and the robot is not running.I getting log error.
    and no directory is created with the search name.
    please help me with the fields..
    creating search server..
    required Port:
    required Configuration Name:
    Required Instance:
    *Web Container Administration*
    Required Administration Host:
    Required Administration Port:
    Required Administrator:
    Required Administration Password:
    *Web Container Directories*
    Required Install Directory:
    Required Instance Directory:
    Required Document Root Directory:

    Kriti Sundar Mazumder wrote:
    Hi
    I am getting an following error message, while creating database connection pool
    in weblogic 7.
    "<Jun 18, 2004 4:52:36 AM CDT> <Error> <JDBC> <001060> <Cannot startup connection
    pool "MyJDBCConnectionPool" java.sql.SQLException: [IBM][JDBC Driver] CLI0647E
    Error allocating DB2 environment handle, rc=-1.>"
    Can anyone help me out in this regard
    Regards
    KritiHi. I am no expert, but it sounds like a problem with the privileges the user
    has... The best thing is to step back to a simpler environment. Can you try
    connecting to DB2 with a simple program like utils.dbping? Please look at our
    driver docs for the DB2 driver, because there are several variations in connect
    properties depending on the type of DB2 you are connecting to...
    Joe

  • Warning to Error Message while creating Shopping cart

    Hi,
    How to make a warning message to error message while creating a SC against the Cost Center when the cost center is closed in SRM 4.0.
    Currently we are running on SRM 4.0 with ECC 5.0 as back end and user are able to raise a SC and POs even the cost center is closed.We want to make it as error message and stop users to create a SC /PO against those closed Cost centers.
    Thanks and Appreciate your inputs.
    Regards,
    RK

    Hi Richy,
    The cost centre which you have maintained is locked for postings. Try to change the cost center and the warning message  should be gone.
    If you still want to chnage the message from warning to error,you can do in SPRO-->img->SRM->SRM Server -> Cross app basic settings->message control -> Influence message ctl.
    If an entry doesnt exist for this message in SPRO,make an entry in view BBPV_PDMSG (Tranx: SM30).
    See these related threads for more pointers:
    Re: Error Messages in BBP_PD
    Re: How to change an error message to a warning message in SRM
    Re: Where can I change type of message BBP_PD 083 from warning to error
    BR,
    Disha.

  • Error while creating activity by using BAPI

    Hi,
    While creating activity by using BAPI Im getting error as follows,
    Start processing of refference object handle generated.
    Integrity rule a d0008 broken
    business partner with function from vbkakom not vbpakom
    Integrity rule a d0008 broken
    edit all incomplete field .
    Please help me for solving this issue.
    Regards,
    Suresh

    Not received any proper reply Closing the issue.

  • Getting error message while updating Job attributes using PP03 for IT1641

    Hey Guys,
    We are getting error message while updating Job attributes using transaction PP03 for IT1641 (WC Attributes for JOB): 'Client has status not modifiable'.
    Update to the infotype 1641 should not require open SAP system. Would anyone suggest any SAP note/solution?
    Thanks...
    Edited by: Karan Gheewala on Apr 3, 2008 9:06 PM

    Solved using Note 123383 - WC: Customizing worker's compensation tables
    Thanks,..

  • Create Excise invoice(J1IIN) document while creating billing document using bapi BAPI_BILLINGDOC_CREATEMULTIPLE

    Dear Experts,
    My scenario is:
    We have batch split scenario, where the parent line item of billing document has 0 quantity and its subsequent item (item with batch number) holds actual quantity data.
    When we create billing document using VF01 against delivery document, system creates billing document along with excise invoice document (J1IIN Document). And in excise document contain same number of line items that of billing document. Please see the below attachment: 
    Biiling document screen shot:
    While creating billing document, the J1IIN Document created automatically. Below is the screen-shot for the same.
    Now the issue is:
    When we create billing document using BAPI: BAPI_BILLINGDOC_CREATEMULTIPLE system creating only billing document and not creating excise invoice document.
    When we create excise document manually using J1IIN the zero quantity line items are excluded in excise invoice document.
    Please see the below screen-shot for the same; The z quantity line items are missing.
    We want excise document to be created while creating billing document using BAPI BAPI_BILLINGDOC_CREATEMULTIPLE. Or is there any other BAPI for the same purpose.
    Customization is also maintained for creating excise invoice document automatically.
    Regards,
    Rajesh Sadula.

    HI
      Pricing will be carried basing on the pricing
    procedure.
    Case1: Prices will be carried out automatically if
    necessary condition records are maintained for the
    condition type.
      For this you can go to Sales Order-> Item Conditions
    In the screen you can click on command button Analysis,
    which gives you the list of condition types associated
    to the pricing procedure. By clicking on the condition
    type you can know the action that has taken place.
    Case2: Manually forcing prices for Items.
      To do this, you have to populate ORDER_CONDITIONS_IN &
    ORDER_CONDITIONS_INX. Also note to identify the item
    numbers, you manually pass the item number for each item
    in the sales order, use the same item number for
    populating conditions.
      Parameters required:
    ORDER_CONDITIONS_IN:
      ITM_NUMBER, COND_TYPE, COND_VALUE, CURRENCY
    ORDER_CONDITIONS_INX:
      ITM_NUMBER, COND_TYPE, UPDATEFLAG, COND_VALUE,CURRENCY.
       Hope the above info helps you. Do revert back if you
    need more info.
    Kind Regards
    Eswar

  • Error message while creating GL masters

    Hi,
    I am getting an error message while ncreating GL masters. "No account group is defined in chart of accounts" i have created in chart of accouts despite creating also it showing some message when i clink on create GL.
    Please advise.
    Chakri

    Hi
    Please Check in OBD4 t.code we can create account group or not?
    Ex: above screen here define the structure of gl a/c. befor creation.
    Regards
    Suresh

  • Suppress an error message while creating a return PO ( ZRO type) (ME21n)

    Hello All,
    I have to write a code in order to suppress the below message while creating a return purchase order (of type ZRO) , transaction ME21n  after entering the purchase organization, purchase group, the vendor & the material no :-
    "You have no authorization to create without reference to another document".
    For users with the below values of parameter ID & parameter value :-
    parameter ID = EFB & parameter value = 02 in transaction 'SU3' , under "parameters" tab, this message is getting triggered.
    My requirement is to suppress this message.
    Please suggest an exit name or a BADI name wherein I can implement the code for this requirement.
    Regards,
    Rachana.

    You can remove parameter ID EFB
    and for Order type other then ZRO you can put check of doc. reference.

Maybe you are looking for