<?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 CALLING A TRANSACTION CODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097189#M436767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process of this function module-&amp;gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;The function module outputs an internal table with whatever structure in the form of a formatted single- oder multi-line list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Passing an internal table with the set of information to be output&lt;/P&gt;&lt;P&gt;Passing a structure with general layout specifications for list layout&lt;/P&gt;&lt;P&gt;Passing a field catalog in the form of an internal table&lt;/P&gt;&lt;P&gt;The field catalog describes the fields to be output in the list.&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;All interactions performed on the list refer directly to the internal output table. Sorting the list, for example, also involves a resorting of the internal output table passed (since it was passed by reference).&lt;/P&gt;&lt;P&gt;An important factor determining the usability of the tool or of various generic functions (totals, subtotals) is the expected amount of data to be displayed.&lt;/P&gt;&lt;P&gt;The application is responsible for critically testing this aspect and consider it when it comes to decision-making.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process-&amp;gt;&lt;/P&gt;&lt;P&gt;debut the program and check where you r storing the document number tht is coming from FB03 and check where you r printing that particular document number,if you have designed your field catalog accrdingly than check the field catalog also duing the debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2007 07:52:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-11T07:52:02Z</dc:date>
    <item>
      <title>ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097185#M436763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everyone,&lt;/P&gt;&lt;P&gt;its my first time to post a thread here and hoping someone can help me about my problem in ALV Grid. Im using REUSE_ALV_GRID_DISPLAY.I use the code&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'BEL' FIELD  rs_selfield-value.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'FB03'  AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;which is ok but my problem is when TCODE fb03 loaded the document number that i specify does not appear..Kindly help me how to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance ,&lt;/P&gt;&lt;P&gt;Avaduds &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 07:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097185#M436763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T07:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097186#M436764</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;I believe that the parameter ID is 'BLN'. Either way don't skip the first screen in order to see which document is put in the first screen of FB03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 07:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097186#M436764</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-04-11T07:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097187#M436765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Parameter-ID is 'BLN' and not 'BEL'. Try this, this should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 07:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097187#M436765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T07:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097188#M436766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Kostas,&lt;/P&gt;&lt;P&gt;Amazing! thanks  for your help:-) but how would i know the parameter id for a specific field like for the sample below..&lt;/P&gt;&lt;P&gt;    IF rs_selfield-fieldname = 'BELNR'.&lt;/P&gt;&lt;P&gt;        SET PARAMETER ID 'BLN' FIELD  rs_selfield-value.&lt;/P&gt;&lt;P&gt;        CALL TRANSACTION 'FB03'  AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;BLN is for BELNR...how about for the others?is there any table of transaction code for me to know the parameter id?&lt;/P&gt;&lt;P&gt;Thanks so much &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; you're so genius&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avaduds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 07:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097188#M436766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T07:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097189#M436767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process of this function module-&amp;gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;The function module outputs an internal table with whatever structure in the form of a formatted single- oder multi-line list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Passing an internal table with the set of information to be output&lt;/P&gt;&lt;P&gt;Passing a structure with general layout specifications for list layout&lt;/P&gt;&lt;P&gt;Passing a field catalog in the form of an internal table&lt;/P&gt;&lt;P&gt;The field catalog describes the fields to be output in the list.&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;All interactions performed on the list refer directly to the internal output table. Sorting the list, for example, also involves a resorting of the internal output table passed (since it was passed by reference).&lt;/P&gt;&lt;P&gt;An important factor determining the usability of the tool or of various generic functions (totals, subtotals) is the expected amount of data to be displayed.&lt;/P&gt;&lt;P&gt;The application is responsible for critically testing this aspect and consider it when it comes to decision-making.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process-&amp;gt;&lt;/P&gt;&lt;P&gt;debut the program and check where you r storing the document number tht is coming from FB03 and check where you r printing that particular document number,if you have designed your field catalog accrdingly than check the field catalog also duing the debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 07:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097189#M436767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T07:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097190#M436768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just see the technical info for the field in the screen. For example in tran FB03 press F1 , F9 in the field Document Number and you should see the the parameter id is BLN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 07:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097190#M436768</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-04-11T07:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097191#M436769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ! now I know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 08:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097191#M436769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T08:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097192#M436770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kostas,&lt;/P&gt;&lt;P&gt;Can you help me to optimize my code?please...i used logical dbf before which is SDF but simple select to tables BSIS,BKPF and BSEG is much faster..but it also took i while to process a report (2minutes). Here is a sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can give me some advice...Im just a begginer in ABAP programming&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;aVaDuDz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT SINGLE *&lt;/P&gt;&lt;P&gt;  FROM skb1&lt;/P&gt;&lt;P&gt;  WHERE bukrs EQ p_bukrs&lt;/P&gt;&lt;P&gt;  AND saknr EQ p_saknr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    SELECT blart belnr waers monat budat bukrs hkont buzei&lt;/P&gt;&lt;P&gt;           shkzg dmbtr wrbtr gjahr&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE it_bsis&lt;/P&gt;&lt;P&gt;    FROM bsis&lt;/P&gt;&lt;P&gt;    WHERE bukrs EQ p_bukrs&lt;/P&gt;&lt;P&gt;    AND hkont EQ p_saknr&lt;/P&gt;&lt;P&gt;    AND gjahr IN p_gjahr&lt;/P&gt;&lt;P&gt;    AND monat IN p_monat.&lt;/P&gt;&lt;P&gt;    PERFORM add_record.&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;&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  add_record&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;  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;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM add_record .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_bsis.&lt;/P&gt;&lt;P&gt;    g_percn = 1.&lt;/P&gt;&lt;P&gt;    CLEAR g_indic.&lt;/P&gt;&lt;P&gt;    g_indic = c_indic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REPLACE '&amp;amp;' WITH it_bsis-belnr INTO g_indic.&lt;/P&gt;&lt;P&gt;    REPLACE '%' WITH it_bsis-buzei INTO g_indic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        percentage = g_percn&lt;/P&gt;&lt;P&gt;        text       = g_indic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE it_data ASSIGNING &amp;lt;data&amp;gt;&lt;/P&gt;&lt;P&gt;         WITH KEY  belnr = it_bsis-belnr "document #&lt;/P&gt;&lt;P&gt;                   buzei = it_bsis-buzei. "Line Item&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;      APPEND INITIAL LINE TO it_data ASSIGNING &amp;lt;data&amp;gt;.&lt;/P&gt;&lt;P&gt;      &amp;lt;data&amp;gt;-belnr = it_bsis-belnr. "document #&lt;/P&gt;&lt;P&gt;      &amp;lt;data&amp;gt;-buzei = it_bsis-buzei. "Line Item&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-bukrs = it_bsis-bukrs. "Company&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-hkont = it_bsis-hkont. "G/L Acct.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-gjahr = it_bsis-gjahr.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-waers = it_bsis-waers.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-belnr = it_bsis-belnr.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-monat = it_bsis-monat.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-budat = it_bsis-budat.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-blart = it_bsis-blart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF it_bsis-shkzg ='H'.&lt;/P&gt;&lt;P&gt;      &amp;lt;data&amp;gt;-wrbtr = it_bsis-wrbtr * -1.&lt;/P&gt;&lt;P&gt;      &amp;lt;data&amp;gt;-dmbtr = it_bsis-dmbtr * -1.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      &amp;lt;data&amp;gt;-wrbtr = it_bsis-wrbtr.&lt;/P&gt;&lt;P&gt;      &amp;lt;data&amp;gt;-dmbtr = it_bsis-dmbtr.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE lifnr sgtxt&lt;/P&gt;&lt;P&gt;     FROM bseg&lt;/P&gt;&lt;P&gt;     INTO gs_vendor&lt;/P&gt;&lt;P&gt;     WHERE belnr  =  it_bsis-belnr&lt;/P&gt;&lt;P&gt;     AND gjahr IN p_gjahr&lt;/P&gt;&lt;P&gt;     AND lifnr NE ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE lifnr name1 stcd1&lt;/P&gt;&lt;P&gt;     FROM lfa1&lt;/P&gt;&lt;P&gt;     INTO gs_lfa1&lt;/P&gt;&lt;P&gt;     WHERE lifnr = gs_vendor-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-lifnr = gs_lfa1-lifnr.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-sgtxt = gs_vendor-sgtxt.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-name1 = gs_lfa1-name1.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-stcd1 = gs_lfa1-stcd1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE wt_withcd&lt;/P&gt;&lt;P&gt;    FROM with_item&lt;/P&gt;&lt;P&gt;    INTO gs_item&lt;/P&gt;&lt;P&gt;    WHERE belnr = it_bsis-belnr&lt;/P&gt;&lt;P&gt;    AND gjahr IN p_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      &amp;lt;data&amp;gt;-mwskz = gs_item.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE ppnam usnam bldat&lt;/P&gt;&lt;P&gt;    FROM bkpf&lt;/P&gt;&lt;P&gt;    INTO gs_bkpf&lt;/P&gt;&lt;P&gt;    WHERE belnr = it_bsis-belnr&lt;/P&gt;&lt;P&gt;    AND gjahr IN p_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-ppnam = gs_bkpf-ppnam.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-usnam = gs_bkpf-usnam.&lt;/P&gt;&lt;P&gt;    &amp;lt;data&amp;gt;-bldat = gs_bkpf-bldat.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " add_record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 02:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097192#M436770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T02:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097193#M436771</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;an advice is to to try and read dictionary tables with their primary key or their index, furthermore instead of many select single statements i believe it's better to use select ...for all entries in table...&lt;/P&gt;&lt;P&gt;nevertheless i have made a few changes in your code. I don't know if it's fully correct since i don't have your full report.&lt;/P&gt;&lt;P&gt;Anyway you can try it and compare it in performance with your own code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF GT_VENDOR OCCURS 0,
        BELNR LIKE BSEG-BELNR,
        LIFNR LIKE BSEG-LIFNR,
        SGTXT LIKE BSEG-SGTXT,
        NAME1 LIKE LFA1-NAME1,
      END OF GT_VENDOR.
