I am new at smartforms so I think this is something easy but I have not being able to figure it out. I have a Z smartform for invoice (ZINVOICE01) and a control program (ZINVOICE01_CP) that receives as parameter the invoice number and calls my smartform.
My question is: in NACE, how do I specify that my control program receives the invoice number as parameter? I can set the smartform name, the control program and the form, but I need to pass the invoice number as parameter.
Any help will be higly appreciated,
Edited by: carlosrv on Dec 14, 2009 11:40 PM
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Dec 15, 2009 9:26 AM
if you see the smartform in Tr. smartforms
form interface > Import / export / tables tabs.. those values are forwarded from your print program to smartform... the print program gets that from the Tr. where you generate the output...
if you have values in Import / export / tables tabs you are all set to use those value in designing the SF output formats...
Hi J@y thanks for your quick reply!
I know that, I think I did not explained well my point. My control program will pass the invoice number to the smartform, however I don't know how to specify (in NACE) that standard transaction (let's say VF02) must pass the invoice number to my control program... in other words: in control program, how do I take the invoice number and pass it to my smartform??
By default when you attach your form name and the print program name in NACE for the output type . Then in ur print program nast-objky -- will have the Invoice number in your case. U can make use of that field in the print program ( driver program )
Let me kn ow if yoy need more help.
Runtime Values entered in the transaction are mostly caught in the NAST table. Once the control comes to the driver program the NAST structure is accessiable for you. You can use the OBJKY field which holds the key value i.e billing doc if it is billing related transactions/shipment number if it shipping related. and so on.
You need to just use it and fetch the remaining data for the form to be printed
Please close the thread, if solved