Advertisement
sinke

ZFI30300

Nov 10th, 2016
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 4.25 KB | None | 0 0
  1.  
  2. Code listing for: ZFI30300
  3. Description: Usporedba stanja zaliha po mjesecima
  4. ************************************************************************
  5. *  AUTOR: Siniša Kolundžiæ
  6. *  DATUM: 2016-08-29
  7. *
  8. *  SVRHA: Usporedba stanja zaliha po mjesecima
  9. *  DOKUMENTACIJA:
  10. ************************************************************************
  11. *  IZMJENE:
  12. *  DATUM      AUTOR    OPIS
  13. *  ===       ========  ===============================
  14. ************************************************************************
  15.  
  16.  
  17. report zfi30300.
  18.  
  19. tables: s031, t001, zlkon01, ska1, t030, tcurv, a550, sscrfields .
  20. type-pools icon.
  21.  
  22. data g_functxt type smp_dyntxt.
  23.  
  24.  
  25. selection-screen:
  26.   begin of block b_holder with frame,
  27.   begin of block b_params with frame title text-001.
  28.  
  29. select-options: s_bukrs for t001-bukrs obligatory,
  30.                 s_spmoni  for s031-spmon obligatory no-extension no intervals,
  31.                 s_spmonu  for s031-spmon obligatory no-extension no intervals.
  32.  
  33. parameters: p_kurst type tcurv-kurst obligatory.
  34. select-options: s_kschl for a550-kschl obligatory no intervals.
  35.  
  36.  
  37. selection-screen:
  38.   end of block b_params,
  39.   begin of block b_optional with frame title text-002.
  40.  
  41. select-options: s_saknrl for zlkon01-saknr,
  42.                 s_saknr   for ska1-saknr,
  43.                 s_matnr   for s031-matnr.
  44.  
  45. selection-screen:
  46.   end of block b_optional,
  47.   begin of block b_display with frame title text-003.
  48.  
  49. parameters p_layout type slis_vari modif id lay.
  50.  
  51. selection-screen:
  52.   end of block b_display,
  53.   end of block b_holder.
  54.  
  55. selection-screen: function key 1,
  56.                   function key 2.
  57.  
  58. include zfi30300_classes.
  59.  
  60.  
  61. initialization.
  62.   g_functxt-quickinfo = 'Odreðivanje % marže za PCI'.
  63.   g_functxt-text = '% PCI marže'.
  64.   sscrfields-functxt_01 = g_functxt.
  65.  
  66.   g_functxt-quickinfo = 'Odreðivanje varijante obraèuna troškova za COGP'.
  67.   g_functxt-text = 'Varijante obraèuna troškova'.
  68.   sscrfields-functxt_02 = g_functxt.
  69.  
  70.  
  71.  
  72.  
  73. at selection-screen on value-request for s_saknrl-low.
  74.   lcl_app=>f4_saknr_lact( ).
  75.  
  76. at selection-screen on value-request for s_saknrl-high.
  77.   lcl_app=>f4_saknr_lact( ).
  78.  
  79.  
  80. at selection-screen on value-request for s_saknr-low.
  81.   lcl_app=>f4_saknr( ).
  82.  
  83. at selection-screen on value-request for s_saknr-high.
  84.   lcl_app=>f4_saknr( ).
  85.  
  86. at selection-screen on value-request for p_layout.
  87.   lcl_app=>find_layout( ).
  88.  
  89. at selection-screen on p_layout.
  90.   lcl_app=>check_layout( ).
  91.  
  92. at selection-screen.
  93.   lcl_app=>authority_check( ).
  94.  
  95.   case sscrfields-ucomm.
  96.     when 'FC01'.
  97.       call function 'VIEW_MAINTENANCE_CALL'
  98.         exporting
  99.           action    = 'U'
  100.           view_name = 'ZBFRPCI'.
  101.     when 'FC02'.
  102.       call function 'VIEW_MAINTENANCE_CALL'
  103.         exporting
  104.           action    = 'U'
  105.           view_name = 'ZBFRKLVAR'.
  106.   endcase.
  107.  
  108.  
  109. start-of-selection.
  110.   lcl_app=>make_it_so( ).
  111.  
  112.  
  113. *----------------------------------------------------------------------*
  114. *  MODULE status_0100 OUTPUT
  115. *----------------------------------------------------------------------*
  116. *
  117. *----------------------------------------------------------------------*
  118. module status_0100 output.
  119.   lcl_app=>app->handle_pbo( ).
  120. endmodule. "status_0100 OUTPUT
  121.  
  122. *----------------------------------------------------------------------*
  123. *  MODULE user_command_0100 INPUT
  124. *----------------------------------------------------------------------*
  125. *
  126. *----------------------------------------------------------------------*
  127. module user_command_0100 input.
  128.   lcl_app=>app->handle_pai( sy-ucomm ).
  129. endmodule. "user_command_0100 INPUT
  130.  
  131. *GUI Texts
  132. *----------------------------------------------------------
  133. * TB100 --> Stanje zaliha po mjesecima
  134.  
  135. *Text elements
  136. *----------------------------------------------------------
  137. * 001 Paramatri odabira
  138. * 002 Dodatni parametri
  139. * 003 Parametri prikaza
  140.  
  141.  
  142. *Selection texts
  143. *----------------------------------------------------------
  144. * P_KURST D       .
  145. * P_LAYOUT D       .
  146. * S_BUKRS D       .
  147. * S_KSCHL D       .
  148. * S_MATNR D       .
  149. * S_SAKNR D       .
  150. * S_SAKNRL         Lactalis konto
  151. * S_SPMONI         Razdoblje izvješæivanja
  152. * S_SPMONU         Razdoblje usporedbe
  153. Extracted by Mass Download version 1.5.5 - E.G.Mellodew. 1998-2016. Sap Release 700
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement