BADI :Batch_Master Method CHECK_CLASSIF_BEFORE_SAVE

Hi Al,
I am implementing method CHECK_CLASSIF_BEFORE_SAVE of the BADI for the msc2n transaction , on the characterstic tab of the transaction there are some fields in the sub-sreen whose values should be populated to the importing parameters of the method.
I wanted to know if somebdy has worked on this BADI and pariculary this method how is the data from the characterstic tab picked up in the importing parameters of the method.
All useful suggestions will be really helpful.
Regards
Bhanu

Hi,
I don't have access to my ECC 6 system right now, I would check 2 things:
1) it is possible that the BAdI definition class (for classic BAdIs, it is usually CL_EX_BATCH_MASTER) has been changed manually by SAP, and they removed the LOOP, or have added an EXIT right before the ENDLOOP. I know they sometimes do it.
2) I would check if the BATCH_MASTER classic BAdI has been migrated to new BAdI, in that case I think you should migrate your BAdI implementations
3) Just to be sure: if an implementation raises an exception, that's normal that the other implementations are not executed.
BR
Sandra

Similar Messages

  • 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

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

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

  • Reg : BDC issue while updating infotype 40 inside BADI class method

    Hi Friends,
         Actually in my badi class, there is a method where i need to save the infotype fields including comment fields.. So with BDC recording i recorded screen fields and passing the pernr internal table values to recorded pernr values.. by doing this im getting error and so BDC is not upadting the data.. moreover if i pass directly pernr number within single quotes, BDC is working fine and data is getting updated..
    bdc_field        'RP50G-PERNR'   pernr.  --> Error Message while calling transaction through BDC
    bdc_field        'RP50G-PERNR'   '00001234'  ---> updating successfully..
    1. Tell me whether the issue is with BADI or wat ? means we cant able to use BDC inside badi ?
    2. I also tried changing my internal table value of pernr to type 'C' of length 8.. eventhough its showing error..
    Please tell me what i need to do .... ?

    Hi  Dilek Ersoz Adak ,
      I also tried with that, but getting same error..  Below is my error im getting while updating BDC through call transaction,
    1     PA30     SAPMP50A     1000     E     K     PBAS_SERVICE     001     HRADMIN     EPPRELE 00000121     HRAdministrator          CTU     RP50G-PERNR
              Person is treated already by the HR Administrator

  • In Badi -- In Methods --- Parameters

    Hi All,
    I have badi in Header there is a method and having  parameters
    I_MKPF TYPE MKPF
    HEAD TYPE J_3RM4_HEAD
    J_3RM4_HEAD structure contains these fields     
    MBLNR
    OKPO
    NOTICE
    BUKRS
    BUDAT
    LAND1
    CC_NAME
    SUBDIV
    BWART
    LGORT
    LGOBE
    MBLNR
    NOTICE
    BUKRS
    SUP_NUM
    SUPPLIER
    INSUR_COMP
    COR_ACCOUNT
    ANAL_CODE
    ACCOMP_DOC
    PAYM_DOC
    QUANT
    UNIT
    P_VAL
    NETWR
    VAT
    DMBTR
    WAERS
    REC_POS
    QUANT
    UNIT
    P_VAL
    NETWR
    VAT
    DMBTR
    WAERS
    REC_POS
    RECEIVER
    DEL_POS
    DELIVER
    USER_NAME
    and my requirement is to replace the Correspondig account numberwith the alternative numberSKB1-ALTKT AND THE Logic which he described in the FS is
    First get the account HKONTH Via 'FI_STANDARD_ACCOUNT_DETERMINE' Function Module.
    Select SKB1-ALTKT WHERE BUKRS EQ MSEG-BUKRS
    and SAKNR EQ HKONTH.
    IN SELECT Query The parmaeters which they have mentioned in the Method is not available can tell me how to pass the parameters?
    Regards,
    Venkat

    ll

  • Badi: ME_PROCESS_PO_CUST Method: IF_EX_ME_PROCESS_PO_CUST~PROCESS_SCHEDULE

    Hi,
    in method: IF_EX_ME_PROCESS_PO_CUST~PROCESS_SCHEDULE of Badi ME_PROCESS_PO_CUST
    i will get schedule-data and item data.
    I try this:
    METHOD IF_EX_ME_PROCESS_PO_CUST~PROCESS_SCHEDULE.
      DATA: LS_ITEM TYPE MEPOITEM.
      LS_ITEM = IM_ITEM->GET_ITEM( ).
      DATA: LS_SCHEDULE TYPE MEPOSCHEDULE.
      LS_SCHEDULE = IM_SCHEDULE->GET_DATA( ).
      BREAK-POINT.
    ENDMETHOD.
    LS-SCHEDULE are filled correct.
    in Line   LS_ITEM = IM_ITEM->GET_ITEM( ). i get an syntax error -> IM_ITEM are unknown.
    Has anyone an idea how i can get the ITEM Data?
    Thanks.
    Regards, Dieter

    Hi Vinod,
    thanks, it solved my Problem.
    I have another thread for ME_PROCESS_PO_CUST.
    Question to Z_ME_PROCESS_PO_CUST with item catagory L
    Do you have an idea for this problem?
    Thanks.
    Regards, Dieter

  • 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

  • How Use badi "MB_MIGO_BADI" method "LINE_MODIFY" and "CHECK_ITEM"?

    In MIGO I enter Transfer Posting with two positions of materials, then I press the button POST -
    Conducting, in this case my expansions fulfil correctly.
    If I press button HOLD - temporarily to keep the document, then I will leave transaction MIGO, again I will come, I will choose temporarily kept document and I will press the button POST-conducting, will be started necessary method u201CLINE_MODIFYu201D, where:
    DATA: l_subrc TYPE sysubrc.
      READ TABLE gt_line
           WITH KEY table_line = i_line_id
           TRANSPORTING NO FIELDS.
      l_subrc = sy-subrc.
      IF cs_goitem-bwart NE '301'.
        IF l_subrc NE 0. INSERT i_line_id INTO TABLE gt_line. ENDIF.
      ENDIF.
    The method u201CLINE_MODIFYu201D was executed only for i_line_id = u2018 00001 u2019 further
    Fulfils method u201CCHECK_ITEMu201D with a code
    DATA: ls_bapiret TYPE bapiret2.
      READ TABLE gt_line
           WITH TABLE KEY table_line = i_line_id
           TRANSPORTING NO FIELDS.
      IF sy-subrc NE 0.
        ls_bapiret-type       = 'E'.
        ls_bapiret-id         = 'ZMM.
        ls_bapiret-number     = '801'.
        ls_bapiret-message_v1 = '301'.
        ls_bapiret-message_v2 = 'S'.
        INSERT ls_bapiret INTO TABLE et_bapiret2.
      ENDIF.
    After performance u201CCHECK_ITEMu201D with i_line_id = u2018 00001 u2019, a method u201CCHECK_ITEMu201D
    It is carried out once again with i_line_id = u2018 00002 u2019, and the method u201CLINE_MODIFYu201D in general is not caused any more. And as the method u201CLINE_MODIFYu201D was not caused with i_line_id = u2018 00002 u2019 in the table gt_line record 00002 was not added and the method u201CCHECK_ITEMu201D was executed not correctly.
    How to make so that a method u201CLINE_MODIFYu201D it was carried out for for each position, and not just for i_line_id = u2018 00001 u2019 ?
    Or advise other methods or user-exit.

    Hi
    Have you tried to see the sample abap code available in the BADI definition?
    Max

  • 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

  • Question on BADI  RSU5_SAPI_BADI Method HIER_TRANSFORM

    We are in the process of converting our R/3 datasource EXIT_SAPLRSAP_004 to BADI  RSU5_SAPI_BADI using method HIER_TRANSFORM.
    EXIT_SAPLRSAP_004 has parameter I_S_HIEBAS in the import tab which we have coded as:
    <i>If i_s_hiebas-hclass = '0000'.  </i>
    but HIER_TRANSFORM does NOT have this parameter I_S_HIEBAS in the methods tab.  How can we code this same statement in BADI if this parameter is not in the methods tab of HIER_TRANSFORM?
    Appreciate any input.
    Thao

    hi Thao,
    method HIER_TRANSFORM has parameters
    I_DATASOURCE
    I_S_HIEFLAG
    I_S_HIER_SEL
    I_T_LANGU
    C_T_HIETEXT
    C_T_HIENODE
    C_T_FOLDERT
    C_T_HIEINTV
    C_T_MESSAGES
    (you can see this in SE18, display RSU5_SAPI_BADI, tab interface, double click HIER_TRANSFORM, tab 'method' click 'parameters')
    you can try parameter I_S_HIER_SEL, there is HCLASS (double click RSAP_S_HIER_LIST, and double click ROSHIERSEL), your code may look like
    method IF_EX_RSU5_SAPI_BADI~HIER_TRANSFORM .
    if I_S_HIER_SEL-HCLASS = '000'.
    endif.
    endmethod.
    hope this helps.

  • Syntax-Problem in BADI: WORKORDER_INFOSYSTEM Method: AT_OUTPUT_SCREEN

    Hi,
    i want to use the method AT_OUTPUT_SCREEN of BADI: WORKORDER_INFOSYSTEM
    I want to get the fieldcattable: MT_FIELDCAT_LOCAL.
    This method has the parameter: I_ALV_GRID (type ref. to)
    I try this code, but i get syntax-error.
    method IF_EX_WORKORDER_INFOSYSTEM~AT_OUTPUT_SCREEN.
      data: LOCAL_T_FCAT  type LVC_T_FCAT.
      LOCAL_T_FCAT = I_ALV_GRID->MT_FIELDCAT_LOCAL.
      break-point.
    endmethod.
    Can anyone help me to get what i need?
    Thanks.
    regards, Dieter

    Hi Advait,
    thanks for your answer, but i need the contents of table MT_FIELDCAT_LOCAL.
    when i debug the method in debugger i can see the table with this field:
    -MT_FIELDCAT_LOCAL
    How can i get this table in the BADI. I will copy it to
    variable: LOCAL_T_FCAT
    METHOD IF_EX_WORKORDER_INFOSYSTEM~AT_OUTPUT_SCREEN.
      DATA: LOCAL_T_FCAT  TYPE LVC_T_FCAT.
    * {O:55*\CLASS=CL_GUI_ALV_GRID}-MT_FIELDCAT_LOCAL.
    * LOCAL_T_FCAT = I_ALV_GRID-MT_FIELDCAT_LOCAL.
      BREAK-POINT.
    ENDMETHOD.
    thanks.
    Regards, Dieter

  • BADI ME_PROCESS_PO_CUST Method:PROCESS_ITEM

    Hi,
    I have to update the vendor material field through BADI ME_PROCESS_PO_CUST.
    I have created an implementation for this BADI.Can anyone help me find the solution for the same.
    Thanks.

    DATA: wa_ekko TYPE ekko,
            wa_ekkn TYPE ekkn,
            wa_ekpo TYPE ekpo,
            wa_vbap           TYPE vbap.
      DATA : lt_item TYPE mepoitem.
      IF im_item->is_persistent( ) EQ mmpur_no. "Only check for new items
    * Retrieve item data into BADI buffer
    *get data
        CALL METHOD im_item->get_data
          RECEIVING
            re_data = lt_item.
        ENDIF.
        SELECT SINGLE * FROM ekko
          INTO wa_ekko
          WHERE reswk NE ''.
        IF sy-subrc EQ 0.
          SELECT SINGLE * FROM ekkn
              INTO wa_ekkn
              WHERE ebeln = wa_ekko-ebeln.
          IF wa_ekkn-vbeln <> ''.
            SELECT SINGLE * FROM ekpo
              INTO wa_ekpo
              WHERE ebeln = wa_ekko-ebeln
              AND   idnlf = ''.
            IF sy-subrc EQ 0.
            SELECT SINGLE * FROM vbap
              INTO wa_vbap
              WHERE vbeln = wa_ekkn-vbeln
              AND   posnr = wa_ekkn-ebelp.
            IF sy-subrc EQ 0.
              lt_item-idnlf = wa_vbap-kdmat.
            ENDIF.
          ENDIF.
        ENDIF.
            ENDIF.
    * Update changes
        CALL METHOD im_item->set_data
          EXPORTING
            im_data = lt_item.

  • BADI FI_INT_CUS01 method INT_PRINT_OPTIONS not getting called in RFINTITAR

    Hi,
    I have implemented the BADI FI_INT_CUS01 to set the Print archive mode (Storage mode) to '3' (print & archive) for the FINT transaction (program name: RFINTITAR), using the method INT_PRINT_OPTIONS. But the method INT_PRINT_OPTIONS is not being called in  the program RFINTITAR anywhere. So the BADI implementation is not being called up, so not able to change the Print archive mode to '3'. Please let me know if I'm missing anything.
    Thank you..
    Lakshmi

    Carin,
    Using the method INT_ADD_ITEMS is possible to filter, displaying only the items required.
    See also SAP note 736223 .
    Regards,
    Fabrício Fernandes Aguiar

  • BADI PT_ABS_REQ method SET_CALENDAR_COLOR

    Hi,
    kindly advice how to change the color for 'multiple entries' legend using this method ?
    thanks
    bhakti

    Please implement the BADI PT_ABS_REQ and the methods
    IF_EX_PT_ABS_REQ~SET_CALENDAR_COLOR,
    IF_EX_PT_ABS_REQ~SET_CALENDAR_LEGEND_COLORS.
      In the method IF_EX_PT_ABS_REQ~SET_CALENDAR_COLOR you specify what
    color do you want.This will be with respect to the Legend.
      And in the method IF_EX_PT_ABS_REQ~SET_CALENDAR_LEGEND_COLORS you
    specify what color the legend specifies. This is set  with respect to
    RED,GREEN,BLUE. Combining this three basic colors the
    rest of the color can be produced.
    There are 16 colors. Please go through the class CL_PT_REQ_CONST.
    For Eg: You want to display the Annual leave in the color with respect
    to the legend C_COLOR_STANDARD. Then in the method
    IF_EX_PT_ABS_REQ~SET_CALENDAR_LEGEND_COLORS you specify in the internal
    table ch_legend_tab the exact color of
       ch_legend_tab-COLORRED =  C_COLOR_STANDARD_R.
       ch_legend_tab-COLORBLUE =  C_COLOR_STANDARD_G
       ch_legend_tab-COLORGREEN =  C_COLOR_STANDARD_B
       ch_legend_tab-LEGENDID   =  C_COLOR_STANDARD.

