Warning and abort message for BAPI_MATERIAL_BOM_GROUP_CREATE

Hi to all,
i am creating BOM using FM BAPI_MATERIAL_BOM_GROUP_CREATE , i have passed all necessary parameters, but
waring and abort message are coming with creating bom for BAPI_MATERIAL_BOM_GROUP_CREATE .
W BAPI1080             028
Error/warning when checking the structure of the BOM group with ID=BOMGROUP1
A BAPI1080             018
Item ID=BOM1 is not assigned to a variant/alternative
A BAPI                 001
No instance of object type BOMGroup has been created. External reference:
please can any one tell me what will be the soultion for that.
Regards
Pavneet Rana
Edited by: pavneet rana on Aug 23, 2011 6:27 AM

Thanks for reply ,
yes i have used that link, and i am using same value , except for matnr and plant.
but warning and abort message are coming, and no BOM is creating in MAST.
W BAPI1080             029
Error when checking the data of the object type=BOM / Id=BOM1 of group Id=BOMGROUP1
A BAPI                 001
No instance of object type BOMGroup has been created. External reference:
please can any one provide me the solution for that.
code:
DATA: BOMGROUP  TYPE TABLE OF BAPI1080_BGR_C,
        wa_BOMGROUP LIKE LINE OF  BOMGROUP,
        variant TYPE TABLE OF BAPI1080_BOM_C,
        wa_variant LIKE LINE OF variant,
        ITEM     TYPE TABLE OF BAPI1080_ITM_C,
        WA_ITEM   LIKE LINE OF ITEM,
        MATERIALRELATIONS TYPE TABLE OF BAPI1080_MBM_C,
        WA_MATERIALRELATIONS LIKE LINE OF MATERIALRELATIONS,
        RETURN    TYPE BAPIRET2_T.
DATA: wa_return LIKE LINE OF RETURN .
wa_BOMGROUP-BOM_GROUP_IDENTIFICATION = 'BOMGROUP1'.
wa_BOMGROUP-OBJECT_TYPE = 'BGR'.
wa_BOMGROUP-OBJECT_ID  = 'BOMGROUP1'  .
wa_BOMGROUP-TECHNICAL_TYPE = 'M'.
wa_BOMGROUP-BOM_USAGE  = '1'.
wa_BOMGROUP-BOM_GROUP = 'BOMGROUP1'  .
wa_BOMGROUP-CREATED_IN_PLANT = '2000'.
wa_BOMGROUP-LTXT_LANG = sy-langu .
wa_BOMGROUP-BOM_TEXT  = 'Created Using BAPI_MATERIAL_BOM_GROUP_CREATE'.
APPEND wa_BOMGROUP to BOMGROUP.
VARIANTS
  wa_variant-BOM_GROUP_IDENTIFICATION = 'BOMGROUP1'.
   wa_variant-OBJECT_TYPE   = 'BOM'.  "= 'BGR'. "
  wa_variant-OBJECT_ID  = 'BOM1'  .
   wa_variant-ALTERNATIVE_BOM = '2'.
  wa_variant-BOM_STATUS  =   '1'.
   wa_variant-BASE_QTY  =  '100'.
  wa_variant-BASE_UNIT =  wa_bom_header-BASE_UOM.
   wa_variant-LTXT_LANG = sy-langu .
   WA_VARIANT-LANGU_ISO   = SY-LANGU.
   wa_variant-ALT_TEXT  = 'BAPI_MATERIAL_BOM_GROUP_CREATE'.
  wa_variant-VALID_FROM_DATE = wa_bom_header-VALID_FROM.
   wa_variant-CHANGE_NO = 'ECN1'.
   wa_variant-FUNCTION     = 'NEW'.
   APPEND wa_variant TO VARIANT.
ITEM
WA_ITEM-BOM_GROUP_IDENTIFICATION  = 'BOMGROUP1'.
WA_ITEM-OBJECT_TYPE               = 'ITM'.
WA_ITEM-OBJECT_ID                 = 'BOM1' .
*WA_ITEM-ITEM_ID                   = 'BOM1'.
WA_ITEM-ITEM_NO                   = '0010'.
WA_ITEM-ITEM_CAT                  = 'L'.
WA_ITEM-COMPONENT                 =  '300201001'.
WA_ITEM-COMP_QTY                  = '100'.
*WA_ITEM-COMP_UNIT                 = 'KGK'.
WA_ITEM-VALID_FROM_DATE           = SY-DATUM.
APPEND WA_ITEM TO ITEM.
MATERIAL
WA_MATERIALRELATIONS-BOM_GROUP_IDENTIFICATION =  'BOMGROUP1'.
WA_MATERIALRELATIONS-MATERIAL = '1020007'.  "lv_matnr. "
WA_MATERIALRELATIONS-PLANT  = '2000'.
WA_MATERIALRELATIONS-BOM_USAGE  = '1'.
WA_MATERIALRELATIONS-ALTERNATIVE_BOM  = '2'.
APPEND WA_MATERIALRELATIONS TO MATERIALRELATIONS.
data: ITEMASSIGNMENTS TYPE TABLE OF  BAPI1080_REL_ITM_BOM_C,
      wa_ITEMASSIGNMENTS like LINE OF ITEMASSIGNMENTS .
