Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding custom atributes to SP01

Former Member
0 Likes
577

Hi

I am sending smart forms to the Spool for later printing.

We need to send custom attributes, specific to each smart form in the Spool Request.

Can we add custom fields like Customer Number or State in the Spool ALV Grid of SP01.

I have looked into sending free attributes using the Command Node in the Smart form but that does not solve the problem completely.

I need these attributes in the ALV grid.

Any help in this regard would definitely be appreciated.

Regards

Maninder

2 REPLIES 2
Read only

Former Member
0 Likes
470

Hi Maninder,

I think you can't add custom field in the Spool display.

But if you wannt to see customer N° or State, a solution is to fill the 'TDDATASET' / 'TDSUFFIX1' / 'TDSUFFIX2' of SSFCOMPOP before the Call function.

TDDATASET appears in SP01, not sure for the others...



*   Call FM Smartforms
    call function SMF_function_name
        exporting
*     ARCHIVE_INDEX              =
*     ARCHIVE_INDEX_TAB          =
*     ARCHIVE_PARAMETERS         =
      control_parameters         = st_ssfctrlop
*     MAIL_APPL_OBJ              =
*     MAIL_RECIPIENT             =
*     MAIL_SENDER                =
      output_options             = st_ssfcompop
      user_settings              = ' '
      ...

Regards,

Erwan.

Read only

0 Likes
470

Hi Erwan

I appreciate your prompt and detailed response. But unfortunately, this solution was already looked into by us and the reason we rejected it was because we have a restriction on the number of fields we will be able to send to the spool.

We are looking at sending close to 10 fields here and we dont know when we would need to increase them.

Hence we were looking at a definite SAP provided solution.

I am also looking into it and I hope someone else is too.

Lets find a way to do this.

Regards

Manider