2009 Sep 02 9:16 PM
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
2009 Sep 02 9:28 PM
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
2009 Sep 02 9:41 PM
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,
2009 Sep 02 10:33 PM
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...)
2009 Sep 03 4:42 AM
2009 Sep 03 5:29 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |