Tabscreen control in me21n

hi .
i have a requirement in me21n as if  i go to me21n and if i fill entries in all the tabscreens except customer data screen and click on save then i should raise one error message window saying that "u should make some entires in customer data (tab screen in header level).
waiting for great anser.
bye.
sita.

Hi
The number of lines in a table control will depend on
the size of your GUI Window and you cannot predict this when a user has to run this BDC program.
For BDC you should use ME21 rather than ME21N. Here you have good option of selecting one by one the line items and chnaging them. ( You should not try to change all Lines in table control at once ). Select one line -> Goto -> Details , change data here . Then select next line and so on.
Cheers
Cheers

Similar Messages

  • Make Non-editable Column in Table Control of ME21N and ME22N

    Hi Experts,
    I was trying to look for a solution to make the columns for field MEPO1320-SLFDT(Stat Deliv. Date), MEPO1320-EEIND (Deliv. Date) and MEPO1211-NETPR (Net Price) from transaction ME21N and ME22N to be non-editable ONLY when Qty Received (MEPO1320-WEMNG) > 0.
    I'd found that the modify screen codes were located at Class CL_TABLE_VIEW_MM, Method MODIFY_SCREEN_TC_LINE but there were no enhancement spots available to add my code. Is there any other method i can use to make those fields non-editable?
    Thanks in advance!
    Cheers,
    Cheng
    Edited by: Cheng Mei Tan on Jun 4, 2009 9:31 AM

    Hi Cheng,
    I think you can use this BAdi: ME_PROCESS_PO_CUST - Enhance Processing of Enjoy Purchase Order.
    Use the method PROCESS_ITEM to control the fields at the item level.
    I think is not possible to make the fields non-editable, however, you can put an error message whenever your condition is verified, and the user won't be able to change the fields.
    Cheers,
    Pedro

  • Payment terms control in me21n (Logic)

    Dear Sapgurus,
    In OBB8 Create Payment Terms as per your requirement.
    Create 4 Payment terms PT , PT1, PT2, PT3.
    For the 1st one PT you select Installment Payment CheckBox.
    For PT1, PT2 & PT3 give the no of days as per your requirement.
    Go to OBB9 and assign like this.
    PT -- PT1 -- 20% (Document Date)
    PT -- PT2 -- 50% (Posting date)
    PT -- PT3 -- 30% (Posting date) in me21n i assign pt payment terms based on this one i want control amount in f-48 like first accroiss 20% is not allowed 1000 rs total value 200 allowed in f-48 how do i make logic, if i assigned in me21n payment terms i want ot check this payment terms in assigned obb9 if i take first payment terms if document date is their i want to take advance payment if payment date is their its normal payment. Whther it is correct or not & If i given any payment terms in  me21n i want check background how many payment terms is assigned in this one if payment terms is document date i want to check in f-48 and if posting date in payment terms i want to check in f-53 control how do i prepare logic please give me suggessions.
    Regards
    Umi

    Hi,
    I don't know how practical is your requirement. Will a vendor accept differential payment for line item in a PO ?
    If you want to process each GR with different payment term, then
    1. Mark GR based invoice verification in PO & vendor
    2. Payment tab. Vendor has to give different invoice for each goods delivery because the payment term is different. Change the payment term at the time of processing invice of each line.
    Anand.

  • Renaming the tabs on a tabstrip control for ME21N

    Hello SDNers,
    I am working on a screen enhancement for ME21N using user exit MM06E00.
    On ME21N a addiional tab called "Customer Data " has been added along with the standard tabstrip control.
    I wanted to rename this has "CFORM" now how do I do this.
    Please help me regarding this.
    Regards,
    Ranjith N

    Hi Nambiar,
    Go to the text symbols of Function Pool SAPLXM06 (function pool that contains the modules and includes and screens creatted using Enhancement MM06E005 ).
    Say you want to name the custom header tab (screen number 101) in PO as 'PO Header additonal data'.
    Then in the text symbols of Function Pool SAPLXM06 add '101' to "Sym" coulmn and 'PO Header additonal data' to "Text" column.
    Now after activating the text elements and the enhamcement project, if you run ME21N/ME22N/ME23N the name of the custom addtional header tab would be displaed as 'PO Header additonal data'.
    Hope this helps.
    Regards,
    Abhisek.

  • Screen value of table control in ME21N tcode condiions tab

    Hi ALL,
    I have a problem in ME21 Tcode .I want to read screen field value of net price  of Screen ME21N tcode conditions tab.
    when I change tax code in delivery tab then condition tab values changes according to price procedure.I want to read that conditions tab  Net price value  nothing but unit price (amount field in screen) and need to do validation .
    i used the BADI but could not able to find the screen value using DYNP_VALUES_READ fm.
    kindly sugest the  solution.
    regards,
    padmaja.

    Hi
    In BADI ME_PROCESS_PO_CUST, method PROCESS_ITEM or in method CHECK, for interface IF_PURCHASE_ORDER_MM, use method GET_CONDITIONS.
    For instance in method CHECK
      include mm_messages_mac.
      data: header       type mepoheader,
            items        type purchase_order_items,
            po_line      type mepoitem,
            line_item    type purchase_order_item,
            po_condition type mmpur_tkomv,
      header = im_header->get_data( ).
      items  = im_header->get_items( ).
      loop at items into line_item.
        po_line = line_item-item->get_data( ).
        call method line_item-item->get_conditions
          importing
            ex_conditions = po_condition.
      endloop.
    I hope don't forget anything.
    I hope this helps you
    Regards
    Eduardo

  • Help in me21n

    HI guru,
    I need to create a custom control in me21n.
    my control is: when I add a purchase order into position table, check if the PO that I am entering is already present in the list of items.
    u know any exit or enhancements to do that?
    thanks in advances
    Valerio

    Hi Valerio,
    I'm not sure about your requirements (what field do you need populate?). Before to do checks with BADI's or enhancements, check that you have tools in customizing to do it. So, go to IMG in the paht materials managament / purchasing / purchase order / define screen layout at document level , go to ME21N and you can enforce some fields as mandatory entry.
    If I'm not right or you think that I don't understand you, please let me know. I hope this helps you
    Regards
    Eduardo

  • Add new item field in ME21N

    Hi all,
      I want to add a new field in ME21N transaction, please tell me how to add new field in table control in ME21n tcode. I tried by using variant but according to my requirement invisible fields are not useful. I want to add a new field called MAKE with length 25 and i want to populate some text in that and need to display in related form also.
    Please guide me any enhancement technique.
    Thanks in advance,
    Mahi

    max bianchi ,
      I already seen that BADI definitions but i don't know how to achieve my requirement by using both of that.
    Please guide me the approach.
    Thanks...

  • VOFM problem

    I am trying to modificate the net price in VOFM for a purchase order, but i need to know the position of the purchase requisition order that i put in the table control of me21n and when i make a get parameter of BAP parameter i don´t find the data, and i can´t find it in komp, komk, xkomv structure, does anybody how can i get this data in my routine?
    thanks in advance

    Hi,
       The procedure to create the new VOFM.
    1. Go to VOFM transaction
    2. Page down until you find a new spot on the page to put in the VOFM number and description.
    3. Put in the VOFM number and the description of the VOFM.
    4. Now the VERY IMPORTANT part of the process. Double click on the VOFM description not the VOFM number to create this as a Development/Correction and not as a repair. If you double click on the number then this copies some existing code and prompts you for a repair.
    5. Activate and generate the VOFM routine. Note: Configuration must be setup by the OM team for this step.
    for example Go to the routine number that needs to be copied.
    Put your cursor on the routine number field that needs to be copied.
    Overwrite that number with your new routine number and hit enter.
    The new routine will be created as a copy of the old routine and you can modify the new routine as you need it.
    Ex.
    You have to copy routine 104 to 904
    Routine number Description Active
    104 Bill.bus.item data X
    Put your cursor on 104 and then change it to 904 and hit enter.
    904 will be created as a copy of 104 and you can make your changes in 904.
    Don't forget to activate it after you are done.
    refer the below link
    https://forums.sdn.sap.com/click.jspa?searchID=3604222&messageID=994791
    <b>Reward points</b>
    Regards

  • Formatting output in smartforms/others

    Hi everyone,
    1. How do we restrict the number of lines to be displayed on one page of a smartform?
    2. How do we upload a logo onto a smartform?
    3. What is the difference between domain and dataelement(other than the definitions and basic differences)?
    4. What is synchronous update in call transaction?
    5. What makes a smartform client independent but not a SAP script?
    6. What is update bundoling?
    7. What is LUW?
    8. Differences between session and cal transaction method.
    9. Why cant we do recording in me21n?  We do it only using me21..Is it coz of some activex controls in Me21n...pls explain
    10. Difference between BAPIs and BDC.
    <b>
    Will reward points even if u answer a few questions.......</b>

    1. How do we upload a logo onto a smartform?
    right click on form painter and include the graphic directly.
    if logo is not existing in server use SE78 and upload the either .bmp or .tiff file and transport the logo into docuement server.
    2.What makes a smartform client independent but not a SAP script?
    when u activate a smartform function module is created and as func tion module is independent u can say smartform is independent and as sap script is not possible in this way it it not independent.
    3.Why cant we do recording in me21n? We do it only using me21..Is it coz of some activex controls in Me21n...pls explain
    we can also do in ME21n.
    4.Difference between BAPIs and BDC.
    BAPi is a function module and BDC is a report based recording program.
    5.What is synchronous update in call transaction?
    synchronous update is nothing but upodating a bunch of recordds one after other asynchronous means updating the database without any order.
    6.Differences between session and cal transaction method.
    In session method a session is created and u have to explicitly run the session inorder to execute ur program and call transaction is a screen mode method which will be executed directly.
    generally , session method is used for backgrnd and large amount of data update as it is asynchrounous.
    we use cal transaction  method  for foregrnd and small amount of data update in synchrounous.

  • How to transfer data in A tableview control in transaction ME21n

    Dear friends,
    I m new in the field of SAP ABAP.
    And right now i m trying to transfer the data in a tableview control in transaction ME21n. I've recorded the sequence of mandatory fields in transaction ME21n but, when i try to transfer the data using BDC call transaction method the order of manadatory fields change.
    I m trying to transfer data from text file.
    If anybody has a solution to this problem please tell me how to sort out this.
    Thanks in advance.

    Hi Vivek,
    Welcome to SDN.
    BDC solution will not work with transaction ME21N.
    ME21N is an enjoy SAP transaction which has a lot of new objects that BDC can not call/use.
    Please use transaction ME21 instead of ME21N.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points in helpful.

  • Control amount value based on payment terms in obb9 and me21n

    Dear Sapgurus,
    In OBB8 Create Payment Terms.
    Create 4 Payment terms PT , PT1, PT2, PT3.
    For the 1st one PT you select Installment Payment CheckBox.
    For PT1, PT2 & PT3 give the no of days as per your requirement.
    Go to OBB9 and assigned.
    PT -- PT1 -- 20% (Document Date)
    PT -- PT2 -- 50% (Posting date)
    PT -- PT3 -- 30% (Posting date) in me21n i assign pt payment terms based on this one i want control amount in f-48 like first accroiss 20% is not allowed 1000 rs total value 200 allowed in f-48 how do i make logic, if i assigned in me21n payment terms i want ot check this payment terms in assigned obb9 if i take first payment terms if document date is their i want to take advance payment if payment date is their its normal payment. Whther it is correct or not & If i given any payment terms in  me21n i want check background how many payment terms is assigned in this one if payment terms is document date i want to check in f-48 and if posting date in payment terms i want to check in f-53 control how do i prepare logic please give me suggessions.
    Regards
    Umi

    Hi Sridhar,
      it would be helpful if you could share with us as how you did?.
    Regards,
    Siva

  • To add a custom field in table control in transaction me21n and me22n

    Hi Guru's,
    I have a requirement to add a field in the table control at the time of creation of PO (ME21N). I enhansed the structure MEPO1211, but it is not appearing in the transaction. What should i do in order to bring that field in table control.
    I implemented badis ME_GUI_PO_CUST and ME_PROCESS_PO_CUST by seeing some forum results.But i didnt get how to implement...
    Please help me in this regard how to follow the steps and if possible please provide a sample code.
    Thanks & Regards,
    R.P.Sastry

    hi,
    Suppose in the there are three tabs BADI customer1, BADI customer2 and BADI customer3 at item level.
    Say:
    On BADI customer1 there are three fields FIELD1, FIELD2 and FIELD3.
    On BADI customer2 there are two fields FIELD4 and FIELD5.
    On BADI customer3 there are three fields FIELD6, FIELD7 and FIELD8.
    Then the fields have to be added to EKPO (or requisite custom table as the need may be) and also fields are also to be added to custom structures.
    Create a Structure ZSTRUCTURE1 which will contain the three fields FIELD1, FIELD2 and FIELD3.
    Create another Structure ZSTRUCTURE2 which will contain the two fields FIELD4 and FIELD5.
    Create another Structure ZSTRUCTURE2 which will contain the three fields FIELD6, FIELD7 and FIELD8.
    The Structure STRUCTURE1 has to be passed for tab BADI customer1, the Structure STRUCTURE2 has to be passed for tab BADI customer2 and the Structure STRUCTURE3 has to be passed for tab BADI customer3.
    Each custom tab/screen should have its own structure to handle the screen fields, but the screen field data has to be transfered to and from EKPO (or requisite custom table as the need may be) for database update/retrieve.
    Hope this helps.
    Regards,
    Ritesh

  • Raisiing an error message to fill in customised tabscreen in me21n

    hi.
    i have created one tabscreen in header of me21n and i just want to raise an error message if the use has filled data in all t fields of tabscreens of header in me21n except the customised tabsubscreen that i have created .
    i came to know that this could be possible through process header,check methods of me_process_po_cust but i dont know of which one to prefer.
    please provide me the code with method as well.
    u r anser would be appreciated.
    bye.
    regards.
    sita.

    Transaction Code - ME51N Create Purchase Requisition
    Exit Name Description
    MEREQ001 Customers' Own Data in Purchase Requisition
    No of Exits: 1
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Minal

  • Table Control Variant For ME21N - Item level - account assignment tab.

    Dear All,
    I want to change Table Control Screen that is in Me21n(Service PO)>Item level> Account Assignment  tab -> Table control.
    In that table control i want to add one column Name is OrderNo(AUFNR) ,but system is not changing the table control.
    When i m going to change table control scrren in ---> Condition tab its working fine but not for above case.
    Please guide me to solve this issue.
    Regards,
    Sanket.

    Please provide the solution.
    Regards,
    Sanket.

  • Creating additional customised tabscreen under header data for me21n

    hi all.
    i have a requirement for adding extra tabscreen (subscreen) undr headr data of me21n purchase requisitions .
    and other thing is i want to know how we can raise an eror message if the user has filled all data in me21n except in customised tab screen that i am going to create.
    waiting for great answwr.
    bye.
    sita ram,

    Hi,
    you can find tons of general info BADIs on this forum. So basically go to transaction SE18 and enter name of your BADI - ME_GUI_PO_CUST. Please read carefully documentation. There is button for documentation. In documentation you can find following statement:
    The Business Add-In (BADI) ME_GUI_PO_CUST enables you to integrate your own subscreens into the Enjoy purchase order at both eader and item levels.
    So it looks like what you need. You have description for each method of BADI in documentation as well.Definitely you will have to implement method SUBSCRIBE. You will define your own screen in this method. Then you have to implement PBO and PAI logic (check methods TRANSPORT_TO_DYNP and TRANSPORT_FROM_DYNP). SAP provides examples for each BADI. You can read the example of BADIs implementation in Goto->Sample Code->Display. These examples are very well commented. I am pasting just example of SUBSCRIBE implementation
    DATA: ls_subscriber LIKE LINE OF re_subscribers.
    * we want to add a customer subscreen on the item detail tab
      CHECK im_application = 'PO'.
      CHECK im_element     = 'ITEM'.
    * each line in re_subscribers generates a subscreen. We add one subscreen in this example
      CLEAR re_subscribers[].
    * the name is a unique identifier for the subscreen and defined in this class definition
      ls_subscriber-name = subscreen1.
    * the dynpro number to use
      ls_subscriber-dynpro = '0001'.
    * the program where the dynpro can be found
      ls_subscriber-program = 'SAPLMEPOBADIEX'.
    * each subscreen needs his own DDIC-Structure
      ls_subscriber-struct_name = 'MEPO_BADI_STRUCT'.
    * a label can be defined
      ls_subscriber-label = text-001.
    * the position within the tabstrib can be defined
      ls_subscriber-position = 5.
    * the height of the screen can be defined here. Currently we suport two screen sizes:
    * value <= 7 a sevel line subscreen
    * value > 7  a 16 line subscreen
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
    So basically you will define your new sub screen in this method. Do not forget that the BADI ME_PROCESS_PO_CUST is compulsatory for BADI ME_GUI_PO_CUST.
    Cheers

Maybe you are looking for