Adding the filed to segment

Hi All,
I want to add one filed to an existing segment .may i know what is the procedure ?
than you
sunny.

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 .

Similar Messages

  • Adding the field to segment

    Hi
    while i am adding the field to segment i am getting this error
    "Error while resetting release of segment Z1XXXX"
    Message no. EA259.
    here i did the cancel release to edit the segment to add field
    i am not able to go to edit mode.any suggestions?
    thank you

    Hi Sunny,
    If you want to add a new field, then in WE31, go to Segment->Add version.
    After addition of the field, set release to this version. But before all this, Cancel release on the active version.
    Let us know if it worked.
    Vijay

  • Adding data element to segment in we31 in ECC 6.0

    hi all,
    I have added field name ( data element ) to segment in we31 in 4.6 C by going Edit u2013> cancel release, then F6 to goto change mode to add our field.
    Now I have to add the same field ( data element ) to segment While adding it is giving system error as " Error while resetting the release of segment ZE1XXXXXX_01"
    Kindly let me know what to do ?
    Thanks in advance

    Problem solved with the help of my collegue.
    It is just using "Segment --> Add version".
    As the old version is already released so we can
    "Edit --> Cancel release".
    Thanks,

  • The appearance of the company code segment of G/L account is based

    Hi,
    The appearance of the company code segment of G/L account is based  on which factors influenced
    which one  account group or fieldstatuts group/posting key  which one is influenced 
    Mnay thanks
    MvNr

    Hi
    Gl account  influenced by Account group
    posting key/filed status variant can be influence at the time of document posting
    Thanks & Regards
    Phaneendra

  • Adding a filed to Aging - 7 Buckets  - By Account Report

    Hi,
    I have a requirement to add a filed to standard Adding a filed to Aging - 7 Buckets - By Account Report.
    I am fetching the new filed value in a formulae column,This column value i want to add to the layout to dispay that values on the report.
    Is there any trick to identify from which layout the output is being dispalyed on the output file.
    I am running the report with parameters
    1 Operating Unit
    2 SOB name
    3 Currency
    4 Bucket Name
    5 risk option "Age"
    I am getting the
    the output format is
    Accouting Flexfield: 61.000.000.111100.0000.0000.0000
    Customer# Customer Name Outstanding Amount
    1-53YHQ1 XXXXCUSTOMER NAME 23,255.82
    AANA-GYNWC YYYYYCUSTOMER NAME 206,072.97
    Now i want to add one filed after Customer # .
    Could anyone please give some suggestion from which group/layout the above output is coming.
    If so i will try to add the field to that group and i will try to display the values.
    Thanks,
    Malla
    Edited by: user4254752 on May 18, 2009 11:43 AM
    Edited by: user4254752 on May 18, 2009 11:43 AM
    Edited by: user4254752 on May 18, 2009 11:44 AM

    You are going to have to do this as a custom report. This is not one of those report exchange reports where you can change the format of the report on the fly.
    John Dickey

  • Attachment is uploaded the filed in OPTY has to be updated automatically

    Hi everyone,
    I have requirement whenever the attachment has been added there is the filed in OPTY that has to automatically updated to "YES"
    Can u please help out
    Regards
    Laksh

    the billing plan needs to be regenerated - in standard this would be done manually - not sure if that BADI will help
    create an ABAP to run nightly to check for changes to milestones billing % and then update those contracts - regenerate billing plan dates - delete old lines and then click on create dates button for the contract line item

  • Not able to see Metadata fields when adding the fields to the rule in UCM

    Not able to see Metadata fields when adding the fields to the rule even after creating them in information fields of configuration manager.It is happening for few fields only.We are using 10.1.3 version of UCM.Kindly provide a solution if any.

    Dhilipan,
    I am trying to setup AES at the current Customer.
    You are right on LR_JP to be linked to customs code list instead of ACE and I do achieve that if I were to maintain the Custom code list by maintaining the assignment for EAR in a separate test.
    I was infact trying to follow the link: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30c7015e-c191-2d10-71b9-95907dc8edd1?overridelayout=t…
    On this document, if you look at page# 14 thru 17, it has the steps I described in my original note with customs code still appearing in the drop down for 'EXCPT' for EAR.
    Nevertheless, I wanted to default Type = C50 when the license type for the line on the Customs declaration is 'EXCPT' but if you see the very last screen-shot below, even though the license type configuration has default value as 'C50' it did not get pulled into the line item Documents tab when I tried to pick the category as 'CUII'.
    Let me know your thoughts on defaulting the data into Customs declaration for AES filing.
    What I want to achieve is the following:
    When License type is 'EXCPT', system should default the type as 'C50'
    Should put the License type 'EXCPT' into the number field
    Should put the actual License# 'ENC' into the Supplement field
    Should put the ECCN # '5A002' into the Details field
    Thanks,
    Prashant.

  • I have added the Documents folder to the Dock, however when I save a document it doesn't appear in the Documents folder on the Dock, only the Documents folder in the Finder.  Is this a quirk, so am I doing something wrong?

    I like having my Documents folder on the Dock so I added the Documents folder from the Finder to the Dock.  When I save a document to the Documents folder, the saved document appears in the Documents folder from the Finder and not in the Documents folder on the Dock.  Why is this happening?  And how can I change this?

    newbieAK wrote:
    I opened the Finder, selected Documents, then right clicked and selected Add to Dock.
    Oooh. I never new that was there.

  • Getting an error while adding the user in Sharepoint foundation 2010 environment.

    Hi,
    I am having full control access to SharePoint site. Then i tried add user for that site.
    But i am getting following error while adding the user to the site.
    An unexpected error has occurred.
    Troubleshoot issues with microsoft SharePoint Foundation.
    Correlation ID:3035B777-1B7C-4463-B35E-06657B72C2E4
    Can you please help me anyone on this.
    Thanks,
    Ashok

    This could be any one of a number of things.  You need to lookup the Correlation ID in the ULS logs on the SharePoint server.  That should provide the additional information necessary to diagnose and solve the problem.  Here's a blog post
    on how to find the error.
    http://habaneroconsulting.com/Blog/Posts/Get_the_Real_SharePoint_Error_using_the_ULS_Logs.aspx#.UvEuffldWik 
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • I have 2 email addresses set up on my iphone 5, 1 can send mail and the other can't... have tried deleting and adding the account, no luck, have tried all suggestions... anyone help?

    I have recently purchased the iphone 5S and have two AOL email accounts set up on it. They could both receive and send mail on the first day, but from the second day only 1 can send mail (both still receive). I get an message saying "Unable to send mail. A copy has been placed in your Outbox. Sending the message content to the server failed." This has been the response now for 3 days and suddenly this morning, I was able to send an email from this account, but only the one and now it's back to that same message. I have deleted and added the account again, using various methods. I even reset my phone and set it all up again from beginning with no luck. It is very frustrating and I am unsure why I can't send from both accounts, especially being that they are the same provider. I have read forums and it appears many have this same problem and I wondered if anyone has had it recently on this phone and how they fixed it. Someone said just use the AOL app to send from this account, yes that can be done, but it's inconvenient having to sign in all the time when i have a mail app that should work automatically. Any suggestions would be welcomed!!

    I am not sure if this issue is going to help you but lets give it a try.
    I know that where im from, which is the Netherlands, I am not able to sent e-mails from my iPhone or any other mobile device by using 3G or a random WIFI acces point. The provider only allowes you to sent e-mails when you are connected to a network of there own. Which means if you have provider "101" and your email settings are set up for this provider in your iPhone but your using the network of a friend of yours which is provider "202" you cannot sent emails from his network. Though you can receive them you may not sent.
    As I said, I am not aware if this issue is the same for you totaly depents on the country and provider your using.

  • Adding the Checkbox for each row in classic report

    Hello,
    I have created classic report with checkboxes in each row and added the On-Submit process, BUTTON CONDITIONAL, to determine the behavior of the checkboxes. The PL/SQL process is suppose to delete the selected row from database.
    I am getting the Success message, but When I check the database, the row still persist in the database.
    PLSQL CODE:
    FOR i IN 1..apex_application.g_f01.count LOOP
    DELETE 
    FROM
      registry 
    WHERE
      reg_id = apex_application.g_f01(i);END LOOP;
    ORACLE APEX: 4.2
    Thank you

    Hi ApexNewLearner,
    Try this
    DECLARE
    j number;
    BEGIN
    FOR i IN 1..apex_application.g_f01.count LOOP
      j := apex_application.g_f01(i);
      DELETE FROM  registry
      WHERE  reg_id = apex_application.g_f01(j);
    END LOOP;
    END;
    or better try to replicate your issue on apex.oracle.com , that is easy for users to investigate the issue and give you appropriate solution.
    Hope this helps you,
    Regards,
    Jitendra

  • Problem showing the crystal report viewer in form after added the component on it

    Greetings
    I have a problem running a program. I created a form which I added the component Crystal Report Viewer perfecty but during program execution when I call that form my VS 2012 Ultimate show the following error:
    Translated:
    Failed to create the form. See Exception.InnerException for details. Error: An exception occurred in the type initializer for 'CrystalDecisions.Shared.SharedUtils'.
    Note: If I remove the component from the form. the applications runs fine when calling the form without the component CrystalReportViewer
    It is something related to my VS? o just that the actual version 13.0.9 is not yet compatible?

    Report.Show?
    How about you try:
    CrystalReportViewer1.ReportSource = <path to your report>
    Or:
    Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
    crReportDocument.Load(<path to your report>)
    CrystalReportViewer1.ReportSource = crReportDocument
    Or, if the report is added to the project:
    crReportDocument = New test
    CrystalReportViewer1.ReportSource = crReportDocument
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    Message was edited by: Ludek Uher

  • I purchased an apple gift card, but i am not having any success adding the money to my itunes account or apple account so i can purchase music or apps, how can i do this

    I purchased an apple gift card, but i am not having any success adding the money to my itunes account or apple account so i can purchase music or apps, how can i do this

    If you bought an Apple gift card, then you cannot use it in the iTunes store.  You can only use it in the Apple store for hardware.
    You would need an iTunes gift card to buy anything in iTunes

  • HT5624 how do I change the security questions on my daughters itunes account. I do not remember adding the questions and they do not make sence to me. can not figure out how to get to her  email account that it is showing for her altern

    I cant seem to be able to change the secutity questions on my minor daughters itunes account. I set the account up but I do not remember adding the security questions and they do not make sense to me. It says that the alternate account it would be sent to is@ me.com but I can not figure our how to get to it to retreive the email to reset the questions. My daughters account may have recently been hacked so I am trying to change all passwords. I changed the itunes account and added another email but I still can not change security questions in case I ever need them.
    <Email Edited by Host>

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple - I've asked the hosts to remove your email address from your post (it's not a good idea to post personal info on any public forum).
    The reset link on an account will only show if there is a rescue email address on it, alternate email addresses are different and not used for resetting them. If she has a rescue email address on her account then steps 1 to 5 half-way down this page will give you a reset link on the account : http://support.apple.com/kb/HT5312
    Navigate to appleid.apple.com using your web browser.
    Click "Manage your account"
    When prompted, sign in using your Apple ID and password.
    Click Password & Security
    You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
    If she doesn't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use steps 1 to 7 half-way down the HT5312 link above to add a rescue email address for potential future use

  • I want to create a new folder on my external hard drive for photos.  Even though I added the new folder button to the tool bar it is not highlighted so I cannot click on it to create a new folder on this drive.

    I have an external hard drive that I would like to pre-make a new folder before I import photos into it.  Even though I added the new folder app to by toolbar, it is not highlighted and I cannot use it.  It will only let me create new folders if I upload to iPhoto.  That is not where I want to store everything.  So I need to figure out how to turn on or activate New Folder on my toolbar for all possible downloading options.

    If it's a drive that you've previously used with a PC, just double-check the format - click the drive once on the desktop to highlight it, and click cmd-i (the command key and the i key together) to see the Info window. That will tell you, under Format, how it's formatted.
    If it's "NTFS", that's the current Windows format. You can read but not write to it with a Mac. If you want full read/write access, you should look into Paragon NTFS, which allows you to do both. Note that some features of te Mac (Time Machine, for example) will only work with Mac-formatted drives.
    Matt

Maybe you are looking for