Use of BAdi 'WorkOrder_update'(method in_update)

Hi,
I am using the badi 'WorkOrder_update' for an enhancement to iw32.I need to check whether new material has been added to order.How will i check that new material has been added to order. There are parameters in this badi which gives us the components list.Will these tables be returning the components which are already existing in the order or the components which the user has entered or changed.
Please help.

Hai anu,
in that badi defination there is a moethod IN_UPDATE in which u have
IT_HEADER
IT_HEADER_OLD
IT_ITEM
IT_ITEM_OLD
IT_SEQUENCE
IT_SEQUENCE_OLD
IT_OPERATION
IT_OPERATION_OLD
IT_COMPONENT
IT_COMPONENT_OLD
IT_DOCLINK
IT_DOCLINK_OLD
as importing parameters with this u can compare the old and new items for the order.
If usefull Reward points
Regards,
Sree

Similar Messages

  • Use of BADI /SAPAPO/SDP_RELDATA METHOD CHANGE_PROD_LOC

    We have a requirement for a small number of product/locations to re-direct them onto a customer location when releasing the forecasts to SNP.
    We have been pointed in the direction of the BADI /SAPAPO/SDP_RELDATA method CHANGE_PROD_LOC.
    Unfortunately we can not find any documentation on the use of this BADI/Method, we've tried to change the location using the parameter CT_MATID_LOCID, also setting the parameter CV_CHANGE_PROD_LOC where a change has been made, but it doesn't seem to work.
    Has anyone used this BADI/Method and has advice on it's usage?
    Regards, Mark

    Hi Mark - Changing the CT_MATID_LOCID table alone will not associate the change with a plobj or CV. I am surprised you do not get an error. You will also need to update the CT_MATLOC_PLOBJ table - find the entry for the old matid/locid then update that with the new matid/locid. Also the CT_PLOBJ_CHAR table needs to be updated as well - find the same plobj and update matid/locid accordingly.
    Regards
    Andy

  • Which method for badi WORKORDER_UPDATE

    i need to trigger error message if user enter a specific qty at CJ20N, activity level,
    in which method shall i use, i tried BEFORE_UPDATE method, but it triggers short dump, AT_SAVE method only enables at header level, is there any way i can trigger the error msg ? pls adivce

    I checked the documentation for this BADI which says-
    "Note that no system messages may be sent in the methods. The only exception is the AT_SAVE method. Within this method, a system message may be issued, but only if you trigger the exception ERROR_WITH_MESSAGE at the same time."
    So , It doesnt seem to be possible for any other method as per the documentation.
    Cheers,
    Disha

  • BADI WORKORDER_UPDATE - creation of PO

    Hi,
    I am trying to create a purchase order using the method IN_UPDATE in BADI WORKORDER_UPDATE.
    I am using the BAPI BAPI_PO_CREATE to create the purchase order. However transaction IW32 abends when the BAPI is called with either of the following messages:
    14 005: Internal TSKH error, session terminated
    00 671: ABAP/4 processor: COMMIT_IN_POSTING
    Has anyone had success in creating a PO using this BADI/METHOD?
    Or alternatively does anyone know how of a correction for these messages.
    Thanks in advance,
    Derick

    Hi Andrey,
    Thanks for your suggestion.
    I fixed this by changing my function module to a Remote Enable Module with Immediate Start and calling it in the IN_UPDATE method with the addtion IN BACKGROUND TASK.
    This worked from both IW31 and IW32.
        CALL FUNCTION 'Z_PROCESS_SERVICE_ORDER'
          IN BACKGROUND TASK
          EXPORTING
            i_header = w_header
          TABLES
            it_resb  = it_resb.
    Regards,
    Derick

  • Badi WORKORDER_UPDATE

    Hi,
    i´m using badi
    WORKORDER_UPDATE.
    i´m trying to check field AFVGD-USR00 (operation, details, field materials group) before saving the changes to this field.
    i´ve essayed to do it in method BEFORE_UPDATE but the saving takes place before because i get the corresponding message of the changes being saved.Any idea of how can i solve this?
    that is, where do i have to implement my code in order to check the field before changes being saved?
    Best regards.

    Hi,
    the question is that in event
    AT_SAVE i´m using FM 'CO_BT_AFVG_GET' in order to get it_afvgd but i just get one single record instead of the whole internal table. Does anyone of you know how can i get the internal table it_afvgd instead of a single record of it?
    Best regards.

  • Use of BAdi UC_CTR_XRPROC in Currency Translation

    Hi All,
    Has anyone experience of the BAdi for determining Exchange Rate in BCS?
    In BCS you have the option of customising the Procedure for Exchange Rate Determination by using a Badi, my current client has configured a custom one but I can't view the configuration (due to authorisation frustrations), so I can see that something has been selected but can't see what it is.
    Selected Info from SAP BCS help:
    You can create additional procedures for exchange rate determination in the customer namespace. The custom procedures, along with the standard procedures, are offered for selection in Customizing of currency translation methods.
    If you specify a parameter when creating a procedure for exchange rate determination, this parameter is also offered for selection when the procedure is listed.
    At the time of execution, whenever a custom procedure for exchange rate determination is encountered, the system calls the Business Add-In for exchange rate determination ( UC_CTR_XRPROC). There you can freely determine the exchange rate for each data record being translated.
    Also:
    The E/R determination procedure is the second-last step for determining the value in target currency. (The last step is the currency translation procedure, for which there is also another Business Add-In, UC_CTR_CTPROC.) At this point, the data records to be translated are accessible, and the date of exchange rate determination is known.
    All help will be much appreciated

    Thanks Eugene,
    it appears to have been implemented at one of my current clients but I can't work out what it's doing.
    An old, incomplete configuration document indicates that they were trying to stop the GC figure being updated unless Currency Translation Indicator <> 0 (ie RFD record is not updated by Currency Translation task, GC values are only posted to new records with CT Indicator >0)

  • How to use the BADI  WORKORDER_GOODSMVT to meet my requirement?

    Hello Abapers,
    My requirement is I need to display Batch Number in confirmation of production order(co15) which is entered in creation of production order(co01).While debugging the CO15,i got badi as WORKORDER_GOODSMVT.
    I am new to BAdi,HOW to use this badi to meet my requirement.
    Please help for me to solve my problem.
    If any one implemented batch mangement in PP.Please tell the procedure how u achieved?
    waiitng for your favourable replies
    Regards
    Maruthi.

    Hai,
    IN my reuqiremnt,i used GOODS_RECEIPT method to meet my requirement.
    Regards
    Maruthi.K

  • How to use MAM30_011_CREATE BADI - IF_EX_ALM_ME_010_NOTIF~MAM30_CREATE ?

    Hi,
    I have an customer field "ZZEXT_XY" in the table "QMEL".
    When the user creates a new notification on mobile device the information for that customer field is saved in the notification syncBo as enhancement field for CE_NOTIF_HEADER (MAM30_010Item030).
    During sync the functional modul "MAM30_011_CREATE" is called by the middleware.
    Now I want to use the BADI "IF_EX_ALM_ME_010_NOTIF~MAM30_CREATE" to save this information in the table field "ZZEXT_XY" in table "QMEL" (wich includes "CI_QMEL" with the enhanced table fields, like "ZZEXT_XY").
    Is this possible?
    And if yes, how can I implement this?
    Because I don't see any type in the BADI which contains the customer field "ZZEXT_XY".
    I thought I can use a reference type for the structure ALM_ME_CUSTOM_NOTIF_HEADER.
    But this is not working.
    I'm getting a "OBJECTS_MOVE_NOT_SUPPORTED" runtime error during executing the functional modul "MAM30_011_CREATE".
    Thanks for your help.

    Hi Frank!
    I hope I can help you a little bit.
    You must extend the Customer Include CI_ALM_ME_NOTIF_HEADER with your own field ZZEXT_XY. When you have done this, you have to implement the BADI Method in order to get your customer field into the database. The Customer BADI is called after the standard creation of the notification.
    I have extend the task list and it works fine.
    best regards
    Matthias

  • Badi BBP_SC_TRANSFER_BE, method GROUP_PO

    Hi All,
    We are on SRM 5.0 SP07.
    I want to add an additional grouping criteria for grouping backend PO's- <b>Shopping cart Line item currency</b>.
    In addition to the standard grouping (which is as per the PO header fields like vendor, purchase org, purchase group, company code etc.), I want to add line item currency as one more grouping criteria.
    Can someone suggest how I can do it using BADI BBP_SC_TRANSFER_BE, method GROUP_PO?
    Sample code might be very useful.
    Thanks,
    Srivatsan

    Hi
    Custom fields addition, go through the OSS Notes
    672960 and 458591.
    <b>To see the sample code, please go through the SAP OSS Notes, which is recommended here -></b>
    Note 610332 BADI BBP_SC_TRANSFER_BE/BBP_RESERVATION_GRP: Customer fields
    Note 1040082 BADI BBP_BS_GROUP_BE: Parameter is_object not filled
    Note 980017 Follow-on document not created
    Note 715213 Interface change in BAdIs in Release SRM 4.0
    Note 912873 Item not filled when using PO number range BADI
    Note 820404 BADI BBP_SC_TRANSFER_BE not called correctly
    Do let me know.
    Regards
    - Atul

  • BADI ME_PROCESS_PO_CUST Method Post

    Hi, how can we know in the method post of the BADI ME_PROCESS_PO_CUST if we are in creation mode (me21n) or change mode (me22n), I need to do some coding only at the creation of the PO but this method is call anytime we click save!
    thanks!

    Hello Alexandre
    It would be possible to check the transaction. However, if the BAPI BAPI_PO_CREATE is used the BAdI is also processed yet the transaction is most likely wrong.
    An <u>unambigous </u>approach is to check IMPORTING parameter IM_TRTYP in method IF_EX_ME_PROCESS_PO_CUST~OPEN:
    METHOD if_ex_me_process_po_cust~open.
    * define local data
      DATA:
        lo_po          TYPE REF TO cl_po_header_handle_mm,
        ls_header      TYPE mepoheader.
      me->md_trtyp = im_trtyp.  " save transaction type
      IF ( im_trtyp = 'H' ).  " add new purchase order
    I would add an instance attribute MD_TRTYP to the BAdI implementing class and save the transaction type in method IF_EX_ME_PROCESS_PO_CUST~OPEN (see above).
    Now you can simply add the following IF condition to your POST method:
    METHOD if_ex_me_process_po_cust~open.
      CASE me->md_trtyp. 
        WHEN 'H'.    " add new purchase order
      ...  " do required action for CREATE
        WHEN ... .
        WHEN others.
      ENDCASE.
    The possible transaction types can be found at: im_trtyp -> data element -> <b>domain </b>(fixed values).
    Regards
      Uwe

  • Use of BADI's in enhancement

    Hi
    Can some one help me in undestanding
    what is BADI, how it can be used in enchancements?
    how it is different from userexit?

    The key to using a BADI is that SAP would have had to place a BADI definition in the correct location within the Application you want to modify.  Certainly not every single application has a BADI definition within it.  You need to study the particual application you need to modify to see if a BADI definition is present.
    If there is BADI, there is quite a bit of processing that can be done within the BADI.  Basicually you inherit from an SAP class for your BADI implementation.  You have the ability to add more methods to your class, so you can built quite a bit of logic there.
    Off the top of my head, I don't know if any of SAP's delivered BSP applications have BADI definitions within them.  There is nothing technically stopping an application class, controller, or model class from having a BADI definition.
    If you are on Netweaver 04S, you might also consider looking at the enhancement framework. This allows safe modifications to be made directly to certain enhancement points within standard SAP applications.

  • Use of BADI's instead of in-line modifications

    Hi!
    In using SAP packages, we do some customizations to cope with the requirements right? I was asked to do some modifications, and they asked me to use BADIs instead of in-line modification. Can we put evrything under BADIs? The changes were quite big and additonal data needs to be retrieved and processed which is not part of the standard code. Also, we do not have BADI's under the BSP right? Can somebody give me an idea on this?
    Thanks!

    The key to using a BADI is that SAP would have had to place a BADI definition in the correct location within the Application you want to modify.  Certainly not every single application has a BADI definition within it.  You need to study the particual application you need to modify to see if a BADI definition is present.
    If there is BADI, there is quite a bit of processing that can be done within the BADI.  Basicually you inherit from an SAP class for your BADI implementation.  You have the ability to add more methods to your class, so you can built quite a bit of logic there.
    Off the top of my head, I don't know if any of SAP's delivered BSP applications have BADI definitions within them.  There is nothing technically stopping an application class, controller, or model class from having a BADI definition.
    If you are on Netweaver 04S, you might also consider looking at the enhancement framework. This allows safe modifications to be made directly to certain enhancement points within standard SAP applications.

  • Here_I_Am packet w/bad fwd method L2 received indirectly via SM1/0

    new to these devices and followed the quick setup guide. having a problem;
    this is a 2921 router wirh a sm-sre-710  module
    basic config;
    on the sm-sre-710;
    wccp tcp-promiscuous service-pair 61 62
    on the router router;
    ip wccp 61
    ip wccp 62
    interface GigabitEthernet0/0
    ip address 10.1.1.1 255.255.255.0
    ip wccp 61 redirect in
    interface GigabitEthernet0/2
    ip address 10.2.2.1 255.255.255.0
    ip wccp 62 redirect in
    interface SM1/0
    ip unnumbered GigabitEthernet0/0
    service-module ip address 10.1.1.100 255.255.255.0
    service-module ip default-gateway 10.1.1.1
    and I get this in debug messages;
    WCCP-EVNT:D62: Here_I_Am packet from 10.1.1.100 with incompatible capabilites
    Oct 16 17:38:28.139: WCCP-PKT:D62: Sending I_See_You packet to 10.1.1.100 w/ rcv_id 0000001Bug al
    Oct 16 17:38:30.147: WCCP-EVNT:D61: updating wc orig assign info
    Oct 16 17:38:30.147: WCCP-EVNT:D61: reuse wc orig mask info (28 bytes)
    Oct 16 17:38:30.147: WCCP-EVNT:D61: Here_I_Am packet from 10.1.1.100 w/bad fwd method L2, received indirectly via SM1/0

    I found on google the following sample; ( they are using WCCP GRE as redirect method which is the one I  suggest for your router  please look at this sample IP addressig configuration and how he uses the Rediret In statements and on which interfaces)
    http://2and2is5.wordpress.com/2011/03/30/configuring-cisco-waas-on-a-sre/
    hope that helps!

  • Need Help in using a Badi.....

    Hi Abapers,
                     I am using a  badi  SD_COND_ACCESS_A
    for requirement  where i need to fire particular condition type
    only when some conditions are fulfiled...
    can anyone tell me how shoul i proceed and wat parameters can be used from
    the above mentioned badi ...

    Hi,
    This is filter dependent badi.......First consider the app for which it should apply for ....and apply the filter under attributes tab...by pressing + and select the appropriate app through f4 help and ..next use the method IF_EX_SD_COND_ACCESS_A~PRESTEP_ACCESS where under the importing parameters you have the condition type field...
    Thanks,
    Shailaja Ainala.

  • Re: [iPlanet-JATO] Re: using begin childName Display method

    Steve,
    It sounds like you have your display fields in a container view, and
    that container view is inside of a view bean. I haven't tested whether
    the fireChildDisplayEvents has a "deep" effect on its container view
    children. Meaning that you may have to set fireChildDisplayEvents="true"
    for the <jato:containerView> tag instead. If all else fails and you need
    to just get it working, you can set the fireDisplayEvents="true" for
    each display field tag separately.
    craig
    stephen_winer wrote:
    I should clarify my earlier statement. The data I want to display is
    coming from a model (tied in in the createChild method). I want to
    conditionally reformat the text that is being substituted in the JSP
    for a JATO form element, but I want this to happen on the server, not
    with JavaScript. The begin<childName>Display and
    end<childName>Display methods allow me to do this, in theory, but I
    can not get them to execute.
    Steve
    --- In iPlanet-JATO@y..., Belinda Garcia <belinda.garcia@s...> wrote:
    I don't currently use a begin or end Display method. I merely bind
    the fields to
    the model when the child is created and use the setValue to
    initially set the
    value to what's in the model. I get nulls though if I try to use a
    tiled View. I
    haven't quite got this figured out.
    Belinda
    X-eGroups-Return:
    sentto-2343287-1135-1008613974-belinda.garcia=sun.com@r...
    X-Sender: stephen_winer@y...
    User-Agent: eGroups-EW/0.82
    From: "stephen_winer" <stephen_winer@y...>
    X-Originating-IP: 155.188.191.4
    X-Yahoo-Profile: stephen_winer
    Mailing-List: list iPlanet-JATO@y...; contact
    iPlanet-JATO-owner@y...
    Date: Mon, 17 Dec 2001 18:32:48 -0000
    Subject: [iPlanet-JATO] using begin<childName>Display method
    Content-Transfer-Encoding: 7bit
    I want to be able to conditionally show/hide data as well as
    format
    it for display without touching the model. I found the
    begin<childName>Display and end<childName>Display methods that
    provide the hooks to do this, but I have been unsuccessful in
    getting
    these method to execute. I added the
    fireChildDisplayEvents="true"
    attribute to the jato:useViewBean tag, but this has not helped.
    I
    also added some debug to the ContainerViewBase class in the
    public
    boolean beginChildDisplay(ChildDisplayEvent event) method to see
    what
    was happening. The displayMethodMap was returning null for the
    child
    display methods that were in the view bean. I covered all the
    bases
    (compiling, redeploying, etc.) and nothing has worked. Is there
    anything I am missing or is there some working example of this?
    Steve
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    >For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    The hidden field was present in the page, but it looked like this:
    <input type="hidden" name="jato.defaultCommand" value=""../search"">
    Seems like there is a small bug in the code generating this tag.
    FYI - I am using JATO1.2
    What file displays this text? Maybe I can go in and fix it and rejar
    it.
    Steve
    --- Mike Frisino wrote:
    Steve,
    Can you check the HTML source that shows up in the browser? Do you see an entry that looks like this at the bottom of the form in
    question?
    >
    <input type="hidden" name="jato.defaultCommand" value="/search">
    To answer your question - it should work as you described. Some of the JatoSample make use of the defaultCommandChild. Can you try
    running the sample BasicSample->Field Types and let us know what you
    see.
    >
    Failing this you can send me your jsp file , maybe there is some subtle issue there. michael.frisino@s...
    >
    >
    ----- Original Message -----
    From: stephen_winer
    Sent: Friday, December 07, 2001 8:05 AM
    Subject: [iPlanet-JATO] Using the defaultCommandChild in a form
    I am trying to set the defaultCommandChild in my jato:form tag to be
    the searcg button. The search button definition is:
    <jato:button name="search"/>.
    The form tag definition is:
    <jato:form name="PendingIA" defaultCommandChild="/search">
    Clicking on the search button works fine, but hitting return in one
    of the textFields (which submits the form) passes a value of "" to
    the createChild method in my viewBean, which throws an error. Why
    does this not just work as normal and trigger the handleSearchRequest
    () method?
    Steve
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    Service.
    >
    >
    >
    [Non-text portions of this message have been removed]

