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: 

Screen Exit for VA01 T code

Former Member
0 Kudos

Dear All,

Can you please let me know whether there is any Screen exit in VA01 t.code at Item level.

If there is any screen exit , then whats the procedure to develop it. Another query is , if I want to enter 10 extra fields in Sales order Item level which are not in VA01 T.code , then what am I supposed to do ?.

Note: I can't use the unused fields in VA01.

Thanks in Advance.

Regards,

Shrini.

1 ACCEPTED SOLUTION

Vinod_Chandran
Active Contributor
0 Kudos

You do not have to do extra coding for this. Just append the extra fields in the table VBAP and include these in the screen 8459 (Additional data A) or 8460 (Additional data B) of program SAPMV45A.

14 REPLIES 14

Former Member
0 Kudos

hai,

in va01

goto header Additional data B screen..

try this one..

sn

Former Member
0 Kudos

Hi,

Only the following User-exits available for VA01 transactions.

what is your exact requirement?

Check the program <b>MV45AFZZ</b>==?> here also lot of user-exits available.

<b>SDTRM001</b> Reschedule schedule lines without a new ATP check

<b>V45A0001</b> Determine alternative materials for product selection

<b>V45A0002</b> Predefine sold-to party in sales document

<b>V45A0003</b> Collector for customer function modulpool MV45A

<b>V45A0004</b> Copy packing proposal

<b>V45E0001</b> Update the purchase order from the sales order

<b>V45E0002</b> Data transfer in procurement elements (PRreq., assembly

<b>V45L0001</b> SD component supplier processing (customer enhancements

<b>V45P0001</b> SD customer function for cross-company code sales

<b>V45S0001</b> Update sales document from configuration

<b>V45S0003</b> MRP-relevance for incomplete configuration

<b>V45S0004</b> Effectivity type in sales order

<b>V45W0001</b> SD Service Management: Forward Contract Data to Item

<b>V46H0001</b> SD Customer functions for resource-related billing

<b>V60F0001</b> SD Billing plan (customer enhancement) diff. to billing

Vinod_Chandran
Active Contributor
0 Kudos

You do not have to do extra coding for this. Just append the extra fields in the table VBAP and include these in the screen 8459 (Additional data A) or 8460 (Additional data B) of program SAPMV45A.

0 Kudos

Dear Vinod,

I appended the extra fields in the VBAP table I included in the screen 8460. But the fields are not displayed in tne additional data B . But they are in the item detail screen.

Once I give the input to these fields and saves the document , Its not updating the VBAP table. I didnot write any code for these fields. One more issue is , I made one filed as mandatory, if I dont go to the item detail tab, and save the document, its not giving the message "Make an Entry in all required fields" and it direcly saving the document. Would you please help me out in this regard?

Regards

0 Kudos

Hi,

To get the fields in the additional data B in the sales order item level, use the screen number 8459 of include MV45AOZZ, you dont have to do any additional coding to update these fields in VBAP table,

To get the message when you save from VA01, you need to make the screen fields mandatory ( Required in screen painter ) so that the system would prompt for an entry,

Hope this helps,

Rgds,

Message was edited by: Sailatha Nagasamudram

0 Kudos

SAPMV45A,4309 <<<<Additional Data A

SAPMV45A,4312 <<<<Additional Data B

INCLUDE MV45AOZZ. " User-modules PBO

INCLUDE MV45AIZZ. " User-modules PAI

i hope the screen exit you are looking for additional Data Aand Data B screens.

if so check the above includes.

Regards

vijay

0 Kudos

i need a help . how to add field in additional area B in VA)! transaction....when i am going to made any chane its asking for acess key... no screen exit also....kindly help me how to do this work.........

0 Kudos

Hi.

I did the same once.

You must get access key with BASIS team and change these objects. It's a customer screen and SAP gives it to our own implementation and changes acordingly with our needs.

Important note: To change screen logic, you also need to use wizard buttons ( which stay above the editor in SE80).

best regards.

Glauco

Edited by: Glauco Kubrusly on Jul 19, 2011 2:27 PM

Edited by: Glauco Kubrusly on Jul 19, 2011 2:28 PM

0 Kudos

How to define mandatory fields va01 screen ?

0 Kudos

You can make mandatory fields through SHD0 ( Transaction and screen variants).

Goto SHD0->

Give Transaction Code eg :VA01 ->

give Variants name Select Create button -> ( it will process like BDC recording.

(you can changed the filed like Output only, Invisible, Required).

After press save exit. -> then activate your variant.

0 Kudos

Assign the transaction variant   to the order type in the t code VOV8

Former Member
0 Kudos

Hi Sai,

The standard program is "<b>SAPMV45A</b>"

Include for exit is "<b>MV45AFZZ</b>"

Screen exit is <b>8309</b> - Additional Data B screen.

Reward if helpful.

Regards,

Tushar

Former Member
0 Kudos

hai Mr Sini,

STEP 1 : FIELD CREATION :

CREATE A FIELD IN VBAK ( LETS SAY ZZFIELD1) - INCLUDE A STRUCTURE AND ADD A NEW FIELD , ACTIVATE BOTH YOUR STRUCTURE AND VBAK.

STEP 2 .GO TO THE SCREEN: (SE51)

PROGRAM NAME: SAPMV45A

SCREEN NUMBER : 8309

GO TO SCREEN LAYOUT AND CREATE A FIELD FOR YOU AND ASSIGN THE FIELD TO ZZFIELD1.

IN FLOW LOGIC:

PBO – CREATE A MODULE LETS SAY ; MODULE MODULE ZZSETSCREEN.

DOUBLE CLICK THE MODULE , U WILL LAND AT PROGRAM MV45AOZZ AND WRITE THE BELOW CODE INIT

STEP 3 : WRITE CODE IN MV45AOZZ

MODULE ZZSETSCREEN OUTPUT.

  • TO MAKE THE FIELD NON-EDITABLE ONLY FOR DISPALY MODE

LOOP AT SCREEN.

IF SY-TCODE = 'VA03'.

SCREEN-INPUT = 0.

SCREEN-OUTPUT = 1.

MODIFY SCREEN.

ELSE.

IF VBAK-ZZFIELD1 IS INITIAL.

SCREEN-REQUEST = 1.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

ENDMODULE.

STEP 4 : WRITE CODE IN MV45AIZZ

PAI: FIELD VBAK-ZZFIELD1

CREATE A MODULE IN PAI , LETS SAY –

FIELD VBAK-ZZFIELD1 MODULE ZZCHECKFIELD1 ON INPUT , AGAIN DOUBLE CLICK THE MODULE , U WILL REACH MV45AIZZ

WRITE A CODE LIKE THIS ( INCLUDE YOUR LOGIC )

MODULE ZZCHECKFIELD1 INPUT.

IF NOT VBAK-ZZTEST1 IS INITIAL.

DO THE CHECK WHATEVER U WANT, RAISE ERROR MESSAGE IF YOU NEED ETC ETC

ENDIF.

ENDMODULE

SN

0 Kudos

STEP3:

since Tcode dependent branches are not recommended (possible to reach coding from another transactions as well), I would replace the

IF SY-TCODE = 'VA03'.

with

IF T185F-TRTYP = 'A'."Diplay mode


Greets

Krisztian