cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameters to a smartforms control program from NACE

carlos_rodriguez4
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member156446
Active Contributor
0 Kudos

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...

carlos_rodriguez4
Active Participant
0 Kudos

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!

Former Member
0 Kudos

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.

Riya.

Former Member
0 Kudos

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

Answers (2)

Answers (2)

carlos_rodriguez4
Active Participant
0 Kudos

Thanks to all!

You guys answered my question.

Warm regards,

Former Member
0 Kudos

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