cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a Smartform from VA03 or VF03 or any standard transaction?

Former Member
0 Kudos

Dear All,

I have assigned a New Output Type "ZA01" to sales Order in NACE Transaction. Also I have assigned a Smartform to that smartform.

Now the problem is when I am going for "ISSUE OUTPUT TO" process for selecting a OUTPUT Type "ZA01", my required smartform is not getting called.

So can you please guide me how to do the same and what are Basic Necessary things in order to call a smartform from Standard Transaction.

Regards,

Vishal

+91 98123 35975

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

ISSUE OUTPUT TO" process for selecting a OUTPUT Type "ZA01", my required smartform is not getting called.

Are you getting any error on that output type ? Or is it that some other form is triggered ?

regards,

Advait

Former Member
0 Kudos

Hi Advait,

I am not getting any error. But as soon as I click on PRINT preview or PRINT button, nothing is getting called.

Screen comes into VA03 transaction again.

One more thing there is no Authorization problem as I am working on SUPER User Id.

Regards,

Vishal

former_member205763
Active Contributor
0 Kudos

If on clicking preview button , preview is not coming, and u are sure that everything is configured inNACE then there might be some error in smartform, goto tcode SFTRACE switch on trace and then do issue output, if it stop anywhere in code that5 means u hv an error, now chek the sy-msgid at tht point and see what error its giving.

Former Member
0 Kudos

Hi,

Try like thi

REPORT ZSD_REP_QUOTATION.

TABLES:nast.

DATA: wa_fm_name TYPE rs38l_fnam,

wa_formname TYPE tdsfname.

data : v_vbeln type vbak-vbeln.

start-of-selection.

FORM ENTRY USING return_code us_screen.

perform get_data.

PERFORM processing.

ENDFORM.

&----


*& Form GET_DATA

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


form GET_DATA .

v_vbeln = nast-objky.

endform. " GET_DATA

&----


*& Form PROCESSING

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


form PROCESSING .

wa_formname = 'Z_SD_SSF_QUOTATION'.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = wa_formname

IMPORTING

FM_NAME = wa_fm_name

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

CALL FUNCTION wa_fm_name

EXPORTING

p_vbeln = v_vbeln.

endform. " PROCESSING

Here u can get the order number in smartform.

Based on this u can write the code in smartforms

Former Member
0 Kudos

Try putting a break point on the first line of your print program and see if it is stopping. If yes, then it seems the problem is something else.

regards,

Advait

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Vishal Gupta,

First check for an entry exist in the table TNAPR for your output type and the from name.

if there is no entry configure once again in the NACE.

if entry exists, then check the corresponding print program which you get form the table TNAPR

for the output type and the form name,then check the print program if it is calling your Smartform

or not....then do the changes accordingly.

Regards,

Jaya rama kumar

Former Member
0 Kudos

HI,

U have to conver the Standard Program to Zprogram and also copt the Includes and also ucan pass ur parameter to the Select Query as NAST-OBJKY (Suppose P_VBELN) pass in the selcet Query as vbeln = NAST-OBJKY insted of P_vbeln.

This link would help u out..

Regards,

Vijaya Lakshmi.T

Edited by: Vijaya Lakshmi on Apr 13, 2009 6:53 AM

Former Member
0 Kudos

foto va02

enter document and then on menu bar

goto-extras- outputheaderedit and then assign ur output type

then on communication select ur printer and then save it.

then try.

Former Member
0 Kudos

Hi Monika,

I think you did not get my question. Please re-read the question if still have doubts please revert back.

Regards,

Vishal

Former Member
0 Kudos

Hi,

you get to enter the tranaction VA02 or VF02.

Then create a message with your outputtype and save.

Aftrer that you can print it with oyur method (VF03 and VA03)

If the message type is not known in your VA02 or VF02 you have to use

SPRO.

I think the combination NACE and V/57 will do for your salesconfirmation.

Gr., Frank

Former Member
0 Kudos

Hi Bernsen,

I think you did not get my question. Please re-read the question if still have doubts please revert back.

Regards,

Vishal

Former Member
0 Kudos

Hi Vishal Gupta,

As you have given SF name in NACE for Z Outtype. As in Standard driver program they will call Script only, So wht u need to do is Copy RVADOR01 (Standard print program) in a ZRVADOR01 and then call you SF.

I guess this could resolve your problem.

Regards,

Suneel G

Former Member
0 Kudos

Hi Suneel,

Suppose If I copy the standard program into Z program but still the question is "How shall I call my SMARTFORM from Z program with atleast Sales Order no."

For processing my smartform I shall be requiring atleast Sales Order No. So can I get the sale Order No.?

Regards,

Vishal