Want to update standard field in ME21N/ ME22N

Hi All,
I have a requirement to block all the line item of the standard PO if any of the line item does not satisfy specific condition (as per the requirement). But I am not able to do so.
I have tried to use the BADI ME_PROCESS_PO_CUST~PROCESS_ITEM. But, here it is not possible to block all the line item(s) if any of the specific line item fails the condition check. So, can any body help me to find the way out.
Thanks--
Debojit.

Hi,
Thanks for ur reply. But, I have a requirement to block all the line item(s) of the PO if any of the line item(s) does not satisfy the specific condition checking.
Also, I have to put the error message in the message log, but how can I block (set LOEKZ = 'S') every line items of a PO in this case?
Thanks -
Debojit.

Similar Messages

  • To get f4 help for salesperson field ,transaction me21n & me22n

    Hi Super-Techies,
    I am a new-bie in the world of enhancement.
    The reuirement here is I need to create a custom table with 1 field (prep_name). (This is done)
    Now the reuirement is that whenever user goes to transaction ME21N/ME22N, he wants me to add a f4 help for salesperson field (navigation : ME21N/ME22N -> CLICK ON COMMUNICATION TAB -> SALESPERSON). The f4 help should display the field from my custom table.
    As far as my knowledge is cond=cerned, I can use the function module 'F4IF_INT_TABLE_VALUE_REQUEST' to achieve this requirement.
    But the issue I am facing is where to write this logic and how to proceed. Can anyone help me in this case?
    Any help in this regard would be appreciated.
    Thanks & Regards,
    Vinit
    Edited by: vinit005 on Nov 1, 2010 12:43 PM

    Hi Vinit,
    I also had that requirement. There is no customer exit/BADI by which we can achieve that(as far as my knowledge), we have to use access key to achieve that. So we have gone for customer exit "MM06E005" to add Customer data tab in header and added our own fields, like Sales Person, Buyer Details etc.
    Thanks & Regards,
    Faheem.

  • SC Workflow not updating standard field

    Hi,
    I am using SRM 5.0 .After approval of SC which have multiple item not updating standard field of source_ind to all the line items .
    It's getting updated in only first line item .
    Recent Package : SAP_ABA SAPKA70011
    Thanks ,
    Sachin

    Hi,
    DO you mean to tell that after the shopping cart is approved , only the first item is send to the sourcing cockpit?
    ANd the other items of the shopping cart are not send to the sourcing cockpit?
    Can you please compare the category for the two lines? is it the same?
    can you check wether the category mentioned for the second line has got category which has been configured for sourcing cockpit?

  • Want to update one field in MIRO

    Hi Experts,
    During the MIRO transaction, I want to update "Assignment" field in "Detail" Tab according to purchase document number.
    I have to fetch data from Z table using Purchasing document number and update it in Assignment field when user post the document in MIRO.
    Please help me how to do this as i am very new to this moodule.
    Thanks
    Sameer Dhuke

    Hi
    Did you try changing the 'Sort key' in GL master to 010 - Purchase order number
    Thank You,

  • Want to add field in standard table control - me21n , me22n , me23n

    Dear All ,
    I have come across a situation where I want to add a field in a standard table control .
    But how to proceed for tht I am not getting .
    In the standad transation me22n in the ITEM  OVERVIEW table control I want to add Curreny field in the table control structure
    i.e MEPO1211 I have append the field in MEPO1211_DATA it is even visible in run time in the structure but not visible in table control and in table control settings also.
    How can I add one more column or some standard procedure to do that. Please suggest .
    Thanks & Regards
    Aryan

    hi,
    If you don't want to access key...then only option is ,you have to search USER Exit or BADi (Try using BADI ME_GUI_PO_CUST) for me22n transaction......to adding the field.
    Regards
    Gaurav

  • I want to update standard table field (EKES-EINDT)? Not using BDC using FM.

    Hi all,
    I would like to seek for you help, to resolve a problem.
    I need to know how can i update the EINDT(date) field in the EKES table.
    Is there any Function Module or BAPI available for update EKES-EINDT ? 
    And my requirement is don't use BDC.
    Currently I am doing in following way
    LOOP AT I_DATA.
      UPDATE EKES SET EINDT = P_NEWDAT
      WHERE EBELN = I_DATA-EBELN
      AND EBELP = I_DATA-EBELP
      AND ETENS = I_DATA-ETENS.
    ENDLOOP.
    I know we should not update standard table directly. This will only update EKES it will not update other tables related with EKES-EINDT.
    Got my point?
    Please help me it's on high priority.

    EKES can be updated with function module
    ME_CONFIRMATION_UPDATE

  • BADI for Disabling NetPrice field in ME21N & ME22N based of Material Type.

    Hi.
    I had a requirement to disable "net price" field while creating or changing a PO (ME21N & ME22N) based on the type of material entered.
    Please asssit me in finding the BADI or exit name which can meet my requirement. Thanks.

    Hi Ranga nadh,
       The BAdi what you have mentioned is correct.
    ME_PROCESS_PO_CUST - In this BAdi, we are having a method PROCESS_ITEM. These method is used to process all the Item data. As the field Netprice is at the level. You can use this method.
    Here inside this method we are having a parameter IM_ITEM
    So, You create a implementation and inside this method you can code here to appear the field in disable mode.
    Cheers,
    Swamy Kunche

  • I want to update date field in oracle table using database adaptor

    Hi Guys,
    I want to update date in oracle table field which is 'DATE' type , but i am getting following error.
    Pure SQL Exception.
    Pure SQL Execute of update crp3apps.IFACE_SO_DATE_CHANGES set PROCESSED_DATE=? where CTRL_ID=? failed. Caused by java.sql.SQLException: ORA-01830: date format picture ends before converting entire input string
    The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead.
    </summary>
    </part>
    - <part name="detail">
    <detail>
    ORA-01830: date format picture ends before converting entire input string
    </detail>
    i am formated the date using following code and assigned to one variable.
    ora:formatDate(ora:getCurrentDateTime(),'dd-MMM-yyyy hh:mm:ss ')
    this is update query
    update crp3apps.IFACE_SO_DATE_CHANGES set PROCESSED_DATE=#date where CTRL_ID=#id
    Please provide solution.
    regards
    janardhan

    The thing is that XSLT often doesn't deliver the functionality required when it comes to times.
    You suggest appening "Z" to the time but this means that the time is now in UTC time. What if the system from where the date is being converted is running in NZ using local time? Other systems that recieve the date (and correctly handle the time zone) will now have a time that is out by a number of hours.
    You often can't ignore the time zone (drop the 'Z') as if you send the time to a system it has to either assume the time is local to it (which may not be the case... the other system coudl be in a different time zone) or assume the time is UTC (I think crossfire does this by default).
    Typically can't just append a time zone (e.g. +11:00) either as many places have daylight savings so the value to appended is variable (you then need some way of determining what the value is... either Java Embedding or a Service).
    As you mention it does depend on the use case but in many circumstances using Jaba Embedding, not as suggested above but with the appropriate Java.util.Calendar classes, is the best way to handle date and time in BPEL. Even still you need to ascertain the format of times external to the system and ensure you parse them correctly.
    ANd even if you do all this you can still run into problems. I've seen a real world example where two systems which both handled time zones correctly and had previously been working together for quite a while, satrted reporting different times. It turns out that only one of them had had the most recent Java Time Zone patches applied and there had been a change in the dates for daylight savings here (Australia). Be warned!

  • How to make the logs captured for Z fields in ME21N/ ME22N

    Hi
    I have  devloped new tab(Screen) and added Z field in the PO header (ME21N) as per my requirement. But whenever I do changes to the perticular Z field, logs are not captured (ME21N->ENVIRONMENT-->HEADERLOG). How to make the logs captured for Z fields like standard fields. Is there any way?
    Regards
    Raj.

    HI Ranjitha
    For the data element of Z fields go to further caracteristics of tab and make change document checkbox ticked.

  • Modify standard screen for ME21N/ME22N

    i need to modify ME21N/ME22N's Invoice Tab.
    The requirement is to make the invoice tab's tax code and jurisdiction code modifiable at certain conditions.
    how to do that?
    i've read some posts that suggests some badis and userexits, but it mostly pertains to custom screens.
    this has already taken me too long.
    pls help

    As you said making screen fields modifiable pertaining to Custom screens. 
    In your code written for custom screens, you can use following syntax to make the fields visible (modifiable) or grayed out (not modifiable) for the fields.  use this syntax based on your conditions. 
    You can modify SCREEN in your ABAP program during the PBO event of a screen. Its contents override the static attributes of the screen fields for a single screen call. The only statements that you can use with SCREEN are:
    LOOP AT SCREEN.
    MODIFY SCREEN.
    ENDLOOP.
    for more details of this topic pls follow the links.
    http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbab6f35c111d1829f0000e829fbfe/frameset.htm
    The following example is selection screen based. but you can use the similar logic in ur program
    DATA: d_ucomm LIKE sy-ucomm.
    PARAMETERS: p_grpa1(10) MODIF ID A,
    p_grpa2(5) MODIF ID A,
    p_grpb1(2) MODIF ID B.
    PARAMETERS: p_actA RADIOBUTTON GROUP rad1 USER-COMMAND ACT DEFAULT 'X',
    p_actB RADIOBUTTON GROUP rad1.
    AT SELECTION-SCREEN.
    d_ucomm = sy-ucomm.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT screen.
    IF p_actA = 'X'.
    IF screen-group1 = 'B'.
    screen-active = 0.
    ENDIF.
    ELSEIF p_actB = 'X'.
    IF screen-group1 = 'A'.
    screen-active = 0.
    ENDIF.
    ENDIF.
    MODIFY screen.
    ENDLOOP.

  • Customer exit for validation of PO fields in ME21N / ME22N - After pressing enter & save button

    Hi,
    I am looking to validate the standard fields(EKKO-IHREZ, Your reference under communication) of Purchase order . So for this I used the customer exit EXIT_SAPMM06E_012 under the enhancement MM06E005 . I am able to validate but it is triggering only when SAVE selected.
    1. Can we implement the same when we press enter button ?
    2. How to log error message using macro for the field EKKO-IHREZ with error message ? As of now I am using message 'asdfasdfasdf' type 'E' which is appearing now in the log messages.
    Regards,
    Praveen CHITTURI .

    Better use methods like PROCESS_HEADER or PROCESS_ITEM of BAdI ME_PROCESS_PO_CUST.
    There are many threads and documents on this BAdI at scn.
    In the chosen methods use Macros mmpur_metafield to attach error to a field (defined in type-pool MMMFD, mmmfd_ref_1 ?) and mmpur_message_forced to raise error message and add it to log.
    include mm_messages_mac.
    im_item->invalidate( ).
    mmpur_metafield mmmfd_matnr.
    mmpur_message_forced 'E' 'ZFSM' '613' ls_item-matnr ls_item-werks ls_header-bsart ls_material_plant-mmsta.
    Regards,
    Raymond

  • Standard screen field validation : ME21n/ ME22n

    Hi experts,
    I have a requirement in which we are supposed to do field validations while creating or changing POs/Purchase requistions.
    Suppose if at item level in Account assignment category is 'F' and the order entered by user is of type 'Z560' then in that case user will be allowed to enter only specific G/L account for eg : 712546 or 715486.
    Please guide how can that be accompalished. I couldn't find any proper exit for this.
    Thanks
    Vishal

    Hi Vishal,
    there is a very helpful BAdI for this: ME_PROCESS_PO_CUST.
    Re: user exit/ badi for me21n
    Roy
    Edited by: RobbdB on Jun 30, 2010 9:09 AM

  • Enable fields in ME21N/ME22N(WBS Element & Network)

    Hi, need your help!
    How to enable the fields WBS Element and Network in transaction codes: ME21N and ME22N?
    Thanks in Advance

    Hi,
    You can implement BADI ME_PROCESS_PO_CUST and implement the method FIELDSELECTION_ITEM. For srep by step process check below link. Thanking you.
    how to keep wbs element  field in display mode in me22n?

  • Non Editable NETPR field in me21n, me22n

    Hi
    I have a requirement where in PO I need to make NETPR (Net Price) field editable or non editable based on KONNR (Outline agreement number).
    For this BAdI 'me_process_po_cust' has to be used and method 'fieldselection_item'.
    In this method we have got an internal table 'ch_fieldselection' that actually allows to change the field properties.
    The issue is I am not getting NETPR value in it in anyform (MMMFD code is used inside it).
    Can anybody help me out how to push value of NETPR (MMMFD value 62) in this internal table so that I can do operations on this field as desired.
    Thanks in Advance
    Zafar

    Hi,
    If my understanding is correct, you can manipulate the NETPR field using method,
    ls_mepoitem-NETPR = 'xxxxxx'.
    im_item->set_data( ls_mepoitem ).
    If you want to enable or disable the field, you can use
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = '079'.
    <fs>-fieldstatus = '*'. " Display
    Regards,
    Sudhakar Rayala
    Edited by: SudhakarRayala on Feb 14, 2010 8:53 PM

  • Want to update BLOB field to LONG field.

    We have 2 table one were BLOB field is there, another were LONG i want to transfer BLOB to LONG fields. Please advice how i can?
    I tried DBMS_LOB and UTL_RAW.CASTE_TO_VARCHAR2 its working but its saving some initials unwanted character.
    Thanks
    Bakulesh

    As I understand, 1 BLOB does have BINARY data. And, you have to copy that to LONG RAW and not just LONG. The unwanted cahracters are those BINARY data. ( They might be really of some use ! )
    We have 2 table one were BLOB field is there, another were LONG i want to transfer BLOB to LONG fields. Please advice how i can?
    I tried DBMS_LOB and UTL_RAW.CASTE_TO_VARCHAR2 its working but its saving some initials unwanted character.
    Thanks
    Bakulesh

