Reg:T.code cj20n

hi,
i want to grayout one filed in T.code cj20n
how to do this one please give me solution

thanks for ur reply,
    here requirement is that filed is coming toeach wbs element in userdefiend tab strip.
they want that field value should come in 1 st wbs element only later they dont want to enter value
form 2nd wbs element onwards we need gray out that field in cj20n t.code.
please give me help on that.

Similar Messages

  • Substitution rule: ania-aktiv with proj-plsez(t-code: CJ20N)

    Hi,
      I am trying to create a substitution rule in transaction OPSN. On project save ania-aktiv is to be substituted with proj-plsez based on a condition in t-code: CJ20N.
    I am aware of the client specific user exits and i have successfully set substitution rule for another field( Copying standard program into a custom program and setting the configuration in SPRO).
    I am facing problem to set substitution rule for ania-aktiv as these fields are not available in the exit. I could populate only PRPS and PROJ fields and not ANIA fields.
    Can any one please give a solution for this.
    Thanks in advance

    I will suggest you to use <b>BADI PROJECTDEF_UPDATE</b>, Method <b>AT_SAVE</b>. Inside your implementation, you can call another function module to update ANIA fields.

  • How to change the Tab Strip name in T-Code CJ20N?

    Dear All,
    I have done one Screen Exit to add 5 additional fields in the T-Code CJ20N using Enhancement CNEX0007.
    I got one extra tab "Cust. enhancement" in T-Code CJ20N.
    Now my requirement is that the name of the Tab Strip "Cust. enhancement" should be changed into "User Tab2".
    Can any one guide me how to do that?
    Thanks & Regards,
    Neeraj

    hi niraj
    how u add fields in cj20n
    please dive me steps
    of that.
    Thanks in advance
    chetan

  • How to find User Exits/ Enhancments/ BADI's for T-code CJ20N

    Hi All,
        In T-code CJ20N, assume there are two fields A & B. User will input value in A, based on A value I need to fill B field. So I need to find first suitable User Exit/ Enhancment/ BADI.
    Kindly help me in this regard. Pls tell me how to find User Exit/ Enhancment/ BADI for a given t-code.
    Regards
    Jaker.

    Hi,
    Check the following , this might help,
    1. CNEX0037
    2.CNEX0038
    3.CNEX0039
    Regards
    Kiran Sure

  • HT2240 I purchased a QT Pro Reg. Code Key. When I install it in the QT Preferences Panel, I get an: "Invalid Registration" note at the bottom, next to the "Buy QuickTime Pro" button to the right. Both on a desk top and a laptop. Win 7, QT version 7.7.1. N

    I purchased a QT Pro Reg. Code Key. When I install it in the QT Preferences Panel, I get an: "Invalid Registration" note at the bottom, next to the "Buy QuickTime Pro" button to the right. Both on a desk top and a laptop. Win 7, QT version 7.7.1. No joy! I've been on the phone with Apple for a little more than an hour, so far. They have my money. anyone have any Ideas? Just kiss the thirty bucks goodbye?

    You,Sir, are "The Man"! I followed the instructions and - viola - Joy in Mudville. Thank you, keep up the great work. Even the "Apple" people don't seem to know this. I was on the phone with them, passed from one to another, for over an hour. While waiting I stumbled on your advise and I was made free! If they ask you, charge them a mint for the information. You Sir have gone where no Apple has gone before.

  • How to create PR using T.code CJ20N

    Dear all,
    I am a MM guy, i want to test the scenario in my IDEAS system
    how to create a PR with CJ20N t.code,based on that i want to create PO to vendor please provide me detials steps .
    Please consider me as a Enduser
    if any documentation please send to svgk111@gmail
    points will be rewarded
    Regards
    venu gopal
    Edited by: venu kk on Jun 26, 2008 7:35 AM

    Hi Venu,
    Reply given by Rahul Tyagi is correct. Another way to get PR thru CJ20N is :
    Open CJ20N , Open your Project by clicking onto the Open Icon --> Click on the network --> Put the description of the PR in the description field > Put WBS element in the WBS element field by taking the columns to the right hand side.> Select the particular line item --> Click on to the Component Overview icon at the bottom --> Put your MM into the Material Field --> Put the requirement qty. -->Now select the item category as L for Stock Item and N for Non Stock
    item , then one POP UP window will appear --> Select " Third Party Order" --> Then put your customer number and press enter --> Save the document.
    Now , again open CJ20N and select the particular Activity ---> select the material component attached to that activity and on the right hand screen  you can see the PR number.
    Hope this will also help you
    Regards,
    Dhruv Kumar Malhotra

  • Reg:T-CODE for open and close period for materials(new plant).

    hi sap guru's
    T-code for following process
        can anybody send me , how to create calendar to new plant . and what is the T-code to be use for open and close period of materials for new plant.
    thanks
    sakthi..

    Hi Sakthi,
    I am assuming that you are asking about the factory calendars which are assigned while difing the plant.
    Factory calendars are created through transaction "SCAL".
    Opening and closing of MM periods can be done through transaction MMPV.This is based on the company code.Before using MMPV ,you can look the last opened period in the transaction MMRV.
    Reward points if it helps.
    Regards
    Karan

  • Reg:package code to refresh materialized views

    i am new to pl/sql packages and procedures.i want it to execute for running mappings in informatica which takes 0 and gives 1 when executed successfully
    create or replace PACKAGE BODY pkg_refresh_mv as
    procedure prc_mv (p_mv_name varchar2) is
    begin
    dbms_mview.refresh (p_mv_name);
    end prc_mv;
    procedure refresh_all_mv (proc_response IN OUT number) is
    begin
    dbms_mview.refresh('materialized view','C');
    dbms_mview.refresh('materialized view','C');
    proc_response := 1;
    exception
    when others then
    proc_response := 0;
    end refresh_all_mv ;
    end pkg_refresh_mv;
    when i execute this code i get the following errors
    PLS-00201: identifier 'PKG_REFRESH_MV' must be declared
    PLS-00304: cannot compile body of 'PKG_REFRESH_MV' without its specification
    what needs to be changed
    thanks

    try this one :
    CREATE OR REPLACE PACKAGE pkg_refresh_mv
    AS
       PROCEDURE prc_mv (p_mv_name VARCHAR2);  
       PROCEDURE refresh_all_mv (proc_response IN OUT NUMBER);
    END pkg_refresh_mv;
    CREATE OR REPLACE PACKAGE BODY pkg_refresh_mv
    AS
       PROCEDURE prc_mv (p_mv_name VARCHAR2)
       IS
       BEGIN
          dbms_mview.refresh (p_mv_name);
       END prc_mv;
       PROCEDURE refresh_all_mv (proc_response IN OUT NUMBER)
       IS
       BEGIN
          dbms_mview.refresh ('materialized view', 'C');
          dbms_mview.refresh ('materialized view', 'C');
          proc_response := 1;
       EXCEPTION
          WHEN OTHERS
          THEN
             proc_response := 0;
       END refresh_all_mv;
    END pkg_refresh_mv;
    /

  • Reg: ABAP code for customer exit variable

    Hi Team,
    I have a requirement to create a report  based on an multiprovider 'TEST'.
    Based on the input selection of Period; I need to define a Keyfigure X which will be a count of value available for that Period in one cube involved in the MProvider. E.g.: If for period 12, the value = 1 in the cube; then this keyfigure will give the count as 1 in the output of the report.
    The second KF Y values are available in the second infocube directly: ibut should be displayed based on the value of the KF 'X' with logic as if X > 0 ; then the values should be read from the second infocube in the report. & if X <= 0; no values should be displayed.
    Please help me with the ABAP code to be used in the query level.
    Thanks & Regards
    Sneha

    Hi Sneha,
       I would suggest the following
    1.Please change the design the cube and include a key figure Zcount that would be incremented for each record.
    Now as per the first requirement you need to get the count for a Input Period from First cube
    This would be very simple to implement , all you have to do is restrict this KF with the Input characteristic/variable and also the First Infocube.
    2.You can also use exception aggreation counter to address this requirement . Even in this case you need to include a dummy key figure in the cube and the exception characteristic would be the period in the Infocube.
    But performance would be on downside when compared to the first one.
    3.The second requirement is quite simple
    Create a formula KF as follows
      (KF1 > 0)*KF2 . 
      KF1 > 0 is a logical operation and it would always return 1 on success and 0 otherwise.
    Hope this helps,
    Regards,
    James Harold.

  • Reg Tax Codes and Plants

    Hi Gurus,
    1) I am creating a PO. It doesnt have a Material as it is a text req converted to PO. I am having 10 plants which uses various Tax codes which will auto populate according to the plants. Now my requirement is i want to populate a tax code (XX) for 8 plants i am using and (YY) for 9th Plant and (ZZ) for 10th Plant.
    I dont have a material number. But i am having a Vendor Number, a Plant. We are not creating the PO's manually. This will be done by a Batchjob, so manually entering is also not possible.
    2) Also i want to overwrite the Tax code which is populating automatically with the Tax code from PIR. Please advice where we will be maintaining the Config for Tax Code and Plant/Company code.
    Please advice on this issue and how to proceed further.Thanks for your help in advance.
    Thanks,
    Sakkithyan

    Hi,
    If you want to default the tax code in the purchase order then create info record using transaction ME11..
    If you want to default tax code in MIRO then do it using transaction OMR2..
    Regards,
    Chintan Joshi

  • Reg:tax codes

    hi
    my client is having 5 different locations and for that 5 locations i have created different tax codes but the users should view only the tax codes that are applicable for their location only  how to do this???

    Hi,
    We have created a UDF on those Master form where we want the filtration as per location :
      Sub SetConditionToTax(ByVal FormID As String, ByVal CFL_ID As String)
            Try
                Dim oRS As SAPbobsCOM.Recordset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                Dim oCFL1 As SAPbouiCOM.ChooseFromList
                Dim oCons As SAPbouiCOM.Conditions
                Dim oCon As SAPbouiCOM.Condition
                Dim emptyCon As New SAPbouiCOM.Conditions
                oRS.DoQuery("Select Name from OUDP Where Code=(Select Department from OUSR Where USER_CODE='" & oCompany.UserName & "')")
                oCFL1 = oApplication.Forms.Item(FormID).ChooseFromLists.Item(CFL_ID)
                oCFL1.SetConditions(emptyCon)
                oCons = oCFL1.GetConditions()
                oCon = oCons.Add()
                If oRS.RecordCount <> 0 Then
                    oCon.Alias = "Code"
                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_START
                    oCon.CondVal = Trim(oRS.Fields.Item("Name").Value)
                Else
                    oCon.Alias = "Code"
                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                    oCon.CondVal = "-1"
                End If
                oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR
                oCon = oCons.Add
                oCon.Alias = "Code"
                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_START
                oCon.CondVal = "Exempt"
                oCFL1.SetConditions(oCons)
            Catch ex As Exception
                oApplication.StatusBar.SetText(ex.Message)
            End Try
        End Sub
    GRPO Class where we are calling it :
    Public Class Purchase_GRPO
        Dim GRPO_Form As SAPbouiCOM.Form
        Dim oDBs_Head As SAPbouiCOM.DBDataSource
        Dim objCombo As SAPbouiCOM.ComboBox
        Sub CreateForm(ByVal FormUID As String)
            Try
                Dim oItem As SAPbouiCOM.Item
                Dim oStatic As SAPbouiCOM.StaticText
                Dim oEditText As SAPbouiCOM.EditText
                Dim oCombo As SAPbouiCOM.ComboBox
                Dim oButton As SAPbouiCOM.Button
                GRPO_Form = oApplication.Forms.Item(FormUID)
                'Me.SetConditionToBPCFL()
                'Me.SetConditionToWarehouse()
                If (oCompany.UserName <> "manager") Then
                    ''Updated IDs for CFL....
                    SetConditionToBPCFL(GRPO_Form.UniqueID, "2")
                   ConditionToTax(GRPO_Form.UniqueID, "26")
                End If
                Me.SetDefault()
            Catch ex As Exception
                oApplication.StatusBar.SetText(ex.Message)
            End Try
        End Sub
        Sub SetDefault()
            Try
                'Me.SetConditionToBranchType("Tax")
                SetSequence(GRPO_Form.UniqueID, "88", GRPO_Form.Items.Item("88").Specific.Selected.Description)
            Catch ex As Exception
                oApplication.StatusBar.SetText(ex.Message)
            End Try
        End Sub
        Sub MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
            Try
                Dim oForm As SAPbouiCOM.Form = oApplication.Forms.ActiveForm
                If oForm.TypeEx = "143" Then
                    If pVal.BeforeAction = True Then
                        Select Case pVal.MenuUID
                            Case "1288", "1289", "1290", "1291"
                                oApplication.StatusBar.SetText("Navigation is not allowed for this user", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                                BubbleEvent = False
                        End Select
                    ElseIf pVal.BeforeAction = False Then
                        Select Case pVal.MenuUID
                            Case "1281", "1287"
                                SetSequence(GRPO_Form.UniqueID, "88", GRPO_Form.Items.Item("88").Specific.Selected.Description)
                        End Select
                    End If
                End If
            Catch ex As Exception
                oApplication.StatusBar.SetText(ex.Message)
            End Try
        End Sub
        Sub ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean)
            Try
                Select Case pVal.EventType
                    Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD
                        If pVal.BeforeAction Then
                            Me.CreateForm(FormUID)
                        End If
                    Case SAPbouiCOM.BoEventTypes.et_LOST_FOCUS
                        If (pVal.ItemUID = "38" Or pVal.ItemUID = "39") And (pVal.ColUID = "2004") And pVal.BeforeAction = False Then
                            Dim oMatrix As SAPbouiCOM.Matrix = GRPO_Form.Items.Item(pVal.ItemUID).Specific
                            If oMatrix.VisualRowCount <> pVal.Row Then
                                Dim oRS As SAPbobsCOM.Recordset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                                oRS.DoQuery("Select Name from OUDP Where Code=(Select Department from OUSR Where USER_CODE='" & oCompany.UserName & "')")
                                If Trim(oMatrix.Columns.Item("2004").Cells.Item(pVal.Row).Specific.Value).Equals(Trim(oRS.Fields.Item("Name").Value)) = False Then
                                    oMatrix.Columns.Item("2004").Cells.Item(pVal.Row).Specific.Value = oRS.Fields.Item("Name").Value
                                End If
                            End If
                        End If
                    Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
                        Dim oCFL As SAPbouiCOM.ChooseFromList
                        Dim CFLEvent As SAPbouiCOM.IChooseFromListEvent = pVal
                        Dim CFL_Id As String
                        CFL_Id = CFLEvent.ChooseFromListUID
                        oCFL = GRPO_Form.ChooseFromLists.Item(CFL_Id)
                        Dim oDT As SAPbouiCOM.DataTable
                        oDT = CFLEvent.SelectedObjects
                        Try
                    Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
                        If pVal.ItemUID = "20" And pVal.BeforeAction = False Then
                            objCombo = GRPO_Form.Items.Item("20").Specific
                            Dim oRS As SAPbobsCOM.Recordset
                            Dim strEmp As String
                            oRS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                            oRS.DoQuery("SELECT T0.[Code], T0.[name] FROM OUDP T0,OUSR T2 WHere  T2.Department=T0.Code and T2.USER_CODE='" & oCompany.UserName & "'")
                            Dim strLocation As String = oRS.Fields.Item("name").Value.ToString()
                            If objCombo.Selected.Description.Equals("") = False Or objCombo.Selected.Description.StartsWith(strLocation) = False Then
                                Dim s As String = "select SlpName from oslp where memo='" + strLocation.Trim() + "'"
                                oRS.DoQuery("select SlpName from oslp where memo='" + strLocation.Trim() + "'")
                                strEmp = oRS.Fields.Item(0).Value.ToString()
                                Dim Group As String = objCombo.Selected.Description.ToString()
                                If strEmp <> Group Then
                                    oApplication.StatusBar.SetText("Selected User Does Not Belong to '" + strLocation + "'Location ", SAPbouiCOM.BoMessageTime.bmt_Short,
    SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                                    BubbleEvent = False
                                    objCombo.Select(strEmp, SAPbouiCOM.BoSearchKey.psk_ByDescription)
                                End If
                                '  Return
                            End If
                        End If
                        '    SelectEmployee("20", GRPO_Form)
                        'End If
                        If pVal.ItemUID = "88" And pVal.BeforeAction = False Then
                            SetSequence(GRPO_Form.UniqueID, "88", GRPO_Form.Items.Item("88").Specific.Selected.Description)
                        End If
                    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
                        If pVal.ItemUID = "67" And pVal.BeforeAction = True Then
                            SetConditionToBPCFL(GRPO_Form.UniqueID, "4")
                        End If
                        'If pVal.Before_Action = True Then
                        '    If pVal.ItemUID = "1" And pVal.ActionSuccess = False And GRPO_Form.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
                        '        Dim strVal As String = oDBs_Head.GetValue("U_InvType", 0).Trim
                        '        Dim strVal1 As String = GRPO_Form.Items.Item("t_BrnTyp1").Specific.value
                        '        If (strVal = "BT" And strVal1 = "") Then
                        '            oApplication.StatusBar.SetText("Please select the In-transit warehouse", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                        '            BubbleEvent = False
                        '        ElseIf (strVal = "BT" And strVal1 <> "") Then
                        '            Dim strVendor As String = GRPO_Form.Items.Item("4").Specific.value
                        '            Dim oRS As SAPbobsCOM.Recordset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                        '            oRS.DoQuery("Select U_InTransWH from OCRD where Cardcode ='" & strVendor & "'")
                        '            Dim strITrWhs As String = Trim(oRS.Fields.Item("U_InTransWH").Value)
                        '            If (strITrWhs <> strVal1) Then
                        '                oApplication.StatusBar.SetText("Select the correct In-transit warehouse", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                        '                BubbleEvent = False
                        '            End If
                        '        End If
                        '    End If
                        'ElseIf pVal.Before_Action = False Then
                        If pVal.ItemUID = "1" And pVal.ActionSuccess = True And GRPO_Form.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
                            Me.SetDefault()
                        End If
                        'End If
                End Select
            Catch ex As Exception
                oApplication.StatusBar.SetText(ex.Message)
            End Try
        End Sub
        'Sub FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean)
        '    Try
        '        Select Case BusinessObjectInfo.EventType
        '            Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD
        '                If BusinessObjectInfo.BeforeAction = False Then
        '                    Me.SetConditionToBranchType(oDBs_Head.GetValue("U_InvType", 0).Trim)
        '                    GRPO_Form.Items.Item("t_BrnTyp").Specific.Value = oDBs_Head.GetValue("U_BrnType", 0)
        '                    GRPO_Form.DataSources.UserDataSources.Item("U_BrnType1").ValueEx = oDBs_Head.GetValue("U_BrnType", 0)
        '                End If
        '            Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD, SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE
        '                If BusinessObjectInfo.ActionSuccess = True Then
        '                    If Trim(oDBs_Head.GetValue("U_InvType", 0)).Equals("BT") = True Then
        '                        Me.StockTranfer()
        '                    End If
        '                End If
        '        End Select
        '    Catch ex As Exception
        '        oApplication.StatusBar.SetText(ex.Message)
        '    End Try
        'End Sub
    End Class

  • Reg:Tax code validity period

    Hi All
    For the condition type jmop for the key combination tax code i'm not getting the validity period
    I have checked the
    1. condition type jmop (val dt from & Val dt To)
    2.access secequence
    In Fv11 i'm not getting it
    Plz guide me

    > 1. How to check tax code validity period?
    No tax code doesn't have any validity period
    But when we maintain condition record for tax calculation that condition record has validity period which we maintain in FV11
    > 2. Is condition records mandatory for calculation of taxes.
    If you are working with TAXINN which is condition record based tax procedure maintenance of Condition record is mandatory
    With formula based TAXINJ procedure no need to maintain,
    For more on this Topic read
    http://wiki.sdn.sap.com/wiki/display/ERPLO/DifferencebetweenTAXINJandTAXINN
    If this is mandatory , then how tax calculated for non material master items?
    It all depends what access sequence you have assigned to your tax condition type
    Lets take an example for Excise duty which is determined at material level
    Ex1 >Condition type for Basic Excise duty is JMOP here we assign access sequence JTAX
    Now to maintain condition record for JMOP you will find material,vendor.Plant (all defined in access sequence JTAX)
    Ex 2>Now Say service tax condition type JSER (or what ever) which is not dependent on Material (as even Po without material master can have service tax)
    So for service tax condition type we assign access sequence as MWST
    which is defined only at country level
    You can find all these settings under T.code OBYZ
    I hope it clarifies your doubt at least to some extent
    Revert back for any further clarification

  • Reg company code

    Hi,
        i have 2 doubts.
       1) how to link posting variant to company code.
        2) in asset management how to link number range to asset class.
    regards.
    venkat.

    1) how to link posting variant to company code.
    Create Posting period variant:
    Use IMG menu path:  IMG/Financial accounting/Financial Accounting Global Settings/Document/Posting periods/Define variants for open posting periods
    Then assign variant to company code:
    Use IMG menu path:  IMG/Financial accounting/Financial Accounting Global Settings/Document/Posting periods/Assign variants to company code
    2) in asset management how to link number range to asset class.
    define ur number range for ur asset class via OAOA

  • Reg process code FM

    HI friends,
    We use same process code in outbound and inbound? If different process code means how to do? If different process code means function codes are differs or same ...please give me  clear explanation
    regards
    Mani

    Hi Mani,
    Outbound and inbound process codes are different and the function modules are also different for each process code.
    For outbound, the process code is defined in the messagecontrol (in WE20 partner profile definition).
    For inbound the process code is defined in the inbound options.(in WE20).
    Every process code will have to be linked to message type and function module in WE64.
    In WE57 also you need to define the link between logical message type and the FM.
    Hope this helps.

  • Reg:DISPlay code in wdabap

    Hi Experts
    How are you?Hope all are doing great and fine.
    Actually i am very new to wdabap coding but working on that technology where i have designed an wdabap application in that  there is a button named display when i click on that button all the UI elements what ever i have used in the application should be displayed in non-editable mode ,means just it should display in inactive state.
    could you please share your knowledge regarding coding.
    Thanks in Advance.
    Regards
    Deepika

    hi
    do not use IMPORTING parameter for set_attribute method .. map ur component controller context nodes to view and disable the fields in the event handler ..
    1) bind the read Only property of all the UI elements which you want to be in display mode to that context attribute :
    when i do this all are in non editable mode but this should happen when i click on display button only.but when i test the application all are in non edit mode if i do above procedure.
    yes , this is why u need to create a action for ur button .. u can find a Action property for ur button UI .. create a action and then write the code for enable/disable of the fields in this method
    can please give me the coding how to write in
    refer to my earler post ..
    one correction ..
    set the value to ' ' for disable and 'X' for enable .. instead of '01' and '02' ... use the set_attribute method
    2)Initially if you want all those to be in editable mode, then you can set that attribute value to abap_false:
    Is this should be written in wddoint method of the application.
    by default the fields are in the enable mode. if u wish them to be disable mode, u can write the coding in WDDOINIT method..
    u can accordingly change them to enable/disable them in the onAction method of ur button UI
    3)event handler of your button, set that attribute to abap_true so that all the UI elements will becom readonly:
    Is this should be written in display button action.
    if u set the attribute in the event handler  to 'X' or 'ABAP_TRUE' fields will be in enable mode
    if set to ' ' or 'ABAP_FALSE' vice versa ..
    regards,
    Amit

Maybe you are looking for

  • How to achieve the querys in one statement

    <p> Hi,everyone: I have a table: create table my_cube (model char(10), theyear char(10), color char(10), units_sold smallint); </p> <p> To list the unit-sold percentage of the 'chevy' model in 1990, i write: </p> <p> select 1990, 'Chevy', round(( (se

  • Rip audio from protected video

    Hi all, I have a not sanctioned question, but I've tried going about it all the right ways already! My son loves a particular TV show, that has a great soundtrack. I want to be able to have the music to play without having the video (or play the enti

  • No effect on the revaluation value of the asset after write-off

    My user have written off Some of the Assets from  Transaction ABAV; only  Book value of the Assets is effecting in Balance Sheet; but there is no effect in the Revaluation value. When the user is doing the  REPEAT depreciation run in AFAB, it is not

  • Enable shipping condition in delivery header to be editable

    Hallo experts, need your advise on below: Currently the delivery header shipping condition is not allowed to be changed in VL01n or VL02n, it's somehow "grey out". How can I make this field editable? Is it by user exit or transaction variant? Honestl

  • Every incoming email is marked as junk

    Every new email that my wife receives is marked as junk. However, it doesn't send it to her junk folder. Also, it will not allow you to click "not junk" although you can manually click on the junk icon and it get rid of it. Any ideas would be greatly