Update fields from custom tab in selected lines in ME22N

Hello all,
I have implemented BAdis ME_PROCESS_PO_CUST & ME_GUI_PO_CUST and created a custom tab at the header level in ME21N/ME22N. I have fields such as Delivery Date and Ex Factory Date in my tab.
We are able to put data in these fields and have that data populate their respective fields in the Purchase Order.
Our users would like to be able to run ME22N and select certain line items and have only those items changed with the data from the custom fields.
So, my question is how do I handle line selection in the context of these BAdIs? Is there a way to know which lines have been selected and then only change the data in those items?
I have looked in Class CL_PO_ITEM_HANDLE_MM for an attribute or method that might help but I haven't found anything as of yet.
I have found that the field MEPO1211-TCSELFLAG is set when a line is selected in ME22N. However, I haven't found a way to work with it. It doesn't get passed to any of the methods in the BAdIs, as far as I know.
Thanks for any help.
Kind Regards,
Chris

Hi, i understand
if you are sure that if with MEPO1211-TCSELFLAG  this variable you can able to get,
even though it is not been passed to BADI, you can achieve it to get the variable.
Just try as follows,
DATA lv_head_ptr(30) VALUE '(SAPLMEGUI)MEPO1211'.
FIELD-SYMBOLS: <l_MEPO1211> TYPE MEPO1211.
ASSIGN (lv_head_ptr) TO <l_MEPO1211>.
Now, <l_MEPO1211> will contain the structure of the MEPO1211.