Maybe you are looking for

  • Single sign on and java-apps

    Hello! I'm a Austrian student and i need help for my degree dissertation. We have created a Portalhomepage. And now, we would like to use the same username and password for several javaapplications. What possibilities exists to implement this facts?

  • Ipod touch 2nd Gen. 8GB has a constant gray screen

    I just got back from vacation and had used my iPod Touch 2nd Generation 8gb just about 3 hours before this happend. I found it like this when I was putting my ipod on its iHome to charge. The screen is not responcive along with the hole device. iTune

  • Dynamic Action on new row in Tabular Form

    Hi Guys, APEX version is 4.1 I created a dynamic action on change of a select list, if changed then disable the related fields on the same row. This is working fine for all EXISTING rows on the tabular form. However, if I click on ADD ROW button, a n

  • Problem with Gradient Noise in "save as PDF"

    I'm trying to save a design as a pdf, using the high quality print/illustrator default options. The output is generating a bunch of noise in a corner of a couple of gradients, and also some line noise where different gradients meet. I'll include a sc

  • Safari 6.1 badly behaved on PayPal site

    I thought I was just updating Java, but Safari 6.1 aooeared after the update. When I went to my PayPal account, if I click on an item that shows a plus sign to the left, this action should expand the item and provide further details. However, with Sa