<?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: Pop-up message with table value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489802#M1420198</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;Check this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;popup_get_values.&lt;/P&gt;&lt;P&gt;Read the documentation for this FM. Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2009 07:11:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-22T07:11:12Z</dc:date>
    <item>
      <title>Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489797#M1420193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to display a pop-up message while saving invoice documents in FB60, i m using the customer exit for the same.&lt;/P&gt;&lt;P&gt;but problem is that i have to display some values also in pop-up screen and there should be two pushbutton for user selection like 'OK' and 'CANCEL'. can anyone plz tell me which function module should i use? i tried POPUP_TO_CONFIRM, POPUP_TO_CONFIRM_WITH_MESSAGE, and POPUP_TO_CONFIRM_WITH_VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pop-up message must be like....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'atleast one document has been entered.'   " this is text only&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vendor   :   211111 - product distribution.    "vendor &amp;amp; description from ITAB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Refrence :  Test1                                          " Ref from ITAB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do u want to continue to save?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OK -&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;CANCEL   &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 05:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489797#M1420193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T05:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489798#M1420194</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;This is a module pool program SAPMF05A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a new screen and make its layout , as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can handel the OK code , as per your logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call this screen in your exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 05:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489798#M1420194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T05:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489799#M1420195</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;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'POPUP_TO_CONFIRM'
        exporting
         titlebar                    = text-004
*       DIAGNOSE_OBJECT             = ' '
          text_question               = message
          text_button_1               = text-002
          icon_button_1               = 'X'
          text_button_2               = text-003
          icon_button_2               = 'X'
          default_button              = co_one
          display_cancel_button       = co_space
*       USERDEFINED_F1_HELP         = ' '
*       START_COLUMN                = 25
*       START_ROW                   = 6
*       POPUP_TYPE                  =
*       IV_QUICKINFO_BUTTON_1       = ' '
*       IV_QUICKINFO_BUTTON_2       = ' '
       importing
         answer                      = l_answer
*     TABLES
*       PARAMETER                   =
       exceptions
         text_not_found              = 1
         others                      = 2
                .
      if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the place of message you can dynamically populate the text required in a variable and use that variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 05:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489799#M1420195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T05:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489800#M1420196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gopinath ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx for reply, can u please tell me in details that how can i display all required data like text and table values in 'MESSAGE' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 06:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489800#M1420196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T06:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489801#M1420197</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;Suppose you want to display &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;atleast one document has been entered.' " this is text only&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vendor : 211111 - product distribution. "vendor &amp;amp; description from ITAB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Refrence : Test1 " Ref from ITAB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;constant: text1(100) type c value 'atleast one document has been entered'.
constant: text2(10) type c value 'Vendor:'.
constant: text3(10) type c value 'Reference:'.

data: message type string,
         l_answer type c.


"declare with the respective types of vendor, description and reference.
data: d_vendor,
         d_desc,
         d_ref.

clear: d_vendor, d_desc, d_ref.
Read table itab into wa_itab with key "use your condition here to select the required record from itab.
if sy-subrc = 0.
d_vendor = wa_itab-vendor.
d_desc = wa_itab-desc.
d_ref = wa_itab-ref.
endif.

concatenate text1 text2 d_vendor '-' d_desc text3 d_ref into message separated by space.

call function 'POPUP_TO_CONFIRM'
        exporting
         titlebar                    = 'Header'
          text_question               = message
          text_button_1               = 'OK'
          icon_button_1               = 'X'
          text_button_2               = 'CANCEL'
          icon_button_2               = 'X'
          default_button              = 1
          display_cancel_button       = 
       importing
         answer                      = l_answer
       exceptions
         text_not_found              = 1
         others                      = 2
                .
      if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.

if l_answer = 1.
"logic if ok is pressed.
else if l_answer = 2.
"logic if cancel is pressed.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harini Gopinath on Dec 22, 2009 12:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 06:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489801#M1420197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T06:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489802#M1420198</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;Check this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;popup_get_values.&lt;/P&gt;&lt;P&gt;Read the documentation for this FM. Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 07:11:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489802#M1420198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T07:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489803#M1420199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is a sample code using fm POPUP_TO_CONFIRM&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: t_spar TYPE TABLE OF spar.
DATA: fs_spar LIKE LINE OF t_spar.
DATA: w_text TYPE string.
data: w_ans type c.
" data in t_spar can ne your itab data to be displayed
fs_spar-param = 'Vendor'.
fs_spar-value = 'Vendor'.
append fs_spar to t_spar.

fs_spar-param = 'kunnr'.
fs_spar-value = '1234'.
append fs_spar to t_spar.

CONCATENATE '&amp;amp;Vendor&amp;amp;' '--' '&amp;amp;kunnr&amp;amp;'
' Do You want to continue to save?' into w_text.
WRITE: 'CLICK SAVE'.

SET PF-STATUS 'STAT'. 

AT USER-COMMAND.
CASE SY-UCOMM.
  WHEN 'SAVE'.


CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
   TITLEBAR   = 'atleast one document has been entered'
*   DIAGNOSE_OBJECT             = ' '
    text_question = w_text
   TEXT_BUTTON_1               = 'OK'(001)
