cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Output Type

Former Member
0 Kudos

Hi Experts,

I have a requirement where I have to create an Output type based on existing one But with little different logic.

How can I do this as I am dealing with Smartforms for the first time?

Thanks

Asha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Goto VOK2 transaction..

In the menu select SD document..

Then under that..If it is billing related output type choose Billing document..If it is sales document related output type choose sales document..

THen choose condition type..

Select the one from which you want to copy...

Then press the copy button (F6)..

Then in the resulting screen ..give your new output type..

In the processing routines section give the program name and smart form name..

Thanks,

Naren

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Naren. thank you very much. My problem is solved.

Former Member
0 Kudos

Hi Preema,

Thanks for your response.

Yes I do have an existing Output type but not the Smartform. It is associated with a Script. I am trying to copy the OUTPUT TYPE. Can u tell me how I can do that?

Former Member
0 Kudos

hi,

Is there an existing output type from which you can fetch the smartform details?

If yes, go ahead and copy the existing smartform and start making changes.

For smartforms, the tcode is smartforms.

First, whenever u creat a smartform , a function module is created.That function module u have to call in the ABAP program.

In ABAP program for knowing the function module name, u can use,

SSF_FUNCTION_MODULE_NAME

eg:

DATA: FM_NAME TYPE RS38L_FNAM.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'Smartformname'

IMPORTING

FM_NAME = FM_NAME.

CALL FUNCTION FM_NAME

EXPORTING

...

IMPORTING

...

TABLES

...

EXCEPTIONS

...