ME22N - Conditions tab - Set fields as output only
Hi,
How could I block the fields "Amout"(KOMV-KBETR), "Currency" (RV61A-KOEIN), "condition price unit" (KOMV-KPEIN), "Condition Unit for document" (KOMV-KMEIN), "Numerator for converting condition units to base units" (KOMV-KUMZA) and "Denominator for converting condition units to base units" (KOMV-KUMNE) for input in the CONDITIONS tab on ME22N ?
I tried to find it out via customizing but with no sucess. Maybe because it is a table control.
Thanks in advance.
Andrew
Hi Jitendar,
You should write the code in the PBO of each subscreen .
inside the LOOP.....ENDLOOP for the table control you have to write the code for Display only.You can write your logic in the module
LOOP AT it_decl INTO wa_decl WITH CONTROL tc_rec
CURSOR tc_rec-current_line.
MODULE display_mode.
ENDLOOP.
>>>>>>>>>>>>>>>>>>>>>>>>>
MODULE display_mode OUTPUT.
IF sy-tcode = 'ZDISP'.
LOOP AT SCREEN.
IF screen-group1 = 'DIS'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDMODULE.
Message Edited
SHIBU
Edited by: shibuettickal on Jan 30, 2008 5:20 PM
Similar Messages
-
How to make pricing field as output only in sales order header and item lev
Hi ,
I want to make the field PRICING DATE as output only both at header and item level. How can i do pls guide me in detail.
Regards
SunainaHi Sunaina ,
Through User Exit you get this requirement plese take help of ABAPer to activate the user exit according to your requirement.
Try With this User Exit
Program MV45AFZZ
USEREXIT_FIELD_MODIFICATION
This user exit can be used to modify the attributes of the screen fields.
To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP. If a field has no field name, it cannot be allocated to a group.
The usage of the field groups (modification group 1-4) is as follows:
Modification group 1: Automatic modification with transaction MFAW
Modification group 2: It contains 'LOO' for step loop fields
Modification group 3: For modifications which depend on check tables or on other fixed information
Modification group 4: is not used
The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit.
This FORM routine is called up by the module FELDAUSWAHL.
See the Screen Painter manual for further information on structuring the interface.
I hope it will help you,
Regards,
Murali. -
Set fields to read-only after addInstance()
I have this function on my form "add row" which allows user to create a new row to fill in additional fields; when user click submit, the fields of the form will become read-only.
however after i add another new row into the form, when i click submit that row does not change into read-only.
this is the code for my add row: Table1.Row1.instanceManager.addInstance();
and this is the code for my submit button, whereby upon clicking the field becomes read-only
-----Test.#subform[0].Subform2[1].buttonForm.Submit::click - (JavaScript, client) -----------
Test.Subform1.IsSubmitted.rawValue = "1"; //submitted ----0 is default
Test.Subform2.Payee.access = "protected";
Test.Subform2.Name.access = "protected";
Test.Subform2.GST.access = "protected";
Test.Subform2.Amount_GST.access = "protected";
Test.Subform2.Currency.access = "protected";
Test.Subform2.Invoice_Date.access = "protected";
Test.Subform2.Invoice_No.access = "protected";
Test.Subform2.Company_Code.access = "protected";
Test.Subform2.Tax_Code.access = "protected";
Test.Subform2.Payment_Method.access = "protected";
Test.Subform2.House_Bank.access = "protected";
Test.Subform2.Description.access = "protected";
Confirm.presence="visible";
Edit.presence="visible";
Submit.presence="invisible";
Add.presence="invisible";
Table1.Row1.GL_Account.access = "protected";
Table1.Row1.DC.access = "protected";
Table1.Row1.GL_Description.access = "protected";
Table1.Row1.Amount_exclgst.access = "protected";
Table1.Row1.Tax_Code.access = "protected";
Table1.Row1.Fund_Center.access = "protected";
Table1.Row1.Cost_Center.access = "protected";
Table1.Row1.Button1.access="protected";
Test.Subform1.StaticText1.presence="invisible";
Test.Subform1.Summary.presence="visible";Hello,
Perhaps you could create a trigger for that table that prevents update, delete and even insert of rows before a specified timestamp.
CREATE OR REPLACE TRIGGER <Triggername>
BEFORE INSERT OR DELETE OR UPDATE ON <Table>
FOR EACH ROW
BEGIN
IF <RowDate> < <sysdate - <days>> THEN
Raise_application_error(-20001, 'ROW is in read only range.'
END;
null -
Hi,
In our IC webclient, when we enter a business partner, if nothing is entered in the address fields it creates ok but when we come back to change the partner again, the address fields are output only, so we can't enter anything in them. If we do enter address details when we create the partner, they are available ok for changing at a later date.
Can anyone offer any advice on how we solve this ? I've taken a look at transaction BUCG. The fields in question are set to 'optional'.
thanks,
Malcolm.anyone ?
-
Hi,
In our IC webclient, when we enter a business partner, if nothing is entered in the address fields it creates ok but when we come back to change the partner again, the address fields are output only, so we can't enter anything in them. If we do enter address details when we create the partner, they are available ok for changing at a later date.
Can anyone offer any advice on how we solve this, bearing in mind I'm completely new to BSP's and the IC Webclient.
thanks,
Malcolm.you may get a quicker response in CRM forum for this
SAP CRM: Interaction Center
Raja -
Making a field as display only in custom Infotype.
Hi,
I have to a requirement to make a field as display only in a custom infotype. This field should be greyed out while entering data via PA30 for any employee such that it wont allow to eneter data manually but it gets updated by a program. And also this field should have a default value , say, NO.
Please help me as this is too urgent.
Regards,
Binay.Hi Binay
Please go to Screen Painter SE51 for your custom infotype program MP9XXX00
9XXX - infotype number.
Go to Layout editor for your Single screen (Screen Number 2000)
Double click on the field you want to make display only
In the screen attributes DISPLAY OPTIONS for that field choose "Output Only"
Activate Layout.
If you want to code something to be populated for the field code in PAI or PBO modules in the Module pool program
Its very easy. -
Hi Gurus,
After creating a condition type & assigning it in the pricing procedure, the conditions tab & taxes field in the invoice tab have disappeared from the PO. How to overcome this?
Regards,
Kumarhii
Once this happens , immediately run SU53 transaction code , u'll come know what object is missing in ur user ID.
Some object will be missing, so it won't show .
So do that and get the authorization from Basis tem.
Check and revert -
Make SAP standard PO fields output only using ME22N?
Is there a way to suppress the standard SAP fields (output only) when the user selects ME22N, that will still allow input to custom fields which have been added to EKPO? Has anyone had to do this before? Any suggestions would be greatly appreciated!
Sharon GermanHi Sharon,
FYI, there is probably a better forum for this question, this is more of a NetWeaver discussion forum.
If I read your question correctly, your desire is to have only certain fields (some custom) available when users execute the transaction ME22N. First, don't mess with ME22N, if you desire custom performance, create a new transaction as a copy of ME22N and make available only those standard and custom fields you want. Hope this helps... -
Display only for Conditions tab in ME22N
I have a situation where certain users need to modify PO's, but need to be restricted from modifying anything in the conditions tab. Is there a way through authorization's to restrict modification to the conditions tab within ME22N without restricting functionality to anything else in ME22N?
The same result is required for ME12, but ME12 contains condition authorization objects that can be set to Activity 03 resulting in a display of conditions.
I have tried adding these authorizations to the authorization-check, with no functionality change.
I have also tried removing the display prices (activity 09) from certain authorization objects and this hides the conditions tab, but it also hides prices.
Modifying screen settings in SPRO for ME22N will not work as there are users that require modification of the conditions.
I am trying to find a solution that doesn't involve creating a custom transaction to check for condition authorization objects.David,
Check BADI definition (se18) ME_PURCHDOC_POSTED & Interface IF_EX_ME_PURCHDOC_POSTED. In that you have method posted. In that you have both the tables Old & the current. You can put a validation there & prevent users.
Hope this helps.
Bipin -
Transaction programming - Making screen fields 'output only'
Hi all,
I have a problem concerning a screen - it is so that the screen is used by several transactions - Create 'plan', Display 'plan' and Change 'plan'.
When it's called from the 'Display' transaction I want the screen to be output-only. So I wrote something like this:
MODULE modify_screen OUTPUT.
if sy-tcode = 'ZAF03'.
loop at screen.
if screen-name cp 'I_AFPL*'.
screen-input = '0'.
modify screen.
endif.
endloop.
endif.
ENDMODULE.
The problem is that this screen contains a tabstrip control. The subscreens on the pages of the tabstrip control contain table controls, and the table controls refer to some internal tables in the program.
All the fields which I want to make 'output only' are fields of internal tables beginning with 'I_AFPL' that's why the condition...
This works very well for the fields on the main screen, but not for the fields of the table controls on the tabstrip control... and I'm calling that module from the main screen and also from the subscreens of the 'pages' of the tabstrip control. In the debugger I see that the input is set to 0 but when the screen 'comes on screen' I can still do input in those fields...
Can anyone tell me what I'm doing wrong?
Thanks,Hi Ashish,
for table control to disable a column we use the cols property in the screen'..the tablecontrol-cols is set to zero to inactivate a column
Now assume the name of your table control is ZTABLECONT..double click on the screen painter on the table control..these 2 names must be the same....
if you need to disable columns of table control as a part of user action..like say click of a button..it can be entered in PAI by checking the sy-ucomm
data declaration:
data : cols like line of ZTABLECONT-cols.
Case sy-ucomm.
when 'PUSH'.
loop at ZTABLECONT-cols into cols.
if cols-screen-input = '1'.
cols-screen-input = '0'.
endif.
modify ZTABLECONT-cols from cols index sy-tabix.
endloop.
endcase.
This will disable all the columns
for a particular column do the following
For this imagine you have 5 columns
in the below code
index = 1 => column 1
index = 2 => column 2
index = 3 => column 3
index = 4 => column 4
index = 5 => column 5
in the below code , only column2 will be disabled....
so whicever column you want to disable ..just give the index
for multiple disabling..just write the code accordingly
LOOP AT ZTABLECONT-cols INTO cols WHERE index = 2.
IF cols-screen-input = '1'.
cols-screen-input = '0'.
ENDIF.
MODIFY ZTABLECONT-cols FROM cols INDEX sy-tabix.
ENDLOOP.
Pls check and revert....
Regards
Byju -
User defined field not visible "Conditions" tab
I have created a user-defined field Z_E_PREIS that I want to use as a result-type of user field in condition table. When using a condition record that has this field, the field is not visible inthe "Conditions" tab of the transaction item. Why is that?
Customizing activities done:
- data element Z_E_PREIS (CHAR10) created with SE11
- field catalog: field name "Z_E_PREIS" created in "Fields NotContained" tab, referring to data element Z_E_PREIS
- BAdI /SAPCND/ROLLNAME activated for this field, for contexts CONTRACTand PRODUCT
- condition table CUS9051 four fields:o search fields: sales org., distr.ch. and producto result field: Z_E_PREIS
- access sequence Z951 with the fields from cond.tbl CUS9051- condition type ZZ51 using access sequence Z951, manual maintenanceallowed- pricing procedure ZZ901 with one condition type: ZZ51
- determination of pricing procedure: sales org. 50004458 -distr.ch.01 - doc.pr.proc.Z
- customer pr.proc. 1 => ZZ901
- created transaction type ZF12 (doc.pr.proc Z) and item category ZV12and item category determination
Master Data maintenance:
- created condition maintenance group ZPRODCRM: added condition typeZZ51
- condition maintenance group ZPRODCRM assigned to application CRM inMaster Data
-> Products -> Special Settings for Sales Operations- created product ZTEST3, item category group U001, distributionchain "Rel Three - 01"
- in ZTEST3, created three condition records for ZZ51 (sequential 2-week periods). User field Z_E_PREIS "Price Key" maintained for each of them.
Best regards, AndersHi Raja,
Prior to trying Gordons option of unmarking and remarking them i would suggest you do a little more investigation as this can potentially change the field names in XL report and if you have any reports using them they may stop working (it can add a post fix of _1).
Firstly, what are the fields set as in the User Defined Fields window in XL reporter? Light Dimensions, Dimension Attribute or Measure? If its a Dimension Attribute for example on the Business Partner UDF, it will not be visible in the tab section but should be shown if you drag and drop the Business Partner dimension in the report, then right click and choose display more attributes (dimension attribute UDFs will be in this list). Light Dimensions and Measures should appear in the tabs.
If they are set as a light dimension or measure and are not in the tab section, has this only just started happening or have they never been visible? If its just started happening, having you recently upgraded to a new patch? If so, in future you need to run a script on the Company and Common database prior to the patch upgrade. If you did not run these scripts you will need to do Gordons solution but as I say, if any reports have UDFs in these may not work after and you will have to manually edit them.
Regards,
Adrian -
Tables listed in Result set field selction tab against Standard Data Objects in MDO configuration
On what basis are the tables gettting filled in the Result set field selction tab against Standard Data Objects in MDO configuration.
Only the handler class is specified before it gets filled.
Vivek.
Tags edited by: Michael ApplebyHi Vivek,
I would also recommend providing the version of the product either in the body of your discussion or in the tags (or both, preferred). If you are installing it on SMP 2.3 or some other platform, please add that as well. I have updated your tags and assigned the correct Category. Since there are so many different technologies in SAP for Mobile, tags and Categories help the helpers find your post and help you find a solution.
Thanks, Mike -
Disable or Hide or INACTIVE the CONDITIONS tab in ME22N(Change Pur.Order)
Hello,
We want to hide or Inactivate or greyed out all fields of CONDITIONS tab at 'Item Detail Level' while editing or changing Purchase Order(ME22N) for particular PO type.
I am not able to find the particular BADI or Enhancement or SCRREN EXITS, so that I can make greyed out all the fields of CONDITIONS tab at 'Item Detail' level while editing or changing Pur.Order(ME22N)
Regards,
MaheshHi Mahesh,
[http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
[Hide Conditions|Hide conditions in PO;
Create a transaction variant and try.
Regards,
Madhu.
Edited by: madhurao123 on Aug 9, 2011 9:30 AM
Edited by: madhurao123 on Aug 9, 2011 9:34 AM -
How to make 'Overall Limit' field as display only in ME22/ME22N
Hi,
I want to make the 'Overall Limit' field as display only in transation ME22/ME22N (only for Service Items).
I can make the field display only for ALL Service Items by going to:
SPRO u2013 IMG - Material Management - External Services Management - Define Screen Layout
and making the 'Overall Limit' display only for PT1 (Blanket Items). But this also stops any entry into this field even for creation of Purchase Orders! When I try the same thing for ME22 (Change Purchase Order) it does not work.Hi
You can make it greyed out like this:
Go to materials management -> external service management -> define screen layout -> copy field selection key ME22 -> enter new key as ME22N -> choose category of field selection to 2 -> click on value limit -> make overall limit as display.
Then for Tcode ME22N, this field will be greyed out.
Thanks -
Making parameter fields output only dynamically
Hi all!
I have four different radiobuttons in a selection screen and when some of them are chosen I want some parameter fields in the selection screen to be output only. Is that possible or do parameter fields have to be made output only in the at selection-screen output event?
Thanks
MagnusHi,
check this code :
PARAMETERS: r1 RADIOBUTTON GROUP rad1 DEFAULT 'X',
r2 RADIOBUTTON GROUP rad1.
PARAMETERS: TXT1(10) type c,
TXT2(10) type c,
TXT3(10) type c,
TXT4(10) type c.
implement below code under AT SELECTION-SCREEN OUTPUT event.
AT SELECTION-SCREEN OUTPUT.
When user selects the first radio
IF r1 = 'X' .
LOOP AT SCREEN.
IF screen-name = 'TXT3' OR screen-group1 = 'TXT4'.
screen-input = '0'.
MODIFY SCREEN.
ELSEIF screen-name = 'TXT1' OR screen-group1 = 'TXT2'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF r2 = 'X' .
LOOP AT SCREEN.
IF screen-name = 'TXT1' OR screen-group1 = 'TXT2'.
screen-input = '0'.
MODIFY SCREEN.
ELSEIF screen-name = 'TXT3' OR screen-group1 = 'TXT4'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Regards
Appana
*Reward Points for helpful answers
Maybe you are looking for
-
I can't use 3g after updating my iphone4 to ios5.
Hello if i want to use 3g on my iphone 4 i have to restart the phone. after restarting all works greate until i stop 3g, after that ihave to restart my phone to be able to use it again. this happend after updaiting to ios5. can somewone help with thi
-
Yesterday's Updates (09.11.11) udev/kernel broke usb support
that's right... udev spits out an error on boot i can't see, because it's CLEARED by the login prompt... again. i can't do anything but hit the reset/power off button, because somehow my usb keyboard doesn't do anything. i only know that udev seems t
-
Oracle RTC Integration Service: Join Meeting
I'm trying to have a jsp page where I take the required parameters from the use form the xml file using the xsd file. How do I pass the xml document in the url as xmlin param???? Do I have to give the path of the xml document ....I'm trying to do tha
-
Every time I start PS I get several quick command screen flash on and off (dos boxes). One of those boxes stays on (eok_lvalue_adjust) and I get the message clc.exe has stopped working. This happens again a few seconds later with the same message. If
-
How to efficiently support "Like"-masked range queries against a CLR UserDefinedType
Hi all, Is there any way to efficiently support "Like"-masked range queries against a CLR UserDefinedType? I've never written a UDT before and am just beginning with one that has a Varbinary type as the underlying physical type for persistence but