DATA: BEGIN OF GT_LFA1 OCCURS 0,
        LIFNR LIKE LFA1-LIFNR,
        NAME1 LIKE LFA1-NAME1,
        STCD1 LIKE LFA1-STCD1,
      END OF GT_LFA1.



SELECT SINGLE *
FROM SKB1
WHERE BUKRS EQ P_BUKRS
AND SAKNR EQ P_SAKNR.


IF SY-SUBRC EQ 0.
  SELECT BLART BELNR WAERS MONAT BUDAT BUKRS HKONT BUZEI
  SHKZG DMBTR WRBTR GJAHR
  INTO CORRESPONDING FIELDS OF TABLE IT_BSIS
  FROM BSIS
  WHERE BUKRS EQ P_BUKRS
  AND HKONT EQ P_SAKNR
  AND GJAHR IN P_GJAHR.
*  AND MONAT IN P_MONAT.
  DELETE IT_BSIS WHERE NOT MONAT IN P_MONAT. "kostas

  SELECT BELNR LIFNR SGTXT FROM BSEG INTO TABLE GT_VENDOR
  FOR ALL ENTRIES IN IT_BSIS
  WHERE BELNR = IT_BSIS-BELNR
  AND GJAHR IN P_GJAHR.

*
  DELETE GT_VENDOR WHERE VENDOR IS INITIAL.
  SORT GT_VENDOR.

  SELECT LIFNR NAME1 STCD1 FROM LFA1 INTO TABLE GT_LFA1
  FOR ALL ENTRIES IN GT_VENDOR
  WHERE LIFNR = GT_VENDOR-LIFNR.

  SORT GT_LFA1.


  PERFORM ADD_RECORD.