*   ICON_BUTTON_1               = ' '
   TEXT_BUTTON_2               = 'NO'(002)
*   ICON_BUTTON_2               = ' '
*   DEFAULT_BUTTON              = '1'
   DISPLAY_CANCEL_BUTTON       = 'X'
*   USERDEFINED_F1_HELP         = ' '
*   START_COLUMN                = 25
*   START_ROW                   = 6
*   POPUP_TYPE                  =
*   IV_QUICKINFO_BUTTON_1       = ' '
*   IV_QUICKINFO_BUTTON_2       = ' '
 IMPORTING
   ANSWER                      = w_ans
 TABLES
   PARAMETER                   = t_spar
 EXCEPTIONS
   TEXT_NOT_FOUND              = 1
   OTHERS                      = 2
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

WHEN OTHERS.
  EXIT.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 07:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489803#M1420199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T07:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489804#M1420200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gopinath...very thanx for nice reply....it has been resolve my issue.&lt;/P&gt;&lt;P&gt;but can u plz tell me one more thing that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if l_answer = 1.&lt;/P&gt;&lt;P&gt;"logic if ok is pressed.            " &lt;STRONG&gt;here i want that user can continue to save---then what code should i write here&lt;/STRONG&gt; else if l_answer = 2.&lt;/P&gt;&lt;P&gt;"logic if cancel is pressed.    " &lt;STRONG&gt;here i want that user come back to FB60 screen---then what code should i write here&lt;/STRONG&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also tell me that how can i increase the size of POP-UP box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 09:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489804#M1420200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T09:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489805#M1420201</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;If l_answer = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"database should be updated&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;db table&amp;gt; from wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif l_answer = 2.&lt;/P&gt;&lt;P&gt;"no action should take place&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your question is resolved, award points and mark the question as solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 09:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489805#M1420201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T09:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489806#M1420202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear gopinath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m writing this logic but it is still creating the document number in database, while i need that if &lt;STRONG&gt;l_answer = '2'&lt;/STRONG&gt;  then it must come back on basic screen of FB60.     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if l_answer = '2'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;skip.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;else.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 10:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489806#M1420202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T10:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489807#M1420203</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;Please paste your code here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 10:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489807#M1420203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T10:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489808#M1420204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gopinath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i passed the FB60 screen number and now it is working, so now only u check that what i write, is it fine or not?&lt;/P&gt;&lt;P&gt;and please let me know can i increase the size of POP-UP box because all contents are not coming as desired line and spaces?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;  tables : bsip, lfa1.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TYPES: BEGIN OF t_tab,                   " Structure&lt;/P&gt;&lt;P&gt;           xblnr like bsip-xblnr,&lt;/P&gt;&lt;P&gt;           belnr like bsip-belnr,&lt;/P&gt;&lt;P&gt;           name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;           end of t_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;  DATA: lt_itab TYPE TABLE OF t_tab with header line.  "local internal table&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : lwa type bseg.       " Local work area&lt;/P&gt;&lt;P&gt;  data : lwa1 type bkpf.      " Local work area&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;  constants: text1(80) type c value 'Atleast one document has been entered with same vendor name and Reference Data.'.&lt;/P&gt;&lt;P&gt;  constants: text2(10) type c value 'Vendor:'.&lt;/P&gt;&lt;P&gt;  constants: text3(10) type c value 'Reference:'.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;  data: message type string,&lt;/P&gt;&lt;P&gt;           l_answer type c.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;  read table DOC_ITEM_TAB index 1 into lwa.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    read table DOC_HEAD_TAB index 1 into lwa1.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select single xblnr belnr from bsip into lt_itab where LIFNR = lwa-LIFNR&lt;/P&gt;&lt;P&gt;                                                   and XBLNR = lwa1-XBLNR&lt;/P&gt;&lt;P&gt;                                                   and SHKZG ne 'S'.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        select single name1 from lfa1 into lt_itab-name1 where lifnr = lwa-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        concatenate text1 text2 lwa-LIFNR '-' lt_itab-name1 text3 lwa1-XBLNR into message separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        call function 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;        titlebar                    = 'Duplicate Check'&lt;/P&gt;&lt;P&gt;        text_question               = message&lt;/P&gt;&lt;P&gt;        text_button_1               = 'OK'&lt;/P&gt;&lt;P&gt;        icon_button_1               = 'X'&lt;/P&gt;&lt;P&gt;        text_button_2               = 'Cancel'&lt;/P&gt;&lt;P&gt;        icon_button_2               = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           default_button              = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        display_cancel_button       = ' '&lt;/P&gt;&lt;P&gt;       START_COLUMN                = 25&lt;/P&gt;&lt;P&gt;       START_ROW                   = 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   importing&lt;/P&gt;&lt;P&gt;       answer                      = l_answer&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;       text_not_found              = 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;*----&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;        &lt;STRONG&gt;if l_answer = '2'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;leave to screen 1100.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;else.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&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; else.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;  else.&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;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 11:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489808#M1420204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T11:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up message with table value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489809#M1420205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Check this Thread|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8557074"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is simple and Straight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 11:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pop-up-message-with-table-value/m-p/6489809#M1420205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T11:57:43Z</dc:date>
    </item>
  </channel>
</rss>