wa_ITEMASSIGNMENTS-BOM_GROUP_IDENTIFICATION  = 'BOMGROUP1'.
wa_ITEMASSIGNMENTS-SUB_OBJECT_TYPE = 'ITM'.
wa_ITEMASSIGNMENTS-SUB_OBJECT_ID = 'BOM1'.
wa_ITEMASSIGNMENTS-SUPER_OBJECT_TYPE = 'BOM'.
wa_ITEMASSIGNMENTS-SUPER_OBJECT_ID = 'BOM1'.
*wa_ITEMASSIGNMENTS-VALID_FROM_DATE
*wa_ITEMASSIGNMENTS-CHANGE_NO
wa_ITEMASSIGNMENTS-FUNCTION  = 'NEW'.
APPEND wa_ITEMASSIGNMENTS to ITEMASSIGNMENTS.
CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
    EXPORTING
  TESTRUN                  = ' '
   ALL_ERROR                = 'X'
  TABLES
    bomgroup                 =  BOMGROUP
    variants                 = VARIANT
   ITEMS                    = ITEM
  SUBITEMS                 =
    materialrelations        = MATERIALRELATIONS
   ITEMASSIGNMENTS          = ITEMASSIGNMENTS
  SUBITEMASSIGNMENTS       =
  TEXTS                    =
    return                   = RETURN
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
  WAIT          =
IMPORTING
  RETURN        =
   ENDIF.
  loop at RETURN INTO wa_return.
  write:/ wa_return-type, wa_return-id, wa_return-number,
  wa_return-message.
endloop.
regards
pavneet rana
Edited by: pavneet rana on Aug 23, 2011 8:57 AM