Maybe you are looking for

  • No help yet...what gives HP?

    We have a Photosmart d110a printer, Windows 7 64-bit OS that suddenly started giving us issues last night, and it has only gotten worse. Long story short, the 60XL cartridge is now for some reason "incompatible". Where do I begin? Our son was printin

  • Migration from 9.3.1 to 11.1.2.1 through 9.3.3

    Hi all, We're planning to migrate from 9.3.1 to 11.1.2.1 version. We've been proposed to migrate from 9.3.1 to 9.3.3 and then from 9.3.3 to 11.1.2.1 Draft plan is as below: 1) to have a new server(server B) to install 9.3.3 2) do the migration of all

  • White box on ipad mini

    I recently bought an ipad mini 16GB wifi only. After one day use, i tried to turn it on and I found a white box in the middle of a black screen. I was not able to turn the ipad on. I had to resort to a soft reset. Can anyone explain why this has happ

  • How can i manipulate this pdf so that I can save it?

    I need to remove the restrictions or what ever on this pdf so I can save it.  I dont want to use pdfprinter or any other 3rd party software, I just want to remove the restrictions off this document. Document can be found here.

  • IMovie gets stuck while creating thumbnails for iPhoto Videos

    Hello, I've just got iLife 09. When I opened iMovie (with all the latest patches) it asked me if I want to create iPhoto thumbnaisl. I said yes and iMovie started to do something. At a certrain point the progress bar stopped moving and didn't move un