Anda di halaman 1dari 9

(http://

www.sap
Products
.com/) (https://www.sap.com/products.html)

Industries (https://www.sap.com/industries.html)

Support (https://www.sap.com/support.html)

Training (https://www.sap.com/training-certification.html)

Community (https://www.sap.com/community.html)

Developer (https://www.sap.com/developer.html)

Partner (https://www.sap.com/partner.html)

About (https://www.sap.com/corporate/en.html)

 

Home (https://www.sap.com) / Community (https://www.sap.com/community.html) / Archives + Actions


(/) / Discussions Archive (/discussions) / ABAP Development (/discussions/space/abap)

Archived discussions are read-only. Learn more about SAP Q&A


(https://go.sap.com/community/about/questions-and-answers.html)
HI

I create one module pool to create sales order using bapi now

sales order create successful but now i want MATERIAL AND QUALITY two columan in non
editable in VA02 but conditon is if user create sales order through module pool then and then
TWO COLUMAN IS NON EDITABLE

SO PL TELL HOW TO DO

abap

November 08, 2008 at 12:26 PM


0 Likes

Former Member replied November 07, 2008 at 07:26 AM

Hi,

Write Loop at screen inside the Form USEREXIT_FIELD_MODIFICATION


in include MV45AFZZ. Use the required condition before changing the field
status.

Regards

Karthik D

0
The message was moderated

Former Member replied November 07, 2008 at 07:27 AM

Hi,

go to t-code: VA02..then go to "system" in menu bar....then click on


"status"..double click on the program name....now click on "Display Object
List(ctrlshiftf5)....now open the "Subroutine"...there are lots of subroutines
starting with "user exit...."...now choose your exit from that.....and add you
code there....i think your prob will be solved.If any error occurs...consult
with your BASIS person..

Arunima

Former Member replied November 07, 2008 at 07:30 AM

Apply your conditions to validate in subroutine:


USEREXIT_FIELD_MODIFICATION of include: MV45AFZZ to modify the
screen element.

Eg.,

Copy Code

1. IF sy-tcode = 'VA02' and screen-name = 'VBAP-MATNR'.


2. screen-input = 0.
3. ENDIF.

~Eswar

Oooops late again, nvm Karthik gave you the solution.

Edited by: Eswar Rao Boddeti on Nov 7, 2008 2:30 PM

0
Guest replied November 07, 2008 at 08:12 AM

hi

my t.code is zsd_va01 so if user create sales order through ZSD_VA01


Then this two columan is non editable

Former Member replied November 07, 2008 at 08:17 AM

Cant you use the code sample given by Eswar by substituting your tcode
name?

What else you want from us, the entire code?

I suggest you to start coding and revert back if you struck somewhere.

Regards

Karthik D

Guest replied November 07, 2008 at 08:36 AM

see first i create sales order using t.code is zsd_va01 ok

now user want to see this sales order using va02 so at that time only non
editabl columan for only those sales order which is created using t.code
zsd_va01 not va01

Former Member replied November 07, 2008 at 08:40 AM

Okay, while displaying sales order how do you differentiate if the order has
been created by VA01 or ZSD_VA01???
Do you have any specific crtieria in differentiating the orders???

Guest replied November 07, 2008 at 08:45 AM

thia is my question that how to find out that which sales order create form
va01 or zsd_va01?

Former Member replied November 07, 2008 at 09:39 AM

in vbak table add a field tcode through append structure....

while ur creating sales order through z t.code

populate that field as vbak-tcode = 'z transcation'.

know u will be able to find what are the sale order created through zt.code

IF sy-tcode = 'VA02'.

and

if vbak-tcode = 'z t.code'.

FIELD-SYMBOLS: <cols> LIKE LINE OF tctrl_u_erf_auftrag-cols.

LOOP AT tctrl_u_erf_auftrag-cols ASSIGNING <cols>.

CASE <cols>-screen-name.

WHEN 'RV45A-MABNR'.

<cols>-screen-input = 0.

<cols>-screen-active = 0.

WHEN 'RV45A-KWMENG'.

<cols>-screen-input = 0.

<cols>-screen-active = 0.

MODIFY tctrl_u_erf_auftrag-cols[] FROM <cols>.

ENDCASE.
ENDLOOP.

ENDIF.

Guest replied November 08, 2008 at 06:54 AM

without add field t.code in vbak is it possible?

Former Member replied November 08, 2008 at 07:13 AM

Haven't you seen my reply suggesting use of a ztable to solve your


problem?

Former Member replied November 07, 2008 at 08:42 AM

Then you should create a ztable and store the sales order number after it
is created using ZSD_VA01. And in the above said include check if sy-
tcode is VA02 and the sales order number is in ztable then make the field
as non-editable.

This will solve your problem.

@ Eswar

Meanwhile i have given him a way to differentiate it

Regards

Karthik D

Edited by: Karthik D on Nov 7, 2008 1:11 PM

0
Former Member replied November 07, 2008 at 09:18 AM

Hi,

In include MV45AFZZ in the FORM userexit_field_modification

write the following code,

Copy Code

1. IF sy-tcode = 'VA02'.
2. FIELD-SYMBOLS: <cols> LIKE LINE OF tctrl_u_erf_auftr
ag-cols.
3. LOOP AT tctrl_u_erf_auftrag-cols ASSIGNING <cols>.
4. CASE <cols>-screen-name.
5. WHEN 'RV45A-MABNR'.
6. <cols>-screen-input = 0.
7. <cols>-screen-active = 0.
8.
9. WHEN 'RV45A-KWMENG'.
10. <cols>-screen-input = 0.
11. <cols>-screen-active = 0.
12.
13. MODIFY tctrl_u_erf_auftrag-cols[] FROM <cols>.
14. ENDCASE.
15.
16. ENDLOOP.
17. ENDIF.
18.

Cheers,

JP

Guest replied November 07, 2008 at 09:32 AM


IN MV45AFZZ i can't write this code because if some user can create sales
order using t.cdoe VA01 then at that time this columan is editable but if
user can create sales order using t.code ZSD_VA01 then two columan is
non editable in VAO2

Former Member replied November 07, 2008 at 09:54 AM

All possible way to achieve your requirement was already given to you, you
should atleast know where and how they have to be used. There is no point
in still answering your questions more and more and more.

Better close the thread and think over the answers given to you. Then you
will get to solve your problem.

Regards

Karthik D

The message was moderated

The message was moderated

Former Member replied November 07, 2008 at 09:55 AM

Hello,

Check this link you will get some idea

http://sapdokumanlari.wordpress.com/sd-module-introduction/sd-interview-
questions/
0

Guest replied November 08, 2008 at 12:26 PM

end

(https://www.facebook.com/sapcommunity)
0 (https://twitter.com/SAPCommunity)
(https://www.youtube.com/c/SAPCommunities) (https://www.linkedin.com/company/sap)
(https://plus.google.com/+SAPCommunities) (https://instagram.com/sap/)
(http://www.slideshare.net/SAP)

Privacy (http://go.sap.com/about/legal/privacy.html)
Terms of Use (http://go.sap.com/corporate/en/legal/terms-of-use.html)
Legal Disclosure (http://go.sap.com/about/legal/impressum.html)
Copyright (http://go.sap.com/about/legal/copyright.html)
Trademark (http://go.sap.com/about/legal/trademark.html) Preferencias para cookies
Sitemap (http://www.sap.com/sitemap/index.html)
Newsletter (https://go.sap.com/registration/newsletter.html)