ENDIF.


*&amp;amp;---------------------------------------------------------------------
*
*&amp;amp; Form add_record
*&amp;amp;---------------------------------------------------------------------
*
* text
*----------------------------------------------------------------------
*
* --&amp;gt; p1 text
* &amp;lt;-- p2 text
*----------------------------------------------------------------------
*
FORM ADD_RECORD .

  LOOP AT IT_BSIS.
    G_PERCN = 1.
    CLEAR G_INDIC.
    G_INDIC = C_INDIC.

    REPLACE '&amp;amp;' WITH IT_BSIS-BELNR INTO G_INDIC.
    REPLACE '%' WITH IT_BSIS-BUZEI INTO G_INDIC.

    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
      EXPORTING
        PERCENTAGE = G_PERCN
        TEXT       = G_INDIC.



    READ TABLE IT_DATA ASSIGNING &amp;lt;DATA&amp;gt;
    WITH KEY BELNR = IT_BSIS-BELNR "document #
    BUZEI = IT_BSIS-BUZEI. "Line Item

    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      APPEND INITIAL LINE TO IT_DATA ASSIGNING &amp;lt;DATA&amp;gt;.
      &amp;lt;DATA&amp;gt;-BELNR = IT_BSIS-BELNR. "document #
      &amp;lt;DATA&amp;gt;-BUZEI = IT_BSIS-BUZEI. "Line Item
    ENDIF.

    &amp;lt;DATA&amp;gt;-BUKRS = IT_BSIS-BUKRS. "Company
    &amp;lt;DATA&amp;gt;-HKONT = IT_BSIS-HKONT. "G/L Acct.
    &amp;lt;DATA&amp;gt;-GJAHR = IT_BSIS-GJAHR.
    &amp;lt;DATA&amp;gt;-WAERS = IT_BSIS-WAERS.
    &amp;lt;DATA&amp;gt;-BELNR = IT_BSIS-BELNR.
    &amp;lt;DATA&amp;gt;-MONAT = IT_BSIS-MONAT.
    &amp;lt;DATA&amp;gt;-BUDAT = IT_BSIS-BUDAT.
    &amp;lt;DATA&amp;gt;-BLART = IT_BSIS-BLART.


    IF IT_BSIS-SHKZG ='H'.
      &amp;lt;DATA&amp;gt;-WRBTR = IT_BSIS-WRBTR * -1.
      &amp;lt;DATA&amp;gt;-DMBTR = IT_BSIS-DMBTR * -1.
    ELSE.
      &amp;lt;DATA&amp;gt;-WRBTR = IT_BSIS-WRBTR.
      &amp;lt;DATA&amp;gt;-DMBTR = IT_BSIS-DMBTR.
    ENDIF.

    CLEAR GT_VENDOR.
    READ TABLE GT_VENDOR WITH KEY BELNR = IT_BSIS-BELNR BINARY SEARCH.

