Diferencia entre revisiones de «CS BOM EXPLOSION»

De wikiSAP
Franblay (discusión | contribs.)
Sin resumen de edición
Franblay (discusión | contribs.)
Sin resumen de edición
Línea 1: Línea 1:
<pre>
<pre>
   CALL FUNCTION 'CS_BOM_EXPLOSION'
   CALL FUNCTION 'CS_BOM_EXPLOSION'
    EXPORTING
*  aclas = SPACE              " tappl-applclass  Application class
      auskz                 = p_merma      "<<=== Flag de mermas...
*  ftrel = SPACE              " csdata-xfeld  Limited multi-level - stop explosion for items not relevant to production
      capid                 = 'PP01'
*  altvo = SPACE              " csdata-xfeld  Alternative priority
      datuv                 = p_fecha      "<<=== Fecha...
*  aufsw = SPACE              " csdata-xfeld  Determine and enter order level and order path
      emeng                 = p_lbkum      "<<=== Cantidad de prod. terminado...
*  aumng = 0                  " stko-bmeng    Scrap quantity
      MDMPS                = 'X' "multiple level explosion
auskz = SPACE              " csdata-xfeld  Take scrap into account
      MEHRS                = 'X'  "phantom item explosion
*  amind = SPACE              " csdata-xfeld  Scrap quantity indicator_
      mtnrv                = p_matnr      "<<=== Producto terminado...
*  bagrp = SPACE              " mara-matnr    Assembly restriction
      stlan                = '1'
*  beikz = SPACE              " stpo-beikz    Materials provided ID
      werks                 = p_werks      "<<=== Centro...
*  bessl = SPACE              " csdata-xfeld  Selection indicator part provided
     TABLES
*  bgixo = SPACE              " csdata-xfeld  Load assembly information for exploded assemblies only
      stbd                 = xstbd
*  brems = SPACE              " csdata-xfeld  Limited explosion
      stbe                 = xstbe
capid = 'STD1'             " tc04-capid    Application identifier
      stbk                 = xstbk
*  cospr = SPACE              " csdata-xfeld  Internal: (CO) order-spec. MatPreRead
      stbm                 = xstbm
*  cuobj = 000000000000000    " marc-cuobj    Object dependencies
      stbp                 = xstbp      "<<=== Lista de componentes...
*  cuols = SPACE              " csdata-xfeld  Read item characteristic valuation_
      stbt                 = xstbt
datuv = 00000000            " stko-datuv    Valid on
    EXCEPTIONS
*  delnl = SPACE              " csdata-xfeld  Delete items not kept in stock from list
      alt_not_found        = 1
*  ehndl = SPACE              " csdata-xfeld  Usage probability handling ' 'none, '1'mod. item quantity, '2' % req. qty_
      call_invalid          = 2
emeng = 0                  " stko-bmeng    Required quantity
      missing_authorization = 3
*  eqnrv = SPACE              " equi-equnr    Equipment
      no_bom_found          = 4
*  erskz = SPACE              " stpo-erskz    Spare part indicator
      no_plant_data        = 5
*  erssl = SPACE              " csdata-xfeld  Selection indicaor spare part
      no_suitable_bom_found = 6
*  fbstp = SPACE              " csdata-xfeld Limited multi-level - stop explosion at externally procured item
      object_not_found      = 7
*  mbwls = SPACE              " csdata-xfeld  Read values for material
      conversion_error      = 8
*  mktls = 'X'                 " csdata-xfeld Read material short text_
      OTHERS                = 9.
