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

how to create a wizard using abap

Former Member
0 Likes
1,237

Hi,

I have to create wizard in standard VA02 transaction. Once the user creates a sales order, he should be able to click on a tab . Wwhen he clicks the tab , the wizard should run and display some results.

What is the best approach for this requirement?

regards,

shan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,020

Hi Shan,

What I understand from your requirement is, you want to create program, which should get called once user saves the Sales Order.

I think you should create a custom Function Group, with Screens and the routines and function modules. In screen, define the TAB and the whatever options user wants, give the buttons like NEXT, PREVIOUS, CANCEL etc based on your requirement on each of the tab and handle the F-Code in your PAI event and write the code accordingly.

And you can call this function module in USEREXIT_REFRESH_DOCUMENT, which gets called once your Sales Order gets saved. This user exit is availalbe in MV45AFZA include.

Hope this helps you to create your Wizard Program.

Regards,

Sandip

Hi,

I have to create wizard in standard VA02 transaction. Once the user creates a sales order, he should be able to click on a tab . Wwhen he clicks the tab , the wizard should run and display some results.

What is the best approach for this requirement?

regards,

shan

5 REPLIES 5
Read only

Former Member
0 Likes
1,020

Hi,

Try to find the user exits or badi's. I think u can search for Screen exits..The following are the user exits and badi's for VA02.

Transaction Code - VA02 Change Sales Order

Enhancement/ Business Add-in Description

Enhancement

V60F0001 SD Billing plan (customer enhancement) diff. to billing plan

V46H0001 SD Customer functions for resource-related billing

V45W0001 SD Service Management: Forward Contract Data to Item

V45S0004 Effectivity type in sales order

V45S0003 MRP-relevance for incomplete configuration

V45S0001 Update sales document from configuration

V45P0001 SD customer function for cross-company code sales

V45L0001 SD component supplier processing (customer enhancements)

V45E0002 Data transfer in procurement elements (PRreq., assembly)

V45E0001 Update the purchase order from the sales order

V45A0004 Copy packing proposal

V45A0003 Collector for customer function modulpool MV45A

V45A0002 Predefine sold-to party in sales document

V45A0001 Determine alternative materials for product selection

SDTRM001 Reschedule schedule lines without a new ATP check

Business Add-in

BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073

BADI_SD_V46H0001 SD Customer functions for resource-related billing

No.of Exits: 15

No.of BADis: 2

Try to find a suitable one and check it..

regards,

chaithanya.

Read only

Former Member
0 Likes
1,021

Hi Shan,

What I understand from your requirement is, you want to create program, which should get called once user saves the Sales Order.

I think you should create a custom Function Group, with Screens and the routines and function modules. In screen, define the TAB and the whatever options user wants, give the buttons like NEXT, PREVIOUS, CANCEL etc based on your requirement on each of the tab and handle the F-Code in your PAI event and write the code accordingly.

And you can call this function module in USEREXIT_REFRESH_DOCUMENT, which gets called once your Sales Order gets saved. This user exit is availalbe in MV45AFZA include.

Hope this helps you to create your Wizard Program.

Regards,

Sandip

Read only

0 Likes
1,020

Do you mean I should create a Z transaction like ZVA01/ZVA02 or create a tab/gui icon in the standard program SAPMV45A ?

User enters all details in sales order and then he will click on this GUI icon (like u have save,edit in standard VA02) . As soon he clicks this new gui icon, it should pop up wizard.

It will be nice if I can modify the standard GUI of SAPMV45A.

regards,

shan

Read only

0 Likes
1,020

Now, help me understand your requirement clearly. You want this to happen everytime users presses SAVE button ( I mean AFTER DOCUMENT GETS SAVED) or you want to give an extra option where user has selection to go for this transaction.?

Read only

0 Likes
1,020

user should have this option before he saves the order..

This is the requirement:

User creates a SO using VA01, inputs all information and clicks on a GUI icon (custom). This should pop up a wizard and run a small report.He has to check the report and close the window. The he will make a decisson to save the sale order. If not he may not save the sales order.

This wizard has to run from the gui icon which I have to build. So do i need to creare ZVA01 or can I just add a gui icon to the standard program?

regards,

shan