Save BADI Check Method

ME_PROCESS_PO_CUST
All,
I'm able to change Purchase order at the item level using the check method
CALL METHOD LO_ITEM->SET_DATAX
          EXPORTING
            IM_DATA = LS_ITEMX.
I can see the changes before I hit the save button
But once I hit save button and create the Purchase order the fields are not changed.
Am I missing something?
Meghna

Thanks Vijay.
I'm using ME_PROCESS_PO_CUST and the transaction is ME21n.
Any Ideas.
Meghna

Similar Messages

  • Warning message in me_process_req_cust badi - check method

    Hi all,
    I have implement me_process_req_cust badi and I want to give a warning message in check method. But it doesnt work. When I change the message type to E instead of W, it works. How can I give a warning message in check method? I will be very happy if you help me..
    Thanks...

    Thanks, but it didn't solve my problem. I still can't see my message..

  • Bad check value found during dbv on Datafiles

    Hi,
    We just received new DB, that return a "Bad check value found during dbv" on DBVerify.
    So, we can Open & Use this DB... perhaps until crash if we use the "bad block", but we can't save it by Rman (ORA-19566: exceeded limit of 0 corrupt blocks for file xxx) !
    And best thing is... Previous DB owner don't have any save (Rman or other) of this DB !!!
    Are there solution(s) about this problem... or this DB is definitively dead ?
    Sorry for my english,
    Thank for your help,
    J Sourti.

    Hi;
    What is DB version?
    Please see below note(also referance part) and below link which at least show u some way
    Rman Reports An Ora-19566: Exceeded Limit Of 0 Corrupt Blocks From Backup [ID 457422.1]
    http://oraclespin.wordpress.com/2009/07/03/how-to-find-and-fix-block-corruption-using-rman/
    Regard
    Helios

  • Need advise on doc save badi

    Hi,
       My requirement is when PO is in held status and ordered then only save badi should be called.
    ex
    po hold -
    > ordered
    save badi to be called
    po in approval -
    > change and ordered
    save badi not to be called
    how can I acheive this in the code
    Ingen

    I think you may put a check in your save_badi for PO status,
    if held, the continue the badi, else just skip it.

  • Multiple Insert in Doc Save Badi when publishing Bid Invitation

    Hi to all experts,
    Currently i need to track changes in bid invitation. What i did is using doc save badi to get the value (bbp_bd_bid_getdetail) and compare them with the value i save in a cutom table.
    Then the problem come in. Even if there is no changes, the badi will still cause an insert into my custom table. I used the debugger to go through the code and it never go to my insert statement.
    However once i finishing running the dubugger, my custom table will have a new entry...
    Why is this happening? IS it due to the different GUID in the bid invitaion?
    Points will be awarded generaously, thanks again for reading.

    Hi Disha and Marcin,
    Thank you so much for your prompt replies. I have awarded points. We are using SRM 5.5.
    Correct me if I am wrong, I have thought of using the doc_change badi but how do I confirm the changes should user cancel the transaction?
    Hi Marcin,
    I am new to this term LUW, please elaborate more on this.I have checked and confirm no other program or badi called my function modules.
    I have suspected that the badi was called n-times and insert a line into my custom tables. I tried using modify in place of insert so that such problem can be avoided but this was not successful with saving longtext.
    What I notice is after the system undergo a patch, the doc save badi started to behave in this way?
    Please kindly advise, all SAP experts! Thank you!

  • Error message "bad check sum" on Satellite pro 6100 when starting up

    I recently tried to turn my laptop on when i got the message "bad check sum"(i think it said that) "check system press[f1] to continue. After i pressed f1 it came up an options screen i didnt do anything to it and just continued then it loaded and shut down again. also i have to lie the laptop on its back just for the first green LED to come on and when i have the battery in the charger does not charge the battery and even when it does start to charge and i try to put it on the same sequence of orange LED's appear .
    so what does the message bad check sum mean ?
    thanks

    Hi,
    That means that the cmos (bios) battery is low on power and you should hang your machine for minimum a day on AC because the bios battery loads then.
    Such error appears when your cmos batt. is not full then the bios losts his settings and the checksum which would be performed by the system at startup will be faulty since the bios needs a check to know if everything is OK.
    Its a security feature which indicates if your hardware is ok or not. If the error appears more than once, then you should bring your machine to a technician or at least a local servicepartner for a checkup.
    Greets

  • Can we use SAMT to syntax check methods in global classes ?

    Transaction SAMT can be used to perform syntax checks on programs but I can't see how to use it to check methods in global  classes. Can anyone tell me how to do this ?
    thanks,
    Malcolm.

    I've figured out a way to do this.
    You need to put the class name followed by '=====CP' into the program name......with enough ='s to make the name up to 32 characters. Bit fiddly but it can be done.

  • 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

  • BAPI_ALM_ORDER_MAINTAIN error "BAPI call must have a SAVE or DIALOG method"

    I have this test code below that I have written to update the work duration on a work order to 5 hours using the BAPI BAPI_ALM_ORDER_MAINTAIN.  I however keep getting the error "BAPI call must have a SAVE or DIALOG method".  Can someone tell me what I am doing wrong
    data: begin of it_methods occurs 0.
            include structure bapi_alm_order_method.
    data: end of it_methods.
    data: begin of it_operation occurs 0.
            include structure bapi_alm_order_operation.
    data: end of it_operation.
    data: begin of it_operation_up occurs 0.
            include structure bapi_alm_order_operation_up.
    data: end of it_operation_up.
    data: begin of it_return occurs 0.
            include structure bapiret2.
    data: end of it_return.
    data: begin of it_et_numbers occurs 0.
            include structure bapi_alm_numbers.
    data: end of it_et_numbers.
    it_methods-refnumber = '0000040000020010'.
    it_methods-objecttype = 'OPERATION'.
    it_methods-method = 'CHANGE'.
    it_methods-objectkey = '0000040000020010'.
    append it_methods.
    it_operation-duration_normal =       '5'.
    append it_operation.
    it_operation_up-duration_normal =       'X'.
    append it_operation_up.
    call function 'BAPI_ALM_ORDER_MAINTAIN'
      tables
        it_methods              = it_methods
        it_operation            = it_operation
        it_operation_up         = it_operation_up
        return                  = it_return
        et_numbers              = it_et_numbers.
    call function 'BAPI_TRANSACTION_COMMIT'
         IMPORTING
           RETURN        = it_return.
    Edited by: Martin Kay on Mar 5, 2009 2:17 PM

    hello martin
    u have to use the save method for saving the contents
    in mehtod tabel u have to add method as save
    if ur  method internal table is it_method then
    it_method-method =  'save'.
    append it_method .
    and also in ur bapi code u have assigned wrong reference number
    reference number always should start from 1
    it_methods-refnumber  =  '0000001'
    not '0000000400123' which u have used for order number
    and after call of bapi u have to call
    bapi_transaction_commitn which u have used
    hope it solves ur problem

  • 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!

  • BADI - ME_PROCESS_PO_CUST - CHECK Method

    Hi ALL,
    When I create I'm able to get data of all the line items in the purchase order in the method IF_EX_ME_PROCESS_PO_CUST~CHECK.
    I need to do validations and change material and material group.
    I want to call the method like below:
    Data HS_DETAIL type MEPOITEM
          CALL METHOD IM_HEADER->SET_DATA
            EXPORTING
              IM_DATA = HS_DETAIL.
    System is giving an error - type incompatible..
    Am I missing something?
    Meghna

    HI,
    The type of the importing parameter IM_DATA is MEPOHEADER and not MEPOITEM while you have defined HS_DETAIL  of type MEPOITEM
    So you will get the error.
    Regards,
    Ankur Parab
    Edited by: Ankur Parab on Aug 24, 2009 6:06 PM

  • Need help in work order save BADI and create BAPI

    hi expert
    Our issues are below list
    1. When release and save the work order ,the standard BADI(WORKORDER_UPDATE) have not the parameters about service information . (for this issue , chunfai had give a solution ,we are testing it )
    2. When we create work order by BAPI(BAPI_ALM_ORDER_MAINTAIN), the BAPI canu2019t provide the parameters about service information .we canu2019t create WO including service data.
    3. When we update work order by BAPI(BAPI_ALM_ORDER_MAINTAIN), the BAPI canu2019t provide the parameter about service information . we canu2019t update WO including service data.
    could anyone can provide some suggestion for above question ? thanks for a lot

    Please check BADI IBAPI_ALM_ORD_MODIFY its method has a parametrs CT_HEADER_SRV and CT_HEADER_SRV_UP you can pass your data here...
    Lets say this BAPI you are calling in custom program than if you donot see any parametrs where service data can be passed then you can export the data before calling bapi and import in this badi implementation and complete your task..
    Please check BAPI and BADI documentation for more details
    Even  BAPi has these two parameters.
    Nabheet
    Edited by: nabheetmadan09 on Jan 11, 2012 2:08 PM

  • 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

  • Opportunities - Delete item before save - BADI

    I need to do some checks when adding a new item in an opportunity and depending on these checks, this item must be removed before save.
    I tried in the BADI's ORDER_SAVE and CRM_ORDERADM_I_BADI, using several function modules like: CRM_ORDER_MAINTAIN,  CRM_ORDERADM_I_DELETE_OB, ... but all without result. Using the xxx_OB function modules in the CRM_ORDERADM_I_BADI resulted always in shortdump after the BADI processing.
    Anyone who had to do something similar?
    Thanks a lot!

    Hi Filip,
    I need to understand better what sort of checks would you like to carry out
    <b><u>In my case I needed to cover or block a field in a crm order item, if the status of invoice in status tab at header level, was  "invoice issued".</u></b>
    I used CRM_ORDER_FIELDCHECK as Badi definition.
    I define the code in this way, overwriting the method FIELDCHECK with abap code just to block the field quantity at the item level, as said:
    Code structure:
    1 tables  and structures for CRM_ORDER_READ;
    2 Definition memory parameters
      3 Selection document item by using CRMD_ORDERADM_I to get item-guid
        4 Selection doc number, by usign item-guid
           5  call of  funcition module 'CRM_ORDER_CHANGE_STATUS_GET'
             6 Status check and field quantity blocked (grey colour = A), if status is equal C.
    If you need to change an existing document I suggest using,  as said in the forum, <b><u>Crm_order_maintain, or better employing BAPI CHANGEMULTI</u>[/b<b><u>], which is using CRM_ORDER_MAINTAIN.</u></b>
    I suggest using Bapi 'cause it 's easier to manage, especially concerning Internal tables.
    I had to change Price condition in my CRM ORDERS, when I used such bapi and/or FM crm_order_maintain.
    Just let me know your changes better.
    Please rewards with points if it helps,
    AndreA

  • Regarding BADI  INVOICE_UPDATE, method CHANGE_AT_SAVE

    Hi there,
    I'm implementing this Badi so i can make some checks at the time of saving an edited preliminary (parked) document. If the total of the invoice is higher than the old one, i do the checks (against a Z table, a Z function module, etc) and if i have to stop saving, i trigger an error message raising ERROR_WITH_MESSAGE exception. As the only method that gets called in all the cases I need, and allows me to trigger messages, is CHANGE_AT_SAVE, I use this one.
    The okcodes that i'm interested in are:
    <i>PARK (Save parked document)
    COMP (Save as completed)
    BU (Post)</i>
    The problem is, to do all the processing, i compare the method parameters
    S_RBKP_OLD vs. S_RBKP_NEW.
    When the okcode is PARK or COMP it's ok, but <b>when posting (BU) the S_RBKP_OLD doesn't get populated</b>! Anyone knows why is that and what the workaround would be?
    Update: i've searched throught OSS but there's no note related to this.
    Thank you very much.

    Hi Narendran, thanks for your help,
    But my problem is that i need to compare the new total of the invoice (s_rbkp_new-rmwwr) versus the old one (s_rbkp_old-rmwwr), so that if the new one is higher, i check that the difference between them is not higher than a set limit, otherwise i must stop saving/posting.
    I could retrieve the values from RBKP table itself (which should still be the "old" ones at the time the BADI executes) but then, what is s_rbkp_old for?
    Edit: Requirements changed and now i need to do the checks for every changed line of the invoice. As in the original problem, when posting, TI_RSEG_NEW has all the new values but TI_RSEG_OLD is initial. I've been debugging a little and got to the MRM_DOCUMENT_CHANGE_PREPARE function, which is not calling the MRM_*_READ functions since i_xupda (update flag) is 'I' when posting, although no new line has been inserted.
    PLEASE, if you implemented this BADi method before, post your comments or example code. Documentation is scarce and on the internet there isn't much info neither.
    I've been also looking at exits but they don't seem to serve this purpose.
    By the way, i'm on 4.6C.
    Many thanks

Maybe you are looking for

  • I cannot upload pictures to Facebook in 'Messages' using Firefox, but every other browser will.

    I used to be able to, and have only been able to one time since. It started this in about vers. 6 I believe, and has been going on for a few weeks. I've deleted and redownloaded Firefox twice, with the error still occurring. Thanks, Mark

  • IDCS2 Alt-DoubleClick on a linked file

    I'm trying to find out what action is performed when the user alt-doubleclicks on an image within a document. This user action performs some sort of "Edit Original" command, but nothing is shown when I trace commands and action IDs and it's not kEdit

  • Why should I go to shared data plan ?

           Well, the red devil ******* the pooch this time, the forums are lighting up with news from the 'leak'  about shared data plans. Again CS reps were ignorant of it all and made it all more confusing by not knowing anything about it although it w

  • Can not install from Creative Cloud

    We have Creative Cloud for Teams.  I am trying to get some software installed from the cloud for one of the users.  Every time I click Install on an application (have tried Adobe Acrobat, Adobe InDesign, Adobe Photoshop), it sits for a little while a

  • Form Auto Save event catch

    Hello:     I have addon that catch event at the time someone add or update a transaction and check coupel of things...etc. However as I found that if you use the X on the right upper column of the form to close the form. Form will ask you if you want