<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calling smartform in a background program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209901#M1205175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in the driver program change the user settings to SPACE,it will work.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2009 06:18:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-11T06:18:47Z</dc:date>
    <item>
      <title>Calling smartform in a background program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209896#M1205170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call one smartform in a background program, i am very new to smartform .Can anybody help me to do this? &lt;/P&gt;&lt;P&gt;I want to suppress the dialog box appearing while directly executing the smartform?&lt;/P&gt;&lt;P&gt;Also please tell me how i can give the smartform data to spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ratheesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 05:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209896#M1205170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T05:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calling smartform in a background program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209897#M1205171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friend,&lt;/P&gt;&lt;P&gt;Anyhow u write a driver program to call smartform using this Fm SSF_FUNCTION_MODULE_NAME &lt;/P&gt;&lt;P&gt;so u can run the report Back ground...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u,&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 05:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209897#M1205171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T05:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calling smartform in a background program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209898#M1205172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To supress the dialog box appearing while directly executing the smartform you can do it by &lt;/P&gt;&lt;P&gt;setting the CONTROL PARAMETERS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this set control-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;then it will directly executes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 05:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209898#M1205172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T05:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calling smartform in a background program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209899#M1205173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the rply,&lt;/P&gt;&lt;P&gt;My question is  while executing the driver program, Does the printing will happen directly from the spool or not?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ratheesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 06:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209899#M1205173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T06:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling smartform in a background program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209900#M1205174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratheesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly go through this link below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1587276"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 06:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209900#M1205174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T06:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calling smartform in a background program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209901#M1205175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in the driver program change the user settings to SPACE,it will work.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 06:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209901#M1205175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T06:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calling smartform in a background program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209902#M1205176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratheesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you create Form . in print program you have to read the data from data bace table table "nast". and Based on the  NAST-OBJKY retrive your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA : RETURN_CODE TYPE SY-SUBRC,
       US_SCREEN TYPE C,
       P_ORDER LIKE NAST-OBJKY.

DATA: RETCODE   LIKE SY-SUBRC.         "Returncode
DATA: XSCREEN(1)  TYPE C.              "Output on printer or screen
DATA: REPEAT(1) TYPE C.
DATA : LT_TEXT LIKE TLINE-TDLINE.


  CLEAR RETCODE.
  XSCREEN = US_SCREEN.
  SELECT SINGLE *
                 FROM NAST INTO NAST WHERE OBJKY = NAST-OBJKY.  "P_VBELN.
  PERFORM GET_DATA.
  CASE RETCODE.
    WHEN 0.
      RETURN_CODE = 0.
    WHEN 3.
      RETURN_CODE = 3.
    WHEN OTHERS.
      RETURN_CODE = 1.
  ENDCASE.

FORM GET_DATA .

  P_ORDER = NAST-OBJKY.

  SELECT VBELN
         AUDAT
         WAERK
         KUNNR
         VDATU
         FROM VBAK
         INTO TABLE TB_VBAK
         WHERE VBELN = P_ORDER.

  IF NOT TB_VBAK[] IS INITIAL.
    SELECT VBELN
           POSNR
           MATNR
           KWMENG
           NETPR
           NETWR
           BRGEW
           GEWEI
           VOLUM
           VOLEH
           CHARG
           WERKS
           POSEX
           KDMAT
           FROM VBAP
           INTO TABLE TB_VBAP
           FOR ALL ENTRIES IN TB_VBAK
           WHERE VBELN = TB_VBAK-VBELN.
  ENDIF.

endform. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After complete this go through &lt;STRONG&gt;NACE transaction in that select required out put type and give you form name and Program name.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then go through the transaction in display mode and select the print preview. you will get your lay oput.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;here You must give output type in proper&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 06:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209902#M1205176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T06:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calling smartform in a background program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209903#M1205177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried using No dialog = 'X' and user setting = '  ' ,but still the dialog box is appearing.&lt;/P&gt;&lt;P&gt;Can you please help?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ratheesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 07:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-smartform-in-a-background-program/m-p/5209903#M1205177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T07:55:01Z</dc:date>
    </item>
  </channel>
</rss>

