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

Adding the filed to segment

Former Member
0 Likes
1,872

Hi All,

I want to add one filed to an existing segment .may i know what is the procedure ?

than you

sunny.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,389

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

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,389

I preumse you mean IDoc segment, if so then search the forum for IDoc extensions

Read only

Former Member
0 Likes
1,390

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

Read only

0 Likes
1,389

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.

Read only

Former Member
0 Likes
1,389

Dear Sunny,

use this link

Regards,

Flavya

Read only

Former Member
0 Likes
1,389

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

Read only

Former Member
0 Likes
1,389

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 .