<?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: ALV grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128313#M447103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shiv,&lt;/P&gt;&lt;P&gt;My requirement is not to convert smartform output to pdf &lt;/P&gt;&lt;P&gt;i do have the smartform created with zxxxxxform and also i created driver program&lt;/P&gt;&lt;P&gt;for this form say zxxxxprg in this prog i have a sel screen with po number as &lt;/P&gt;&lt;P&gt;input and two buttons preview and refresh when i enter po no and click preview&lt;/P&gt;&lt;P&gt;i am able to get the smartform output for that particular po in pdf format storing in a specified place. thats there with me.&lt;/P&gt;&lt;P&gt;i do have a report zxxxxpodetails which lists all pos and their details its an alv grid &lt;/P&gt;&lt;P&gt;when i double click on the selected po from the alv grid output i need to call the &lt;/P&gt;&lt;P&gt;driver prog zxxxprg and submit the selected po there in the sel screen and clicking&lt;/P&gt;&lt;P&gt;the preview button i need to get the smartform output for the selected po in pdf &lt;/P&gt;&lt;P&gt;stored in the location. i need to do it dynamically.&lt;/P&gt;&lt;P&gt;i need to get the pdf form for the selected po dynamically clubing the driver prog from the report.&lt;/P&gt;&lt;P&gt;my final req is that when i double click on the po no from the alv grid output i should get the pdf form generted for that po calling the driver prog passing the sel screen input and generating pdf form internally stored in a place&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2007 07:06:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-20T07:06:13Z</dc:date>
    <item>
      <title>ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128309#M447099</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 have developed an alv grid report displaying POs with their multiple line items&lt;/P&gt;&lt;P&gt;when i double click on the selected po from the grid i need to get the smartform &lt;/P&gt;&lt;P&gt;output in pdf format i have the smartform where  i am passing the po number&lt;/P&gt;&lt;P&gt;in the sel screen of the smartform i do have driver program. i need to club these&lt;/P&gt;&lt;P&gt;two i.e., when i click on the selected PO from the alv grid i should get the pdf &lt;/P&gt;&lt;P&gt;formatted smartfrom output calling the driver program of the smartform which i have by passing the po number in to the form this should be done internally and &lt;/P&gt;&lt;P&gt;i need to generate pdf smartform output for the selected po in the alv grid&lt;/P&gt;&lt;P&gt;i do have smartform layout and print prog which takes po number as input and &lt;/P&gt;&lt;P&gt;generate smartform output in pdf format. i also have alv report showing all the pos&lt;/P&gt;&lt;P&gt;i need to club these and get the pdf for the selected po from alv grid by double clicking the selected po on the alv grid. i need to get the pdf generated as if i double click on the selected po &lt;/P&gt;&lt;P&gt;help me out by clubing the smartform in to alv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 14:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128309#M447099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T14:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128310#M447100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sreenivas ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its appreciated that if you can explain your question in more precised way so that others may feel interested and easy to answer your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I can tell you the program to convert your smartform to pdf ,see if that code can helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 14:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128310#M447100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T14:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128311#M447101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreenivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check it out,hope this may give some idea .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward useful points if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;i_tline TYPE TABLE OF tline WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Objects to send mail.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Work Area declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;wa_objhead TYPE soli_tab,&lt;/P&gt;&lt;P&gt;w_ctrlop TYPE ssfctrlop,&lt;/P&gt;&lt;P&gt;w_compop TYPE ssfcompop,&lt;/P&gt;&lt;P&gt;w_return TYPE ssfcrescl,&lt;/P&gt;&lt;P&gt;wa_doc_chng typE sodocchgi1,&lt;/P&gt;&lt;P&gt;w_data TYPE sodocchgi1,&lt;/P&gt;&lt;P&gt;wa_buffer TYPE string,"To convert from 132 to 255&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Variables declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;v_form_name TYPE rs38l_fnam,&lt;/P&gt;&lt;P&gt;v_len_in LIKE sood-objlen,&lt;/P&gt;&lt;P&gt;v_len_out LIKE sood-objlen,&lt;/P&gt;&lt;P&gt;v_len_outn TYPE i,&lt;/P&gt;&lt;P&gt;v_lines_txt TYPE i,&lt;/P&gt;&lt;P&gt;v_lines_bin TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;formname = 'ZZZ_TEST1'&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;fm_name = v_form_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;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_ctrlop-getotf = 'X'.&lt;/P&gt;&lt;P&gt;w_ctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;w_compop-tdnoprev = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION v_form_name&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;control_parameters = w_ctrlop&lt;/P&gt;&lt;P&gt;output_options = w_compop&lt;/P&gt;&lt;P&gt;user_settings = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;job_output_info = w_return&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;formatting_error = 1&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 &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_otf[] = w_return-otfdata[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CONVERT_OTF'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;format = 'PDF'&lt;/P&gt;&lt;P&gt;max_linewidth = 132&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;bin_filesize = v_len_in&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;otf = i_otf&lt;/P&gt;&lt;P&gt;lines = i_tline&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;err_max_linewidth = 1&lt;/P&gt;&lt;P&gt;err_format = 2&lt;/P&gt;&lt;P&gt;err_conv_not_possible = 3&lt;/P&gt;&lt;P&gt;others = 4.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fehlerhandling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tline.&lt;/P&gt;&lt;P&gt;translate i_tline using '~'.&lt;/P&gt;&lt;P&gt;concatenate wa_buffer i_tline into wa_buffer.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;translate wa_buffer using '~'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;i_record = wa_buffer.&lt;/P&gt;&lt;P&gt;append i_record.&lt;/P&gt;&lt;P&gt;shift wa_buffer left by 255 places.&lt;/P&gt;&lt;P&gt;if wa_buffer is initial.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;refresh:&lt;/P&gt;&lt;P&gt;i_reclist,&lt;/P&gt;&lt;P&gt;i_objtxt,&lt;/P&gt;&lt;P&gt;i_objbin,&lt;/P&gt;&lt;P&gt;i_objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_objhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_objbin[] = i_record[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="7" type="ul"&gt;&lt;P&gt;Create Message Body&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;Title and Description&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;i_objtxt = 'test with pdf-Attachment!'.&lt;/P&gt;&lt;P&gt;append i_objtxt.&lt;/P&gt;&lt;P&gt;describe table i_objtxt lines v_lines_txt.&lt;/P&gt;&lt;P&gt;read table i_objtxt index v_lines_txt.&lt;/P&gt;&lt;P&gt;wa_doc_chng-obj_name = 'smartform'.&lt;/P&gt;&lt;P&gt;wa_doc_chng-expiry_dat = sy-datum + 10.&lt;/P&gt;&lt;P&gt;wa_doc_chng-obj_descr = 'smartform'.&lt;/P&gt;&lt;P&gt;wa_doc_chng-sensitivty = 'F'.&lt;/P&gt;&lt;P&gt;wa_doc_chng-doc_size = v_lines_txt * 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;Main Text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*.&lt;/P&gt;&lt;P&gt;clear i_objpack-transf_bin.&lt;/P&gt;&lt;P&gt;i_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;i_objpack-head_num = 0.&lt;/P&gt;&lt;P&gt;i_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;i_objpack-body_num = v_lines_txt.&lt;/P&gt;&lt;P&gt;i_objpack-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;append i_objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;Attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(pdf-Attachment)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;i_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;i_objpack-head_num = 0.&lt;/P&gt;&lt;P&gt;i_objpack-body_start = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Länge des Attachment ermitteln&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;describe table i_objbin lines v_lines_bin.&lt;/P&gt;&lt;P&gt;read table i_objbin index v_lines_bin.&lt;/P&gt;&lt;P&gt;i_objpack-doc_size = v_lines_bin * 255 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_objpack-body_num = v_lines_bin.&lt;/P&gt;&lt;P&gt;i_objpack-doc_type = 'PDF'.&lt;/P&gt;&lt;P&gt;i_objpack-obj_name = 'smart'.&lt;/P&gt;&lt;P&gt;i_objpack-obj_descr = 'test'.&lt;/P&gt;&lt;P&gt;append i_objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear i_reclist.&lt;/P&gt;&lt;P&gt;i_reclist-receiver = xyz@yahoo.com'.&lt;/P&gt;&lt;P&gt;i_reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;append i_reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;document_data = wa_doc_chng&lt;/P&gt;&lt;P&gt;put_in_outbox = 'X'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;packing_list = i_objpack&lt;/P&gt;&lt;P&gt;object_header = wa_objhead&lt;/P&gt;&lt;P&gt;CONTENTS_BIN = i_objbin&lt;/P&gt;&lt;P&gt;contents_txt = i_objtxt&lt;/P&gt;&lt;P&gt;receivers = i_reclist&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;too_many_receivers = 1&lt;/P&gt;&lt;P&gt;document_not_sent = 2&lt;/P&gt;&lt;P&gt;document_type_not_exist = 3&lt;/P&gt;&lt;P&gt;operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;parameter_error = 5&lt;/P&gt;&lt;P&gt;x_error = 6&lt;/P&gt;&lt;P&gt;enqueue_error = 7&lt;/P&gt;&lt;P&gt;others = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 14:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128311#M447101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128312#M447102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srinivas,&lt;/P&gt;&lt;P&gt;This is my guess :&lt;/P&gt;&lt;P&gt;In the double click event for the PO Number, capture the purchase order number by using the row and the column number returned by the double click event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store this in selection table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call driver program using SUBMIT statement and pass the Selection Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you tell me if it works?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 14:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128312#M447102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T14:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128313#M447103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shiv,&lt;/P&gt;&lt;P&gt;My requirement is not to convert smartform output to pdf &lt;/P&gt;&lt;P&gt;i do have the smartform created with zxxxxxform and also i created driver program&lt;/P&gt;&lt;P&gt;for this form say zxxxxprg in this prog i have a sel screen with po number as &lt;/P&gt;&lt;P&gt;input and two buttons preview and refresh when i enter po no and click preview&lt;/P&gt;&lt;P&gt;i am able to get the smartform output for that particular po in pdf format storing in a specified place. thats there with me.&lt;/P&gt;&lt;P&gt;i do have a report zxxxxpodetails which lists all pos and their details its an alv grid &lt;/P&gt;&lt;P&gt;when i double click on the selected po from the alv grid output i need to call the &lt;/P&gt;&lt;P&gt;driver prog zxxxprg and submit the selected po there in the sel screen and clicking&lt;/P&gt;&lt;P&gt;the preview button i need to get the smartform output for the selected po in pdf &lt;/P&gt;&lt;P&gt;stored in the location. i need to do it dynamically.&lt;/P&gt;&lt;P&gt;i need to get the pdf form for the selected po dynamically clubing the driver prog from the report.&lt;/P&gt;&lt;P&gt;my final req is that when i double click on the po no from the alv grid output i should get the pdf form generted for that po calling the driver prog passing the sel screen input and generating pdf form internally stored in a place&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 07:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128313#M447103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T07:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128314#M447104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have use events for this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_event_call&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_V_EVENTS_REPL  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_event_call USING    p_v_events.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     i_list_type           = 0&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     et_events             = p_v_events&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_TYPE_WRONG       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 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;ENDFORM.                    " sub_event_call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_INTERFACE_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_BYPASSING_BUFFER                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_BUFFER_ACTIVE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        i_callback_program                = v_repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_CALLBACK_PF_STATUS_SET          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        i_callback_user_command           = 'USER_COMMAND_FINAL'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_CALLBACK_HTML_END_OF_LIST       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_STRUCTURE_NAME                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_BACKGROUND_ID                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        i_grid_title                      = ws_title&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_GRID_SETTINGS                   =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    is_layout                         = g_layout&lt;/P&gt;&lt;P&gt;        it_fieldcat                       = g_fieldcat[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_EXCLUDING                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_SPECIAL_GROUPS                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    it_sort                           = it_sort&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_FILTER                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IS_SEL_HIDE                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_DEFAULT                         = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        i_save                            = 'A'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IS_VARIANT                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       it_events                         = v_events_final&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_EVENT_EXIT                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    is_print                          = ls_print&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IS_REPREP_ID                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_SCREEN_START_COLUMN             = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_SCREEN_START_LINE               = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_SCREEN_END_COLUMN               = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_SCREEN_END_LINE                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_ALV_GRAPHICS                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_ADD_FIELDCAT                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_HYPERLINK                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_HTML_HEIGHT_TOP                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_HTML_HEIGHT_END                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IT_EXCEPT_QINFO                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   E_EXIT_CAUSED_BY_CALLER           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ES_EXIT_CAUSED_BY_USER            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_outtab                          = it_final&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       program_error                     = 1&lt;/P&gt;&lt;P&gt;       OTHERS                            = 2&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  POPULATE_EVENT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;FORM populate_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE v_events_final INTO wa_event WITH KEY&lt;/P&gt;&lt;P&gt;                      name = 'USER_COMMAND_FINAL'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    wa_event-form = 'USER_COMMAND_FINAL'.&lt;/P&gt;&lt;P&gt;    MODIFY v_events_final FROM wa_event TRANSPORTING form&lt;/P&gt;&lt;P&gt;    WHERE name = wa_event-name.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " POPULATE_EVENT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  USER_COMMAND_FINAL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;R_UCOMM    text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;,          text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;RS_SLEFIELDtext&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command_final USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;***User interaction on detail list&lt;/P&gt;&lt;P&gt;**Displays Tx IW53&lt;/P&gt;&lt;P&gt;  CLEAR g_rs_selfield.&lt;/P&gt;&lt;P&gt;  CASE r_ucomm.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;       CLEAR wa_repl_final.&lt;/P&gt;&lt;P&gt;        READ TABLE it_repl_final INTO wa_repl_final INDEX&lt;/P&gt;&lt;P&gt;                rs_selfield-tabindex.&lt;/P&gt;&lt;P&gt;        IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         SET PARAMETER ID 'IQM' FIELD wa_repl_final-qmnum.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        CALL TRANSACTION 'IW53' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here use SUBMIT statement by passing the value to from driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "user_command_det&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 07:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128314#M447104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T07:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128315#M447105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI check,,&lt;/P&gt;&lt;P&gt;structures&lt;/P&gt;&lt;P&gt; ssfctrlop,&lt;/P&gt;&lt;P&gt; ssfcompop. if u can find anything to give PDF format..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 07:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128315#M447105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T07:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128316#M447106</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;You can do that , when you double click on your ALV grid on PO number, enter logic in your program at-line-selection event to call the other program driver program using submit option and pass the PO number to that program with preview button as 'X' .&lt;/P&gt;&lt;P&gt;In this way it will show the smartform for your PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ponraj.s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 07:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128316#M447106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T07:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128317#M447107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;U can an option in alv grid display for user command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that, include this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                        RS_SELFIELD TYPE SLIS_SELFIELD.

  CASE R_UCOMM.
when  '&amp;amp;IC1&amp;amp;..
IF RS_SELFIELD-NAME 'EBELN'.


submit report 'ZSMARTFORM' WITH SELECT-OPTIONS-LOW = RS_SELFIED-VALUE.
ENDIF.
ENDCASE.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HERE,&lt;/P&gt;&lt;P&gt;'ZSMARTFORM' is ur smartform driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more queries do revert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 07:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2128317#M447107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T07:52:59Z</dc:date>
    </item>
  </channel>
</rss>

