Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDOC segment problem

Former Member
0 Likes
995

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

4 REPLIES 4
Read only

Former Member
0 Likes
748

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

Read only

Former Member
0 Likes
748

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

Read only

Former Member
0 Likes
748

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

Read only

0 Likes
748

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