on 12-21-2011 3:20 AM
Hi Experts,
I am some hiccups coding my print program for a PO Smartform that am currently working on.The requirement was to use the standard print program to trigger my Smartform PO. I have read alot of threads on this, but am still clueless.
Some says to comment out the functions like "OPEN_FORM" ,"WRITE_FORM" and having your block of codes inside the "NEU_" routine.
But I noticed, there are even some conditions and logic checking before the "write_form" is called and sometimes the table entries are also cleared. In this kind of situation, how should I be passing the table data to the Smartform function module?By copying the contents to an internal table? And there are many include programs which currently the standard program has, should I be using all that too?
Appreciate your input and advice on this.
Thanks very much.
Within transaction NACE application EF, it is better to create a copy of output type NEU to something like ZNEU. You can then take a copy of YBPYB06P program that is assigned to print medium of o/p type NEU and modify the ENTRY_NEU routine.
This is how we did in our production system. This way you won't be stepping on the standard routines / SAP naming space which can get overwritten during upgrades.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Your requirement is not clear.You just copy the existed form and driver program and necessary changes in form.Why you need to change the driver program.If your requirement is different please post.
Regards,
Madhu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Smartform is a one-off interaction with the print program, unlike SAPScript where it is multiple (Open form, write form, close form etc).
An active smartform will have its own generated function module, what you need to do in your print program is:
1) Get the generated function module via the smartform name (use FM: SSF_FUNCTION_MODULE_NAME)
2) Execute the function module and pass in all the required import/export/tables parameters
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.