Hello Gurues,
I am very n00b in smartforms, I want to know how can I pass an Internal Table from my zprogram to my smartform layout and access to this data and show in my smart. Please see my steps below:
1._ I configured in NACE my Ouput Type, smartorm and Yprogram:
2._ I go to ME23N and I can see the PO:
3._ I set a Break Point in my Y640FM06P program driver.
4._ When I click on Print Button I go to debug mode and I can see the Internal table with the same data in ME23N:
As you remember In second screen(ME23N) I hace the same data.
Now, question its, How can I set this data and variables to my smartform? I want to print this information in my smartform.
NOTE: This table its a deep structure:
l_doc contains all information from my purchase order.
Please explain me how can I send this data to my smartform
In my code I have this:
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
is_ekko = l_doc-xekko
user_settings = ' ' "Disable User Printer
is_pekko = l_doc-xpekko
is_nast = l_nast
iv_from_mem = l_from_memory
iv_druvo = iv_druvo
iv_xfz = iv_xfz
TABLES
it_ekpo = l_doc-xekpo[]
it_ekpa = l_doc-xekpa[]
it_pekpo = l_doc-xpekpo[]
it_eket = l_doc-xeket[]
it_tkomv = l_doc-xtkomv[]
it_ekkn = l_doc-xekkn[]
it_ekek = l_doc-xekek[]
it_komk = l_xkomk[]
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
ent_retco = sy-subrc.
PERFORM protocol_update_i.
"--- get SmartForm protocoll ---
"--- and store it in the NAST protocoll ---
PERFORM add_smfrm_prot.
In others exanples says I need to do this, ok? I assume this is done, now, How Can I manage the data or get it in my smartform?