Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit for VA01

Former Member
0 Kudos

Hi ,

I am working on an exit. I require a help from any one who can give me a sample code.

My requirement is when ever i enter value in sold-to-party in VA01 transaction. I need to get a field zflag updated from knvv table to field zflag in vbak table.

Here There is a special requirement like when ever i enter a value in sold -to-party immediately the field knvv-zflag should be pinged and fetch the value to vbak-zflag.

Code required immediately.

3 REPLIES 3

Former Member
0 Kudos

Hi

Goto the Include program of SAPMV45A , Include MV45AFZZ and write the code in the FORm add fields to VBAK, there based on the KUNNR entered you have to get the field value from KONV table

So take the VBAK-KNUMV field and fetch that field value from KONV and populate to VBAK-ZFLAG field

write the code keep a break point, execute the order and check in debugging

Regards

Anji

0 Kudos

Hi Anji,

This is the code i have written where you have said me to write. I know that where to write this code. But i need the exact code. Check the below code ones.

I think i have explained you the requirement before. If you are from hyderabad give me ur number to satishrajuv@gmail.com so i can call you . i said you like when ever i enter value into sold to party in va01 or when i change value of sold to party in va02 i need the select the field from knvv-zflag(i.e. check box field from xd01 or xd02) to vbak-zflag (which is check box field in va01 or va02.). Here we have a another problem like if by change if the value moves when we enter va01 or va02 and uncheck the check box field it is getting locked(i.e. going to disable mode). Can you help me in writing the code.

<b>IF SY-TCODE = 'VA01' OR SY-TCODE = 'VA02'.

data : v_zflag like knvv-zflag.

if xvbak-KUNNR is not initial.

select single zflag from knvv into v_zflag

where kunnr = xvbak-KUNNR .

If sy-subrc = 0.

xvbak-zflag = v_zflag.

endif.

endif.

ENDIF.</b>

Former Member
0 Kudos

Transaction Code - VA01 Create 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

Rewards if useful.........

Minal