*    SELECT SINGLE LIFNR SGTXT
*    FROM BSEG
*    INTO GS_VENDOR
*    WHERE BELNR = IT_BSIS-BELNR
*    AND GJAHR IN P_GJAHR
*    AND LIFNR NE ''.

    CLEAR GT_LFA1.
    READ TABLE GT_LFA1 WITH KEY LIFNR = GT_VENDOR-LIFNR BINARY SEARCH.
*    SELECT SINGLE LIFNR NAME1 STCD1
*    FROM LFA1
*    INTO GS_LFA1
*    WHERE LIFNR = GS_VENDOR-LIFNR.

    &amp;lt;DATA&amp;gt;-LIFNR = GT_LFA1-LIFNR.
    &amp;lt;DATA&amp;gt;-SGTXT = GT_VENDOR-SGTXT.
    &amp;lt;DATA&amp;gt;-NAME1 = GT_LFA1-NAME1.
    &amp;lt;DATA&amp;gt;-STCD1 = GT_LFA1-STCD1.


    SELECT SINGLE WT_WITHCD
    FROM WITH_ITEM
    INTO GS_ITEM
    WHERE BELNR = IT_BSIS-BELNR
    AND GJAHR IN P_GJAHR.

    IF SY-SUBRC EQ 0.
      &amp;lt;DATA&amp;gt;-MWSKZ = GS_ITEM.
    ENDIF.
*here i believe you add the company code?
    SELECT SINGLE PPNAM USNAM BLDAT
    FROM BKPF
    INTO GS_BKPF
    WHERE BELNR = IT_BSIS-BELNR
    AND BUKRS EQ P_BUKRS   "kostas
    AND GJAHR IN P_GJAHR.

    &amp;lt;DATA&amp;gt;-PPNAM = GS_BKPF-PPNAM.
    &amp;lt;DATA&amp;gt;-USNAM = GS_BKPF-USNAM.
    &amp;lt;DATA&amp;gt;-BLDAT = GS_BKPF-BLDAT.
  ENDLOOP.
ENDFORM. " add_record

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 07:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097193#M436771</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-04-12T07:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097194#M436772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks:-)&lt;/P&gt;&lt;P&gt;To those who response to my thread...and solved my problem..a BIG THANKS to all of you..(u know who u are)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 08:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097194#M436772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T08:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097195#M436773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kostas,&lt;/P&gt;&lt;P&gt;Hello genius, im very eager to learn the basic dialog programming...can you help me please? can you give me some advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aVaDuDz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 02:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097195#M436773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T02:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CALLING A TRANSACTION CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097196#M436774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kosta,&lt;/P&gt;&lt;P&gt;Hello my friend,im here again..:-) hope u dont mind..&lt;/P&gt;&lt;P&gt;i have a problem in setting the default printer in tcode VF02...actually the scenario is we bought a new printer..and the program in billing documents always default it to the old printer...and &lt;/P&gt;&lt;P&gt;i tried to change the default printer thru the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.change the new default printer from settings-&amp;gt;printer&lt;/P&gt;&lt;P&gt;2.change the output in VF02 tcode from GOTO-&amp;gt;header-&amp;gt;output-&amp;gt;communication method&lt;/P&gt;&lt;P&gt;3.change it from billing document-&amp;gt;issued to output -&amp;gt;print options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but all of these is i need to change it per document no...&lt;/P&gt;&lt;P&gt;now...how will i default it only once..and all documents i my print will default the printer to the new printer..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help:-(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aVaDuDz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 07:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-calling-a-transaction-code/m-p/2097196#M436774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T07:40:19Z</dc:date>
    </item>
  </channel>
</rss>

