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

Regarding Smartform Function module

Former Member
0 Likes
903

Hi,

When i am executing the smartform function module via print program, Smart form output is displaying properly but it is not showing any OTF data in the importing parameter JOB_OUTPUT_INFO . (JOB_OUTPUT_INFO-OTFDATA). Why it is happening? Could you please help me in this regard?

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
762

To get the OTF data you need to set the GETOTF parameter in the Control Parameters of the Smartforms.


    DATA: LS_CONTROL  TYPE SSFCTRLOP.  " Controlling info

    LS_CONTROL-GETOTF    = 'X'.

    CALL FUNCTION WF_FM
      EXPORTING
        CONTROL_PARAMETERS         = LS_CONTROL
        ....
     IMPORTING
        JOB_OUTPUT_INFO            = WF_OUTDATA

I guess, when we set the GETOTF flag, it will not generate the output and only puts the data JOB_OUTPUT_INFO-OTFDATA.

Regards,

Naimesh Patel

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
762

In your parameters, have-you set getotf on in control_parameters ?

Look at [SAP Smart Forms (BC-SRV-SCR)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]

Regards

Read only

naimesh_patel
Active Contributor
0 Likes
763

To get the OTF data you need to set the GETOTF parameter in the Control Parameters of the Smartforms.


    DATA: LS_CONTROL  TYPE SSFCTRLOP.  " Controlling info

    LS_CONTROL-GETOTF    = 'X'.

    CALL FUNCTION WF_FM
      EXPORTING
        CONTROL_PARAMETERS         = LS_CONTROL
        ....
     IMPORTING
        JOB_OUTPUT_INFO            = WF_OUTDATA

I guess, when we set the GETOTF flag, it will not generate the output and only puts the data JOB_OUTPUT_INFO-OTFDATA.

Regards,

Naimesh Patel

Read only

0 Likes
762

Hi Naimesh/Raymond,

Thank You very much..it is working fine now...since morning i am struggling...And also i have implemented OSS note...but no use.....Thanks alot..