Using enhancments MM06E005  TO modify detail line  ME21N

user request is to have a part number COO which when enter will look at the propertys of the
detail line above it and populate plant and qty fields in addition we don't want to have invoice receipt
and product is to be priced as free or no additional cost.
i have been using MM06E005 to attempt this but it does not look like EKPO items can be updated
using this method can someone please advice of a better user exit for po's  TRANSACTION ME21N
if ( tekpo-matnr = 'COO' ).
   tekpo-matnr = 'Certificate of Origin'.
   tekpo-MEINS = 'EA'.
   tekpo-WERKS = '1000'.
   tekpo-NETPR = '0.00'.
   tekpo-PEINH ='1'.
   tekpo-MENGE = 1.
   tekpo-REPOS = ' '.
   modify tekpo.
endif.

Try BADI:  ME_PROCESS_PO_CUST.
METHOD: PROCESS_ITEM.
CALL METHOD im_item->get_data
RECEIVING
re_data = v_data_item.
"Your logic here
CALL METHOD im_item->set_data( v_data_item ).

Similar Messages

  • How to create new tab in Me21N using enhancement MM06E005

    Hi All,
    Can u guys please tell me know to create a new tab at item level in purhcase order ME21N using enhancement MM06E005.
    Thanks in advance.
    Thanks,
    Jaffer Ali.S

    Please search the forum:
    addition of new tab (reasons) on me21n (item level)
    Re: Adding a new Tab - ME22n - Item Detail Level

  • No of classes, Methods, Lines of codes, DLL's used and Third Party Libraries details identifying tools

    We have started a project to migrate 100+ Web Applications developed using legacy Microsoft technologies to latest .Net 4.5 Framework.
    The following are the planned migration approach
    Classic Asp à                                                   
    Asp.Net 1.1 Framework à Asp.Net 4.5 Framework
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Direct Migration)
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Application Rewrite
    using MVC/Entity Framework)
    VB 6 (COM/DCOM) à                                  
    C# .Net 4.5 (Web Services)
    We have to analyze 100+ applications to categorize them as Simple/Medium/Complex conversions for planning the timeline for completing the migration activities.
    Analysis includes identifying the following details - No of classes, Methods, Lines of codes, DLL’s used and Third Party Libraries  details
    for 100+ Microsoft applications.
    Could you please let me know do we have any effective tool to identify above mentioned details?

    This forum is for Microsoft Project Server, an EPM tool. You will need to find a more suitable forum for your question.
    Good Luck with the conversion!
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Is there a user exit to modify PO line item level..

    Dear Friends,
    Is there a user exit to modify PO line item level..
    Ravi

    Hi...I'm not sure on any available customer exits for this purpose. However you can use the check function exit 'EXIT_SAPMM06E_012' of customer exit MM06E005 and using memory pointers you can change the item level data.
    The other option is to use BADI ME_PROCESS_PO_CUST's method PROCESS_ITEM to change the item level value. I would prefer the BADI rather than the customer exit.. Hope it works..
    Thanks,
    Jude

  • Column headings line up, but detail lines dont.

    We've got a script to get a payments listing out of a table, the spool file is created and looks fine. However it fires up adobe acrobat and the report looks really bad.
    The column headings line up, but the detail under them does not, it appears to almost left justify everything.
    If a field is blank, instead of leaving a space for the field size, it brings in the next field adjacent to it. So none of the detail lines line up vertically, its all over the shop. I realise this maybe something to do with the way adobe works (v4). The other reports within the system, which use the same method work ok.
    But does the script look ok? Like I said, the spool file appears to look ok.
    Many thanks.
    set verify off
    spool f:\cfxshell\spool\r382.txt
    Prompt
    PROMPT Batch Ref &1
    prompt
    -- ## PAYMENT LIST BASED ON BATCH NUMBER ##
    -- ## SORTED BY CREDITOR NAME ##
    -- Date (Originated):      10-SEP-03
    -- Date (Modified):     10-SEP-03
    -- Revision:          1.0.1
    -- # Set the columns                                    #
    CLEAR COLUMNS
    SET PAGESIZE               35
    SET LINESIZE               120
    SET NEWPAGE               2
    SET UNDERLINE                '-'
    COLUMN SLT_TRANS_TYPE      HEADING      'TYPE'
    COLUMN SLT_TRANS_TYPE          FORMAT           A5
    COLUMN NA_CODE      HEADING      'SUPPLIER'
    COLUMN NA_CODE      FORMAT           A9
    COLUMN NLS_INITCAP(NA_NAME)      HEADING      'PAYEE/SUPPLIER NAME'
    COLUMN NLS_INITCAP(NA_NAME)      FORMAT           A41
    COLUMN SLT_DATE_PAID      HEADING      'DATE'
    COLUMN SLT_DATE_PAID      format           A10
    COLUMN SLT_THEIR_REF      HEADING      'CHEQUE'
    COLUMN SLT_THEIR_REF      FORMAT           B9999999999
    COLUMN SLT_REF      HEADING      'GL REF'
    COLUMN SLT_REF               FORMAT           9999999
    COLUMN SLT_GROSS_AMOUNT      HEADING      'GROSS'
    COLUMN SLT_GROSS_AMOUNT      FORMAT           999999.99
    -- # Change these variables                              #
    DEFINE COMPANY1               = 'Comp_Name'
    DEFINE COMPANY2               = 'Comp_Name2'
    DEFINE COMPANY3               = 'Comp_Name3'
    DEFINE REPORT1                = 'Payments'
    DEFINE REPORT2               = 'List'
    DEFINE DATABASE1          = 'livedb'
    -- # Report title                                    #
    TTITLE COL 1 &COMPANY1 TAB 1 &COMPANY2 TAB1 &COMPANY3 TAB 1 -
    &REPORT1 TAB 1 &REPORT2 SKIP 2 -
    COL 100 FORMAT 99 'Page: ' SQL.PNO SKIP 2
    -- # Sub Total Criteria                               #
    BREAK ON SLT_DATE_PAID SKIP 1
    COMPUTE SUM LABEL 'TOTAL' OF SLT_GROSS_AMOUNT ON SLT_DATE_PAID
    -- # Data Criteria                                   #
    SELECT
    SLT_DATE_PAID,
    SLT_TRANS_TYPE,
    NA_CODE,
    NLS_INITCAP(NA_NAME),
    SLT_THEIR_REF,
    SLT_REF,
    SLT_GROSS_AMOUNT
    FROM
    &DATABASE1 .SUB_LEDGER_TRANS, &DATABASE1 .NAMES
    WHERE
    SUB_LEDGER_TRANS.SLT_SUPPLIER=NAMES.NA_CODE AND
    SLT_BATCH_REF = '&1'
    ORDER BY
    NAMES.NA_NAME
    -- # Restore Settings                                   #
    --CLEAR COLUMNS
    prompt
    spool off
    exit

    CJ your a star!! HUGE THANKS!!
    It took me a while to produce the report, and I was a bit gutted when I couldn't get it to work, but now it looks as it should.
    You've even come up with the goods before our software suppliers!
    Many thanks again.

  • How we can change Vendor details in ME21n/ME22n

    Hi Friends,
    How we can change Vendor details in ME21n.
    I need to change mail id of vendor based on some conditions.
    E.g Based on some Purchase grps.
    Can any body help.
    If any particular user exit ple let me know.
    I have all list of user exits of ME package.
    Thanks,
    Kumar.

    Hi,
    Changing Vendor on Purchase Order
    One PO can not have different vendors.  Its logical as one PO goes to one vendor with address.
    You cannot change the Vendor once you have saved the Purchase Order.   SAP treats the Purchase Order as a legal document. Therefore, once the Purchase Order is saved, it will not let you change the vendor.
    You have to delete all the line items and then create another Purchase Order.  However, if you are using Enjoy Purchase Order, you can "Hold" the Purchase Order rather than save it after you have create it, then you can change the vendor.
    Of course, this means that you don't have any output yet.  Therefore, you are not bounds by a legal document as you have not given it to a specific supplier yet.
    Logically, you cannot change an important field after creating a document.  It defeats the RDBMS principle, but you can change vendor while doing Invoice Verification.
    No, you cannot change vendor in released PO, because vendor registration carries some vital configuration information which decides pricing procedure for the items of the PO, logically due to this reasons system doen't allow to change vendor name once PO is released.
    Normal practise to come out for this routine problem in purchasing is solved by, simply delete this PO (By changing delivery as completed in PO) and make a new PO for these items.
    Eventually, you have only two options:
    1. You can do the entire transaction with that wrong vendor number and after MIRO you can transfer post the vendor liability to correct vendor through FI route. BUT THIS IS A WRONG PRACTICE.
    2. You need to cancel the PO which has wrong vendor number and create it again with correct vendor code.
    Thanks
    Balaji

  • Field values in detail line being cutoff

    I am using Crystal Reports 2011.
    I have a report created in Crystal Reports and is being populated by a Dataset.
    The report is displayed in a CrystalReportViewer in an ASP.Net page.
    I am finding that sometimes the string data  in fields in the detail line are being cutoff.
    For example:
    There is a column in the report called Status.
    The table field has a value of Started1234567.
    When the report is displayed in CrystalReportViewer, the Status column only shows Started12 in the detail line.
    Even when the report is exported to a MS Excel .xls file and you click on the cell with that value, it still only has a value of Started12 instead of Started1234567.
    I am not concerned that the value is cutoff in CrystalReportViewer.
    But it would be better to be able to see the whole value when the report is exported to a file, especially to a MS Excel .xls file.  Is there a way to keep the value from being cutoff when being exported?
    Sincerely,
    Keith Jackson

    Hi,
    Setup the font size is smaller i.e based on your requirement..
    Format the field and on the paragraph tab put a small value in the Indentations Left box.  I use 0.1 cm, but it depends on your settings in Page Setup..
    As of now these are the possible ways....
    Refer this link:  Data gets cut off after 20 characters
    Thanks,
    DJ

  • "Always Use Selected Format" check box in line items report

    Hi Experts,
    I have an issue in ECC 6.0.
    From the transaction code FBL1N (Vendor Line Items) I am trying to export the report to spreadsheet by selecting the option  List> Export>Spreadsheet  then I have selected "Always Use Selected Format" check box.  But if I execute the same report again I am not getting this option "Always Use Selected Format". Please let me how can we retrieve that option. Is there any possibility to get that option again either functionally or technically. I would like to know all the possible ways to get this option again.
    Please do the needful.

    Hello,
    In one my thread Mr. Frank has replied as follows. I believe he has solved this.
    Hope this may be really helpful.
    The problem with the spreadsheet download is at one point, users have selected their default file type.
    That said, SAPGUI is working as it should. (gui710)
    Question though is how do we reset the values so they get the ?Select Spreadsheet Format? popup again.
    The following steps should be performed :
    - Call transaction SE38, enter program SALV_BS_ADMIN_MAINTAIN, and press F8.
    - Follow the parameters below :
    - Select ?DELETE? on the Actions Group
    - Select ?DETAILED SELECTION? on the General Data :
    - On Client - your number
    - User : <user name>
    -Hit EXECUTE.
    -Press ENTER on the POPUP
    - If there is an entry in the report that will need to be deleted. Also, make sure that the entry you will delete (for the user) has a value of GUI_ALV_XML_VER on field ?Parameter? .
    - Select the line and hit the DELETE icon .
    - Press ?Y? to continue delete. Press ENTER on the popup.
    - Then EXIT all the way out of the program.
    NOTE : When you run program SALV_BS_ADMIN_MAINTAIN, make sure they are out of any program that they are using for download.
    Re: "Always Use Selected Format" check box in line items report
    Regards,
    Ravi
    Edited by: Ravi Sankar Venna on May 15, 2009 2:31 PM

  • PDF Form to XML. How to handle invoice detail lines

    I am using LC Designer 7.x on a PDF form that has a submit button that loads a ColdFusion MX7 page that will save the XML in a MS SQL 2005 XML field.
    My source of confusion is how to handle the invoice detail lines on the PDF invoice form.
    The XML that I want is
        5 All Season Tires
        400.02
        A car with 5 wheels
        20400.00
    My question is how do I setup the form fields to do this.
    What I did prior to XML was have fields whose name included the line number and store them as FDF.
    eg
        description01 amount01 description02 amount02
    But that will not work, or I dont know how to translate that to the desired  XML.
    Any thoughts you might have would be appreciated.
    Thanks
    Archie Campbell

    Archie,
    You want to create a subform called "invoiceLine" which you've set to repeat for each data item using the Binding tab of the Object palette. This subform must be contained within another (e.g. "invoiceLines") whose content is set to be "Flowed" on the Subform tab of the Object palette. So your object hierarchy looks like:
      invoiceLines = subform with flowed content
        invoiceLine = subform repeated for each data item
          description
          amount
    Rob Gabbard
    Cardinal Solutions Group
    www.cardinalsolutions.com

  • Changing the name of the tab created using enhancement MM06E005

    Hi,
    Is there anyone know how to change the name of item level tab from "customer data" to our own tab name in screen exit for trans ME21N/2N/3N? Enhancement used is MM06E005.
    And is it possible to show or hide the newly created tab using enhancement depending on the data displayed in tab? If so how?
    Any help will be appreciated.
    Regards,
    Naveen

    I came across the same issue as well a while ago, see my thread at Can you programmatically change the iView Title?
    No one could answer my question properly, so I decided to go the DHTML route; find the <DIV> element encapsulating the proper iView title, and then replace the innerHtml with the new title.... Ackward, I agree, but it works
    It's java based, but the actual replacing is all DHTML, I will look up the code and post it

  • Detail line separator

    When "Grouping" is used in a report, every records making up
    the "detail line" section becomes separated by a grey line going
    across the report. This line is only visible on the output (PDF in
    this particular instance) therefore cannot be "Selected" and
    deleted in "Design Mode".
    I looked at the different options available on the righ-hand
    side of the Report Builder's interface but could not see nor find
    the one that would get rid of it.
    Does anyone know how to remove this line?
    I am using CFReportBuilder on CFMX7 and Dreamweaver 8.
    Thanks,
    Claude

    Got it! By Zooming In I was finally able to see, select and
    delete the line that was up & VERY close to the TOP of the
    Detail section.

  • Modify fields in ME21n

    Hello All,
    I have a requirement where in I need to modify fields of me21n based on a condition:
    if the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then all the conditions (From KOMV table) fileds & all the Pricing terms should be disabled for change/input i.e. should be in display mode.
    I tried to search for an exit for this but could not find an appropriate one to modify screen fields however, the alternae to this requirement is :
    If the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then on entry of the conditions(TABLE KOMV) fields and pricing terms user should get an error message so that he cannot proceed.
    Please suggest me a solution for any of the above two requirements.
    Any help on this would be highly appreciated.
    BR
    Ankur

    Hi,
    Why dont you check with the enhancement project LO020 in CMOD.
    Hope this would help you.
    Or use the class CL_EXITHANDLER to find out the BADI used in ME21N for your requirement.
    Regards,
    Ranjith Nambiar

  • How to draw and modify double lines with Adobe Illustrator?

    I need tot draw roadmaps. This should be easy using the pen tool, but my problem is that I cannot find a way to draw double lines with this tool. I have seen many fancy border styles and patterns. Some do have double or even quadruple lines, but the problem is than that they have an offset from the vector line and the space in between the two lines (the edges of the road) cannot be filled. Somewere I also found some pens called 'Double line 1.1' to 'Double line 1.6' but they also had an offset from the vector and I could not chance the size of the lines and the interval in between them independently.
    What I am looking for is a way to draw two lines in parallel and have the option tot fill the space in between with a color or even a pattern.
    The color and size of the lines should be changeable to make a distinction between several types of road.
    Is there an existing set of pencils for this purpose? It would be nice to be able to draw not only roads, but also railways and rivers!
    I am surely not the first person who needs to do this?
    I use AI version 6

    Jacob,
    Thanks for the answer. I have been searching for a solutions for a long
    time, but today I found the solution on a forum (not on this one). That
    solution is exactly as you described below, i.e. using a coloured line and a
    narrower white line on top of the first one. My problem was that I did not
    know how to create a custom brush based on the two lines. Now I know how to
    do that. However, I still have the problem. I can now draw double lines and
    I can change the color of the background line (the coloured one) but I
    cannot change the white colour of the narrower line. I assume that I have to
    completely redefine a new brush when I need to change that colour too.
    Regards,
    Rob Kole
    Van: Jacob Bugge [email protected]
    Verzonden: donderdag 28 maart 2013 17:04
    Aan: RKOLE
    Onderwerp: How to draw and modify double lines with Adobe
    Illustrator?
    Re: How to draw and modify double lines with Adobe Illustrator?
    created by Jacob Bugge <http://forums.adobe.com/people/Jacob+Bugge>  in
    Illustrator - View the full discussion
    <http://forums.adobe.com/message/5186535#5186535

  • How do I use any of the RTSI compatible lines as a general I/O on a PXI 6533?

    How do I setup and change the state of the PCLK1 line, one 6533, to use it as a general output line. Dose anyone have any LabVIEW examples. Thanks for your help!

    This is not as hard as it may sound. Had I looked a little closer at the manual I would have noticed that the control lines can be accessed as port 4, using the standard DIO VI�s.
    Check out page 2-3 for more details.

  • CATT script for creating Contract Detail lines

    In my requirement I have to use the transaction SCAT and record the transaction ME31K for creating the line items. But when adding more than 1 line item the function is not working only the first detailed line item is added, no more. Please help.

    Hi shashikant
    Use  Message type BLAORD .. FM: IDOC_OUTPUT_BLAORD (Process code is ME15 (Not sure)  in AFS it is /afs/md15- BLAORD:  AFS Contract via EDI)
    Thanks
    Ramesh
    302 290 5677

Maybe you are looking for