06-12-2007 11:35 AM
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
06-12-2007 11:37 AM
Hi Jimmy,
Go to SE93 and Then Give your Program Name and Screen Number.
Thanks,
Reward If Helpful.
06-12-2007 11:39 AM
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..
06-12-2007 11:39 AM
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
06-12-2007 11:42 AM
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
06-12-2007 11:42 AM
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
06-12-2007 10:19 PM
Experts,
Help me with this...I have no idea how to go about with this...
Cheers:Jim
06-12-2007 10:34 PM
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..
06-12-2007 10:47 PM
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
06-12-2007 10:51 PM
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 -