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

Comple new development of driver program and form for t-code

Former Member
0 Likes
763

Dear Gurus,

I have requirement to develop complete custom smart form and driver program which will be attach to output type for t-code. Now, for this t-code there is no standard driver program and form. I need to get the incentive document number in driver program when someone print form. I don't know how to get information of doc# in print program.

Thanks in advance!

Regards,

Anu

Dear Gurus,

I have requirement to develop complete custom smart form and driver program which will be attach to output type for t-code. Now, for this t-code there is no standard driver program and form. I need to get the incentive document number in driver program when someone print form. I don't know how to get information of doc# in print program.

Thanks in advance!

Regards,

Anu

5 REPLIES 5
Read only

Former Member
0 Likes
729

hi anu,

welcome to SCN. goto NACE. select your output type(if you dont have a output type consult your functional team)

once you select the output type, click processing logic, select the output and click processing routines.

give driver program name and smarform name here.

revert back if you have any problem...

post it in smartform forum

Read only

0 Likes
729

Sorry, for confusion. I didn't ask what you answered. I am asking how to get information in driver program when you print form like document number ect form t-code. we don't have any print program and form it is all z and attached to output type.

Regards,

Read only

Sandra_Rossi
Active Contributor
0 Likes
729

The question is not really how to get the document number, but how to plug your custom code to the standard program. When you have found how to plug it, then getting the document number will be the easiest thing. Look for an exit (at save time, or whatever you want to do...)

Read only

Former Member
0 Likes
729

This message was moderated.

Read only

Former Member
0 Likes
729

use this form in ur progrma after start of selection.


INCLUDE RVADTABL.
FORM ENTRY USING XW_RETURN_CODE TYPE I
                      XW_SCREEN TYPE C.
  CLEAR W_RETCODE.


  W_XSCREEN = XW_SCREEN.

  PR_VBELN = NAST-OBJKY+0(10). " doc no

  IF NAST-ANZAL EQ 0.
    W_NAST_ANZAL = 1.
  ELSE.
    W_NAST_ANZAL = NAST-ANZAL.
  ENDIF.

  PERFORM GET_DATA.
  PERFORM ARRENGE_DATA.
  PERFORM CALL_SMARTFORMS.
  XW_RETURN_CODE = W_RETCODE.

ENDFORM.