Trigger badi after giving data in custom tab of po item

Hi,
We have added custom tab in po item level, now we want to make those fields manditory
for specific document type.We are using badi ME_PROCESS_PO_CUST .
The message is getting triggered initially , but after giving data in the custom fields the badi
is not getting triggered again.And triggers if we make changes to some other fields in po.
So can we trigger the badi after giving data in custom tab ?
I was trying something like this.
method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM .
  DATA: l_if_header TYPE REF TO if_purchase_order_mm,
        ls_header TYPE mepoheader,
       ls_mepoitem TYPE mepoitem,
  l_if_header = im_item->get_header( ).
  ls_header   = l_if_header->get_data( ).
  CALL METHOD im_item->get_data
    RECEIVING
      re_data = ls_mepoitem.
IF ls_header-bsart = 'BW'.
if ls_mepoitem-ZZONAME IS INITIAL.
MESSAGE 'Plz enter Operator name in custom data' TYPE 'E'.
endif.
endif.
endmethod.
Any pointers are welcome..

Solved using exit EXIT_SAPMM06E_012
This exit will trigger even after giving data in custom tab at po item level.

Similar Messages

  • SRM : Custom Tab in RFx Item Details

    Hi ,
    I have a requirement to add a custom tab to the Item Details Tab of the RFx which has some custom Input fields and Checkboxes.
    For this i have created a Custom Tab in component /sapsrm/wdc_dofc_rfq_i_d1 through enhancement and used a separate z component to display the fields in custom tab. (declared zcomponent as used component in  /sapsrm/wdc_dofc_rfq_i_d1).
    I have instantiated my component usage in different methods of main component where other standard tabs were instantiated.
    As per the settings I am able to display the custom tab when i run the application but when i toggle the tabs it is giving some errors.
    Can anybody pls let me know some of the key points which I need to take care while adding the custom tab. How can I handle the standard SAVE and Edit Buttons in my components and also the processes which occur when I navigate from one tab to another???

    Hi Kartic,
    My requirements was a little bit different from yours...
    For CTR my Z component is only for display data, so its not necessary to save any data.
    For SC I had a table with some data and when I select a line is necessary to push a button to assign some values to the fields price, quantity, etc (standard fields)
    The solution for the SC was a bit difficult. I haven't access to that system now and i don't remember all the details.
    I'll try to explain to you what I did:
    - Create an event as interface in your Z component, this event should be triggered when the user push somo button in your view.
    - Create a method as event handler for this event in the standard component
    - For update the standard fields you need to use the method:
          wd_this->MO_DODM_RFQ_I_D1->/SAPSRM/IF_CLL_MAPPER~UPDATE( ).
    - I needed to add an enhancement point in that method and pass the data with IMPORT/EXPORT TO/FROM MEMORY.
    - For save the data I used the methods get_item_detail and update_item for the class /SAPSRM/IF_PDO_BO_* and the method submit_update for the class /SAPSRM/IF_PDO_BASE.
    You need to investigate these classes, you can copy and use some standard code to do it.
    I don't know if this help you and if exits other easiest way to do it. sorry.
    Best Regards,

  • Add new custom tab to SC item

    Hi all,
    I want to add a new custom tab to SC item.
    I've created an enhancement point within the component /SAPSRM/WDC_UI_SC_DOFC_D1 and I've added the new tab.
    The problem is that when I select this tab in the portal a message is displayed as following:
    "The screen component is unknown. The navigation must be canceled"
    By the moment the tab is empty, but I've tried to add a ViewContainerUI Element and I've added an embed view in the window, but the same message is still displayed...
    Do you know what i need to do in order to add this new tab?
    Thanks in advance.

    now, i am getting the data with the following sentence:
    DATA: lv_guid TYPE bbp_guid.
        DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
        lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
        lv_guid = lo_componentcontroller->mo_bom_sc->/sapsrm/if_cll_item_admin~get_lead_selection( ).
    Then I can use the bapi BBP_PD_SC_ITEM_GETDETAIL in order to get the data.
    Now, i want to SET this data with some modifications...
    Any idea?

  • Facing Problems in screen navigation after adding a New custom tab to MM03

    Hi,
    I have added a new custom tab to MM03 transaction by using SPRO.This new tab is appearing in between Basic data 2 tab and Classification tab in MM03.In my new tab i have 4 sub screens and the Last sub screen has table control.Now the problem is when i slide the vertical bar in my table control it is automatically triggering the Classification screen.
    For preparing the New tab in SPRO ->SAP Reference IMG  ->Logistics-General->Material Master->Configuring the material master ->Define structure of data screen for each screen sequence ->
    Here i have created a new screen sequence 'Z5' by copying the already existing sequence '21'.Inside this new screen sequence i have created a new screen of mine by copying the already existing screen '4004'. 
    For maintaining the screen sequence i.e., to place the new tab between Basic data2 and Classification tab go to SPRO ->SAP Reference IMG  ->Logistics-General->Material Master->Configuring the material master ->Maintain order of main and additional screens.I have changed the order of main screen sequence to make our new tab the third tab.
    To make this new tab visible only for MM03 transaction i have gone to SPRO ->SAP Reference IMG  ->Logistics-General->Material Master->Configuring the material master ->Assign screen sequence to User/Material Type/Transaction/Industry sector.In this in the Transaction screen reference, I have changed the screen reference number for MM03 and i have include this new screen reference entry in the screen sequence control column.
    To create the sub screens required i have gone to  SPRO ->SAP Reference IMG  ->Logistics-General->Material Master->Configuring the material master ->Create Program for customized sub screens and have copied the standard Function group MGD1 and created 4 sub screens.
    Now to place these 4 sub screens in the order required for us i have once again gone to SPRO ->SAP Reference IMG  ->Logistics-General->Material Master->Configuring the material master ->Define structure of data screen for each screen sequence and i have selected the new screen sequence created 'Z5' created by me.Inside that i have selected the screen created by me '4004'. Now i have double clicked the Sub screen options and here i gave the sub screens numbers created by me replacing the standard sub screens. 
    Then I activated by custom function group and i started testing the MM03 transaction.
    My screen was getting populated properly and the tab movement is also fine but only problem was when i slide the table control in the fourth sub screen of my new tab i am going to fourth screen (classification).
    Can you please help me by suggesting what the problem may be, why this issue in navigation.

    Hi ,
    I have the same problem now ...
    Did you solved it?
    Thanks a lot!
    Regards,
    Hancila

  • Add custom tab at line item level in transaction FMBB to view CI_FMBL flds

    Good day to all,
    We have added new fields in Budget posting (FMBB) in Line data using custom include CI_FMBL. 
    We want to display some item level fields from CI_FMBL in tab - Financial Budget
    We also want to add more item level tabs, next to tab Financial Budget and put some more item level fields from CI_FMBL there. 
    Any suggestions on how to accomplish this?  
    Thanks in advance.

    Hi,
    The customer include CI_FMBL can only be used with FMPEP and not with other transaction like FMBB.
    Technically speaking, the structure CI_FMBL must be part of many other interfaces like the one use by BAdI 'FMKU_BUDGET_EVNT'.
    In order to add such customer fields in FMPEP, you have to use the BAdI 'FMBW_CUSTOMER'. For instruction, you have to look at the note 1356725 and the instruction of paragraph 30. Please read the instruction and start to do your implementation.
    With the BAdI 'FMBW_CUSTOMER', you can use the PBO and PAI for handling the customer fields. There is no other place to populate these customer fields. Do you want to use customer fields in FMPEP? Please check note 1356725 for reference.
    I believe this answer your inquiry.
    Best Regards,
    Vanessa Barth.

  • BADIs to extract data to EXTRA tab

    Hi,
                If I have to fillup values in the extra tab, what function module or BADI should I use? Any reference to the procedure is much appreciated.
    Thanks.

    Hi Visu,
         You can do it via the user exit 'APOCF005'.
    Regards,
    Siva.

  • PM work order "Reqmt Date" in General tab for the items in component tab

    Hello experts,
    Currently in our PM work order when the materials are added to the component tab to create purchase requistion the requirement date is defaulting to today. So every time the buyers have to update the purchase requisiton they need to change the requirement date field.
    We are planning to open the field ( so the requirement date will not default) .
    What can be the negative consequences of that?
    Would that be a issue for our MRP run?
    Thanks,
    Raneetha

    If you are putting Current date (coming as default), PR is getting the same date. Are you creating this PR through MRP??
    Even if you put any actual requirement date, based on MRP period, system will create the PR with appropriate date which has been mentioned in PM order.
    There is no impact of changing this date.

  • Is there function module to calculate customer arrears after due date?

    Hello,
    Can any one tell me how to calculate arrears after due date for customer?  Is there any specific function modue?
    BTW, in my case, we do not trigger dunning procedure. There is no data will be updated in table MHND.
    Thank You and Best Regards,
    Muriel

    Dear Andreas,
    Thanks for your reply. I need function rather than standard report, caulse I have to develop a ABAP program.
    I  find function ITEM_OVERDUE_DAYS which solved my problem.
    Thanks for your help.

  • VA02 (SO) exit or badi after saving SO data - urgent

    Hi experts,
    Please let me know the user exit or BADI after SO data saved and commited, but before all internal tables refreshed.
    Advices will be rewarded.
    Thanks,
    Shaik Bhasha

    Hi,
    Check all these userexits.
                                                                                    Exit Name           Description                                                                               
    SDTRM001            Reschedule schedule lines without a new ATP check              
    V45A0001            Determine alternative materials for product selection          
    V45A0002            Predefine sold-to party in sales document                      
    V45A0003            Collector for customer function modulpool MV45A                
    V45A0004            Copy packing proposal                                          
    V45E0001            Update the purchase order from the sales order                 
    V45E0002            Data transfer in procurement elements (PRreq., assembly)       
    V45L0001            SD component supplier processing (customer enhancements)       
    V45P0001            SD customer function for cross-company code sales              
    V45S0001            Update sales document from configuration                       
    V45S0003            MRP-relevance for incomplete configuration                     
    V45S0004            Effectivity type in sales order                                
    V45W0001            SD Service Management: Forward Contract Data to Item           
    V46H0001            SD Customer functions for resource-related billing             
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan   
    Regards,
    Sonika

  • Custom tab is replacing excise invoice tab in migo

    Hi all,
    I have developed BADI for  MB_MIGO_BADI to add tab strip in migo ,
    when i execute transaction tab is showing correctly ,But problem is when i enter purchase document number
    Excise invoice tab is replacing my customized tab and while displaying data only customized tab only appearing
    in window Excise invoice tab tab is not displaying .
    i need to display boat tabs how can it possible.
    Can any one help me out of this problem...
    method IF_EX_MB_MIGO_BADI~PBO_HEADER.
        e_cprog   = 'ZMIGO1'.           
        e_dynnr   = '8999'.                     "External fields: Input
        e_heading = 'Gate entry detail'(004).
    endmethod.

    Hi,
    Try with gf_class_id = 'MIGO_BADI_IMPLEMENTATION_CIN'.
    Thanks,
    Shailaja Ainala.

  • Steps to implement ME_GUI_PO_CUST ME21N to create custom tab at item level

    Dear Gurus,
    I have to create one Custom tab in ME21N item level beside Conditions.
    The Tab name is Customer. I'm very new to ABAP so after searching the forums I got ME_GUI_PO_CUST  badi is used to do that. In the Custom tab my required fields are
    PO NO1--                        PO NO2--
    PO Item NO1----
                     PO Item NO2
    Quantity----
                          Quantity
    SO NO1--                       SO NO2--
    SO Item NO--                 SO Item NO--
    any one provide me the sample code to implement this.
    Thanks!

    solved

  • Propose item packaging data for customs declaration

    Hi All,
    My requirement is to update packaging data information as mentioned below in the item level of Customs declaration
    1. CNTNO  (Container Number)
    2. PGETY   (Package Type)      
    3. PGESU   (Number of Packages)
    4. PGEX1    (External Package Number)
    I am using BAdI for Default Data in Customs Shipment and Customs Declaration. I have checked all the methods in this BAdI, and the method which fits more close to my requirement is ITEM_LEGPGE_PROPOSE. But this method allows me to update 
    a. Package Tye
    b. Number of Packages
    How should I take care of updating other two fields : Container Number and External Package Number?
    Is there any other BAdI in GTS which takes care of it?
    I would really appreciate your inputs on this.
    Note:
    I am transfering this Packaging Data information from Packaging data tab present at item level in Transit document (Type: TRLOIM) to Packaging data tab present at item level Customs declaration (Type: CULOIM).
    The transit document is extended with items and packaging information through the receipt of an EDI message from Customs.
    Thanks & regards,
    Yogesh A Sharma

    When transfering the DATA to GTS the Program fills the API for the transfer, you can go and change the information there. For this you can use the BADI's that are found in the feeder System under
    SPRO / Sales & Distribution / Foreign Trade/Customs / SAP GTS Plugin / BADI for SAP Global Trade Services / Edit control for document transfer.
    As mentionned above you may replace the GU number by your container Number (Field EXT_ID) or you can try by filling EXT_ID2 / or use any of the additionnal Fields of the Declaration, or in GTS you have the possibility to add supplementary fields in to the declaration (but I never tried it up to now) in the API which is called at  "Perform api6800_csd_Synchronize" during the document transfer.
    Regards,
    Marc

  • Facing some problems in creating a custom tabs in CRMD_ORDER Transaction

    Hi Friends,
    I am facing some problems in creating a custom tabs in CRMD_ORDER Transaction code in Solution Manager of SAP.
    Actually my requirement is adding of two tabs(one is header & another is item tab) in the above Transaction, i was able to put one tab i.e header tab but i was not able to keep item tab. i found a badi CRM_CUSTOMER_I_BADI in which documentation was given & i processed in the same way.
    For information i used the Badi CRM_CUSTOMER_H_BADI for header tab which i was able to add the tab & all functions like change, save working Good.
    But i want how to add custom tab in which item details were to be attached.
    i was done with the necessary SPRO settings(or Tcode CRMV_SSV) & able to see the 2 tabs thats it, but the functionality save is not working for the second tab & not saving in table CRMD_CUSTOMER_I (in this table there is one CI include where we added our item fields).
    And also i had a doubt whether to use ALV or Table Control. And if possible can any one can sent me the screen design & the code for the above requirement in detail.
    can any one who have knoweldge in Solution Manager & in the above Badi implementation can give me a right solution which will help me a lot.
    Thanks a lot in advance.
    Thanks
    Ravi.
    can any one give the solution regarding to the above one.
    Edited by: ravikanth on Jul 23, 2008 8:13 AM

    Hello Priyanka,
    I have the same problem by using Service Ticket in SAP CRM 5.0.
    Did you already solved this issue? If so, can you please provide the solution!?
    How can I activate and check the transfer log?
    Thanks and regards
    Alex

  • Customer tab in ME23n

    Hi I want to add customer tab in Me23n item details....
    Kindly help me with this

    1.   Go to Transaction SPRO, Display IMG.
    2.   Go to Logistics-General à Material Master à Configuring the material master and execute u2018Create Program for Customized Subscreenu2019.
    Create a function group of your own with Y or Z. eg ZMGD1.
    4.   Go to transaction SE80 and open the function group created, here the function group is ZMGD1.
    5.   Open the screen 0001. Using screen design layout (SE51), customize the screen according to the requirement.
    6.   Write the flow logic in PAI and PBO as per the requirement.
    7.   PBO
        Inactive the fields for input  when material is displayed (MM03)
    Retrieve the data from Ztable for material change/display (MM03)
    8.   PAI
        Export the data into memory
    9. Now go to transaction SPRO, Display IMG then go to Logistics-General à Material Master à Configuring the material master and execute  u2018Define Structure of Data Screens for Each Screen Sequenceu2019.
    10.   Select the corresponding screen sequence number and double click on data screen button. In this case screen sequence u201821u2019 has modified.
    11. Select  logical screen 07 (Basic Data 1) and double click on Subscreens. 
    12. In change view of subscreens, modify the program name of sub screen 21à07à08 to the subscreen program name which is created in step 6. In this case the program name is SAPLZMGD1. Save the modifications.
    13. Now to save the given enhanced field value in the Ztable, write the required code in the user exit EXIT_SAPLMGMU_001.
        Import the data from memory ( The data which is exported in PAI event, refer step 8)
    GOT THIS from saptechnicalDOTcom/Tutorials/ExitsBADIs/MM/MM01.htm

  • Custom tab in RPM4.5

    Hi,
    Please let me know the steps on how to add custom tab at the item level in RPM4.5 version and also the steps to hide the standard tabs in RPM4.5.
    Thanks in advance,
    Priyatham

    Hi Andrea,
    Thank you very much for the information.
    Please provide me with help links on how to create the new UI and link it to the item menu.
    Thanks and Regards,
    Priyatham

