Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
cli:franke:erp_sap_integration [2016/12/13 08:13] 127.0.0.1 external edit |
cli:franke:erp_sap_integration [2022/01/18 11:57] (current) n.bergantino [Berbentina plant integration] |
||
|---|---|---|---|
| Line 257: | Line 257: | ||
| |I_HEADER_DATA|BOOLEAN|If true it indicates that it's required working-order header data| | |I_HEADER_DATA|BOOLEAN|If true it indicates that it's required working-order header data| | ||
| |I_OPERATIONS_DATA|BOOLEAN|If true it indicates that it's required working-order operation data| | |I_OPERATIONS_DATA|BOOLEAN|If true it indicates that it's required working-order operation data| | ||
| + | |I_SERIALNO_DATA|Not used| | ||
| If I_HEADER_DATA is true then RFC answers with the following table: | If I_HEADER_DATA is true then RFC answers with the following table: | ||
| ^Component^Component type^Field Type^Size^Decimals^Description^ | ^Component^Component type^Field Type^Size^Decimals^Description^ | ||
| Line 297: | Line 298: | ||
| {{: | {{: | ||
| + | ====== T_HEADER_DATA: | ||
| + | * MATNR | ||
| + | * MAKTX | ||
| + | * GSTRP | ||
| + | * GLTRP | ||
| + | * GMEIN | ||
| + | * GAMNG | ||
| + | * WEMNG | ||
| + | * IGMNG | ||
| + | * AUFNR | ||
| + | * FK_ANZMA | ||
| + | * FK_PERNNR | ||
| + | * MATGR | ||
| + | In the following the code that is using the above fields. | ||
| + | <code java> | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | </ | ||
| + | |||
| + | ===== T_OPERATIONS_DATA: | ||
| + | * VGW04 | ||
| + | * ANZMA | ||
| + | * VGW03 | ||
| + | * VGE03 | ||
| + | * ARBPL | ||
| + | * LTXA1 | ||
| + | * BMSCH | ||
| + | * VGW01 | ||
| + | |||
| + | In the following the code that is using the above fields. | ||
| + | <code java> | ||
| + | double tc = Double.parseDouble(ro.getString(" | ||
| + | if(tc == 0.0){ | ||
| + | double ndi = Double.parseDouble(ro.getString(" | ||
| + | if(ndi != 0.0){ | ||
| + | tc = Double.parseDouble(ro.getString(" | ||
| + | } | ||
| + | } | ||
| + | if(ro.getString(" | ||
| + | ///tc gia' in secondi non faccio nulla | ||
| + | }else if(ro.getString(" | ||
| + | ///converto il tc da minuti a secondi | ||
| + | tc *= 60; | ||
| + | }else if(ro.getString(" | ||
| + | ///converto il tc da ore a secondi | ||
| + | tc *= 3600; | ||
| + | } | ||
| + | // | ||
| + | rv.setValue(" | ||
| + | rv.setValue(" | ||
| + | ///unita di misura del tempo (1=minuti) | ||
| + | rv.setValue(" | ||
| + | ///numero di persone dedicate alla linea | ||
| + | rv.setValue(" | ||
| + | ///tempo previsto per il setup | ||
| + | rv.setValue(" | ||
| + | ///tempo ciclo di linea gia' elaborato ovvero e' la cadenza della linea in secondi | ||
| + | rv.setValue(" | ||
| + | ///tempo dell' | ||
| + | rv.setValue(" | ||
| + | </ | ||