Similar Messages

  • Moving field from Customer tab to Deatils Tab

    Hi,
    We have requirement to move the field added using EEWB to details Tab in Lead transaction.Using EEWB I have included field in lead transaction.EEWB gegeration was successful and I am bale to see the field under Customer Fields Tab, however according to my business case we need the field under Details TAB.
    Is there any way we can move field from Customer Fields to Details tab.
    Thanks,
    Ajay

    Hi
    i am working on SDB, where we need to create faqs,using text search in TREX,
    i am able to upload problem and solutions , but how can i change default attributes,
    when i try to configure in SPRO, in problem type , problem subtype, it is showing error  " entry in TOKBC doesn't exist "
    who will do that , is this table update is by abaper or CRM guy ,
    i mean it is asking delault number in ABAP table.
    is it necessary to config the fields,
    bcause, without this fields also , search is showing perfect serch results,
    thanks
    kiran budde

  • Move fields from Custom Tab to Standard Tab.

    Hi all,
       I have created one field through EEWB.The NewField is Displaying In the new tab 'CUSTOM TAB' Now i want to move this field to standard tab. I am using CIC0 tcode ( Service Contract ) pls. help me ....for moveing fields from one custom tab to standard tab.
    Thanks Inadvance,
    Siva Kumar.B

    Hi Siva,
      I think you need standard modification to do it.
    Regards.
    Manuel

  • Adding field from Custom Infotype in Screen Header-PA30

    Hi all,
    Can we add the fields from custom infotype to the screen header in PA30? When I tried through Change Screen Modifications, I could not see the custom infotype in the Infotype column, so I could not select the required field.
    Please guide.
    Thanks in advance.

    Hi,
    When you take a drop down from the infotype column, you will see a window with infotypes. By default, it is restricted to 500 entries. To change that, click on the narrow bar under u201Crestrictionsu201D (has a downward arrow) and change the maximum number of hits to 999. You will then get all the infotypes including the custom ones.
    Hope this helps.
    Donnie

  • Adding Form fields from Custom backend service in SAP_PA

    Hi All,
    I have defined a rule in the form scenario using a form field in my custom backend service. I want this rule to be used in the operation of the SAP_PA backend service.
    In order to use the rule in SAP_PA, the field from the custom backend service(used in the rule definition) has to be assigned to SAP_PA as well. Unfortunately I am not able to assign it.
    I have seen SAP delivered from scenarios (S_HR_PA_US_CHG_PERM_ADDR) where they have assigned fields from custom backend service to SAP_PA, Can you please guide me how to acheive this ??
    Thanks,
    Bharath

    Try directly adding the field in the form scenario in the SAP_PA service.
    Thanks,
    Aravind

  • Custom tab data not saving in ME22N w/ BAdI ME_PROCESS_PO_CUST

    Hello all,
    I have implemented BAdis ME_PROCESS_PO_CUST & ME_GUI_PO_CUST and created a custom tab at the header level in ME21N/ME22N. I have fields such as Delivery Date and Ex Factory Date in my tab.
    We are able to put data in these fields and have that data populate their respective fields in the Purchase Order.
    Our users would like to be able to run ME22N and select certain line items and have only those items changed with the data from the custom fields. 
    So, my question is how do I handle line selection in the context of these BAdIs?  Is there a way to know which lines have been selected and then only change the data in those items?
    I have looked in Class CL_PO_ITEM_HANDLE_MM for an attribute or method that might help but I haven't found anything as of yet. 
    I have found that the field MEPO1211-TCSELFLAG is set when a line is selected in ME22N.  However, I haven't found a way to work with it.  It doesn't get passed to any of the methods in the BAdIs, as far as I know. 
    January 27, 2012  **************
    We were able to capture the lines selected by using code from method mass_change in Include LMEGUICJK, Function Group MEGUI.  The lines are in the lt_models table. 
    So, now my issue is getting data to save in ME22N.  When I put data in my custom tabs and select a line, the data gets changed on the screen but does not save.  It does work when I make a change in another field, like changing the description for instance.  I'm using the set_changed method in Process_Header from ME_PROCESS_PO_CUST but it doesn't work. 
    I'm getting the idea that I'm the first ABAP developer to try this...
    Thanks for any help.
    Kind Regards,
    Chris
    Edited by: Chris  Mowl on Jan 11, 2012 10:33 AM
    Edited by: Chris  Mowl on Jan 11, 2012 4:24 PM
    Edited by: Chris  Mowl on Jan 27, 2012 10:57 AM
    Edited by: Chris  Mowl on Jan 27, 2012 2:00 PM

    Hi,
    Checkout the below link :
    <link to blacklisted site removed by moderator>
    Shailaja Ainala.
    Edited by: Thomas Zloch on Jan 28, 2012 9:06 PM

  • Value Help for a field from custom table in BSP

    Please let me know, the procedure to create value help for a field from a custom table in BSP using HTMLB.
    Thanks

    hi prodigy,
    check this code using drop down list.
    <b>layout for first page</b> 
    <htmlb:dropdownListBox id                = "ddlist"
                                  table             = "<%=t_mara%>"
                                  nameOfKeyColumn   = "matnr"
                                  nameOfValueColumn = "matnr"></htmlb:dropdownListBox>
    <b>event Oninitialization event of first page</b>
    SELECT MATNR UP TO 10 ROWS
      INTO TABLE T_MARA
      FROM MARA.
    <b> event Oninputprocessing event</b>
    **Load the manager class
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    DATA: V_EVENT TYPE REF TO CL_HTMLB_EVENT.
    DATA: DATA TYPE REF TO OBJECT.
    DATA: V_DATA TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
    CALL METHOD CL_HTMLB_MANAGER=>GET_EVENT
      EXPORTING
        REQUEST               = RUNTIME->SERVER->REQUEST
      RECEIVING
        EVENT                 = V_EVENT
    IF V_EVENT->NAME = 'button' AND
       V_EVENT->EVENT_TYPE = 'click'.
    DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST =
                                          RUNTIME->SERVER->REQUEST
                                          NAME     = 'inputField'
                                          ID       = 'matnr'
        V_DATA ?= DATA.
    IF V_DATA IS NOT INITIAL.
         V_MATNR = V_DATA->SELECTION.
    ENDIF.
    NAVIGATION->SET_PARAMETER( NAME = 'v_matnr' VALUE = V_MATNR ).
    NAVIGATION->GOTO_PAGE( 'detail.htm' ).
    ENDIF.
    <b>in the onInitialization event for detail page</b>SELECT MATNR
           ERSDA
           ERNAM
           LAEDA
           AENAM
           VPSTA
           PSTAT
           LVORM
           MTART
      FROM MARA
      INTO TABLE T_MARA
    WHERE MATNR = V_MATNR.

  • Update fields from Adobe Form to Table

    Hello,
    I want to integrate Adobe Form into Webdynpro ABAP Application in which I want to have 2 fields which need to be updated to a DB Table.
    For this first I created an Interface in Transaction SFP , added 2 import parameters of type <Table Type>-<FieldName>. Then I created a Webdynpro Component created a new I Interactive Form UI Element and binded the Context of the Form to the Interface.
    Then I added 2 fields to the form from Data View . Everything is fine but when I run the Webdynpro Application the fields are not available for Input.i.e. They are in the ReadOnly Mode.
    The 'enabled' property of the Interactive Form is checked.
    Please help.
    Any help would be highly appreciated.
    Thanks.
    Edited by: SAPEPDeveloper on Feb 7, 2011 11:45 PM

    Hi,
    The process explained is ok, but I can explain you a better way.
    1) Create the webDynpro Component first.
    2) Create the context nodes as per the requirement.
    3) From the 'integration' panel drag and drop the Interactive form UI element into the view.
    4) Bind dataSource to root context node.
    5) Check enabled property true.
    6) Give a template source name (ZName).
    7) On double clicking the template source, system will prompt you to enter the interface name. Map context node to the interface.
    8) Interface gets created automatically and the lifecycle designer gets opened.
    9) Goto the properties tab and give layout type as 'ZCI Layout'
    10) Drag and drop required fields from the data view to the layout designer.
    11) Insert webdynpro script from the Utilities
    12) Edit -> Form Properties -> Defaults -> XDP Preview Format should be dynamic
    13) Drag and drop 'Submit Button' from Library palette -> Webdynpro native controls
    On clicking the submit button at runtime you will get the control in the webdynpro submit event.
    Above all these you have to check with your basis team, that the 'usage credentials' have been applied while configuring the ADS. Go to SE38 and run the program 'FP_TEST_IA_01' and check whether it is giving an error message or not.
    Hope this Helps.
    Thanks & Regards,
    Sanoosh

  • Need to add extra fields in Custom tab  using EEWB.

    hi ,
    I extended business partner with 10 custom fields using EEWB by creating an custom tab. I would like to add 2 more fields in the same custom tab . I am unable to find the provision to add new field to the existing project. so i am deleting the existing project and creating new project and adding all the =and new fields.
    Now when I am creating new project  i am loosing the old field names. It creating the new fields with new field names.
    My requirement is I should create a new fields without changing the old field names.
    So Please can any one help me as how to approach these without deletion or changing the existing field names.
    Finally my custom tab should contain 12 fields.
    Thanks
    viswa

    Hi viswa,
    I have a requirement to add 2 new fields to the Standard Transaction (called <b>BP</b> ).
    I have gone through various concepts like <b>EEWB and BDT</b> tools. But, still I am not able to get the things well.
    So please provide me with the procedure to explore things and work on the requirement.
    Thanks in advance.
    Regards,
    Vishnu.

  • Write fields from two tables in one line??

    Hi friends,
    I want to write some fields from bkpf and bseg in one line...
    My report should like something like this:
    ****some text*****
    *for first document*******  bkpf-bldat  kunnr  bseg-belnr    bseg-gsber   bseg-wrbtr     
    *for second document***  bkpf-bldat  kunnr  bseg-belnr    bseg-gsber   bseg-wrbtr     
    *for third document******  bkpf-bldat  kunnr  bseg-belnr    bseg-gsber   bseg-wrbtr  
    etc.
    What should I change in order to get this form in report output?? Can I put these fields in some table so that it looks like excel table??Could you please check out the code below?
      loop at it_bkpf into wa_bkpf.
      loop at it_bseg into wa_bseg.
      write: wa_bseg-gsber, wa_bseg-belnr, wa_bseg-wrbtr.
      endloop.
      write: wa_bkpf-bldat.
      read table it_bsid with key bukrs = wa_bkpf-bukrs
      belnr = wa_bkpf-belnr
      gjahr = wa_bkpf-gjahr
      cpudt = wa_bkpf-cpudt.
      if sy-subrc = 0.
      write: it_bsid-kunnr.
      endif.
      endloop.
    Thanks,
    Nihad

    hi nihad,
    define positions on where to write data like this.
    LOOP AT it_bkpf INTO wa_bkpf.
      LOOP AT it_bseg INTO wa_bseg WHERE belnr EQ wa_bkpf-belnr.
        WRITE: /5 wa_bkpf-bldat.
        READ TABLE it_bsid
        WITH KEY bukrs = wa_bkpf-bukrs
                         belnr = wa_bkpf-belnr
                         gjahr = wa_bkpf-gjahr
                         cpudt = wa_bkpf-cpudt.
        IF sy-subrc EQ 0.
           WRITE: 20 it_bsid-kunnr.
        ENDIF.
        WRITE: 35 it_bseg-belnr,
                    50 it_bseg-gsber,
                    60 it_bseg-wrbtr.
      ENDLOOP.
    ENDLOOP.
    regards,
    Peter

  • Call Control from Custom tab

    Is it possible to control the call from a custom tab, such as automatically conference a supervisor, voice mail, etc.... ?

    Hi Mithun,
    I dont think u have got the issue,
    I have a transaction varient for the std transaction. This varient is for the users who do not have access to the std transaction.
    Usually when we do a save to the custom Tcode we go back to the main screen of the transaction varient, but here it is going to the main screen of the original transaction. i want the control to go to the transaction varient.

  • Add a new field in the Tab Addicional data en la ME22N

    Hi,
    Please, can anyone tell me how can we add a new field in the tab Addicional data en la ME21N? I have to use the MM06E005, but I don't know which screen exit should I use and also how to add this subcreen in the tab Addicional data.
    Thanks in advance.
    Saida.

    Hi,
    using SE80 you can add your fields with subscreens
    SAPLXM06 0101 for Headerfields
    SAPLXM06 0111 for Items.
    This will add a tab in ME2..N.
    if you want your own Text on the tabstrip just edit the Textsymbols
    101 and 111 from SAPLXM06.
    At output you have to open a module asking the gl_aktyp to switch edit/display mode.
    then you must code the Exits to import/export values
    EXIT_SAPMM06E_006
    store transaction type for later modification of screen attributes
    gl_aktyp = i_trtyp.
    gl_no_screen = i_no_screen.
    store current state of customer data in ekko_ci (structure for screen)
    ekko_ci = i_ci_ekko.
    store reference document
    if i_rekko-ebeln ne gl_rekko-ebeln and
    not i_rekko-ebeln is initial and
    gl_rekko-ebeln is initial.
    ekko_ci-zzemail = i_rekko-zzemail.
    gl_rekko = i_rekko.
    endif.
    EXIT_SAPMM06E_007
    move-corresponding i_ekko to gl_ekko_ci.
    EXIT_SAPMM06E_008
    e_ci_ekko = gl_ekko_ci.
    ekko_ci contains the actual values of the Dynpro fields
    e_ci_update is only set if you really want the fields
    on the Dynpro to be saved. You must set it then to 'X'
    the field ekko_ci-zzflag will here only be saved if there
    was a change and the transaction is not in display mode
    if gl_ekko_ci-zzemail ne ekko_ci-zzemail.
    e_ci_ekko-zzemail = ekko_ci-zzemail.
    if gl_aktyp ne 'A'.
    e_ci_update = 'X'.
    endif.
    endif.
    Regards
    Kiran Sure

  • Custom tab not reflecting in ME21N & ME22N

    Hello,
    I need to add an additional tab on the Header level of PO. I have implemented the BAdI ME_GUI_PO_CUST & ME_PROCESS_PO_CUST as specified in the sample example.
    However, I'm unable to see the custom tab in ME21N & ME22N, whereas I can see the tab in ME23N.  I have code in the method FIELDSELECTION_HEADER but it doesn't stop at breakpoints when I run ME21N & ME22N. 
    When I debug, I can see the breakpoints but the program never reaches them. 
    Thank you for any help on this and implementing these BAdIs in general.  This is the first time I have worked with these BAdIs and it has proved to be very frustrating. 
    Kind regards,
    Chris Mowl

    Hi Chris,
    Madhu is right. Check the point he suggests. For instance in IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER
      DATA: l_persistent TYPE mmpur_bool,
            l_changeable TYPE mmpur_bool.
    * if the item is already on the database,
    * we disallow to change field badi_bsgru
      l_persistent = im_header->is_persistent( ).
      l_changeable = im_header->is_changeable( ).
    * after coding
       IF CONDITION IS TRUE.
          IF l_changeable = 'X'.
            <fs>-fieldstatus = '.'. " READY FOR INPUT
          ELSE.
            <fs>-fieldstatus = '*'. " view
          ENDIF.
        ELSE.
          <fs>-fieldstatus = '-'.    "SUPRESS IT
        ENDIF.
    Remember note, if all fields that you add are suppressed, then the dynpro will not be viewed.
    I hope this helps you
    Regards
    Eduardo

  • Copying of Shipping tab fields from Customer master to Sales Order.

    Dear SAP SD Gurus,
    I am trying to create an Order, but the Data in the Shippining tab of the Customer Master doesnt get Copied  in to the Sales ORder.
    the Fields in the Cuystomer master are 1) Partial delivery per item 2) Max. partial deliveries.
    and this happens specifically for  a particular Sales Area.
    the same order when created with  the same customer master but a Different Sales Area, the data gets Copied correctly.
    can some body quickly advise me, if there is a Standard setting to maintian such a vehaviour or Could there be some "Z Developmet".
    thank you in Advance.
    Regards,
    Santa Khattri.

    Hello Friend,
    Check your customers (use tcode XD03 - provide sales area) the Shipping tab
    1) Partial delivery per item
    2) Max. partial deliveries.
    for the Sales Area which is not copying to sales order.
    If it is not maintained, then maintain the same as your requirement.
    Thanks & Regards
    JP

  • Automatically populating Assignment Field from Customer Invoice Reference

    Dear All
    I have a situation. I want when a customer invoice is posted the invoice reference mentioned in the Reference field of the document Header should automatically be populated into assignment field
    Can any one tell me how to get this situation condigured
    Bilal

    Hi,
    You can use substitution function. T.Code GGB2.
    Create substitution under Financial Accounting> Line Item
    Click Create Substitution : System will ask How would you like to substitute
    field BSEG-ZUONR : Choose Field - Field Assignment : Choose the Field Assignment
    Create Click Step  : Prerequisities : Double Click ABAP System Fields > Double Click System Transaction Code   >   Click =   > Click Constant tab > Give T.Code F-43 (for eg) save
    Double Click Substitute Enter BKPF-DBBLG in the blank field and save.
    Now Use T.Code : OBBH
    Enter Company Code; Call Point 0002 Line Item fill substitution and activation level 1 save.
    If you are an End User kindly advise your FICO Consultant to do that.
    Best Regards,
    Sadashivan
    Edited by: Sadashivan Natarajan on Feb 12, 2009 3:17 PM
    Edited by: Sadashivan Natarajan on Feb 12, 2009 3:19 PM

Maybe you are looking for

  • Fm to get current + next 3 fiscal months name

    hi all, In my alv report , i need to populate the stock of current fiscal month plus stock for succeeding 3 months.Using fm 'GET_CURRENT_YEAR' i am getting current month details with input sydatum and company code. But how to get next 3 fiscal months

  • MS ACCESS JAVA CONNECTIVITY

    How can I connect MS ACCESS database with JAVA.....Please post the string that needs to be given in the getConnection method????

  • Vertically-aligned tables shift down when entering/editing text within the table.

    Hi all, We have a sudden problem that is occurring, and I've done a lot of searching without finding anything close to this happening elsewhere. If there is ever a table that is aligned vertically within a text frame, you cannot edit the text without

  • BW Modelisation: Number of ticket by product, family, ....

    Presentation of existing : In our model, we will have 1 DSO with ticket information: CalDay, Ticket ID and Product A product is lowest level of hierarchy composed of following nodes : u2022     Sector u2022     Module u2022     Family We want create

  • Interface trip stop error

    hi all, I got interface trip stop error when I do the ship confirm process in sales order. Thanks&regards ravi