Skip to Content
author's profile photo
Former Member

How to attach a smartform in BOR object

Hi,

I want to know how to attach a z smartform to BOR object? I tried to search out here but not able to have the result.

Kindly provide the guidelines for it....

Regards,

Rickky

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Posted on May 02, 2011 at 05:35 AM

    Hi.,

    What exactly U are looking for.!! . If u want to send Forms by Email ., check this document.,

    http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/content.htm

    hope this helps u.,

    Thanks & Regards

    Kiran

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Vishwa,

      Thanks for your prompt reply,now i had made a program and call the fm in it. Now when i go to tcode SWO1 and then i pass the Object Type in it . There i click on the go to API Method and then i pass the Tcode Name in the Function Module Name. But after passing it ,it gives error ,there is no return parameter and does not allow to create it.

      I know when we create FM which should be RFC enabled and it should be released too.. But here in the smartform,the FM generated by it should have the same features in it ? I am asking about it because here it is generated by system for the smartform,Is it advisable to make changes in it ?

      Waiting for a positive response.

      Regards,

      Rickky

      Edited by: Rickky.vn on May 4, 2011 12:55 PM

  • Posted on May 04, 2011 at 02:56 PM

    The first approach I would pursue would be to create a new FM which will serve as a print program/driver program for the smartform, and then make this driver FM remote-enabled. This FM should do the same thing that all smartform driver programs should do (set print settings, open spool, determine smartform FM, call smartform FM dynamically, close spool).

    Also, I noticed that you've been mentioning the FM name of the smartform (/XXXXXX/SF########). Just to be sure you know, you shoul NOT call this FM statically, as it can and will often change when the smartform is regenerated. Instead, you should pass the smartform name to the FM SSF_FUNCTION_MODULE_NAME to determine the function module for the smartform. Then you should call the FM that is returned from SSF_FUNCTION_MODULE_NAME dynamically.

    Edited by: Alex D. C. on May 4, 2011 4:56 PM

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 04, 2011 at 03:19 PM

    Hi,

    In the BOR object, create a method say display_SF. Now in the ABAP properties for that method give "OTHER" option.

    Now in the BOR object, you can find the program which is used. Inside that program, You need to write the code to fetch the required data (ONLY BASIC REQUIRED DATA WILL BE ENOUGH) and call the smartform by passing all the print parameters and all the required data for that smartform.

    Now inside the smartform, with imported required data, you can write all the logic and data fetch etc for the printouts.

    The following sysntax can be used to fetch the required data into the method and can use to pass the same while calling the smartform.

    SWC_GET_ELEMENT CONTAINER 'Plant' PLANT.

    Regards,

    Harish

    Add comment
    10|10000 characters needed characters exceeded