BADI errors

hi All,
   I have implemented the BADI BBP_DOC_CHANGE_BADI for restricting the line items to be of the same category.Now the chekc  is being performed whnever I add an item to the SC whcih is of the same  category but in addition to that i am getting some other errors  whcih are as follows...
1> No account assignment exists. Enter an account assignment   
2> Select a location to which a plant has been assigned 
3> Enter exactly one partner of type Requester
4> Enter at least one partner of type Location Or Goods Recipient
5> No organizational data exists on item level
  Can anyone  tell me what are these  errors related to???
regards,
Disha.

Disha,
BADI CHECK does not change the data, so it can not be the cause of those error messages.
BADI CHANGE does, so if it is not correctly done, you can generate inconsistancies.
Some BADIs requiere to pass all the E tables or parameters once you have activated the BADI.
Try to put E_ACCOUNT[] = I_ACCOUNT[],.. and so on for all tables.
Rgds
Christophe
PS: reward points for helpfull answers

Similar Messages

  • Bad Error Message Protection

    Hi,
    The Security team has requested that they look over our router and switch configs before we deploy them in production.
    One thing they mentioned:
    "Bad Error Message Protection" 
    They recommend "setting icmp ignore bogus error responses to 1". I haven't found any Cisco docs on the subject or any commands to enable this. That being said, I haven't tried to configure any bad error message commands because if this is a real concern I want to make sure I am doing it correctly.
    Any advice?
    Thank you.

    ok - it seems problem has been fixed - I was on messenger 3.3 - I downloaded messenger 3.4 and everything seems to work as it should

  • MSI NF980-G65 mainboard won't read ATA devices? & checksum bad error?

    I have an NF980-G65, model# MS-7612.  it has worked great for a couple years and now it won't read any ATA drives?  It also gives a checksum bad error.  It isn't that old and I have a ton of memory on it which I would like to use, but it just won't read the ATA drives.  Sometimes I can get it to read them in the bios, but it will never let me get past installing the operating system, (Windows 7 pro)  Most of the time it just doesn't see them, (hard drive, DVD,CD or any ATA drive)
    Does anyone know anything about this? or does it sound familiar?  I have always built my own PC and the mainboards have always lasted longer.   I'm hoping it's something I can fix.  The rest of the board seems to be fine?
    It is an AMD quad board with 10gigs of memory and windows 7.  I have also run XP, but it also will not see the ATA drives?
    Thanks!

    >>Posting Guide<<

  • KT6 Delta - CMOS/GPNV Checksum Bad error

    Well Im going to get a new psu tonite but I wanted to cover my butt in case the problems I'm experencing could be something else...
    If I do cmos clear I get the CMOS/GPNV Checksum Bad error...
    All I know is to set my DRAM>SDRAM frequency to 266
    and then it gives me BSOD....
    any ideas why besides the psu?   I really don't know any of the settings so Im just gonna leave them at default unless you say otherwise.
    Oh - I can't tell what my cpu is running after the SDRAM freq change but before its always running at around 1.15 (Im pretty sure)????
    Athlon XP 1800+
    MSI KT6 Delta
    128mb Samsung PC2100 (I also have 2x 256mb Elixir PC2100 out of the case now)
    GF4 ti4400 (some brand not sure)
    Seagate IV Barracuta 60gig

    Me might have big problem. When me clears CMOS I get bad error too. Enter today and how much clock there is, both in the world and in my PC -> is alright. But memory no 266 Yes 133

  • Problem in BADI, error message not getting displayed

    Hello Experts,
    I am facing a strange problem in BADI.
    The requirement is that the user should not be allowed to change the plant field
    on the screen of standard MM transctions for PO/PR amendment.
    I have written the code in separate BADIs for PO and PR.
    I am displaying an error message if the user tries to change the field.
    For PO, it is working fine.But for PR, the same code is not working.
    The control is going over to the BADI for PR and rest of the code is working fine.
    But the error message is not getting displayed for PR amendment.
    Can anybody please suggest the possible cause of problem and some solution to it.
    Thanks in advance.

    Hi
    See the sample BADI code for PR which raises an exceptions and do accordingly
    BAdI Name: ZPUR_RFQ (Implementation name) Purchase Requisitions
    Definition Name: ME_REQ_POSTED
    Interface Name : IF_EX_ME_REQ_POSTED
    Implementing Class: ZCL_IM_PUR_REQ
    Method :            POSTED
    METHOD if_ex_me_req_posted~posted .
      DATA : v_mtart TYPE mtart.
      DATA l_s_eban TYPE ueban.
      LOOP AT im_eban INTO l_s_eban.
        IF l_s_eban-estkz NE 'B'.
          CLEAR v_mtart.
          SELECT SINGLE  mtart INTO v_mtart FROM mara WHERE matnr = l_s_eban-matnr.
          IF v_mtart EQ 'ZERS' OR v_mtart EQ 'FHMI' OR v_mtart EQ 'UNBW'.
            MESSAGE e000(zm_msg) WITH 'You are not allowed' 'to create PR for stock items'.
          ENDIF.
        ENDIF.
        IF  l_s_eban-knttp NE 'F' OR l_s_eban-pstyp NE '9'.
          IF l_s_eban-knttp NE 'A'.
            IF ( l_s_eban-pstyp NE '9' AND l_s_eban-pstyp NE 'D' ) 
               AND l_s_eban-matnr EQ space.
              MESSAGE e000(zm_msg) WITH 'You cannot create'
                'a PR without material number'.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDMETHOD.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • BADI Error: Field GOITEM-ACCT is not ready for input ? HELP!

    I get this error message when testing my BADI in the MIGO Transaction.  The BADI is the MB_MIGO_BADI.  It is from the Line_modify method.  Here is the entrie message:
    BAdI: Field GOITEM-ZZREG_ACCT is not ready for input. (Change is not copied over)
    Message no. MIGO050
    Diagnosis
    The contents of field GOITEM-ZZREG_ACCT have been changed in BAdI MB_MIGO_BADI (method LINE_MODIFY). The field, however, is not ready for input, so the change cannot be copied.
    In method LINE_MODIFY, only the contents of fields that are ready for input can be changed.
    The field is defined correctly in the screen as an input/output field - so it does not relate to that.
    HELP!!!!!

    Yes - I have reviewed all of the code and I never do any modify to the screen attributes of a field - although it sure acts like it.  The screen lets me put in data and it stays there up until it finishes the method line_modify.  The error is when i press return after i enter the field- it completes the BADI method and then goes to the main program and does field validation and always comes back with some internal table field called "work" with a value of 0 and it should be a value of 6.
    Thanks! 
    Scott

  • BAdI error : type of EXIT_REF1 cannot be converted to the type of EXIT_REF

    Hi all,
    The below was the posted earlier for BAdI. Ihave followed all the steps. And i have written the below code. Syntactically it is not showing any errors, but when i am activating i am getting error
    like " The type of EXIT_REF1 cannot be converted to the type of EXIT_REF". where i am doing the mistake..??
    1) execute Tcode SE18.
    2) Specify a definition Name : ZBADI_SPFLI
    3) Press create
    4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
    multiple use.
    5) Choose the interface tab
    6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
    7) Dbl clk on interface name to start class builder . specify a method name (name,
    level, desc).
    Method level desc
    Linese;ection instance methos some desc
    8) place the cursor on the method name desc its parameters to define the interface.
    Parameter type refe field desc
    I_carrid import spfli-carrid some
    I_connid import spefi-connid some
    9) save , check and activate…adapter class proposed by system is
    ZCL_IM_IM_LINESEL is genereated.
    IMPLEMENTATION OF BADI DEFINITION
    1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
    2) Specify aname for implementation ZIM_LINESEL
    3) Specify short desc.
    4) Choose interface tab. System proposes a name fo the implementation class.
    ZCL_IM_IMLINESEL which is already generarted.
    5) Specify short desc for method
    6) Dbl clk on method to insert code..(check the code in “AAA”).
    7) Save , check and activate the code.
    REPORT ZBADI_TEST .
    tables: spfli.
    data: wa_spfli type spfli,
    it_spfli type table of spfli with key carrid connid.
    *Initialise the object of the interface.
    data: exit_ref type ref to ZCL_IM_IM_LINESEL,
    exit_ref1 type ref to ZIF_EX_BADISPFLI1.
    selection-screen begin of block b1.
    select-options: s_carr for spfli-carrid.
    selection-screen end of block b1.
    start-of-selection.
    select * from spfli into corresponding fields of table it_spfli
    where carrid in s_carr.
    end-of-selection.
    loop at it_spfli into wa_spfli.
    write:/ wa_spfli-carrid,
    wa_spfli-connid,
    wa_spfli-cityfrom,
    wa_spfli-deptime,
    wa_spfli-arrtime.
    hide: wa_spfli-carrid, wa_spfli-connid.
    endloop.
    at line-selection.
    check not wa_spfli-carrid is initial.
    create object exit_ref.
    exit_ref1 = exit_ref.   "" The type of EXIT_REF1 cannot be converted to the type of EXIT_REF"
    call method exit_ref1->lineselection
    EXPORTING
    i_carrid = wa_spfli-carrid
    i_connid = wa_spfli-connid.
    clear wa_spfli.
    Thanks in advance
    krupali.

    Hi,
    Both are of different types
    data: exit_ref type ref to ZCL_IM_IM_LINESEL,
    exit_ref1 type ref to ZIF_EX_BADISPFLI1.
    Assiging one type another type is not allowed.
    Rhea.

  • BPC BADI error ORA-14400

    Hi,
    In BPC, we are using BADI to process allocations.
    In the BADI data are read from the BPC cube (F and E table), calculate allocations and write back to F table.
    In writing, I use MODIFY (ftable) from itab. Sometimes it works and recently I get the following error: ORA-14400: inserted partition key does not map to any partition
    Anyone here who has encountered the same problem?
    Thanks in advance,
    Karen

    solution found.

  • BADI Error

    Hi Experts
            I am developing a Bapi into a Badi, regarding automatic postings, now am facing the following error.
    I am using following oops method
    IF_EX_BADI_SD_BILLING~INVOICE_DOCUMENT_CHECK
    Iam getting the Error :
    CALL_FUNCTION_CONFLICT_LENG
    "HEAD" is the correct type, its length is incorrect.
    My Coding :
    TYPES : begin of ggoodsmvt_header1,
    ref_doc_no type bapi2017_gm_head_01-ref_doc_no,
    pstng_date type bapi2017_gm_head_01-pstng_date,
    doc_date type bapi2017_gm_head_01-doc_date,
    pr_uname type bapi2017_gm_head_01-pr_uname,
    END OF ggoodsmvt_header1.
    *internal table
    DATA : HEAD TYPE TABLE OF ggoodsmvt_header1.
    *work area
    DATA : WAH TYPE ggoodsmvt_header1.
    WAH-ref_doc_no   =  wa_vbrk-vbeln.
    WAH-pstng_date = sy-datum.
    WAH-doc_date = sy-datum.
    WAH-pr_uname = sy-uname.
    APPEND WAH TO HEAD.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
              EXPORTING
                goodsmvt_header             = HEAD
                  goodsmvt_code               = ggoodsmvt_code
            TESTRUN                     = ' '
              IMPORTING
            GOODSMVT_HEADRET            =
                materialdocument            = gmaterialdocument
                matdocumentyear             = gmatdocumentyear
              TABLES
                goodsmvt_item               = itabw
            GOODSMVT_SERIALNUMBER       =
                return                      = greturn
       What could be the error, i think HEAD is the problem, bcoz
    usually we give
    DATA : ggoodsmvt_header  TYPE STANDARD TABLE OF  bapi2017_gm_head_01 WITH HEADER LINE.
    but in oops we cant assign header line, is it, pls advise me solve this problem.
    Thanks in advance.
    Regards
    Rajaram

    Hi Raja Ram,
    Never use ur own structures for defining parameters passed to any FM. Change ur declarations like below. It will work fine.
    Delete this piece of code from here
    DATA : ggoodsmvt_header TYPE bapi2017_gm_head_01.
    TYPES : begin of itab5,
    move_type type BAPI2017_GM_ITEM_CREATE-move_type,
    mvt_ind type BAPI2017_GM_ITEM_CREATE-mvt_ind,
    material type BAPI2017_GM_ITEM_CREATE-material,
    entry_qnt type BAPI2017_GM_ITEM_CREATE-entry_qnt,
    move_stloc type BAPI2017_GM_ITEM_CREATE-move_stloc,
    stge_loc type BAPI2017_GM_ITEM_CREATE-stge_loc,
    po_number type BAPI2017_GM_ITEM_CREATE-po_number,
    po_item type BAPI2017_GM_ITEM_CREATE-po_item,
    batch type BAPI2017_GM_ITEM_CREATE-batch,
    plant type BAPI2017_GM_ITEM_CREATE-plant,
    end of itab5.
    DATA : itabw TYPE TABLE OF itab5.
    DATA: wah TYPE BAPI2017_GM_HEAD_01. "Add this
    to here and replace with below declarations       
    DATA: wah TYPE BAPI2017_GM_HEAD_01,
              ggoodsmvt_code TYPE BAPI2017_GM_CODE,
              gmaterialdocument TYPE BAPI2017_GM_HEAD_RET-MAT_DOC,
              gmatdocumentyear TYPE BAPI2017_GM_HEAD_RET-DOC_YEAR,
             itabw TYPE STANDARD TABLE OF BAPI2017_GM_ITEM_CREATE,
             greturn TYPE STANDARD TABLE OF BAPIRET2.
    "Replace declaration for work area of itabw also if u have any
    "with TYPE BAPI2017_GM_ITEM_CREATE.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header = wah
    goodsmvt_code = ggoodsmvt_code
    *TESTRUN = ' '
    IMPORTING
    *GOODSMVT_HEADRET =
    materialdocument = gmaterialdocument
    matdocumentyear = gmatdocumentyear
    TABLES
    goodsmvt_item = itabw
    *GOODSMVT_SERIALNUMBER =
    return = greturn.
    If u carefully observe the declarations all are of same type as they are in FM.
    Thanks,
    Vinod.

  • Bapi in a badi, error call_function_conflict_leng

    Hi, i'm using the bapi BAPI_REL_CREATERELATION in the badi IF_EX_ECM_UPDATE~CHANGE_IN_UPDATE. But there is an rutime error that doesnt continue, that is call_function_conflict_leng.
    Did anyone have this error.
    plz help me,
    regards,
    Diego

    calling a BAPI in a BADI, which will be hit on a online process... my money doesnt go on this process.

  • BADI error-higher-level members have been selected

    Hi,
    1. When i select all in the Select input it is displaying warning messsage as Parent member is selected.                         
    2. So, Instead i am trying by selecting all the members irrespective of hirearchy manually and  not getting any errors and data is flowed succesfully.
    environment sap bpc nw 7.5 sp04
    we use the extraction BAdi /CPMB/EXPORT_TD_TO_BADI and use a                                                                       
    SELECTINPUT statement to select only lowest level members of the                                                                   
    hierarchical dimension PROFITCENTER. As long as we use <ALL> as                                                                    
    selection, we get error messages indicating that higher-level                                                             
    members have been selected. Since we use SELECTINPUT we would expect                                                               
    not to receive such warnings. Also there are no higher level members                                                               
    passed through the Extraction BADI in IR_DATA tabel ... As a workaround                                                            
    the i always has to manually select all profit center
    Regards,

    Hi SSK,
    If i understood your question correctly, There must be some property by which you can select all the members i guess.
    I think ,the error is because parent members are  selected  when you give select all. Since in BPC , they dont store any data or cant be manipulated, You could use some propert values to select the required profit_centre.
    Example
    Entity  dimension
    IDs               Profit_Ctr             Input _ Indicator
    Abc
    XYz               Y                                N
       Xyz1           Y                                Y
    This way your code could reflect   Select  Entity where  Input indicator ="Y", Profit_ctr = "Y"
    Hope this helps
    Thanks,
    sridhar

  • Workflows - badi - error message

    Hi Experts,
    I have a requirement in workflows...where i need to display en error after checking a condition.
    Is there any standard BAdI through which we can display error message on the status bar of UI..??
    Any pointers shall prove really helpful.
    With Best Regards
    Kanika Chopra
    Edited by: kanika chopra on Oct 8, 2008 1:02 PM
    Edited by: kanika chopra on Oct 9, 2008 6:06 AM

    Hi,
    I suppose you are talking about the WebClient UI and not the SAPGUI.
    For the first question: I do not know how to modify the status bar, but if adding a message to the message area (were all other CRM related information messages are shown) is enough you can use the global message container.
        lr_msg_service = cl_bsp_wd_message_service=>get_instance( ).
        MESSAGE e<<msg_number>> INTO lv_msg WITH lv_msg_v1.
        CALL METHOD lr_msg_service->add_message
          EXPORTING
            iv_msg_type   = sy-msgty
            iv_msg_id     = sy-msgid
            iv_msg_number = sy-msgno
            iv_msg_v1     = sy-msgv1.
    Changing values of UI fields you got two options:
    1. You modify the UI components code to change the field value over the GET/SET methods on some kind of event
    2. You modify the underlying data in the BOL object.
    Checking is done by simply adding a 'X' to the variable representing the checkbox.
    cheers Carsten

  • Regarding BADI error handling

    Hi,
    I have a requirement to generate a reference code for a publication and when the publication is saved with out reference code it should display message on the portal.
    So how can we handle error messages in the BADI or in the E-Recruiting portal.
    Thanks in advance.
    Thanks,
    Anil

    Hello Anil,
    unfortunately the BADI for reference code generation is only called on request. When you activate a BADI implementation the button for generation appears on the screen and can be used.
    But only when you press this button the BADI is called and within this call you can create an error message for example if you generate date or channel dependent reference codes and the user did not enter this data yet.
    The BADI is not processed when saving the publication so you have no option to use it for raising an error message when saving an empty or not matching reference code.
    The only solution I currently know for your problem is modifying the system. If you do not want to make a modification (as it has quite a lot of negative consequences) you could copy the bsp view parts of the publication tab into the customer namespace and change the behaviour to whatever you like as customer development. You replace the original tab with the customer one in the container sequence customizing.
    Best Regards
    Roman Weise

  • Badi-error message?

    Hi,
    Once the user wants to release an account some validation has to be done and restrict the user to release...
    1.I have used one Badi and i put one Error mesage....but Error mesage is producing short dump.
    2..I changed the mesage to type 'I' and below that i used
          a) exit command  --No use,user gets message and he can release the account also..
            b) LEAVE TO CURRENT TRANSACTION...This also produce dump as it cannot hold the data to go back..
    Please suggest me any other solution..
    Cheers,
    raVi

    Hi Ravi ,
    What is the dump you are getting?
    During validation you can use POPUP_TO_CONFIRM FM to relase are not.
    If you dont want to release use LEAVE PROGRAM.
    Regards,
    Madhu.

  • Ancestorid BAD error

    Any idea what is this error means...
    [26/Jun/2014:14:04:38 -0400] - DEBUG - conn=-1 op=-1 msgId=-1 -  ancestorid BAD 13120, err=-666 Unknown error: -666
    [26/Jun/2014:14:04:45 -0400] - DEBUG - conn=-1 op=-1 msgId=-1 -  ancestorid BAD 13120, err=-666 Unknown error: -666
    [26/Jun/2014:14:04:51 -0400] - DEBUG - conn=-1 op=-1 msgId=-1 -  ancestorid BAD 13120, err=-666 Unknown error: -666
    [26/Jun/2014:14:04:58 -0400] - DEBUG - conn=-1 op=-1 msgId=-1 -  ancestorid BAD 13120, err=-666 Unknown error: -666
    [26/Jun/2014:14:05:02 -0400] - DEBUG - conn=-1 op=-1 msgId=-1 -  ancestorid BAD 13120, err=-666 Unknown error: -666
    Our version is :
    Sun-Directory-Server/11.1.1.7.0 B2013.0109.2015 (64-bit)
    Platform: SLES11
    thanks

    Hello,
    You probably hit defect 16737497 that impact indexing.
    I would recommand to install the latest bundle patch for ODSEE (11.1.1.7.1) (Oracle Fusion Middleware Bundle Patch Release Notes for Oracle Directory Server Enterprise Edition - 11g Release 1 (11.1…)
    The bundle patch is available from My OracleSupport portal.
    -Sylvain
    When closing a thread as answered remember to mark the correct and helpful posts to make it easier for others to find them

Maybe you are looking for

  • HP OfficeJet gx85i and HP Laserjet 1200

    I have a friend of mine who just bought a mac mini to be a file/print/backup server for his home network. He has three printers plugged into the mini, an hp officejet gx85i, and hp laserjet 1200, and an hp photosmart printer. Both the laserjet and th

  • Import CLASSPATH in JSP

    Hi all, I am following a guide to install an JSP application on Tomcat. The third point is: Confirm JAR Files are Included in CLASSPATH Please ensure that the .jar files in the WEB-INF/lib/ directory of your web application are included in the CLASSP

  • Firefox randomly starts eating tons of CPU causing lagging and freezing

    Firefox V.35 on Windows 7 64 bit Ok, idk what has gotten into Firefox the last few updates, but it has become incredibly SLOW and laggy. It does NOT matter how many times I clear cache, it has no effect on this. I can be browsing any page.. and at ra

  • Inserting/replacing data in a file

    Hi, I'm writing a download manager which should support download splitting. My code is creating a temporary file with the length of the file to be downloaded. Can I replace somehow the "null" bytes in the file ie. start writing into a file from a spe

  • Using vlookup btwn worksheets when using ActiveX Excel

    I am having problems using the vlookup function in Excel.  It works fine if I have the lookup table on the same worksheet that's already open in LabVIEW.  I first open an excel file that I use as a template.  I copy the header and formula information