<?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: Formatting Error in smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774478#M334156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Palak...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i enter Delivery No in VL02N screen and then clicking outbound delivery--&amp;gt;Issue Delivery output, the system will pop up a window, where i can select my smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence form and program has been assigned to output type... Am i right..?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once i select the Printer name and select either PRINT or Print Preview, then i started debugging...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later i found an error in the Function Module" /1BCDWB/SF00000113" called 'Formatting Error"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Table in the form is having same width as the Main Window..&lt;/P&gt;&lt;P&gt;sum of all columns in the table is equal to width of the column...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am totally worried...where is the fault, which is causing this "Formatting Error"..??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help me out.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Nov 2006 04:56:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-30T04:56:02Z</dc:date>
    <item>
      <title>Formatting Error in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774475#M334153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a smartform, which is going to be printed from VL02N Screen.&lt;/P&gt;&lt;P&gt;(VL02N &lt;DEL&gt;&amp;gt;outbound delivery&lt;/DEL&gt;-&amp;gt;Issue output)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the form is not getting printed from above mentioned path.. Even not possible to view the print preview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i activate smartform, i can view the print preview and even i can print it..&lt;/P&gt;&lt;P&gt;The only thing is i can't make it possible from VL02N screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While debuging, i found out that error is associated with "Formatting Error".&lt;/P&gt;&lt;P&gt;When i looked into SSF_ERROR_READER, the error in the message class is "No other column available (see the long text)"..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where to make necessary changes or where to work out for removing this error..??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 04:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774475#M334153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T04:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Error in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774476#M334154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you assigned form and program to output type?&lt;/P&gt;&lt;P&gt;If not then assign, NACE transaction is for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then for those output types that form only will be called.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 04:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774476#M334154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T04:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Error in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774477#M334155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like you are using a TABLE / TEMPLATE object where in you are referring a COLUMN that does not exist. That is the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the print preview issue is concerned, in the driver program where the smart form is being called, you need to set the TDNOPREV (SSFCOMPOP) to SPACE and set PREVIEW, NO_DIALOG of SSFCTRLOP to 'X'. Then the system will throw the preview dialog box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 04:53:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774477#M334155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T04:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Error in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774478#M334156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Palak...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i enter Delivery No in VL02N screen and then clicking outbound delivery--&amp;gt;Issue Delivery output, the system will pop up a window, where i can select my smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence form and program has been assigned to output type... Am i right..?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once i select the Printer name and select either PRINT or Print Preview, then i started debugging...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later i found an error in the Function Module" /1BCDWB/SF00000113" called 'Formatting Error"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Table in the form is having same width as the Main Window..&lt;/P&gt;&lt;P&gt;sum of all columns in the table is equal to width of the column...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am totally worried...where is the fault, which is causing this "Formatting Error"..??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help me out.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 04:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774478#M334156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T04:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Error in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774479#M334157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Smart form will not be called directly.&lt;/P&gt;&lt;P&gt;First SSF_FUNCTION_MODULE_NAME is called and the form name is passed to this, which will return the function module which is generated by the system for that smart form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, that function is dynamically called some thing like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION fmname, where fmname is the output of SSF_FUNCTION_MODULE_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you will not be able to see a call to  /1BCDWB/SF00000113 directly. Look into the driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 05:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774479#M334157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T05:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Error in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774480#M334158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ravi..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have passed the form name in SSF_FUNCTION_MODULE_NAME .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there is one more FM as "CALL FUNCTION fmname" where fmname is the output of SSF_FUNCTION_MODULE_NAME....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 05:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774480#M334158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T05:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Error in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774481#M334159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't get your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you paste the code where the call is being made and let me know what exactly are you looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 05:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774481#M334159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T05:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Error in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774482#M334160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      FORMNAME           = tnapr-SFORM&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      FM_NAME            = fm_name&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      NO_FORM            = 1&lt;/P&gt;&lt;P&gt;      NO_FUNCTION_MODULE = 2&lt;/P&gt;&lt;P&gt;      OTHERS             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION fm_name&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      SELLER_COUNTRY    = seller_country&lt;/P&gt;&lt;P&gt;      SELLER_REGION     = seller_region&lt;/P&gt;&lt;P&gt;      SHIPTO_COUNTRY    = shipto_country&lt;/P&gt;&lt;P&gt;      SHIPTO_REGION     = shipto_region&lt;/P&gt;&lt;P&gt;      FORWARDER_COUNTRY = forwarder_country&lt;/P&gt;&lt;P&gt;      FORWARDER_REGION  = forwarder_region&lt;/P&gt;&lt;P&gt;      NOTIFY_COUNTRY    = notify_country&lt;/P&gt;&lt;P&gt;      NOTIFY_REGION     = notify_region&lt;/P&gt;&lt;P&gt;      TOTAL_LINES       = total_lines&lt;/P&gt;&lt;P&gt;      TOTAL_QTY         = total_qty&lt;/P&gt;&lt;P&gt;      TOTAL_NET_WT      = total_net_wt&lt;/P&gt;&lt;P&gt;      TOTAL_GROSS_WT    = total_gross_wt&lt;/P&gt;&lt;P&gt;      TOTAL_VOL         = total_vol&lt;/P&gt;&lt;P&gt;      DATE              = SY-DATUM&lt;/P&gt;&lt;P&gt;      TIME              = SY-UZEIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      NOTIFY_ADDR       = GV_NOTIFY_ADDR&lt;/P&gt;&lt;P&gt;      FORWARDER_ADDR    = GV_FORWARDER_ADDR&lt;/P&gt;&lt;P&gt;      SHIPTO_ADDR       = GV_SHIPTO_ADDR&lt;/P&gt;&lt;P&gt;      SELLER_ADDR       = GV_SELLER_ADDR&lt;/P&gt;&lt;P&gt;      SHIPTO_NUM        = GV_SHIPTO_NUM&lt;/P&gt;&lt;P&gt;      NOTIFY_NUM        = GV_NOTIFY_NUM&lt;/P&gt;&lt;P&gt;      FORWARD_NUM       = GV_FORWARD_NUM&lt;/P&gt;&lt;P&gt;      ZONE              = GV_ZONE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      I_FREIGHT_MODE    = i_freight_mode&lt;/P&gt;&lt;P&gt;      I_PORT_EXIT       = i_port_exit&lt;/P&gt;&lt;P&gt;      I_PORT_ENTRY      = i_port_entry&lt;/P&gt;&lt;P&gt;      I_ORIGIN_GOODS    = i_origin_goods&lt;/P&gt;&lt;P&gt;      I_PACK_NOTES      = i_pack_notes&lt;/P&gt;&lt;P&gt;      I_PACK_INSTRUCT   = i_pack_instruct&lt;/P&gt;&lt;P&gt;      I_SHIP_INSTRUCT   = i_ship_instruct&lt;/P&gt;&lt;P&gt;      I_PORT_MARKS      = i_port_marks&lt;/P&gt;&lt;P&gt;      I_SELLER_ADD      = i_seller_add&lt;/P&gt;&lt;P&gt;      I_SOLDTO_ADD      = i_soldto_add&lt;/P&gt;&lt;P&gt;      I_SHIPTO_ADD      = i_shipto_add&lt;/P&gt;&lt;P&gt;      I_FORWARDER_ADD   = i_forwarder_add&lt;/P&gt;&lt;P&gt;      I_NOTIFY_ADD      = i_notify_add&lt;/P&gt;&lt;P&gt;      I_DELIVERY        = i_delivery&lt;/P&gt;&lt;P&gt;      I_DELIVERY_INFO   = i_delivery_info&lt;/P&gt;&lt;P&gt;      I_SALES_INFO      = i_sales_info&lt;/P&gt;&lt;P&gt;      I_DIMENSION       = i_dimension&lt;/P&gt;&lt;P&gt;      I_SERIAL_NO       = i_serial_no&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      &amp;lt;b&amp;gt;FORMATTING_ERROR  = 1&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      INTERNAL_ERROR    = 2&lt;/P&gt;&lt;P&gt;      SEND_ERROR        = 3&lt;/P&gt;&lt;P&gt;      USER_CANCELED     = 4&lt;/P&gt;&lt;P&gt;      OTHERS            = 5.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While debuggin the code, i came acrsoo sy-subrc = 1, which is nothing but 'Formatting Error".. ( I have made it as BOLD in the above code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to this, i am unable to print the smartform from VL02N screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i activate the form in smartform screens, i can get the print previews and even print..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In VL02N screen, i will enter a outbound delivery No and from Menu bar i will click outbound delivery -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; Issue outbound Delivery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i will get a pop up of Message types, where i will select my message type (smartform) and click for Print.. Later it will display the printing window with Printer Name, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i opt for PRINT PREVIEW, the window will disappear... A success message will appear as "Output was successfully issued"..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same thing happens for even PRINT option..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Printer is correctly configured....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the Qn is How to get the Print and Print Preview from VL02n screens..??&lt;/P&gt;&lt;P&gt;WHere to corrct the code for the 'FORMATTING ERROR"..???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 05:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-error-in-smartform/m-p/1774482#M334160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T05:17:30Z</dc:date>
    </item>
  </channel>
</rss>

