Diferencia entre revisiones de «CS BOM EXPLOSION»
De wikiSAP
Sin resumen de edición |
Sin resumen de edición |
||
| (No se muestran 3 ediciones intermedias del mismo usuario) | |||
| 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 | |||
* 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 | |||
TABLES | * 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 = 'PP01' " 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 = YYYMMDD " 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 = MMMMMMMMMMMM " 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 = '1' " stko-stlal Alternative BOM | |||
stlan = '1' " stzu-stlan BOM usage | |||
* tpnrv = SPACE " iflo-tplnr Functional location number | |||
werks = WWWW " 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> | ||
Ejemplo: | |||
<pre> | |||
CALL FUNCTION 'CS_BOM_EXPLOSION' | |||
EXPORTING | |||
* ACLAS = ' ' | |||
* ALEKZ = ' ' | |||
* FTREL = ' ' | |||
* ALTVO = ' ' | |||
* AUFSW = ' ' | |||
* AUMNG = 0 | |||
* AUSKZ = ' ' | |||
* AMIND = ' ' | |||
* BAGRP = ' ' | |||
* BEIKZ = ' ' | |||
* BESSL = ' ' | |||
* BGIXO = ' ' | |||
* BREMS = ' ' | |||
capid = 'PP01' | |||
* CHLST = ' ' | |||
* COSPR = ' ' | |||
* CUOBJ = 000000000000000 | |||
* CUOVS = 0 | |||
* CUOLS = ' ' | |||
datuv = p_datuv | |||
* DELNL = ' ' | |||
* DRSTP = ' ' | |||
* EHNDL = ' ' | |||
* EMENG = 0 | |||
* EQNRV = ' ' | |||
* ERSKZ = ' ' | |||
* ERSSL = ' ' | |||
* FBSTP = ' ' | |||
* KNFBA = ' ' | |||
* KSBVO = ' ' | |||
* MBWLS = ' ' | |||
mktls = 'X' | |||
* MDMPS = ' ' | |||
mehrs = p_mehrs | |||
* MKMAT = ' ' | |||
* MMAPS = ' ' | |||
* MMORY = ' ' | |||
mtnrv = <fs_mara>-matnr | |||
* NESTP = ' ' | |||
* NLINK = ' ' | |||
* NORVL = ' ' | |||
* NPSTP = ' ' | |||
* POSTP = ' ' | |||
* PBSTP = ' ' | |||
* PSPNR = | |||
* RNDKZ = ' ' | |||
* RVREL = ' ' | |||
* SANFR = ' ' | |||
* SANIN = ' ' | |||
* SANKA = ' ' | |||
* SANKO = ' ' | |||
* SANVS = ' ' | |||
* SCHGT = ' ' | |||
* STKKZ = ' ' | |||
stlal = p_stlal | |||
stlan = p_stlan | |||
* STPST = 0 | |||
* SVWVO = 'X' | |||
* SALWW = ' ' | |||
* SPLWW = ' ' | |||
* TPNRV = ' ' | |||
werks = p_werks | |||
* MDNOT = ' ' | |||
* PANOT = ' ' | |||
* QVERW = ' ' | |||
* VBELN = ' ' | |||
* VBPOS = 0 | |||
* VERID = ' ' | |||
* VRSVO = 'X' | |||
IMPORTING | |||
* TOPEQUI = | |||
topmat = ls_topmat | |||
* TOPTPL = | |||
* DSTST = | |||
TABLES | |||
stbd = lt_stbd | |||
stbe = lt_stbe | |||
stbk = lt_stbk | |||
stbm = lt_stbm | |||
stbp = lt_stbp | |||
stbt = lt_stbt | |||
EXCEPTIONS | |||
alt_not_found = 1 | |||
call_invalid = 2 | |||
missing_authorization = 3 | |||
no_bom_found = 4 | |||
no_plant_data = 5 | |||
no_suitable_bom_found = 6 | |||
object_not_found = 7 | |||
conversion_error = 8 | |||
OTHERS = 9. | |||
</pre> | |||
<br> | <br> | ||
[[FUNCIONES_PP|Funciones PP]]<br> | [[FUNCIONES_PP|Funciones PP]]<br> | ||
[[Funciones|Funciones]]<br> | [[Funciones|Funciones]]<br> | ||
[[Página_principal|Página principal]]<br> | [[Página_principal|Página principal]]<br> | ||
Revisión actual - 10:32 19 may 2014
CALL FUNCTION 'CS_BOM_EXPLOSION'
EXPORTING
* 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 = 'PP01' " 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 = YYYMMDD " 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 = MMMMMMMMMMMM " 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 = '1' " stko-stlal Alternative BOM
stlan = '1' " stzu-stlan BOM usage
* tpnrv = SPACE " iflo-tplnr Functional location number
werks = WWWW " 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
Ejemplo:
CALL FUNCTION 'CS_BOM_EXPLOSION'
EXPORTING
* ACLAS = ' '
* ALEKZ = ' '
* FTREL = ' '
* ALTVO = ' '
* AUFSW = ' '
* AUMNG = 0
* AUSKZ = ' '
* AMIND = ' '
* BAGRP = ' '
* BEIKZ = ' '
* BESSL = ' '
* BGIXO = ' '
* BREMS = ' '
capid = 'PP01'
* CHLST = ' '
* COSPR = ' '
* CUOBJ = 000000000000000
* CUOVS = 0
* CUOLS = ' '
datuv = p_datuv
* DELNL = ' '
* DRSTP = ' '
* EHNDL = ' '
* EMENG = 0
* EQNRV = ' '
* ERSKZ = ' '
* ERSSL = ' '
* FBSTP = ' '
* KNFBA = ' '
* KSBVO = ' '
* MBWLS = ' '
mktls = 'X'
* MDMPS = ' '
mehrs = p_mehrs
* MKMAT = ' '
* MMAPS = ' '
* MMORY = ' '
mtnrv = <fs_mara>-matnr
* NESTP = ' '
* NLINK = ' '
* NORVL = ' '
* NPSTP = ' '
* POSTP = ' '
* PBSTP = ' '
* PSPNR =
* RNDKZ = ' '
* RVREL = ' '
* SANFR = ' '
* SANIN = ' '
* SANKA = ' '
* SANKO = ' '
* SANVS = ' '
* SCHGT = ' '
* STKKZ = ' '
stlal = p_stlal
stlan = p_stlan
* STPST = 0
* SVWVO = 'X'
* SALWW = ' '
* SPLWW = ' '
* TPNRV = ' '
werks = p_werks
* MDNOT = ' '
* PANOT = ' '
* QVERW = ' '
* VBELN = ' '
* VBPOS = 0
* VERID = ' '
* VRSVO = 'X'
IMPORTING
* TOPEQUI =
topmat = ls_topmat
* TOPTPL =
* DSTST =
TABLES
stbd = lt_stbd
stbe = lt_stbe
stbk = lt_stbk
stbm = lt_stbm
stbp = lt_stbp
stbt = lt_stbt
EXCEPTIONS
alt_not_found = 1
call_invalid = 2
missing_authorization = 3
no_bom_found = 4
no_plant_data = 5
no_suitable_bom_found = 6
object_not_found = 7
conversion_error = 8
OTHERS = 9.
