‎2007 Nov 30 4:22 AM
Hi Experts,
I have to send a custom idoc for PO, so i created a segment with folloing fields
TABLE Field name Data Type
EKKO EBELN EBELN
EKKO LIFNR ELIFN
EKKO EKORG EKORG
EKKO BEDAT EBDAT
EKPO WERKS EWERK
EKPO EBELP EBELP
EKPO MATNR MATNR
EKPO MENGE BSTMG
EKPO REVLV REVLV
MDSB MATNR MATNR
EKET EINDT EINDT
Now the problem is for each PO item there are more than 1 child items(MDSB-MATNR) and i have to send IDOC as & when PO releases.
The problem is how to pass multiple child items to idoc for 1 PO item. DO i need to create 1 more segment or any other ways
Regards,
NIk
‎2007 Nov 30 4:58 AM
Hi
When create the segments when you double click in the properties there is a field where you have to gives the Occurances like Minimum/Maximum number
for item data we give 9999 like that and for header records we give as 1.
check it and do accordingly
Regards
Anji
‎2007 Nov 30 5:06 AM
Ya u wnt to declare another segment..Because for PO there will two tables EKKO,EKPO.One is for header data and another one for detail data..
Now u wnt to create the segment based on this and u want to call ths two segments in the idoc..Y we r tryi9ng this is,becoz while populating the values to the idoc it will be very easy..
Try this,Surely it will work
Reward if useful
‎2007 Nov 30 5:18 AM
Hi,
Goto Tcode WE30 and enter your extended Idoc type then press change button. Goto your Z-segment and double click on it, in the coming pop-up you can give the maximum number as 99 or 999 or and so on. Dont give Maximum number as 1.
Cheers,
Bujji
‎2007 Nov 30 5:31 AM
I already created 1 segment, with max 99999 entries, but the senario is when we release an idoc it means only 1 PO data will be send it may have 4 items(eg). that is fine because at last we r passing a table to idoc. that means it will send 4 IDOCs. but it will take same PO as diffrent entries because of items
But i need to pass child items of those items in PO. child items u can also say BOM items. so it may be possible that for 1 PO item there are 100 of line item. if i will release 1 doc, it will send 400 lines with all values same and only 1 field with diffrent entries, i dnt want to send same PO number and other fields so many times.
Is it possible to send IDOC with 1PO and Item no and having 100 child items ?
regards
Manish