Similar Messages

  • Diff between Error,Warning and Abort message

    Hi Friends
    Can any body tell the Diff between Error,Warning and Abort message
    Thanks

    Error - Its the abnormal behaviour which was not expected. Its means the process has been hualted at this point. Unless and untill you resolve this, you can not procedd further.
    Warnings: Its just the effect of a process it may have on other processes. You can continue doing irrespective of the warnings.
    Abort : to terminate a computer processing or data transfer activity.
    Thanks..
    Shambhu

  • System Warning and Error Messages in Plant Maintenance

    Hi All,
    Where can I find the list of system warning and error messages for Plant Maintenance?
    Thanks
    Andrew

    Hi,
    Follow the following path in SPRO. Some of the standard messages you will fond there:
    Plant Maint & Customer Serivces - Maintenanace & Service Processing - Maint. & Service Orders - Message Control.
    SM

  • To Monitor inbound and outbound messages for ECC 6.0 business system

    Hi Guys,
    I am working on ABAP proxy. I want to monitor the flow of Inbound and Outbound messages for my Business system (ECC 6.0).
    XI server is on a different system.
    I understand that SXMB_MONI is used for tracking XML messages. What kind of tracking can we do by this transaction in our Business system and the XI system?
    And how do I know whether the outbound XML message sent is lying in the Sending Business system or in the XI system?
    When I am testing my interface, there is a fault message generated. How do I know whether the fault message is being sent to XI?
    Thanks,
    James.

    James,
    Go to SXMB_MONI in your sending system.
    Here you will find a message ID fro your Message.
    Go to XI, --> SXMB_MONI -->Monitor For Processed XML messages --> Advanced Selection Crieteria and use the Message ID here to see if the Message has hit XI or not.
    Likeiwse it can be traced in the target system as well.
    The basic point,  The messages will have same Message Id on your R3 and on XI.
    Regards
    Bhavesh

  • Monitoring of inbound and outbound messages for business system ECC 6.0

    Hi Guys,
    I am working on ABAP proxy. I want to monitor the flow of Inbound and Outbound messages for my Business system (ECC 6.0).
    XI server is on a different system.
    I understand that SXMB_MONI is used for tracking XML messages. What kind of tracking can we do by this transaction in our Business system and the XI system?
    And how do I know whether the outbound XML message sent is lying in the Sending Business system or in the XI system?
    When I am testing my interface, there is a fault message generated. How do I know whether the fault message is being sent to XI?
    Thanks,
    James.

    James,
    Go to SXMB_MONI in your sending system.
    Here you will find a message ID fro your Message.
    Go to XI, --> SXMB_MONI -->Monitor For Processed XML messages --> Advanced Selection Crieteria and use the Message ID here to see if the Message has hit XI or not.
    Likeiwse it can be traced in the target system as well.
    The basic point,  The messages will have same Message Id on your R3 and on XI.
    Regards
    Bhavesh

  • How to capture tablespace warning and critical messages

    Hi,
    Where in the database dictionary, the tablespace threshold percent (warning and critical) defined by the user is stored.
    Requirement is to set threshold percent (warning and critical) in OEM and in a function (for User-Defined Metrics) or procedure (for scheduler) check for Tablespace PCT_FULL against the set threshold percent and display message accordingly.
    Thanks & Regards,
    Sanju.

    Sounds like this is default behaviour of the metrics for tablespace full?
    Here is the basic query for OEM metrics:
    select
    target_type,
    target_name,
    metric_column Metric,
    decode(warning_threshold,' ',null, decode(warning_operator,'Equal To','=','Not Equal','!=','Greater Than','>','Less Than','<',warning_operator) || ' ' || warning_threshold) Warning,
    decode(critical_threshold,' ', null, decode(critical_operator,'Equal To','Not Equal','!=','=','Greater Than','>','Less Than','<',critical_operator) || ' ' || critical_threshold) Critical
    from mgmt$metric_collection
    --where target_type = 'oracle_emd'
    --and  metric_column = 'HostInfovszGrowth'
    --and warning_threshold != '20'
    --where target_type = 'host'
    where-- metric_column like 'tnsPing'
    -- (warning_threshold != '80' and critical_threshold != '95')
    --and
    target_type = 'oracle_database'
    --and target_type = 'host'
    --and
    --target_type  = 'oracle_listener'
    --target_type = 'oracle_emd'
    --and metric_column like 'generic%'
    --and warning_threshold like '%ORA%'
    and target_name = 'XXXSOMEHOSTNAMExxxx'
    and metric_column = 'pctUsed'
    order by 1,3,2

  • How to Create Warning or Error message for transaction

    Dear Gurus,
    I understand that we can create a new warning or error message. I would like know how we tie the transaction with these message.
    ex:
    I want to create a warning message in MIGO when i receive goods for PO. How do i create a message a tie the transaction to it.
    Regards,
    Kumara.

    Of course you can add own messages and message classes. But they will not be considered anywhere without proper coding.
    If you want a message to appear in MIGO then you have to find an user exit where you can put your coding that will issue your own messages.

  • Different alerts for email and sms messages for a contact with custom ring tone

    Hello,
    I have a Curve 8530 with OS 5.0.0.395.
    I have my default sound profile set up to play one type of alert sound when I receive and email message and another when I receive an SMS message (so I know the difference without looking at my phone). That works fine except for contacts that I also have a custom ring tone set up for. It seems that under the Custom Ring Tones/Alerts section of the contact there is only one entry for Messages and it applies to both email and SMS. If I have the contact's message alerts set to the alert I have for email, then their SMS messages play the same alert and I might think it's an email. Or if I have the messages alerts set to the SMS alert sound then their emails sound like SMS messages. Is there a way to have a custom ring tone set up for a contact but still allow their emails and SMS messgaes to follow the current sound profile's settings?
    Thanks.

    Hello,
    Have you had any luck resolving this issue. I had a 8230 and this was possible. But like you I can get the 8530 to work. If you found the solution, please let me know.

  • 6447048: Jconsole Best Practices for 6_10 and 7 (Message for Imalvent)

    doom despair and agony on me, deep dark ... you know the rest.
    The very simple patch for pre-6_10, when fitted to the equivalent code in 6_10, no longer works!
    Obviously the recognition of the containerView options and the extraction of the keys still works, but now, when these get added to the Dn token list (inside the Dn constructor now) they simply leave the MBean tab completely empty. Here is the code that does the work in the constructor:
    if (isContainerView()) {
        //Containment model view
        List<String> list = extractContainmentDetails(keyPropertyList, mbean);
        for (String entry : list)
            tokens.add(new Token("key", entry));
    else if (isTreeView()) ...(the code for extractContainmentDetails is essentially the same as in my previous post)
    Which, as far as I can see, does the exact same thing as a) used to be done in my old fix and, b) is done for the tree view, EXCEPT that it breaks up the keys into sub-components - so the Tokens for, say, MBean
    type=Server.Instance.Counters,Server=GtServerwould be
    type=Server
    name=GtServer
    type=Instance
    type=CountersPre 6_10, this produces the correct tree of:
    + Server
    |
    + GtServer
      |
      + Attributes
      + Operations
      + Instance
        |
        + Attributes
        + Operations
        + Counters
          |
          + Attributes
          + OperationsI suspect that you are now using these "key" things in the Token list for accessing the MBeans and not simply for display, which is what was happening pre-6_10, and so the simple containment view change that I devised no-longer works!
    I do understand that other fixes were needed for refresh etc - but I'm understandably disappointed that what was a simple structure change now seems to require something far more fundamental. Any suggestions on how I can take this forward?

    And the problem is:
    the method getHashKey in Dn searches for the substring of the value of the input token. The problem is that if any of the overall hash for the Dn contains that substring before the intended token, then the returned hash runs the risk of being a duplicate of another hash, and thus you get a bad insertion.
    For me, my overall hash is
    name=GtServer_1,type=ServerPool.Server,name=GtServer,type=ServerPool,domain=com.csc.gtmonitor.GtMonitor340so when we want the hash for
    name=GtServerwe get the whole thing, rather than what we REALLY wanted, which was just the last part.
    Suggestion 1:
    Build the token hash keys as the Dn is being built by building up the hashkey string as each token is added. Requires change to Dn and Token so that Token has a hashkey property.
    or Suggestion 2:
    Change getHashKey to accept the token index and let it build the hash key from that index onward from the token list. Somewhat more expensive in that the hash is built up each time it is requested.
    or Suggestion 3:
    Change getHashKey to use a regular expression, and a terminating character of ", or end-of-string" on the end of the input token value. Still has a slight risk of trapping a substring that occurs earlier in the Dn hash than intended.
    Opinions? (I like suggestion1 best)

  • Microsoft Remote Conenctivity Analyzer got warning and error Message

    I got the following error when trying to test using Microsoft Connectivity Analyzer for Lync Server
    Analyzing the certificate chains for compatibility problems with versions of Windows.
    Potential compatibility problems were identified with some versions of Windows.
    Additional Details:
    The Microsoft Connectivity Analyzer can
    only validate the certificate chain using the Root Certificate Update
    functionality from Windows Update. Your certificate may not be trusted
    on Windows if the "Update Root Certificates" feature isn't enabled.
    Elapsed Time: 7 ms.
    Testing remote connectivity for user [email protected] to the Microsoft Lync server.
    Specified remote connectivity test(s) to Microsoft Lync server failed. See details below for specific failure reasons.
    Additional Details:
    Couldn't sign in. Error: Error Message: This operation has timed out..
    Error Type: OperationTimeoutException.
    Elapsed Time: 100029 ms.
    I have installed the certificate correctly:
    Certificate Purchased from Comodo PositiveSSL Multi-Domain.

    Hi,
    Please try to active the Windows feature “Update Root Certificates” and then test again.
    If you doesn’t active the feature, the clients and federated partners running the impacted
    Windows versions must install the corresponding root certificates manually.
    How to get a Root Certificate update for Windows
    http://support.microsoft.com/kb/931125
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • My Robohelp html 8 project won't open after one warning and error message

    I'm currently using Robohelp HTML 8 and when I open my project  I first get the following message:
    After I click OK, I get this error message:
    The project won't open after that. When I look ate my files they seem to be intact even though the message says the folder is missing from
    Your help is greatly appreciated.
    Thank you,
    Joy

    Hi Joy
    Unless I'm mistaken, K would be a network drive, no?
    Unfortunately RoboHelp is only one of a host of applications that doesn't fare well if you try to make edits to a project while it resides on a network drive.
    Try copying the project to your local C drive. Perhaps create a folder named Projects and copy your project to a folder named Primo Intranet inside that folder so it looks like this:
    C:\Projects\Primo Intranet
    Once you do this, try opening your project again and you will likely have better luck.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Set up Warning or Error Messages in CO54 and CO60

    Hi,
    I would like to find out where in SPRO can I maintain warning and error messages for transactions CO54 and CO60? 
    Thank you in anticipation.
    Best regards,
    Lyncel

    Hi,
    Thanks you for your email. However, I do not have specific message class or message number. Messages for CO54 and CO60 are needed for us to find out possible scenarios wherein it will trigger the error "Sending Message failed" in a custom transaction for TECOing process order. This custom trannsaction calls transaction CO%$ in sending messages and transaction COR2 to TECO the process order. If you could provide the transaction in SPRO wherein we could check the messages for CO54, CO60 and please include COR2 also.
    Thank you,
    Lyncel

  • How to create a verification pop-up message for queries executed on Web

    I have implemented the function RRMS_MESSAGE_HANDLING in my customer exit variable code for step 2  in the customer include ZXRSRU01.  I am able to get warning and error messages to appear in Bex Excel queries, but not queries executed on the Web.  I have also tried implementing these queries in a Web Template which allows system messages and warning messages, but still these messages are suppressed.
    Is anyone aware of how to create warning messages that appear both in Bex Excel and Bex Web queries?
    Thanks for you help,
    Curt Timmerman

    On the Comments screen, just select the notes tool to add the note. When you are done, click to close the note.

  • Attributes of system message changing from warning to Erroro message

    dear experts,
                 I have an issue regarding to change the sytem message from warning to error message .For some materail groups are under Purchase requisition release Stratergy.For this without releasing Pur req system should not allow to raise  P.O .At that time system should thro error message- Pur req &,item &,not released for ordering.So in SPRO -MM-Purchasing -Environment Data-Define Attributes of sysytem message.
    Here
    Ver     Appl    No                           Message                                     Text Categ
    00       06       055       Pur req &,item &,not released for ordering      E
    The above settigs has been made & saved .
    Now we created Pur req with ref to the material Group which are under release Procedure & saved .But with out releasing Pur req we are  raising  P.O with ref to Pur Req by this time when i was saving System should throw Error message -
    Pur req &,item &,not released for ordering .Its not reflecting as per the configuration.
         I have checked in Table level also ,here the data's are updating as per the configuration Error message.
    Table Name-  V_160m
    Field Name -MSGNR (Message Number)
    Field name- ARBGB( Application Area i,e ME)
    Field Name -MSGTP( Error or Warning).
       Kinldy give me your suggestion as soon as possible.
    Thansk In advance
    vishal

    Hi,
    While  defining release strategy check in release statuses whether you and selected S-first indicator (blocked)
    (In top) .......and 2-Request For quotation/Purchase indicators....
    regards,
    Patil

  • Help Needed With Scripting and Error Messages

        I am working to build a script to change orders in SAP using Java. I begun by recording steps and combining them.  I am having issues with the Warning and Error Messages.  Can someone help me write language to have the script enter through the warnings or errors if they pop up, but move to the next step if nothing pops up?? Some orders have the message, some do not, some have multiples... etc...
    Thanks!!

    Hello Jamie.
    Getting popup you can use an Loop like below (this is now for Excel VBA coded):
    For Each subWindow In Session.Children
                If subWindow.Name = "wnd[1]" Then
                    On Error Resume Next
                    Session.FindById("wnd[1]").sendVKey 0
                    Session.FindById("wnd[1]/usr/btnANSWER_YES").press
                    Session.FindById("wnd[1]/usr/btnSPOP-OPTION2").press
                End If
            Next
    For Messages in SAP session statusbar like this:
    If Session.FindById("wnd[0]/sbar").Text <> "" Then ...
    To catch error Messages defined by messagetype you can use this:
    If Session.FindById("wnd[0]/sbar").messagetype = "S" Then ... 'sucess messagetype
    If Session.FindById("wnd[0]/sbar").messagetype = "I" Then ... 'Information messagetype
    If Session.FindById("wnd[0]/sbar").messagetype = "E" Then ... 'Error messagetype
    Aso...like we have in SAP
    Hope this help a bit to achieve your requirements.
    Best regards,
    Holger

Maybe you are looking for

  • Doesn't seem to work with my host

    I have the following code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/htm

  • Printing text from separate documents in same book as a continuous flow through the pages

    Hi, I have a basic problem. My book in InDesign has different chapters and subchapters. When I started it I split all chapters in separated documents (all contained in the same book). But for a specific chapter I also want to split each subchapter in

  • Creating a Fixed Length File

    Greetings, I'm creating an application that need to create a fixed length file on a UNIX system and need help. I have an internal table(s) which contain structures with fields of different lengths (type c) and so I have a routine that concatenates th

  • Silent Install Firefox 29 Windows

    I've been scouring the internet for a while looking for a way to do a silent install of Firefox via command-line. As I have come to find out, the -ms and /INI methods only work in much older versions of Firefox. When I try the -ms silent install, the

  • Process Order Actual Cost?

    Dear Experts, I understand that we need to run KSII - Actual Activity Price Calculation first before we run the Revaluation of Orders using CON2 in order for us to get the actual cost updated in FI at the end of the day. Somehow, in SAP Best Practice