cancel
Showing results for 
Search instead for 
Did you mean: 

smart form -Quotation

former_member198441
Participant
0 Kudos

hi all,

Please, let me know some details of..How to attach a smartform to the flow sequence.

I have prepared a SF with a driver prog and it is having a selection screen exporting the quotation number to the fome interface.

but , my doubt is i want to attach this to the business flow by removing the selection screen so that the program have to pick the quotation number dynamicall when the qutation is saved and print the quotation.

i need ur suggestion/help/idea...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Use NACE transaction.

Select V1 (Sales) and press output type .You can create your own output type .

Assign program name and smartform name to output type.

And Form routine as 'entry' .

In your driver program.

Write perform

FORM entry USING return_code TYPE i

us_screen TYPE c.

CLEAR retcode.

xscreen = us_screen.

PERFORM processing. (Write your code here).

IF retcode NE 0.

return_code = 1.

ELSE.

return_code = 0.

ENDIF.

ENDFORM.

Your quotation number will be in nast-objky.

Declare nast globally.

Check program RVADOR01 (for entry routine) .

Answers (2)

Answers (2)

former_member181995
Active Contributor
0 Kudos

PP,

Goto NACE>select application V1>click output types>select AN00 output type>select this line and click on proccesing routine>here you can assingn in program and in form.

Amit.

Former Member
0 Kudos

Hi PP,

You need to configure the print program to the Business flow. Anyhow, in the print program, the SF would be called. So, Ur requirement will be fulfilled.

I think the Quotation number transaction would be a standard one. So, for a particular sequence of execution in the standard transaction, the configuration needs to be done such that the driver program will be called.

Hope this info would be a little bit useful....

Phaniram.