<?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>Question Re: form routine in smartform development in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356780#M588698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Form name is the name of the smartform you are creating.&lt;/P&gt;&lt;P&gt;Program name is the driver program that whihch fetches the data to be displayed in your smartform.&lt;/P&gt;&lt;P&gt;Routine name is the name of the subroutine that gets triggered in the driver program when you actually save a PO.&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>Mon, 15 May 2006 17:10:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-15T17:10:26Z</dc:date>
    <item>
      <title>form routine in smartform development</title>
      <link>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaq-p/1356779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing a custom smartform from scractch.. this one is initiated when PO is created..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to configure the form i need to give form name, program name and form routine to configure it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me in detailed what exactly is form routine and how do i select it for my form and what name should i give to functinal team to configure it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apppreciate your comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kanthi..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 17:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaq-p/1356779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T17:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: form routine in smartform development</title>
      <link>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356780#M588698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Form name is the name of the smartform you are creating.&lt;/P&gt;&lt;P&gt;Program name is the driver program that whihch fetches the data to be displayed in your smartform.&lt;/P&gt;&lt;P&gt;Routine name is the name of the subroutine that gets triggered in the driver program when you actually save a PO.&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>Mon, 15 May 2006 17:10:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356780#M588698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T17:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: form routine in smartform development</title>
      <link>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356781#M588699</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;Great.. Thanks for the clarification.. Appreciate if someone can post custom driver program that has a form routine defined in it for any scenario..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kanthi..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 17:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356781#M588699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T17:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: form routine in smartform development</title>
      <link>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356782#M588700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kanthi,&lt;/P&gt;&lt;P&gt; Programming in a driver program that gets automatically triggered from a transaction will typically look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ENTRY USING RETURN_CODE US_SCREEN.&lt;/P&gt;&lt;P&gt;  CLEAR RETCODE.&lt;/P&gt;&lt;P&gt;  XSCREEN = US_SCREEN.&lt;/P&gt;&lt;P&gt;  PERFORM PROCESSING.&lt;/P&gt;&lt;P&gt;  IF RETCODE NE 0.&lt;/P&gt;&lt;P&gt;    RETURN_CODE = 1.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    RETURN_CODE = 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM PROCESSING.&lt;/P&gt;&lt;P&gt;data: fm_name            type RS38L_FNAM.&lt;/P&gt;&lt;P&gt;data: control_parameters type SSFCTRLOP.&lt;/P&gt;&lt;P&gt;data: num                type c.&lt;/P&gt;&lt;P&gt;data: i_slk              like SLK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Table internal&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF t_SLK OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE VTRLK.&lt;/P&gt;&lt;P&gt;DATA: END OF t_SLK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM INITIALIZE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM GET_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the function module for the smartform&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      FORMNAME                 = 'Z_VICS_BILL_OF_LADING'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      FM_NAME                  = fm_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Store the control parameters to print preview through the transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   move 'X' to control_parameters-no_dialog.&lt;/P&gt;&lt;P&gt;   move 'X' to control_parameters-preview.&lt;/P&gt;&lt;P&gt;   move 'PRINTER'  to control_parameters-device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the delivery table and determine if individual or master&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  describe table SLK lines sy-tabix.&lt;/P&gt;&lt;P&gt;   if sy-tabix = 1.&lt;/P&gt;&lt;P&gt;     move 'I' to num.&lt;/P&gt;&lt;P&gt;   elseif sy-tabix &amp;gt; 1.&lt;/P&gt;&lt;P&gt;     move 'M' to num.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Execute the function module - send the master&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION fm_name&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      CONTROL_PARAMETERS  = control_parameters&lt;/P&gt;&lt;P&gt;      SHIPMENT_NUM        = SHIPMENT_NUM&lt;/P&gt;&lt;P&gt;      VTTKVB              = VTTKVB        "Shipment Head&lt;/P&gt;&lt;P&gt;      TVTK                = TVTK          "Shipmenttype&lt;/P&gt;&lt;P&gt;      TVTKT               = TVTKT         "Description Shipmenttype&lt;/P&gt;&lt;P&gt;      TTDS                = TTDS          "Disposition&lt;/P&gt;&lt;P&gt;      TTDST               = TTDST         "Description Disposition&lt;/P&gt;&lt;P&gt;      VBPLA               = VBPLA         "Packages&lt;/P&gt;&lt;P&gt;      NUM                 = num           "Master or Individual BOL&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      VTTP                = XVTTP         "Shipment Items&lt;/P&gt;&lt;P&gt;      TRLK                = SLK           "Delivery&lt;/P&gt;&lt;P&gt;      TRLP                = SLP           "Delivery Item&lt;/P&gt;&lt;P&gt;      VTTS                = XVTTS         "Shipment Segments&lt;/P&gt;&lt;P&gt;      VTSP                = XVTSP         "Segments/Items&lt;/P&gt;&lt;P&gt;      VBPA                = XVBPA         "Partner&lt;/P&gt;&lt;P&gt;      VBADR               = XVBADR        "Address&lt;/P&gt;&lt;P&gt;      VTFA                = XVTFA         "Flow&lt;/P&gt;&lt;P&gt;      VBPLK               = XVBPLK        "Shipment Unit Header&lt;/P&gt;&lt;P&gt;      VBPLP               = XVBPLP        "Shipment Unit&lt;/P&gt;&lt;P&gt;      VBPLS               = XVBPLS.       "Shipment Unit Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;print the individual deliveries&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if num = 'M'.&lt;/P&gt;&lt;P&gt; num = 'I'.&lt;/P&gt;&lt;P&gt;loop at SLK into i_slk.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Store each delivery&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; append i_slk to t_slk.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Print the Bill of Lading for each individual delivery&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; CALL FUNCTION fm_name&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      CONTROL_PARAMETERS  = control_parameters&lt;/P&gt;&lt;P&gt;      SHIPMENT_NUM        = SHIPMENT_NUM&lt;/P&gt;&lt;P&gt;      VTTKVB              = VTTKVB        "Shipment Head&lt;/P&gt;&lt;P&gt;      TVTK                = TVTK          "Shipmenttype&lt;/P&gt;&lt;P&gt;      TVTKT               = TVTKT         "Description Shipmenttype&lt;/P&gt;&lt;P&gt;      TTDS                = TTDS          "Disposition&lt;/P&gt;&lt;P&gt;      TTDST               = TTDST         "Description Disposition&lt;/P&gt;&lt;P&gt;      VBPLA               = VBPLA         "Packages&lt;/P&gt;&lt;P&gt;      NUM                 = num           "Master or Individual BOL&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      VTTP                = XVTTP         "Shipment Items&lt;/P&gt;&lt;P&gt;      TRLK                = t_slk         "Delivery&lt;/P&gt;&lt;P&gt;      TRLP                = SLP           "Delivery Item&lt;/P&gt;&lt;P&gt;      VTTS                = XVTTS         "Shipment Segments&lt;/P&gt;&lt;P&gt;      VTSP                = XVTSP         "Segments/Items&lt;/P&gt;&lt;P&gt;      VBPA                = XVBPA         "Partner&lt;/P&gt;&lt;P&gt;      VBADR               = XVBADR        "Address&lt;/P&gt;&lt;P&gt;      VTFA                = XVTFA         "Flow&lt;/P&gt;&lt;P&gt;      VBPLK               = XVBPLK        "Shipment Unit Header&lt;/P&gt;&lt;P&gt;      VBPLP               = XVBPLP        "Shipment Unit&lt;/P&gt;&lt;P&gt;      VBPLS               = XVBPLS.       "Shipment Unit Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear t_slk[].&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the perform processing, you should get all the data using nast structures.&lt;/P&gt;&lt;P&gt;Meaning, nast-objkey will have po number in your case.&lt;/P&gt;&lt;P&gt;Get all po related info by writing slects on EKKO anf EKPO tables.&lt;/P&gt;&lt;P&gt;Then you can call the FMs for smartform name and the FM for the smartform.&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>Mon, 15 May 2006 17:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356782#M588700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T17:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: form routine in smartform development</title>
      <link>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356783#M588701</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;So you mean to say that i need to assign a tcode for my driver program.. I though it is autommatically called when a PO is created or saved...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( So can you cleary tell me like if the driver program is called when a tcode is executed or when the PO is created or saved... do we really need to assing this driver program to any tcode...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And regarding the form routine.. can i use the form entry as it is in the above example for all my custom forms or will there be different form routine names for different forms.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your great answers and sorry for bit inexperience in this topic.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kanthi...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 17:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356783#M588701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T17:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: form routine in smartform development</title>
      <link>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356784#M588702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Kanthi,&lt;/P&gt;&lt;P&gt; YOu do not need to assign a t code for your driver program.&lt;/P&gt;&lt;P&gt;For example when you create a PO in me21, there will be an output type that is attached to the me21 transaction.&lt;/P&gt;&lt;P&gt;That Output type will trigger your driver program automatically.&lt;/P&gt;&lt;P&gt;The control comes to the form entry after you save the transaction(me21 in your case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu can use the name 'entry' for your form as well.Only thing you should remember is that you should have given the same name for the routine name in NACE transaction(where you configure your output type).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: Nothing to feel sorry about...:)&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>Mon, 15 May 2006 17:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356784#M588702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T17:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: form routine in smartform development</title>
      <link>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356785#M588703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like i got a clear idea now... Thanks for your answers.. if iam stuck hope i will post to get help from you guys..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kanthi..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 17:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/form-routine-in-smartform-development/qaa-p/1356785#M588703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T17:57:41Z</dc:date>
    </item>
  </channel>
</rss>