*  mdmps = SPACE              " csdata-xfeld  Limited multi-level - explode phantom assemblies at least
*  mehrs = SPACE              " csdata-xfeld  Multi-level explosion
*  mkmat = SPACE              " csdata-xfeld  Limited multi-level; explode KMAT
*  mmaps = SPACE              " csdata-xfeld  Limited multi-level - explode at least M assemblies (MOrder)
*  mmory = SPACE              " csdata-xfeld  Memory use ('1'=on;'0'=off;' '=no reaction)
*  mtnrv = SPACE              " mara-matnr    Material
*  postp = SPACE              " stpo-postp    Item category
*  rndkz = SPACE              " csdata-xfeld  Round off: ' '=always, '1'=never, '2'=only levels > 1
*  rvrel = SPACE              " stpo-rvrel    Relevant to Sales and Distribution
*  sanfr = SPACE              " stpo-sanfe    Production
*  sanin = SPACE              " stpo-sanin    Plant maintenance
*  sanka = SPACE              " stpo-sanka    Costing
*  sanko = SPACE              " stpo-sanko    Engineering/design
*  sanvs = SPACE              " stpo-sanvs    Shipping
*  schgt = SPACE              " stpo-schgt    Bulk material
*  stkkz = SPACE              " stpo-stkkz    PM assembly
*  stlal = SPACE              " stko-stlal    Alternative BOM
*  stlan = SPACE              " stzu-stlan    BOM usage
*  tpnrv = SPACE              " iflo-tplnr    Functional location number
*  werks = SPACE              " marc-werks   Plant
*  mdnot = SPACE              " csdata-xfeld  Restriction on MDMPS: do not explode M phantom
*  panot = SPACE              " csdata-xfeld  Restriction on MDMPS: no parallel discontinue
*  vbeln = SPACE              " kdst-vbeln    Sales order number
*  vbpos = 0                  " kdst-vbpos    Item in sales order
*  verid = SPACE              " mkal-verid    Production version (global)_
  IMPORTING
    topequi =                   " cstequi      Data on the initial object (equipment)
    topmat =                   " cstmat        Data on the initial object (material)
    toptpl =                   " csttpl        Data of start object (functional location)
     dstst =                    " csdata-xfeld  Structure destroyed by filter
  TABLES
    stbd =                     " csxdoc        Addition to the item collective table (document data)
    stbe =                     " csxequi      Addition to the item collective table (equi data)
    stbk =                     " csxkla        Supplement to collective item table (class data)
    stbm =                     " csxmat        Addition to the item collective table (material data)
    stbp =                     " csxgen        Item collective table
    stbt =                     " csxtpl        Supplement to collective item table (functional location data)
  EXCEPTIONS
    ALT_NOT_FOUND = 1           "              Alternative not found
    CALL_INVALID = 2           "              incorrect parameter combination
    MISSING_AUTHORIZATION = 3   "              No authorization (bill of material)
    NO_BOM_FOUND = 4           "              There is no bill of materials for this material
    NO_PLANT_DATA = 5           "              Material not maintained in the plant
    NO_SUITABLE_BOM_FOUND = 6   "              BOM does not exist
    OBJECT_NOT_FOUND = 7       "              Object does not exist
    . "  CS_BOM_EXPLOSION
</pre>
</pre>



Revisión del 08:39 19 may 2014

  CALL FUNCTION 'CS_BOM_EXPLOSION'
