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: 

How to make a custom transaction..?

Former Member
0 Kudos

Hello gurus,

I have been given the task to make a custom transaction ZVA02.One the first screen there will be a field Order Number and then once we enter the order number it searches and find out whether that order exists or not...if it does then make the change in the fields..if it does not then create a new order by that name...

I have no clue how to go about with this...Your help is required experts...

Cheers:Jim

9 REPLIES 9

Former Member
0 Kudos

Hi Jimmy,

Go to SE93 and Then Give your Program Name and Screen Number.

Thanks,

Reward If Helpful.

0 Kudos

Hi,

I need the steps on how I have to go about with it....I know how to create a transaction but what will be the logic behind this custom transaction...

Thanks..

0 Kudos

Hi,

If I understand you right you are given the task to customize the trnsaction VA02.

You need to copy the program SAPMV45A to some ZSAPMV45A and then add a new screen of your own to provide the customization you need.

First step is to copy the existing program SAPMV45A.

Regards,

Sesh

0 Kudos

Ok sesh...Once I copy the program then what shud i do...in this custom transaction in the first screen i need only the a field for the order number...

Thanks

Former Member
0 Kudos

Hi,

What create include program inside that that take order number from the screen and check /validate the same by checking inside the table

if it is there in the table then proceed otherwise

call the VA01 tr code using CALL Transaction within the same report

Regards

Shiva

0 Kudos

Experts,

Help me with this...I have no idea how to go about with this...

Cheers:Jim

0 Kudos

it is messy to copy va02 transaction to zva02 ,better to create new dialog program.

First create one screen ,this screen has order number ,check the order number is available or not

if it is available then call va02 otherwise call va01 to create order..

0 Kudos

thanx sesh...do u have any sample code for that...I am still in the learning phase and trying to do this assignment...Once we create a scree which ask for the order number how will we validate whether that order is present or not...?

Thnx...

Message was edited by:

jimmy wiliams

0 Kudos

check with ABAPDOCU Transaction to create dialog program.

goto ABAPDOCU Transaction -> ABAP User Dialogs -> Screens here you will have example programs.

you can validate order number against VBAK Table

simple query in dialog

select single vbeln from vbak into vbak-vbeln

where vbeln = screen field order #.

if sy-subrc eq 0.

call transaction 'VA02' and skip first screen.

else.

call transaction 'VA01' .

endif.

even you can build new screen what ever in sales order -