Issue in me22n Indicator field should be enabled/disabled

Hi,
I have a requirement that when i enter into PO through tcode ME22N, then at that time in the item details tab Delivery one Indicator called ' Delivery Completed'. this indicator field should be disabled or enabled based upon the given condition. How can i achieve this?
Any specific exits or Enhancement for this?
Thanks In advance,
Regards,
Prabu

Hi,
Where is it_ekko populated ...
data:it_ekko type ty_ekko occurs 0 with header line,
     wa_ekko type ty_ekko.
data:it_ekpo type ty_ekpo OCCURS 0 WITH HEADER LINE,
     wa_ekpo type ty_ekpo.
data:it_zstd type ty_zstd OCCURS 0 with HEADER LINE,
     wa_zstd type ty_zstd.
if sy-tcode = 'ME21N' or sy-tcode = 'ME22N'.
    If it_ekko-ekorg = '6000'.      <-- check this statement ..
Regards,
Srini.

Similar Messages

  • Adf security based on log in fields to be enabled disabled in afquery panel

    I have dragged and dropped a view criteria and in query panel there are fields state,district,block, etc.,
    I have roles Head Office Admin... State Admin
    There is only one Head office admin and for different states respective state admins are there
    If the Head office admin logs in ... he should be able to access all the states which is a drop down as an lov
    If any state admin logs in ... the state field should be a read only and should be showing information related only to his state
    These state, district ,block are cascading lov's

    Try using two separate state attributes in your View object, for instance AllStates and CurrentState. Then depending on the user role being Head office admin or State admin, make the appropriate attribute Queryable. Only the attribute set as Queryable will show on the af:query panel. You will then have to figure out how to populate the CurrentState attribute based on the State Admin's state.

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

  • Enable/disable fields in Workspace form

    Okay here is my scenario. I need to disable some fields on a form depending on which user logs onto workspace to open the same form.
    1. User1 logs onto workspace and opens leave request form, fields at the top of the form are enabled for the user to fill out, bottom fields which are for leave request administrator to fill out are disabled but visible.
    2. User1 fills out top portion of leave request form and completes form. Workflow sends form to leave request administrators "To do" list in Workspace.
    3. Administrator opens up submitted form in Workspace and sees User1's filled out data on the form and the bottom fields are now enabled for administrator to approve or dissaprove. Bottom fields only include two check boxes, two text fields and one date field.
    Now how is this done? I am sure their maybe scripting involved? if so what is it and at what events in the form? Is this whole process done in the form or through Admin UI or Workebench as well? Please help!!!!!!!!!

    Hi Rahat,
    You can use the same form and enable/disable some fields according to the user's role with only little scripting. Review the steps the below:
    1-First place a hidden field ("user_role") in your form
    2-Insert a script object into your form onder "Variables" in object hierarchy and write a script for enabling/disabling the fields (regarding the value of "user_role")
    3-On the initialize and change events of the "user_role" call your script object
    4-On your process design, put a SetValue service before User tasks. In the asssignment you should set the desired user_role to the form, so that the script is triggered in your form and the fields are enabled/desiabled
    Fro further needs on your form or process design you can contact us from: http://www.kgc.com.tr/company_Contact.html
    Oguz
    http://www.kgc.com.tr

  • BADI to uncheck free item indicator (field UMSON) in PO through ME21N)

    Hi All,
    I have a requirement to remove the UMSON ( free item ") indicator while creating a PO using ME21N transaction based on the input from user. If material starts with 'P' and it is a standard order, then this field should be unchecked for that particular item. I am implementing the BADI ME_PROCESS_PO_CUST and method CHECK. However, I find that though the PO is held and not saved, the value of UMSON field is not changed.
    This is the code.
    DATA:   lt_mepoitem   TYPE purchase_order_items,
            ls_mepoitem   TYPE purchase_order_item,
            ls_mepoheader TYPE mepoheader,
            ls_head       TYPE REF TO if_purchase_order_mm,
            ls_item       TYPE mepoitem,
            ls_local      TYPE ttyp_fieldselection_mm,
            ls_inval      TYPE REF TO if_purchase_order_item_mm,
            l_error       TYPE c.
      INCLUDE mm_messages_mac. "useful macros for message handling
      ls_mepoheader = im_header->get_data( ).
      lt_mepoitem = im_header->get_items( ).
      IF ls_mepoheader-bsart = 'NB' .
        LOOP AT lt_mepoitem INTO ls_mepoitem.
          ls_item = ls_mepoitem-item->get_data( ).
          IF ls_item-matnr(1) = 'P' AND ls_item-umson IS NOT INITIAL .
            ls_item-umson = space.
            l_error = 'X'.
            CALL METHOD ls_mepoitem-item->set_data
              EXPORTING
                im_data = ls_item.
          ENDIF.
        ENDLOOP.
        IF l_error = 'X'.
          ch_failed = 'X'.
          mmpur_message_forced 'E' 'ME' '303' text-001 '' '' ''.
        ENDIF.
      ENDIF.
    Can anyone tell me what I am missing or where this can be implemented?
    Thanks
    S R

    hi,
    With Error it won' t allow you to save PO.
    What i would suggest is that
      either you give message that indicator need to checked or unchecked as per condition. and let user change is manually and 
      you check it in BADI and then save it .
      or  you change free item check as per your requirement in BADi and give a information message that this item is to be checked for  free goods or need to be unchecked .

  • Missing class indicator field from database row

    Hi,
    I have following problem :
    There is a class inheritance with root interface and 4 subclasses, they are initialized with class indicator field. If I use ReadAllQuery with an interface or some of concrete class as search class - it is working perfect, but if I try to build query with custom selected fields (addPartialAttribute) I always get an error - Missing class indicator field from database row.
    AFAIK This field have not to be mapped in Workbench to real table column, how can I tell TopLink that I will read this indicator field too by reading some custom fields ? I thought TopLink reads such fields automatically, like it does it with primary keys.
    Thank you
    Maksim

    This sounds like an issue with our partial attribute queries and inheritance as the type indicator column must always be read. Can you map the type indicator to a read-only attribute (mark mapping as read-only) and include this in your list of attributes as a work-around?
    Doug

  • Issue with Duplicate Merge Fields in PDFs

    I have been utilizing merge fields from our Salesforce instance into our Forms and Contracts for a couple of years now and have never come across this issue.  Since we utilize Salesforce, we will have certain merge fields duplicated on multiple pages.  For instance, the Record Owner's Name and Firm from their User records will be on different pages, but will be coming from the same source and need to show the same information.  Everything seems to be fine once the documents have been merged, it is printing that is causing the issue.
    If I place "Master.Owner_Name" into the PDFs on multiple pages, it will change the name to "Master.Owner_Name#1" and "Master.Owner_Name#0".  So now when our users are printing the documentation, the fields are printing out vertically.
    Has anyone seen this issue before and how were you able to resolve?
    Thank you for any assistance you can provide!

    PDF forms are not Salesforce forms and do not work in the same way.
    Within a PDF form any field with same type of field and same name will share the same value.
    All fields should be uniquely named.
    LiveCycle form behave differently and do support same field names with different values unless a field is configured as a global field.
    The usual way to have multiple copies of a from within a single PDF is to use a template to make the multiple copies and uniquely name the fields on the copy of the form.

  • Reversal Indicator Field Not reflecting Correctly In BW

    Hi All,
    The deletion indicator coming from the DataSource  2LIS_02_ITM is not working properly for few entries and in BW its mapped to Reversal Indicator (Storno)
    When we checked, we found that the deletion indicator is not working for the items which are non-statistical in a Purchase Order.
    The problem is the Non statistical items when deleted in a PO in R/3, in EKPO table the deletion indicator is set to 'X' for these PO's but when extracted into BW the Reversal Indicator Field is coming as blank but it should be reflected as "R" as per OSS note 578471. But these changes are not getting reflected into BW.
    Any suggestions guys?
    Thanks.

    AM,
    Also, what is happening is that the record with KF's as negative and Reversal Indicator as "R" is coming in PSA as well as in New Data table, but when activated its disappearing from the new data table.
    Finally its displaying in Change Log table with both the records i.e original one and the deleted one but again without Reversal Indicator "R".
    --> This behavior very much fine. Datasource:2LIS_02_ITM is to load for CUBE not to ODS.
    Please answer below:
    --> Are you loading data into an ODS in Additive or Overwrite mode..?
    --> 0RECORDMODE mapped to storn(cancel indicator...?)
    If you load data into cube, then it works fine
    Srini

  • E payment should be enabled so that the user could make payment directly from SAP and after the payment is verified ,approved and authorized by the concerned users responsible the payment should be electronically transferred to the payee's bank account th

    E payment should be enabled so that the user could make payment directly from SAP and after the payment is verified ,approved and authorized by the concerned users responsible the payment should be electronically transferred to the payee’s bank account through our bank.

    Thanks,
    I usually use the OS connection option. So as you suggest, connect without the ISP connection software.  Doing so does not by-pass the sudo command being active in Activity Monitor however. 
    On reading my post I see my failure to link the concerns of the laptop purchase with the sudo and modem. My thought here is of an intersection of known vulnerability with this widely used modem/software (via permanent sudo process activated) and that vulnerability then being known and utilised by another party(s).
    I am pursuing the issue in part with consideration to a broader possible issue of vulnerability.
    Thanks again for your thoughts and suggestions. Valued.

  • Set Value in a ME22N's field with user exit.

    Every time an PO is create in ME21N or ME22N I need that the user to input some valid Requisitioner in PO's item. These valid Requisitioners are in a Z table.
      Well, to solve this I've used the EXIT_SAPMM06E_017 exit. I call the function F4IF_INT_TABLE_VALUE_REQUEST but it is not bringing the requisitioner I've selected to the field in ME22N the field remains empty.
    data : i_usr   like zmmwfnfusr occurs 0 with header line,
           wa_usr  like DDSHRETVAL occurs 0 with header line.
    IF i_ekpo-afnam IS INITIAL. "The field resquisitioner
      MESSAGE s079(z1) WITH 'Requerente obrigatório para Workflow'
                             'Receb. de NFs.'
                      'Digite um Setor Recebedor cadastrado!'.
    v_repid = sy-repid.
    v_dynnr = sy-dynnr.
       select *                  "My table with requisitioners
       from zmmwfnfusr
       into table i_usr.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
        retfield            = 'RECEBEDOR'     "Field name of zmmwfnfusr
        DYNPPROG            = v_repid
        DYNPNR              = v_dynnr
        DYNPROFIELD         = 'TEKPO-AFNAM'    "Tried to guess 
    the field name, tried all namens..
        VALUE_ORG            = 'S'
       TABLES   
         value_tab                 = i_usr
         return_tab                = wa_usr.

    Hi,
    try with this
    process on value-request.
      field AFANAM module onvalue_request_afanam.
    and check what is the field name in the screen which you want to populate the value like (materail) Material is the Dynpro field and MATNR is the retfield
    in the module
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield        = 'LIFNR' <data element for afanam>
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'AFANAM'
          value_org       = 'S'
        tables
         value_tab       = itab
        return_tab = ret_tab
        FIELD_TAB  = FIELD_TAB
        exceptions
          parameter_error = 1
          no_values_found = 2
          others          = 3.
    this should work,
    Cheers,
    Sasi

  • Complaint qty and Ref Quantity field should be Blank in QM01

    Hi Gurus,
    When using QM01 the quantities shown in Complaint qty and Ref Quantity are from the Production Order.These fields should be shown as Zero in order to not to confuse the data entry personnel, by mistake they are leaving the fields with the same Qty from the production order as they are shown and the scrap is captured with this quantities.
    For example, the quantity to scrap will be 20,000, when it was indicated just to scrap 1,000, but the data entry person did not overwrite the quantity to 1,000 from 20000. Is there any way in standard SAP to make the Complaint qty and Ref Quantity blank, so that the user can fill it manually.

    Wanted to know if there was ever a resolution to this question.  I need a solution for the same thing.  We do not want the complaint quantity of a QM notification to default to the order quantity.  We need the inspector to fill in this quantity.

  • Composite invoking Spring Context errors with Missing class indicator field

    Hi. I’m working on a composite with a Spring Context component that is referenced in a BPMN process and have run into some issues and I was hoping you may have some insight.
    I’m able to deploy the composite successfully, however when I try testing it on the SOA Server, it fails with the exception below:
    <auditQueryPayload auditId="17008" ciKey="12">
    <dataState>
    <dataObject name="FaultMessage" isBusinessIndicator="false">
    <value> com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault} messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage} parts: {{ summary=<summary>Exception [EclipseLink-44] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.DescriptorException Exception Description: Missing class indicator field from database row [UnmarshalRecord()]. Descriptor: XMLDescriptor(com.bea.infra.events.ExtendedData --> [DatabaseTable(ns2:ExtendedData)])</summary> ,detail=<detail> Exception Description: Missing class indicator field from database row [UnmarshalRecord()]. Descriptor: XMLDescriptor(com.bea.infra.events.ExtendedData --> [DatabaseTable(ns2:ExtendedData)])</detail>} </value>
    </dataObject>
    </dataState>
    </auditQueryPayload>
    The class referenced in the error, ExtendedData, is a very simple, abstract class. Here it is:
    @XmlSeeAlso( { AssetUnregistered.class, ExtractionReassign.class,
    RelatedAssetRegister.class, ExtractionSubsequentNotify.class,
    ExtractionIntialNotify.class, AssetSubmission.class,
    ExtractionStatusChanged.class, MultiUse.class,
    ALERExtendedData.class })
    public abstract class ExtendedData {
    Do you have any thoughts or would know someone who could help?
    Thanks,
    Mike

    I've tried adding the jar to the classpath, installing the jar on the weblogic server, adding all the dependencies, and adding the jar to the project sourcepath. None of these worked either. Any Help would be appreciated.

  • How to outer join indicator field?

    Hello,
    I have a table Users with the fields id and status.
    I have a table Domains with the fields type, id, text.
    I have mapped the class User to the table Users.
    I have mapped the class Domain to the table Domains (root descriptor).
    I have mapped the class UserStatus that extends Domain to the table Domains (child descriptor).
    I have set indicator value for the class UserStatus "USER_STATUS".
    Assume that I execute ReadAllQuery to fetch all users and I want to order them by status text, I write something like
    query.addOrdering(expressionBuilder.get("status").get("text").ascending());or
    query.addOrdering(expressionBuilder.getAllowingNull("status").get("text").ascending());The problem is that the user is not fetched if its status is null, because the SQL statement generated uses inner join to join indicator field with the value, that is, SQL contains ...type = ? ..., I would like (+) operator to appear in the statement so that it would be ... type (+) = ?.
    Do you know if there is a way to force TopLink to perform outer joins on indicator fields?

    Using getAllowingNull should do this using an outer join. If you are not seeing this, please include your full query code and the SQL generated and your database platform.

  • What key fields should i set in DSO extracting data from 2LIS_02_ITM

    hi experts
    i extract data from 2LIS_02_ITM into a DSO, i know the DSO isn't a must, becoz the 2LIS_02_ITM delta type is ABR, but i want to keep the info in change log.
    so, what the key fields should i set in the dso? just ebeln and ebelp is enough?
    hunger for ur advice and thanks a lot!

    If you extract ITM toa DSO you cannot maintain a log of every change....the data will come ....but when the data must be activated the reference of the ebelp ebeln will remain only a single record....if you want to maintain all the data you must create another field in extractor with you can difference all the changes for one single ebelp ebeln...
    Regards

  • SOME FIELDS SHOULD NOT SHOWN IN THE REPORT

    Hi,
    this is to inform you that,  there is a requriment in reporting perspective (ALV),
    Requriment:
    i have to generate a ALV report which is viewed by our CFO with one t.code, in that report suppose there are 10 fields. 
    That is a specific report if some body apart from my CFO uses the same tcode to generate the same report than it has to display only 5 fields.
    if my CFO uses the same t.code all the 10 fields must be visible.
    please help me how to do it.
    regards,
    balajia.

    There are couple of ways to achieve this,
    1) - Create 2 variants, 1 variant for CFO with all the fields  & 2nd variant with only relevant fields. Then use the authorization concept, where basis can restrict the access / execution of the report with specific variants.
    From the basis view, they create role & assign this variants in one of the object ( not sure). Basis assistance required
    2) - When developing report, write the validation for the respective fields such as maintain Customize table in which maintain userID's & fields which they can access. Display only those fields to the userID who executes this report. It should check this customize table for this UserID & only those fields listed should get displayed. ( for all the fields, instead maintaining each field, you can enter "ALL",
    Eg: UserID -
    Fields
           CFO -
    ALL ( report should display all the fields)
         NONCFO-------Field1 | Field2 | Field3 | Field4 | Field5 ( only these fields should get displayed)
    Note: In Customize table either you can maintain with User ID or Role. It will be more convinient in future as well.
    Regards,
    Reazuddin MD

Maybe you are looking for

  • Can we call sql function  in java

    as i know i can call stored procedures ,but can i call pl/sql functions.

  • Table of contents links won'T work in reader

    Hi all, Im using Adobe Reader XI 11. and I noticed that in my pdf file, table of contents links wonT work in reader I browsed the internet and saw that I need to turn off reading in PDF/A mode. but that doesnt work either. Any help would be appreciat

  • Using Vi server in real time application

    HI I am  using PXIe( 4330, 6363 and 4353) devices and I want to have executable file for the calibration program  ( AI,AO verification procedure and so on). So I think is necessary to have 2 programs for each 'verification procedure', one under host

  • Firewire problems in OS 10.4

    I read the threads on this topic. People say there's a problem. But, no one has an answer. I have tried in vain to get the Target Disk Icon to appear on a second Mac over Firewire. But, No Luck. I have a half dozen G4 Mac's (DA's, QS's, MDD's) and 3

  • Can't find focus mask option under Select in CC. I have v. 14.1.1

    Want to try Focus Mask, but when I try to use it on a photograph, the Select drop down doesn't include the Select Focus option. Am I missing something? When I check for CC updates, I learn that I have latest version which is 14.1.1 x64.