*   aclas = SPACE               " tappl-applclass  Application class
*   ftrel = SPACE               " csdata-xfeld  Limited multi-level - stop explosion for items not relevant to production
*   altvo = SPACE               " csdata-xfeld  Alternative priority
*   aufsw = SPACE               " csdata-xfeld  Determine and enter order level and order path
*   aumng = 0                   " stko-bmeng    Scrap quantity
*   auskz = SPACE               " csdata-xfeld  Take scrap into account
*   amind = SPACE               " csdata-xfeld  Scrap quantity indicator_
*   bagrp = SPACE               " mara-matnr    Assembly restriction
*   beikz = SPACE               " stpo-beikz    Materials provided ID
*   bessl = SPACE               " csdata-xfeld  Selection indicator part provided
*   bgixo = SPACE               " csdata-xfeld  Load assembly information for exploded assemblies only
*   brems = SPACE               " csdata-xfeld  Limited explosion
*   capid = 'STD1'              " tc04-capid    Application identifier
*   cospr = SPACE               " csdata-xfeld  Internal: (CO) order-spec. MatPreRead
*   cuobj = 000000000000000     " marc-cuobj    Object dependencies
*   cuols = SPACE               " csdata-xfeld  Read item characteristic valuation_
*   datuv = 00000000            " stko-datuv    Valid on
*   delnl = SPACE               " csdata-xfeld  Delete items not kept in stock from list
*   ehndl = SPACE               " csdata-xfeld  Usage probability handling ' 'none, '1'mod. item quantity, '2' % req. qty_
*   emeng = 0                   " stko-bmeng    Required quantity
*   eqnrv = SPACE               " equi-equnr    Equipment
*   erskz = SPACE               " stpo-erskz    Spare part indicator
*   erssl = SPACE               " csdata-xfeld  Selection indicaor spare part
*   fbstp = SPACE               " csdata-xfeld  Limited multi-level - stop explosion at externally procured item
*   mbwls = SPACE               " csdata-xfeld  Read values for material
*   mktls = 'X'                 " csdata-xfeld  Read material short text_
*   mdmps = SPACE               " csdata-xfeld  Limited multi-level - explode phantom assemblies at least
*   mehrs = SPACE               " csdata-xfeld  Multi-level explosion
*   mkmat = SPACE               " csdata-xfeld  Limited multi-level; explode KMAT
*   mmaps = SPACE               " csdata-xfeld  Limited multi-level - explode at least M assemblies (MOrder)
*   mmory = SPACE               " csdata-xfeld  Memory use ('1'=on;'0'=off;' '=no reaction)
*   mtnrv = SPACE               " mara-matnr    Material
*   postp = SPACE               " stpo-postp    Item category
*   rndkz = SPACE               " csdata-xfeld  Round off: ' '=always, '1'=never, '2'=only levels > 1
*   rvrel = SPACE               " stpo-rvrel    Relevant to Sales and Distribution
*   sanfr = SPACE               " stpo-sanfe    Production
*   sanin = SPACE               " stpo-sanin    Plant maintenance
*   sanka = SPACE               " stpo-sanka    Costing
*   sanko = SPACE               " stpo-sanko    Engineering/design
*   sanvs = SPACE               " stpo-sanvs    Shipping
*   schgt = SPACE               " stpo-schgt    Bulk material
*   stkkz = SPACE               " stpo-stkkz    PM assembly
*   stlal = SPACE               " stko-stlal    Alternative BOM
*   stlan = SPACE               " stzu-stlan    BOM usage
*   tpnrv = SPACE               " iflo-tplnr    Functional location number
*   werks = SPACE               " marc-werks    Plant
*   mdnot = SPACE               " csdata-xfeld  Restriction on MDMPS: do not explode M phantom
*   panot = SPACE               " csdata-xfeld  Restriction on MDMPS: no parallel discontinue
*   vbeln = SPACE               " kdst-vbeln    Sales order number
*   vbpos = 0                   " kdst-vbpos    Item in sales order
*   verid = SPACE               " mkal-verid    Production version (global)_
  IMPORTING
    topequi =                   " cstequi       Data on the initial object (equipment)
    topmat =                    " cstmat        Data on the initial object (material)
    toptpl =                    " csttpl        Data of start object (functional location)
    dstst =                     " csdata-xfeld  Structure destroyed by filter
  TABLES
    stbd =                      " csxdoc        Addition to the item collective table (document data)
    stbe =                      " csxequi       Addition to the item collective table (equi data)
    stbk =                      " csxkla        Supplement to collective item table (class data)
    stbm =                      " csxmat        Addition to the item collective table (material data)
    stbp =                      " csxgen        Item collective table
    stbt =                      " csxtpl        Supplement to collective item table (functional location data)
  EXCEPTIONS
    ALT_NOT_FOUND = 1           "               Alternative not found
    CALL_INVALID = 2            "               incorrect parameter combination
    MISSING_AUTHORIZATION = 3   "               No authorization (bill of material)
    NO_BOM_FOUND = 4            "               There is no bill of materials for this material
    NO_PLANT_DATA = 5           "               Material not maintained in the plant
    NO_SUITABLE_BOM_FOUND = 6   "               BOM does not exist
    OBJECT_NOT_FOUND = 7        "               Object does not exist
    .  "  CS_BOM_EXPLOSION


Funciones PP
Funciones
Página principal