on 09-24-2009 3:56 PM
Hi all,
I'm creating a smartform for purchase orders but I'm stuck at passing the right variables to the function module that calls the smartform.
I don't know what to fill in for ZXPEKKO = ??? --> What select statement should I do here ?
It would also be helpfull to give me more information on the relationship between : EKKO & PEKKO
The function module interface shows this info :
""Global Interface:
*" IMPORTING
*" VALUE(ARCHIVE_INDEX) TYPE TOA_DARA OPTIONAL
*" VALUE(ARCHIVE_INDEX_TAB) TYPE TSFDARA OPTIONAL
*" VALUE(ARCHIVE_PARAMETERS) TYPE ARC_PARAMS OPTIONAL
*" VALUE(CONTROL_PARAMETERS) TYPE SSFCTRLOP OPTIONAL
*" VALUE(MAIL_APPL_OBJ) TYPE SWOTOBJID OPTIONAL
*" VALUE(MAIL_RECIPIENT) TYPE SWOTOBJID OPTIONAL
*" VALUE(MAIL_SENDER) TYPE SWOTOBJID OPTIONAL
*" VALUE(OUTPUT_OPTIONS) TYPE SSFCOMPOP OPTIONAL
*" VALUE(USER_SETTINGS) TYPE TDBOOL DEFAULT 'X'
*" VALUE(ZXEKKO) TYPE EKKO
*" VALUE(ZXPEKKO) TYPE PEKKO ---> ???
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
user_settings = space
is_nast = nast
is_repeat = repeat
ZXEKKO = ls_ekko
ZXPEKKO = ??? --> Where should I select this info from ?
IMPORTING
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
TABLES
* it_ekko = it_ekko
it_ekpo = it_ekpo
it_t001w = it_t001w
it_lfa1 = it_lfa1
it_adrc = it_adrc
it_adr6 = it_adr6
it_konv = it_konv
it_makt = it_makt
it_tline = it_tline
it_tline1 = it_tline1
it_tline2 = it_tline2
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
If it's you who has created the smartform, you should know what ZPEKKO is used for inside smartform.
In other case, have a look at the smartform being called and see where is ZPEKKO used...(perhaps it's populated inside smartform)
regards,
Aabhas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
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.