I need badi method for

hi
when i enter a material quantity in pr and if it is not match with material quantity with po order i should get a error message.
i need badi method for this with explonation.

hi,
BADI and BAPI
hope this helps u,
Arunsri

Similar Messages

  • Badi method for knb1-atlkn in customer master in ECC 6.0

    Hi all,
    in ECC 6.0 .., customer master under company code data under account management  we have field named "Prev. acct no." ( KNB1-ALTKN ) .....I have to do some validations for that field ....can you ppl advise/suggest me the correct badi method for this purpose ???
    because the control is not stopped in save_data badi method....can u pls advise on the same??????
    pl. do th needful.
    thanks in advance
    jack

    tHANKS

  • I need a method for ignoring empty lines

    Hi to all,
    i need a method for ignoring empty lines when my program reades a file like that
    start of file
    print "xoxox"
    //ignore this line
    println"xaxaxa"
    //ignore this line
    end of file
    cheers

    Are you having trouble detecting these empty lines? Or are you having trouble not processing them once you've detected them?
    For the first case, you neeed to define "empty." I assumed it meant "containing no characters," and that's what the first solution shows. Your example looks like "empty" means "starts with comment characters."
    For the second case, you ignore them by just not doing anything: read a line
    if (it is not empty) { // by whatever criteria you define for "empty"
       do something with it
    }

  • Need replacement method for FM: REUSE_ALV_GRID_DISPLAY.

    Hi
    i need a replacement method for FM: REUSE_ALV_GRID_DISPLAY from the class CL_GUI_ALV_GRID,
    kindly let me know if someone knows the solution for it.
    regards
    mano

    Method set_table_for_first_display, look at [ALV Grid Control (BC-SRV-ALV)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf]
    Regards

  • Need BADI'S for QM01.

    hi,
    how do i search BADI's for T.code QM01.
    Thanks N Regards
    Priya.

    Hi Priya,
    Firstly you need to find the package of the transaction for what you are looking for the BAdi's. Go to that transaction there in the menu bar, Go to System--> status and then you double click on the transaction and then you will find the package name.
    Go to se84, there you select Enhancements> Business Add-ins> Definitions, and double click on that, There you give the package name and press execute button. Then you will be finding the list of badis for that package.
    (or)
    Please check this program and execute it. You will be shown all the exits and BAdi's for particular transaction. After executing it will ask for tcode, you give the code and then you press F8. Then you will be show all the Exits and BAdi's.
    report zbadifinding.
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    *Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    *Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    *For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.
    do 2 times.
    enddo.
    Finally, The BAdi's for QM01 are:
    Business Add-in
    WOC_FL_DETERMINE                        Determine Date for Determining Installation Loc. Equi.
    NOTIF_AUTHORITY_01                      Additional Authorization Checks for the Notification
    IWOC_OBJECTINFO_CHNG                    Changes to Data of Object Info Screen
    IWOC_LIST_TUNING                        Performance Tuning for Lists in PM/CS
    IWO1_SUBSCREEN_0170                     Display Additional Data on Object Screen 0170 PhysicalSample
    IQS_MASS_CHANGE                         BadI for Mass Changes to Notifications
    IQS0_STATUS_MAINTAIN                    Control of Changeability of User Status
    Reward points if it helps you.
    Cheers,
    Swamy Kunche

  • Need BADI name for the Digital signature in QM Notification

    Hi ,
    Please provide me BADI name for the digital signature in QM notification. This is for ECC 6.0 EHP 3 package.
    Thanks
    Narayan

    Hi Narayan,
    Can u try this 'BADI_IQS0_SUBSCREEN_ADDON'.
    Regards,
    Praveen N

  • BAdI/method for limiting Delivery type list for webshop

    Hello everyone,
    I need your help: I have requirement is to limit some Deliver types when ordering in the b2b webshop (webshop only not others).  I'm searching for a BAdI (I don't want to hardcode in order.jsp) and debuging/looking into CRM_ISA_BASKET_HEAD.  Can someone please tell me which BAdI and method?  or any suggestions?
    Thanks, Jin

    Hi Freda,
    Check CRM_SHIPPING_MAINTAIN_OW or CRM_SHIPPING_CHANGE_OW.
    hope it helps....
    Regards,
    Anil.

  • LMS3.2 - Need Customized method for cofig archive to particular device.

    Hi all,
        We are using Cisco works LMS 3.2 - Added around 400 devices and monitoring the same.  Facing a issue like while taking a configuration backup getting all devcie details and also CONFIG_ARCHIEVE Job is time consuming, because getting all device configurations. To avoid this we need to know the customized method to archive target particular device configuration in the LMS 3.2 .
    Can any one help on this...Thanks in advance.
    Thanks and Regards
    Ramprakash

    This is possible. You can schedule a Archive job for perticular devices to run periodically, like every 6 hours, daily, weekly or monthly.
    This can be done from :
    RME > Config Mgmt > Archive Mgmt > Sync Archive
    -Thanks
    Vinod

  • Need BADI's for TCode IW3K( Order - Component List )

    Hi All,
    Please help me in finding the BAdI 's/any other enhancements for TCODE iw3k ( Change Order - Component Overview ).
    I need to add a button on the screen layout at item level.
    Thanks
    Lokesh

    Hi,
          Did you check  BADI <b>WORKORDER_UPDATE</b>?
    rEGARDS

  • Need a method for importing Palm III data into a Palm Centro

    I just bought a Palm Centro (Verizon), with the expectation of importing data from my old Palm III.  From the Palm III Desktop, I exported Contacts, Calendar, Tasks, and Memos into separate folders (this was done on a Windows XP PC) and copied the resulting folders & files onto a flash drive.  But when I try to import these files into the Palm Centro desktop (on a new Mac Pro with OSX), the backup files are not in a "recognized format."  Does anyone have a process for reliably getting the Palm III data into the Palm Centro?  Also, is there an easy way to purge unwanted Contacts/Calendar events from the Palm Centro handheld?  With all the trial and error, its accumulating a lot of garbage.  Thanks...
    Post relates to: Centro (Verizon)

    Click on the following link for the upgrade guide on kb.palm.com
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=12926
    You will need to hard reset the Centro in order to clear out the Centro before sync'ing. Click on the following link for the hard reset procedure.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=887
    Click on the following link for the support page for your devices on the kb.palm.com webpage.
    http://www.palm.com/us/support/centro/centro_vzw/
    http://www.palm.com/us/support/palm3/
    There are links on the pages to the user guide, troubleshooting, how to's, downloads, etc.
    You could try to export the data in each category in Palm desktop, save to the flash drive and import the data.
    Click here for the data export procedure.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=36288
    Make sure you select "ALL" for the range during the export procedure. If you don't, it will only export the currently selected record.
    Post relates to: Palm i705

  • Global variable in BADI methods..

    Hi,
         How can i declare a global variable in BADI  method ,for example " Count type I".Can any one let me know ...
    Regards,
    Veera

    Hi,
    BADI is a just an interface definition that needs to be implemented by the customer. The final implementation of a BADI is always found in a class.
    You can define the variable as attribute and static if you want it to be accessed by all objects.
    I hope this answers your question
    Regards,
    Saurabh

  • How to find a badi and how to find the method/methods for a transaction?

    Hi all,
    i need to give a text either while creating customer (vd01) or changing customer(vd02)...thsi is via extras->texts.....then I have to double clik the text and go to change editor...and then i have to clik on insert line and then choose text element radiobutton on screen and then give it a name and then save it..this should be done for all customers....my problem is i am unable to find a badi and the appropriate method for thsi..i have placed break point in method read_add_on_data in the badi customer_add_data....i tested both by transactions va01 and va02 but of no use..also there are so many methods..can u tell me how do i find the appropriate method of the appropriate badi.....

    Hi,
       For XD01/XD02/XD03 The following BADI's are useful
    business Add-In CUSTOMER_ADD_DATA  and  business Add-In CUSTOMER_ADD_DATA_CS .
    *<b>Reward points</b>
    Regards

  • BAdI UC_DATATRANSFER for BCS Mapping in "Load from Data Stream" method

    Hello Everyone,
    I need some help on finishing up the code for the UC_DATATRANSFER BAdI.
    I have looked up in the SDN and other places, but could not get comprehensive breakdown of documentation except for the "F1" documentation available on the BAdI.
    So, any help would be appreciated.
    The Steps so far completed,
    1. Have activated the BAdI and have created the filter value for the BAdI.
    2. After the BAdI has been activated, I was able to go into the MAP method and have written the logic for profit center derivation from consolidation hierarchy.
    The issue is there are four components for the Map method,
    IT_DATA_SOURCE
    IS_DATA_TARGET
    ES_DATA_TARGET
    ET_DATA_TARGET
    The data is available from Source system in the table IT_DATA_SOURCE.
    But this is not changeable as it is "Importing" type. Whereas the actual ET_DATA_TARGET which is passed over into FINALIZE method of the BAdI is not filled initially.
    When I try to do a MOVE-CORRESPONDING from the IT_DATA_TARGET into ET_DATA_TARGET I continuously am getting the short dumps as both the tables length is not the same.
    Did anyone else face the same issue as above when trying to do the BAdI implementation for Mapping.
    I will really appreciate if any one can provide me a sample code if possible.
    Let me know if you need additional information.
    Thanks
    Dharma.

    Hello,
    Thanks for looking into the question.
    I already had tried doing that, I get the Short dump stating the object tables are not convertible.
    When I looked into the table structures, I found out that the table structures "IS_DATA_TARGET", "ES_DATA_TARGET" & "ET_DATA_TARGET" belong to the same category in terms of these structures being flat structures or tables of length 484 as per the debugger.
    Whereas the structure "IT_DATA_SOURCE" has the length 404.
    Due to this reason when I say,
    ET_DATA_TARGET = IT_DATA_SOURCE, I keep getting the short dumps.
    Also, is your consolidation process legal or managerial.
    Our Consolidation process is legal and we have the Company and Profit Center fields assigned to the Consolidation Unit role in the Data Basis definition.
    Can you please let me know what is the structures length in your system.
    Thanks
    Dharma.

  • Method (se24) to search badi's for any transaction code

    hi,
    is there any other way to search badi except se18 name? my friend told me that we can search badi by using one method(se24) also but he also don't know the name of that method. can any one tell me?

    Hi
    1) First go to any transaction->iN THE menu bar SYSTEM->STATUS->Get the program name ->double click->u will go to the program attached to the tcode.Now search term will be CALL CL_EXITHANDLER.Now u will get list of BADI'S available..
    2) Goto SE24->Give class name as CL_EXITHANDLER->Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.Now go to any transaction code and pass dat..U will see that it will be stopped on the break point which u set on the cl_exithandler...In the exit name u can find list of badi's attached to the tcode..
    or
    1) Go to Maintain Transaction  (TCODE- SE93).
    Enter the Transaction Ex:- VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI?s for the given package MB.
    Above replace VD02 by your Transaction for which you need BADIs.
    Regards
    Bala Krishna

  • Need to decalre global data in the badi methods.

    Hello Gurus,
    I am struck in a weird situation, this is regarding a badi to fill a custom segment in the idoc.
    I could fill all the data for the custom segement and populate it, but it is getting filled one segement above the required segment sequence. But the data i need to use to retrieve my data to populate hte custom seg is lost, once the control reaches teh badi method next time.
    What my personal opinion is to declare some STATIC data in the method so that next time when teh control reaches the badi method, i can use the data stored in teh STATIC, but, i read in the sap help, that STATIC cannot be used int eh interface.
    Will there be any methods in regular badis to declare like global data, so that, their data could be used all across the badis.
    Thanks for your time.
    Rgds.

    You can declare the STATIC attribute in your implementation class.
    You also want to make sure the data is not obsolete, by also storing the document number as STATIC. Like:
      if V_DOCNO ne coming_doc-no.
          clear V_STORED_DATA.
    *     get new data
      endif.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • Problems fading sound clips in and out in iM 6 HD

    I have imported a MP3 music clip into my movie timeline. It plays fine on playback.But when I share with iDVD, and test it on my computer or a DVD player the fade in/out on that specific spot is very abrupt and erratic and sounds quite terrible. I ha

  • Return to Widget Browser for editing a customized Menu Bar?

    How to edit a Spry Menu 2.0 _after_ customizing with the Adobe Widget Browser and inserting the menu and further structural customizing via DW CS5? Yes, the new Browser and the new Menu 2.0 are a large step forward - thanks! But no resources (searche

  • Weird thumbnails issue

    I thought this one had gone away, but... I noticed recently that some images had a strangely squashed appearance. Checking them further reveals that they are an image with the wrong thumbnail attached. Simple recreating it fixed the problem. It's the

  • My IMessage still says wating for activation and its kinda making me now

    My phone is really making mad I mean its a new phone and I've never had to use iMessage until one day I realized it takes up allot of data or something and I can't do anything and I just wanna cry please help

  • Phish in Adobe acrobat's name?

    Received this email but my acrobat is up to date.  Is this a phish? Action Required : Upgrade New Adobe Acrobat Reader 2011 For Windows And Mac From: Adobe <[email protected]> Add to Contacts To: @@hidden@@ ADOBE PDF READER SOFTWARE UPGRADE NOTIFICAT