Maybe you are looking for

  • How can I transfer muisc downloaded from a CD to my new MAC

    Hi, Our compuer crashed and we purchased a MAC. My husband's ipod only contains songs previously downloaded from CD's nothing from itunes. He wants to add new songs to his ipod but I can not figure out how to do that and not loose the songs already o

  • Loads of errors with classes: 1067 implicit coercion 118 illegal assignment

    Hi I have a main.fla and the two classes below VirtualGarage and VirtualCar. Main has VirtualGarage as its class which in turn works with VirtualCar. The code seems quite good but I get these errors. If anybody could help Cheers //VirtualGarage class

  • Glitchy typing when hands are on sides of trackpad.

    My 2006 MacBook is glitchy if my hands rest on either side of the trackpad. It will randomly delete chunks of text or move the cursor and begin entering text elsewhere. It's really annoying, and I've lost a lot of work because of it. Help? (And thank

  • Web: Adjust Lightroom HTML Gallery

    Hi all, LR's web engine "HTML Gallery" works almost perfect for me. Only two things I'd like to change is size of the thumbnails and remove the navigation buttons on the large picture pages. Could anyone pass me a hint if this is possible / how it co

  • SWF Protection in Flash CS4?

    Hi i would like to know if there would be an "Encrypt ActionScript"-sorta like function in CS4? If you ask me what i think is so valueable that i should encrypt it i have nothing to say. I dont have anything important to encrypt! But for instance, a