Application Development and Automation 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: 
Read only

VA01 Screen Exit

Former Member
0 Likes
1,785

Hi All,

I have to add few fields in Tcode VA01.

I have created the fields in the table and added the new fields in

Program : SAPMV45A

Screen No: 8459

It appears in VA01. Abla to add values and save to database.

Problem is in VA03 also it appears as input field and not display feild.

How should i change the new fields to display in VA03?

Thanks.

Regards,

Swarna

Hi All,

I have to add few fields in Tcode VA01.

I have created the fields in the table and added the new fields in

Program : SAPMV45A

Screen No: 8459

It appears in VA01. Abla to add values and save to database.

Problem is in VA03 also it appears as input field and not display feild.

How should i change the new fields to display in VA03?

Thanks.

Regards,

Swarna

10 REPLIES 10
Read only

Former Member
0 Likes
1,550

On a standard screen, check the values in modification group 1 through 4 for standard SAP fields. Use the same in your custom fields.

If that does not work, you can use user exit USEREXIT_FIELD_MODIFICATION in INCLUDE MV45AFZZ.

Define the custom fields as display only on the screen.

Use a custom ZZ group for the custom fields on the screen.

In the user exit, check for SY-TCODE of VA01 or VA02, check for the custom group value, and make INPUT = 1.

Read only

0 Likes
1,550

Hi Norman Salter,

Not able to modify user exit USEREXIT_FIELD_MODIFICATION in INCLUDE MV45AFZZ.

When i click change in prg MV45AFZZ it goes to change mode but not able to include any code.

How should i check for the values in modification group 1 through 4 for standard SAP fields?

Regards,

Swarna

Read only

Former Member
0 Likes
1,550

When you said that you created the fields in the table, did you APPEND to VBAP or VBAK?

If you did, do the field names start with ZZ?

Read only

0 Likes
1,550

Hi Norman Salter,

Table : VBAP.

Yes all fields starts with ZZ

Regards,

Swarna

Read only

Former Member
0 Likes
1,550

Hi,

use the user exit USEREXIT_FIELD_MODIFICATION..

Thanks,

Naren

Read only

0 Likes
1,550

Hi Naren,

Not able to modify user exit USEREXIT_FIELD_MODIFICATION in INCLUDE MV45AFZZ.

Regards,

Swarna

Read only

Former Member
0 Likes
1,550

HI,

in the application tool bar..there will be buttons like "INSERT" "DELETE"..which is used for modifying the standard sap code..

Press insert in the user exit.Then it will show something like this..

*{

  • You have to add your include here..

*}

Hope it is clear..

Thanks,

Naren

Read only

0 Likes
1,550

Hi,

It does not trigger the USEREXIT_FIELD_MODIFICATION in INCLUDE MV45AFZZ.

Is there any other solution?

Regards,

Swarna

Message was edited by: Swarna

Read only

Former Member
0 Likes
1,550

Hi Swarna,

You can use omsr or oms9 transaction pass the fieldname, fieldselection group, maintenance status values as which the othe fiedls of va* transactions belong. That will create your field in that group and you will achieve that functionality of the transaction.

I think this will helpful to you...

Regards,

Brijesh Patel

Read only

Former Member
0 Likes
1,550

Hi All,

Here goes the steps to do it:

STEP 1 : FIELD CREATION :

CREATE A FIELD IN VBAP ( LETS SAY Z_FIELD) - 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 : 8459

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

IN FLOW LOGIC:

PBO – CREATE A MODULE LETS SAY ; MODULE Z_SCREEN.

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

STEP 3 : WRITE CODE IN MV45AOZZ

MODULE Z_SCREEN 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.

ENDIF.

ENDLOOP.

ENDMODULE.

Regards,

Swarna