12-11-2008 12:28 PM
Hi All,
I want to add one filed to an existing segment .may i know what is the procedure ?
than you
sunny.
12-11-2008 12:30 PM
If you are referring to an IDOC, then go to transaction WE31, Cancel the release and then edit it.
After adding the required field, set the release and use it.
Vijay
12-11-2008 12:30 PM
I preumse you mean IDoc segment, if so then search the forum for IDoc extensions
12-11-2008 12:30 PM
If you are referring to an IDOC, then go to transaction WE31, Cancel the release and then edit it.
After adding the required field, set the release and use it.
Vijay
12-11-2008 12:59 PM
Hi ,
while i am trying to cancel release i am getting below error,
"Error while resetting release of segment Z1XXXX"
Message no. EA259
i am not able to go to edit mode.any suggestions?
thank you
sunny.
12-11-2008 12:32 PM
12-11-2008 12:33 PM
Go to WE31...Give Segment name and add new field .
If it is released , cancel release (edit -> cancel release) ,rhen u can edit.
Thanks and Regards.
Srikanta
12-11-2008 12:36 PM
Hi ,
The example below is a simple WinForms application with two textboxes: The material number (txtMaterialNumber) and the quantity (txtQty) can be entered by the user.
private void button1_Click(object sender, System.EventArgs e)
{
R3Connection con = new R3Connection();
if (!con.AskUserAndOpen(true))
return;
Idoc idoc = con.CreateEmptyIdoc("ORDERS01","");
idoc.MESTYP = "ORDERS";
// Fill information about idoc sender
idoc.SNDPRN = "1172"; // Partner number
idoc.SNDPRT = "KU"; // Partner type
// Create document header segment
IdocSegment e1edk01 = idoc.CreateSegment("E1EDK01");
idoc.Segments.Add(e1edk01);
// Create item segment
IdocSegment e1edp01 = idoc.CreateSegment("E1EDP01");
e1edp01.Fields["MENGE"].FieldValue = txtQty.Text;
idoc.Segments.Add(e1edp01);
// Create Object identification (material number in this case)
IdocSegment e1edp19 = idoc.CreateSegment("E1EDP19");
e1edp19.Fields["QUALF"].FieldValue = "002"; // 002 for material number
e1edp19.Fields["IDTNR"].FieldValue = txtMaterialNumber.Text; // material number
e1edp01.ChildSegments.Add(e1edp19);
idoc.Send();
this.lblInfo.Text = "Idoc sent";
}
E1EDK01 is the main segment of an ORDERS01 IDoc. We leave it empty, but it must be provided by the calling program to pass the SAP IDoc syntax check.
E1EDP01 is the segment for a single order position. The field MENGE contains the quantity. Of course, this segment can occur more the once.
E1EDP19 represents an object definition. In this case the object is a material number. The field QUALF is therefore set to 002 and the material number is written into the IDTNR field. E1EDP19 segments are always children of E1EDP01.
this would help u .