on 12-14-2009 10:40 PM
Hi experts,
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,
thanks,
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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??
Thanks!
Hi,
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
Regards,
Aditya
Thanks to all!
You guys answered my question.
Warm regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in the driver program you can get it from NAST table
NAST-OBJKY = NAST-OBJKY+16(10).
*--- Obtaining Billing document number
G_VBELN = NAST-OBJKY.
REgards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.