cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Purchase Order : EKKO vs PEKKO

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

aabhas_wilmar
Contributor
0 Kudos

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

Former Member
0 Kudos

HI,

its standard purchase order. and its also import parameter.

how processing will be done inside SF itself

Answers (0)