Grayout fields in VA02
HI,
I need to gray out the fields ( like rebate description,external description,validfrom and validto) in VA02 transaction.
Please tell me the method of how to do this..? Do i need to write code in user-exit?.
thanks
Ashok
Hi,
Create a transaction variant using SHD0 for ttransaction VA02.
You can use that Transaction variant that would serve your problem.
Whats your actual requirement do you just want to disable/enable the fields generally or some specific users etc...
Hope this helps you.
Regards,
Ranjith Nambiar
Similar Messages
-
All fields should be in Display mode except Plant field in Va02 and VA32
Respected Guru's,
I want all the fields in VA02 and VA32( Change t-codes) to be in display mode, further user should be able to change the Plant value alone in sales tab.
Is it possible to restrict it with the help of Authorization or does it requires customization.
Please Help me in this regard.
Thank tou,
DayaThanks for your information
What is the transaction code for that
ME29N - DISPLAY SCREEN SETTING ALREADY I HAVE DONE
account assignment category is working only at item overview level, input - k iS IN DISPLAY MODE
NOT account assignment tab fields
please give the transaction code information so that it will be helpful for me -
How to noneditable the field in va02 without modify userexit
I use BAPI_SALESDOCU_CREATEFROMDATA1 to create sales order now i want noneditable the field in va02 without modify userexit
Edited by: krupa jani on Nov 8, 2008 8:41 AMHi,
Set the read only property.
Check this interface IWDInteractiveForm
http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/adobe/api/IWDInteractiveForm.html
Thanks -
Exit/bAdI for changing the item level field in VA02.
Dear Guruss...
I am facing a problem while trying toi change the account assignment group in VA02. The field is present at the iteem level in the tab BILLING.
When I change the field by choosing one of the values provided in the search help and enter, the value is again reset to its initial value. However if I change the value and SAVE (without pressing enter) then the value is saved.
The technical field name is VBAP-KTGRM, I have checked in the include:MV45AFZZ by putting break-points at all the forms but unfortunately none of them is getting triggered when I press enter.
During the debugging I found tha the values of the structure VBAP are overwritten by those of XVBAP everytime I press enter.
I also checked for the bAdI but can not get any help.
Is there any bAdI or exit that can help me for this????
Thanks in Advance......
Abhi.....Hi Digvijay
these are some of the enhancements/badi's which is related to t-code va02. just check it out
Transaction Code - VA02 Change Sales Order
Enhancement/ Business Add-in Description
Enhancement
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
V46H0001 SD Customer functions for resource-related billing
V45W0001 SD Service Management: Forward Contract Data to Item
V45S0004 Effectivity type in sales order
V45S0003 MRP-relevance for incomplete configuration
V45S0001 Update sales document from configuration
V45P0001 SD customer function for cross-company code sales
V45L0001 SD component supplier processing (customer enhancements)
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45E0001 Update the purchase order from the sales order
V45A0004 Copy packing proposal
V45A0003 Collector for customer function modulpool MV45A
V45A0002 Predefine sold-to party in sales document
V45A0001 Determine alternative materials for product selection
SDTRM001 Reschedule schedule lines without a new ATP check
SDAPO001 Activating Sourcing Subitem Quantity Propagation
Business Add-in
BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001 SD Customer functions for resource-related billing
Regards
Zulfikhar ali
Edited by: Zulfikhar Ali Bhutto.N on Sep 23, 2011 11:15 AM -
Addition of new field in VA02 and VA01 in additional data tab B
Hi,
I have added a new field called delivery date to additional data tab B in both tcodes va01 and va02. Now, while creating or changing a sales order, if the Sales group is I00 then this field should be filled up mandatorily. For va01 and va02 i have done all the required coding where all this is done on pressing the save button when we are in the additional data b tab.It would throw an error message if the date is wrong and a wrning if it is empty (provided sales group is I00). I did the coding in 4462 screen.
My requirement now is that if somebody doesnt go to the 'additional data b' tab n try to save the Sales order then also it should throw a warning or error stating that delivery date field should be filled up. Where exactly should i place the coding now? if it is screen 4900 then can someone suggest me at what place should the coding be done.
Regards,
PujaHi Puja,
Seems you have added the fields at item level in sales order and for this you must have appended the additional fields
in vbap table. So to validate these fields you can use USEREXIT_CHECK_VBAP available in MV45AFZB user exit include.
The fields you appended will be available in vbap structure, add your validation here or even in USEREXIT_SAVE_DOCUMENT_PREPARE available in MV45AFZZ which is called before saving the sales order.
Regards,
Pawan -
Dear friends,
How to add cost centre fields in transaction va02 on screen? is it possible using user-exit?
or is there any steps to create user-exit?
Thanks,
regards,
Vishal Bhagwat.Hi Vishal,
Your requirement could be implemented using a user-exit:
Hope the below reply helps:
Transaction Code - VA02 Change Sales Order
Exit Name Description
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
No of Exits: 15
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Kindly Award Points If You Find The Reply Helpful.
Cheers,
Chaitanya. -
Grey out custom field in VA02 line item
Hi,
We have this custom field in sales line item which we want to grey out after billing is done. I tried many things but it didn't wrk. I wrote simple code w/o checking any billing condition like
if screen-name = 'VBAP-ZZFIELD'.
screen-input = 0.
endif.
modify screen.
but even this didn't wrk. Is there anything due to which the dynamic chging of screen fields attr has no effect ? Like if we set some attribute on screen field or ny thing else.
Thx.You did put the code in MV45AFZZ include, form USEREXIT_FIELD_MODIFICATION?
For example...
if sy-tcode eq 'VA01' or
sy-tcode eq 'VA02'.
if sy-dynnr = my_screen_no. "four digit screen no.
loop at screen.
case screen-name.
when 'TABLE-FIELDNAME' "exactly as it appears on that screen
screen-input = '0'.
modify screen.
endcase.
endloop.
endif.
endif. -
Disabling all fields in VA02 on a particular Order status
Hi Gurus,
We have a requirement to grey out all the fields of the sales order in VA02 if the current order header status is
set to a particular value , lets say '10' (E0010).
I have tried below code in MV45AFZZ (userexit_field_modification) :
IF sy-tcode = 'VA02' AND vbak-auart = 'ZTIL'.
CALL FUNCTION 'STATUS_READ'
EXPORTING
client = sy-mandt
objnr = vbak-objnr
only_active = 'X'
TABLES
status = lt_stat
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
DELETE lt_stat WHERE stat CP 'I*'.
READ TABLE lt_stat INTO lw_stat WITH KEY stat = 'E0010'.
IF sy-subrc EQ 0.
LOOP AT SCREEN.
screen-input = 0.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDIF.
But, the issue is here the program goes for a long endless loop
and eventually we have to stop the transaction.
(since we did not want to choose any particular field, but grey out entire order)
Could anyone of you please suggest what needs to be done here.
Thanks in advance.
Regards,
NitinHi Nitin,
You didn't mention that you want that two fields to be open.
What you have done is correct in the form routine but you should not use Loop at screen. Because the Form routine is itself called for each field.
The following code logic change inside the userexit_field_modification will solve your problem.
Write like;
IF sy-tcode = 'VA02' AND vbak-auart = 'ZTIL'.
CALL FUNCTION 'STATUS_READ'
EXPORTING
client = sy-mandt
objnr = vbak-objnr
only_active = 'X'
TABLES
status = lt_stat
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
DELETE lt_stat WHERE stat CP 'I*'.
READ TABLE lt_stat INTO lw_stat WITH KEY stat = 'E0010'.
IF sy-subrc EQ 0.
IF SCREEN-NAME NE 'FIELDNAME1' AND SCREEN-NAME NE 'FIELDNAME2'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDIF.
There is no need for trasaction variant and all if this works.
Regards,
Karthik D
Edited by: Karthik D on Feb 3, 2011 4:05 PM - Corrected code -
Special stock indicator field in va02
Hi
where is this special stock indicator avialable in va02/03.
This data is updated at item level.
VBAP-SOBKZ and i searched where this special stock indicator is available in va02/03.
Would any one help me out where can i see this speical stock indicator in sales order
ThanksHI,
I have pulled the following from one of the forum threads,
Special stock indicator will be triggered from the requirements class. Actually you can see the requirements type (in procurement tab of the sale order) which is linked to the requirements class. Special stock indicator (T459K-SOBKZ) in the requirements class will trigger this.
Go to material master MRP3 view and see what Strategy Group you have maintained. Then go to OPPS, select your strategy group and see what Requirement Type is maintained there.
Go to OVZH, select that Requrement Type and see what Requirement Class is maintained there.
Now Go to OVZG, select that Requirement Class and click on blue lens on top left. You can see a field Special Stock there under the tab Assembly
Regards, -
Authoriazation on a single field in VA02
Hi All,
I want to give authorization for release of "delivery block" field in the va02 t.code.
This field gets automatically blocked basing on the simple credit run assigned to the sales doc. type.
the credit limit given is Rs.1 by default in the Credit Control Area , hence every order gets blocked for delivery.
hence, I have to give authorization to the top management for the relese of the block in change mode of sales order.
Kindly suggest me in this concern.
Regards,
Sudarshan Reddy MHi Sudarshan,
In the standard system, you cannot have authorization profiles to enable modification of just one field. Some custom development may be required.
A workaround would be to assign authorization profiles in such a way that only the top management and a select few can modify orders. But this would mean that they would be able to modify the other fields as well, which they wouldn't if they are responsible enough
Regards,
Bharath -
Disable header and item fields in VA02
Hello, good day
Could you please help me with next issue?
I need to define how to inactivate some header and item fields in a sales order when VA02 is used, a logic to decide if the field must be desable will be applied, because of that I can't use standar customizing solution.
I read a lot of threads, but many of them are not answered, and as far as I can see many recommended solutions are refered to similar code that I have now.
I tried with next user exits:
To block gray out header and item fields:
User exit form USER_EXIT_FIELD_MODIFICATION Program: MV45AFZZ
To gray out pricing grid
User exit form: USEREXIT_FIELD_MODIFICATION Program: LV69AFZZ
To gray out partner screens (item, header): No user exit identified, please advise
to gray out new items in sales order: No user exit identified, please advise, I mean not allow new items.
fields to block:
XVBAK-LIFSK
XVBAK-FAKSK
XVBAK-KUNNR
XVBKD-VSART
XVBKD-INCO1
XVBAP-UNTTO
XVBAP-UEBTO
XVBPA-KUNNR
XVBPA-PARW
XVBAP-ROUTE
XVBAP-ABGRU
The code is something like this in MV45AFZZ - USER_EXIT_FIELD_MODIFICATION
CASE screen-name.
WHEN 'XVBAK-KUNNR'
OR '*XVBAK-KUNNR'. "Sold To
screen-input = 0.
END CASE
but is not working. please advise.
Disable Pricing grid: after apply this code, is possible to add new manual conditions, how can I disable input new item conditions?
The code is something like this in LV69AFZZ - USEREXIT_FIELD_MODIFICATION Program:
Modify screen fields
IF SCREEN-NAME = 'RV61A-KOEIN'
OR SCREEN-NAME = 'KOMV-KBETR'
OR SCREEN-NAME = 'KOMV-KPEIN'
OR SCREEN-NAME = 'KOMV-KMEIN'
OR SCREEN-NAME = 'KOMV-KWERT'
OR SCREEN-NAME = 'KOMV-KSCHL'
OR SCREEN-NAME = 'KOMV-KUMZA'
OR SCREEN-NAME = 'KOMV-KUMNE'
OR SCREEN-NAME = '*RV61A-KOEIN'
OR SCREEN-NAME = '*KOMV-KBETR'
OR SCREEN-NAME = '*KOMV-KPEIN'
OR SCREEN-NAME = '*KOMV-KMEIN'
OR SCREEN-NAME = '*KOMV-KWERT'
OR SCREEN-NAME = '*KOMV-KSCHL'
OR SCREEN-NAME = '*KOMV-KUMZA'
OR SCREEN-NAME = '*KOMV-KUMNE'.
SCREEN-ACTIVE = '1'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
Modify buttons
IF SCREEN-NAME = 'BT_KOAN' "Add
OR SCREEN-NAME = 'BT_KOLO'. "Delete
SCREEN-ACTIVE = '1'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-NAME = 'BT_KONY'. "Update
SCREEN-ACTIVE = '1'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
Thanks in advace.
Regards!Thanks Sai, for your prompt answer, as far as understand variants, I can't add any logic, to allow change or only display, I do no't include the logic in the sample code, but that's my case, I need the user exit due a logic must be applied and standar solution like variant or customizing are not the better option.
I Found that in order to gray pricing grid we just put the code in user exit form: userexit_field_modific_leer include LV69AFZZ
and to block the other fields and to block partner functions:
Include Program: MV45AF0P_PARTNER_PREPARE User Exit Form: partner_prepare
Edited by: Jose Carrillo on Mar 30, 2008 4:21 AM -
Hi,
I am facing a problem in picking up a particular field.
Goto VA02.
Put 30000005 in sales order. enter.
Double click on Material No. Goto "texts" tab & a editor opens. I have to display in my report, whatever the SD consultant types here .
How do I do this ?? Pls guide.
Regards,
Rohan Das
+91-9932511468Check this thread.
Reading line item text from sales order
Also check this thread too.
SALES ORDER TEXT
Regards,
Maha -
How can I disable the Reason for Rejection field in VA02 line items
Hi,
I dont want the users to be able to change the reason for rejection field in the sales order line items. Can someone please suggest a tried and tested way of doing this
Thanks for reading.Set up an auth object for the field. In userexit field modification check the auth object and set the field to be grayed out if they don't have authority. Users can then not change the value of the field Sample code
IF screen-name = 'VBAP-ABGRU'.
AUTHORITY-CHECK OBJECT 'Z_BLK_REAS'
ID 'ABGRU' DUMMY.
IF sy-subrc EQ 0.
screen-input = 1.
ELSE.
screen-input = 0.
ENDIF.
ENDIF. -
Add a new field in va02,va03 and vf02 & data tran. in these fields VOFM
Hi All,
I have a requirement, I need to add a new field in the sales order header part and even a field in the billing document, once I add this field up in both the documents in the header part i need to create a copy routine using the VOFM transaction,
Can any body help me on what's the procedure to add a field in billing document as i dont find any screen exit for doing it and does the copy routine transfer the data ( Custom Field ) from Sales Order to the Billing Document, if yes can somebody help me with the procedure on how to and code of it.
Regards.Hi,
The procedure to create the new VOFM.
1. Go to VOFM transaction
2. Page down until you find a new spot on the page to put in the VOFM number and description.
3. Put in the VOFM number and the description of the VOFM.
4. Now the VERY IMPORTANT part of the process. Double click on the VOFM description not the VOFM number to create this as a Development/Correction and not as a repair. If you double click on the number then this copies some existing code and prompts you for a repair.
5. Activate and generate the VOFM routine. Note: Configuration must be setup by the OM team for this step.
for example Go to the routine number that needs to be copied.
Put your cursor on the routine number field that needs to be copied.
Overwrite that number with your new routine number and hit enter.
The new routine will be created as a copy of the old routine and you can modify the new routine as you need it.
Ex.
You have to copy routine 104 to 904
Routine number Description Active
104 Bill.bus.item data X
Put your cursor on 104 and then change it to 904 and hit enter.
904 will be created as a copy of 104 and you can make your changes in 904.
Don't forget to activate it after you are done.
refer the below link
https://forums.sdn.sap.com/click.jspa?searchID=3604222&messageID=994791
Regards -
Different field mode(display/change) in sales order payment terms (VA02)
Hello All,
In the VA02 transaction, when we are changing the sales orders, in the billing document of that material shows different modes for different fields.
VA02->DOUBLE CLICK ON THE MATERIAL->BILLING DOCUMENT->FIELD PAYMENT TERMS.
For some orders, field is in display mode and for some orders, it is in changeable mode.
Could anyone please let me know about this..?
thanks and regards,
MERVINDear Jignesh
As you would be aware Payment Terms will flow in SO both at header level and at item level.
So in order to control the item level changes, go to VOV7, select the item category and untick the box [Business Item] By doing so, whatever header level datas flows into SO, that will be copied to item level also and you will be controlling the changes at item level and end users cannot make changes at item level.
Now you have to control at header level for which you have to apply User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAK
thanks
G. Lakshmipathi
Maybe you are looking for
-
Not able to recover and restore Lenovo V100 (WinXP professional) ; restarts after hanging at line mup.sys in safe mode. Problem started occurring suddenly after restart of the laptop. Windows XP start page (With dots moving) came up and I tried to re
-
Removing multiple entries in the 'Open With' menu
When I right mouse click on a file, I get the Open With option. On selecting this I get a huge list of options - a lot of them duplicates. How do I remove them?
-
F.16 Balance not carried forward
Hi All I have run the F16 report and it states that the balances have been carried forward successfully, but when I look in the new FY, the balances have not been carried forward. Can anyone assist please Regards R
-
Using ScriptStart in VC++ doesn't seems to be working.
Hi, I am a software a developer. I am using Diadem 9.x evaluation version. While I try to run Scriptstart function in VC++ using OLE. It seems its failing. The below is the code sequence. Please help, ITOCommand dispToCmd ; COleVariant oleVariant
-
Hi expert, we have two instance in our production. web service are implemented in both instance http://instance1.demo.com/bpm/update/process/StartProcessIn?wsdl&mode=ws_policy http://instance2.demo.com/bpm/update/process/StartProcessIn?wsdl&mode=ws_p