Maybe you are looking for

  • Ubuntu installation problem on lenova 3000 g430

    Dear all, latest i try to install ubuntu  8.10 on my lenova laptop, i am able to install but after restarting pc is shows options... ubuntu 8.10 memorytest86 boot other os windows xp actually i have windows xp pre installed. I then checked /boot dire

  • Payslips to be converted into individual PDF file & sent to email of emp

    Dear Friends, My client wants that the Payslips generated by Transaction- PC00_M40_CEDT, to be converted into separate individual PDF files based on Personnel Numbers, and sent to their Individual Email Ids as maintained in Infotype - 0105. There sho

  • Auto fill for passwords in iphone safari

    in ff and safai, 1P is very helpful, ur bring up a URL and it shows you your saved passwords to log in. I cannot find the equivalent for iphone. Option 1 - it would be fine with me if browser simply saved password for common web sites, like FF can do

  • Workflow issue on service receipting

    We currently have PO's on the system where the first line of the PO is matched to a cost centre, and line 2 to a project. Very occasionally when someone creates a service entry sheet on the 2nd line, if they do not do it correctly and it stays on the

  • Export to Excel Problem external DC using Web Dynpro binary cache

    Hallo, I want to export from Web Dynpro to Excel. For this I study the Tutorial "Excel Export Using the Web Dynpro Binary Cache". The example is running without a problem. I have create a new DC only for excel export. The name is ExcelExportWD. In th