‎2008 Jul 23 7:50 AM
Hi,
I need to process a file containing the segments of a standard Idoc and field values through transaction WE19.
Can i do so? If yes, how should I go about using tcode we19 and what should be the structure of the file to be processed?
‎2008 Jul 23 8:38 AM
Hi Jayita,
welcome.
WE19 -> IDoc Test Tool
see this links
https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=5685238 - 27k -
MATMAS is a Logical message types for this idoc type is MATMAS05.so here i am giving the Information about Required Segment and Optional Segment Structure,u can remove Optional Segment but u can't remove Required Segment .i thing this can help full to u.
thanks.
E1MARAM : Master material general data (MARA)
Status: Required , min. number : 1 , max. number : 9999
Structure
E1MARA1 : Additional Fields for E1MARAM
Status: Optional , min. number : 1 , max. number : 1
Structure
E1MAKTM : Master material short texts (MAKT)
Status: Required , min. number : 1 , max. number : 99
Structure
E1MARCM : Master material C segment (MARC)
Status: Optional , min. number : 1 , max. number : 9999
Structure
E1MARC1 : Additional Fields for E1MARCM
Status: Optional , min. number : 1 , max. number : 1
Structure
E1MARDM : Master material warehouse/batch segment (MARD)
Status: Optional , min. number : 1 , max. number : 9999
Structure
E1MFHMM : Master material production resource/tool (MFHM)
Status: Optional , min. number : 1 , max. number : 1
Structure
E1MPGDM : Master material product group
Status: Optional , min. number : 1 , max. number : 1
Structure
E1MPOPM : Master material forecast parameter
Status: Optional , min. number : 1 , max. number : 1
Structure
E1MPRWM : Master material forecast value
Status: Optional , min. number : 1 , max. number : 9999999999
Structure
E1MVEGM : Master material total consumption
Status: Optional , min. number : 1 , max. number : 9999999999
Structure
E1MVEUM : Master material unplanned consumption
Status: Optional , min. number : 1 , max. number : 9999999999
Structure
E1MKALM : Master material production version
Status: Optional , min. number : 1 , max. number : 9999999999
Structure
E1MARMM : Master material units of measure (MARM)
Status: Optional , min. number : 1 , max. number : 999
Structure
E1MEANM : Master Material European Article Number (MEAN)
Status: Optional , min. number : 1 , max. number : 9999
Structure
E1MBEWM : Master material material valuation (MBEW)
Status: Optional , min. number : 1 , max. number : 9999
Structure
E1MLGNM : Master material material data per warehouse number (MLGN)
Status: Optional , min. number : 1 , max. number : 9999
Structure
E1MLGTM : Material Master: Material Data for Each Storage Type (MLGT)
Status: Optional , min. number : 1 , max. number : 9999
Structure
E1MVKEM : Master material sales data (MVKE)
Status: Optional , min. number : 1 , max. number : 9999
Structure
E1MLANM : Master material tax classification (MLAN)
Status: Optional , min. number : 1 , max. number : 9999
Structure
E1MTXHM : Master material long text header
Status: Optional , min. number : 1 , max. number : 9999
Structure
E1MTXLM : Master material long text line
Status: Optional , min. number : 1 , max. number : 9999
Structure
E1CUCFG : CU: Configuration data
Status: Optional , min. number : 1 , max. number : 10000
Structure
E1CUINS : CU: Instance data
Status: Optional , min. number : 1 , max. number : 1000
Structure
E1CUVAL : CU: Characteristic valuation
Status: Optional , min. number : 1 , max. number : 100000
Structure
E1CUCOM : Master configuration profile configuration parameter
Status: Optional , min. number : 1 , max. number : 1000
Structure
E1UPSLINK : Reference from Object to Superior UPS
Status: Optional , min. number : 1 , max. number : 1
Structure
-
Segment structures
-
E1MARAM : Master material general data (MARA)
Segment definition E2MARAM006 Released since Release 700 , Segment length: 0856
MSGFN : Function
internal data type : CHAR
Internal length : 000003 characters
Position in segment : 001, Offset : 0063. external length : 000003
MATNR : Material Number
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 002, Offset : 0066. external length : 000018
ERSDA : Created On
internal data type : DATS
Internal length : 000008 characters
Position in segment : 003, Offset : 0084. external length : 000008
ERNAM : Name of Person who Created the Object
internal data type : CHAR
Internal length : 000012 characters
Position in segment : 004, Offset : 0092. external length : 000012
LAEDA : Date of Last Change
internal data type : DATS
Internal length : 000008 characters
Position in segment : 005, Offset : 0104. external length : 000008
AENAM : Name of Person Who Changed Object
internal data type : CHAR
Internal length : 000012 characters
Position in segment : 006, Offset : 0112. external length : 000012
PSTAT : Maintenance status
internal data type : CHAR
Internal length : 000015 characters
Position in segment : 007, Offset : 0124. external length : 000015
LVORM : Flag Material for Deletion at Client Level
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 008, Offset : 0139. external length : 000001
MTART : Material Type
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 009, Offset : 0140. external length : 000004
MBRSH : Industry sector
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 010, Offset : 0144. external length : 000001
MATKL : Material Group
internal data type : CHAR
Internal length : 000009 characters
Position in segment : 011, Offset : 0145. external length : 000009
BISMT : Old material number
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 012, Offset : 0154. external length : 000018
MEINS : Base Unit of Measure
internal data type : UNIT
Internal length : 000003 characters
Position in segment : 013, Offset : 0172. external length : 000003
BSTME : Purchase Order Unit of Measure
internal data type : UNIT
Internal length : 000003 characters
Position in segment : 014, Offset : 0175. external length : 000003
ZEINR : Document number (without document management system)
internal data type : CHAR
Internal length : 000022 characters
Position in segment : 015, Offset : 0178. external length : 000022
ZEIAR : Document type (without Document Management system)
internal data type : CHAR
Internal length : 000003 characters
Position in segment : 016, Offset : 0200. external length : 000003
ZEIVR : Document version (without Document Management system)
internal data type : CHAR
Internal length : 000002 characters
Position in segment : 017, Offset : 0203. external length : 000002
ZEIFO : Page format of document (without Document Management system)
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 018, Offset : 0205. external length : 000004
AESZN : Document change number (without document management system)
internal data type : CHAR
Internal length : 000006 characters
Position in segment : 019, Offset : 0209. external length : 000006
BLATT : Page number of document (without Document Management system)
internal data type : CHAR
Internal length : 000003 characters
Position in segment : 020, Offset : 0215. external length : 000003
BLANZ : Number of sheets (without Document Management system)
internal data type : NUMC
Internal length : 000003 characters
Position in segment : 021, Offset : 0218. external length : 000003
FERTH : Production/inspection memo
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 022, Offset : 0221. external length : 000018
FORMT : Page Format of Production Memo
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 023, Offset : 0239. external length : 000004
GROES : Size/dimensions
internal data type : CHAR
Internal length : 000032 characters
Position in segment : 024, Offset : 0243. external length : 000032
WRKST : Basic material (basic constituent of a material) - obsolete
internal data type : CHAR
Internal length : 000014 characters
Position in segment : 025, Offset : 0275. external length : 000014
NORMT : Industry Standard Description (such as ANSI or ISO)
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 026, Offset : 0289. external length : 000018
LABOR : Laboratory/design office
internal data type : CHAR
Internal length : 000003 characters
Position in segment : 027, Offset : 0307. external length : 000003
EKWSL : Purchasing Value Key
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 028, Offset : 0310. external length : 000004
BRGEW : Gross Weight
internal data type : QUAN
Internal length : 000013 characters
000003 decimal places, without sign
Position in segment : 029, Offset : 0314. external length : 000014
NTGEW : Net Weight
internal data type : QUAN
Internal length : 000013 characters
000003 decimal places, without sign
Position in segment : 030, Offset : 0328. external length : 000014
GEWEI : Weight Unit
internal data type : UNIT
Internal length : 000003 characters
Position in segment : 031, Offset : 0342. external length : 000003
VOLUM : Volume
internal data type : QUAN
Internal length : 000013 characters
000003 decimal places, without sign
Position in segment : 032, Offset : 0345. external length : 000014
VOLEH : Volume unit
internal data type : UNIT
Internal length : 000003 characters
Position in segment : 033, Offset : 0359. external length : 000003
BEHVO : Container requirements
internal data type : CHAR
Internal length : 000002 characters
Position in segment : 034, Offset : 0362. external length : 000002
RAUBE : Storage conditions
internal data type : CHAR
Internal length : 000002 characters
Position in segment : 035, Offset : 0364. external length : 000002
TEMPB : Temperature conditions indicator
internal data type : CHAR
Internal length : 000002 characters
Position in segment : 036, Offset : 0366. external length : 000002
TRAGR : Transportation Group
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 037, Offset : 0368. external length : 000004
STOFF : Hazardous material number
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 038, Offset : 0372. external length : 000018
SPART : Division
internal data type : CHAR
Internal length : 000002 characters
Position in segment : 039, Offset : 0390. external length : 000002
KUNNR : Competitor
internal data type : CHAR
Internal length : 000010 characters
Position in segment : 040, Offset : 0392. external length : 000010
WESCH : Quantity: Number of GR/GI slips to be printed
internal data type : QUAN
Internal length : 000013 characters
000003 decimal places, without sign
Position in segment : 041, Offset : 0402. external length : 000014
BWVOR : Procurement rule
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 042, Offset : 0416. external length : 000001
BWSCL : Source of Supply
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 043, Offset : 0417. external length : 000001
SAISO : Season Category
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 044, Offset : 0418. external length : 000004
ETIAR : Label type
internal data type : CHAR
Internal length : 000002 characters
Position in segment : 045, Offset : 0422. external length : 000002
ETIFO : Label form
internal data type : CHAR
Internal length : 000002 characters
Position in segment : 046, Offset : 0424. external length : 000002
EAN11 : International Article Number (EAN/UPC)
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 047, Offset : 0426. external length : 000018
NUMTP : Category of International Article Number (EAN)
internal data type : CHAR
Internal length : 000002 characters
Position in segment : 048, Offset : 0444. external length : 000002
LAENG : Length
internal data type : QUAN
Internal length : 000013 characters
000003 decimal places, without sign
Position in segment : 049, Offset : 0446. external length : 000014
BREIT : Width
internal data type : QUAN
Internal length : 000013 characters
000003 decimal places, without sign
Position in segment : 050, Offset : 0460. external length : 000014
HOEHE : Height
internal data type : QUAN
Internal length : 000013 characters
000003 decimal places, without sign
Position in segment : 051, Offset : 0474. external length : 000014
MEABM : Unit of Dimension for Length/Width/Height
internal data type : UNIT
Internal length : 000003 characters
Position in segment : 052, Offset : 0488. external length : 000003
PRDHA : Product hierarchy
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 053, Offset : 0491. external length : 000018
CADKZ : CAD Indicator
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 054, Offset : 0509. external length : 000001
ERGEW : Allowed packaging weight
internal data type : QUAN
Internal length : 000013 characters
000003 decimal places, without sign
Position in segment : 055, Offset : 0510. external length : 000014
ERGEI : Weight Unit
internal data type : UNIT
Internal length : 000003 characters
Position in segment : 056, Offset : 0524. external length : 000003
ERVOL : Allowed packaging volume
internal data type : QUAN
Internal length : 000013 characters
000003 decimal places, without sign
Position in segment : 057, Offset : 0527. external length : 000014
ERVOE : Volume unit
internal data type : UNIT
Internal length : 000003 characters
Position in segment : 058, Offset : 0541. external length : 000003
GEWTO : Excess Weight Tolerance for Handling unit
internal data type : DEC
Internal length : 000003 characters
000001 decimal places, without sign
Position in segment : 059, Offset : 0544. external length : 000003
VOLTO : Excess Volume Tolerance of the Handling Unit
internal data type : DEC
Internal length : 000003 characters
000001 decimal places, without sign
Position in segment : 060, Offset : 0547. external length : 000003
VABME : Variable Purchase Order Unit Active
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 061, Offset : 0550. external length : 000001
KZKFG : Configurable Material
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 062, Offset : 0551. external length : 000001
XCHPF : Batch management requirement indicator
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 063, Offset : 0552. external length : 000001
VHART : Packaging Material Type
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 064, Offset : 0553. external length : 000004
FUELG : Maximum level (by volume)
internal data type : DEC
Internal length : 000003 characters
No decimal places, without sign
Position in segment : 065, Offset : 0557. external length : 000003
STFAK : Stacking factor
internal data type : INT2
Internal length : 000005 characters
No decimal places, without sign
Position in segment : 066, Offset : 0560. external length : 000005
MAGRV : Material Group: Packaging Materials
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 067, Offset : 0565. external length : 000004
BEGRU : Authorization Group
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 068, Offset : 0569. external length : 000004
QMPUR : QM in Procurement is Active
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 069, Offset : 0573. external length : 000001
RBNRM : Catalog Profile
internal data type : CHAR
Internal length : 000009 characters
Position in segment : 070, Offset : 0574. external length : 000009
MHDRZ : Minimum Remaining Shelf Life
internal data type : DEC
Internal length : 000004 characters
No decimal places, without sign
Position in segment : 071, Offset : 0583. external length : 000006
MHDHB : Total shelf life
internal data type : DEC
Internal length : 000004 characters
No decimal places, without sign
Position in segment : 072, Offset : 0589. external length : 000006
MHDLP : Storage percentage
internal data type : DEC
Internal length : 000003 characters
No decimal places, without sign
Position in segment : 073, Offset : 0595. external length : 000005
VPSTA : Maintenance status of complete material
internal data type : CHAR
Internal length : 000015 characters
Position in segment : 074, Offset : 0600. external length : 000015
EXTWG : External Material Group
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 075, Offset : 0615. external length : 000018
MSTAE : Cross-Plant Material Status
internal data type : CHAR
Internal length : 000002 characters
Position in segment : 076, Offset : 0633. external length : 000002
MSTAV : Cross-distribution-chain material status
internal data type : CHAR
Internal length : 000002 characters
Position in segment : 077, Offset : 0635. external length : 000002
MSTDE : Date from which the cross-plant material status is valid
internal data type : DATS
Internal length : 000008 characters
Position in segment : 078, Offset : 0637. external length : 000008
MSTDV : Date from which the X-distr.-chain material status is valid
internal data type : DATS
Internal length : 000008 characters
Position in segment : 079, Offset : 0645. external length : 000008
KZUMW : Environmentally Relevant
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 080, Offset : 0653. external length : 000001
KOSCH : Product allocation determination procedure
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 081, Offset : 0654. external length : 000018
NRFHG : Material qualifies for discount in kind
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 082, Offset : 0672. external length : 000001
MFRPN : Manufacturer Part Number
internal data type : CHAR
Internal length : 000040 characters
Position in segment : 083, Offset : 0673. external length : 000040
MFRNR : Number of a Manufacturer
internal data type : CHAR
Internal length : 000010 characters
Position in segment : 084, Offset : 0713. external length : 000010
BMATN : To material number
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 085, Offset : 0723. external length : 000018
MPROF : Manufacturer Part Profile
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 086, Offset : 0741. external length : 000004
PROFL : Dangerous Goods Indicator Profile
internal data type : CHAR
Internal length : 000003 characters
Position in segment : 087, Offset : 0745. external length : 000003
IHIVI : Indicator: Highly Viscous
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 088, Offset : 0748. external length : 000001
ILOOS : Indicator: In Bulk/Liquid
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 089, Offset : 0749. external length : 000001
KZGVH : Packaging Material is Closed Packaging
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 090, Offset : 0750. external length : 000001
XGCHP : Indicator: Approved batch record required
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 091, Offset : 0751. external length : 000001
COMPL : Material completion level
internal data type : NUMC
Internal length : 000002 characters
Position in segment : 092, Offset : 0752. external length : 000002
KZEFF : Assign effectivity parameter values/ override change numbers
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 093, Offset : 0754. external length : 000001
RDMHD : Rounding rule for calculation of SLED
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 094, Offset : 0755. external length : 000001
IPRKZ : Period Indicator for Shelf Life Expiration Date
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 095, Offset : 0756. external length : 000001
PRZUS : Indicator: Product composition printed on packaging
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 096, Offset : 0757. external length : 000001
MTPOS_MARA : General item category group
internal data type : CHAR
Internal length : 000004 characters
Position in segment : 097, Offset : 0758. external length : 000004
GEWTO_NEW : Excess Weight Tolerance for Handling unit
internal data type : DEC
Internal length : 000003 characters
000001 decimal places, without sign
Position in segment : 098, Offset : 0762. external length : 000005
VOLTO_NEW : Excess Volume Tolerance of the Handling Unit
internal data type : DEC
Internal length : 000003 characters
000001 decimal places, without sign
Position in segment : 099, Offset : 0767. external length : 000005
WRKST_NEW : Basic Material
internal data type : CHAR
Internal length : 000048 characters
Position in segment : 100, Offset : 0772. external length : 000048
AENNR : Change Number
internal data type : CHAR
Internal length : 000012 characters
Position in segment : 101, Offset : 0820. external length : 000012
MATFI : Material Is Locked
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 102, Offset : 0832. external length : 000001
CMREL : Relevant for Configuration Management
internal data type : CHAR
Internal length : 000001 characters
Position in segment : 103, Offset : 0833. external length : 000001
SATNR : Cross-Plant Configurable Material
internal data type : CHAR
Internal length : 000018 characters
Position in segment : 104, Offset : 0834. external length : 000018
thanks
karthik
‎2008 Jul 23 8:43 AM
Hi,
Goto transaction WE19 and then give the basic type of the idoc you wanted to process and select the corresponding radio button in the selection and execute.
You will get the idoc structure and you can fill all the values in the fields and then select inbound function button and give the inbound function which you want to use to process this idoc and it will process the idoc which you have created manually.
Thanks,
Mahesh.
‎2008 Jul 23 8:44 AM
What I wanted to know is the processing of the idoc through WE19.
And what I meant by the structure is how should the file look like?
‎2008 Jul 23 8:48 AM
Mahesh,
I need to process the Idoc based on a file which has got data for the segments of a basic Idoc.
Lets say, I enter a basic type on the selection screen of we19, the next screen shows the structure of the Idoc type.
Instead of entering values in the segments here, I need to process this idoc using a file ( PS / AS ) which has got values .
I hope u understand my query.
‎2008 Jul 23 9:11 AM
Hi,
WE19 is just a test tool and you cann't fill the data there.
First make one thing very clear what data are you getting in a flat file, based upon that only we can decide what would be basic type and what would be message and function module.
You need to write a custom program to read the data from the flat file and fill the IDOC structure and then call the function module IDOC_INBOUND_WRITE_TO_DB and it will generate the idoc and process that with the help of the definition in the partner profile.
That is whole process of creating a idoc by reading the data from a flat file and for that you will not have anything in WE19 transaction, that transaction is only to know whether the data what we are receiving is sufficient to post a document with the help of an idoc.
Thanks,
Mahesh.
‎2008 Jul 23 10:04 AM
actually I have already written a program which downloads the structure of a basic idoc type , say matmas01 with all its segments and fields. I have a requirement where the user should be able to fill values in that downloaded file and post the idoc based on the data in that file.
How can this be done? and can it be done using we19?
‎2008 Jul 23 10:35 AM
actually I have already written a program which downloads the structure of a basic idoc type , say matmas01 with all its segments and fields. I have a requirement where the user should be able to fill values in that downloaded file and post the idoc based on the data in that file.
How can this be done? and can it be done using we19?
‎2008 Jul 26 12:54 PM
hi pass the data from the file to idoc and to the segment and to the sdata through the function module we cannot do anything in the we19 with the file specification i hope . we did all the data processing in the function module...
‎2008 Jul 28 2:22 PM
Hi,
I think, WE19 is a transaction for testing of an IDoc and if you want to post an IDoc using the transaction you can do that also.
Can you please elaborate what kind of data you are trying to post?
For Ex: Imagine that you want to post MATMAS05 IDoc type, then you basically required to pass all the mandatory data which is required to post an IDoc. The mandatory fields data can be found by creating a Material Master by using MM01 and trigger the same using BD10. Check it in the WE02.
Regards,
Venu V
‎2008 Jul 29 6:40 AM
Hi,
Goto transaction code WE19,Actually we19 is used for Reprocessing of Idocs, then give the basic type of the idoc you can find the all the segments under that idoc , SO that you can push the data to the segments and create the idoc .if you need any further informatin plz let me know so that iwil send you in detail.
Plz reward me useful............
Thanks,
Jayan.
‎2008 Jul 29 6:56 AM
HI
WE19 transaction for testing IDOC and reprocessing , if u want to post an idoc using this transaction you can do that also, WE19 T-code for we can debugge the idoc.
then give the basic type of the idoc you can find the all the segments under that idoc , .if you need any further informatin plz let me know so that iwil send you in detail.
Reward point's uesful
venu.T