Populating field with EXIT_SAPLEINM_002

Hi,
I have a requirement where i have to populate the Vendor Name field when PARVW = 'LF'(in ME22N-Create PO Transaction).
Enhancement name:-MM06E001
INCLUDE           ZXM06U02
In Include LEINMF11,this is where i hv to make the changes:-
int_edidd-segnam = 'E1EDKA1'.
  e1edka1-parvw = 'LF'.
  e1edka1-partn = ekko-lifnr.
  e1edka1-ihrez = ekko-ihrez.
  e1edka1-bname = ekko-verkf.
  e1edka1-telf1 = ekko-telf1.
  e1edka1-spras = ekko-spras.
  WRITE ekko-spras TO e1edka1-spras_iso.
*<<<<<<<<<<<<<< begin insert note 547957 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  data: begin of h_iln_vendor,        " help field for concatenating ILN
           bbbnr like lfa1-bbbnr,
           bbsnr like lfa1-bbsnr,
           bubkz like lfa1-bubkz,
        end of h_iln_vendor.
ILN of vendor
  clear h_iln_vendor.
  h_iln_vendor-bbbnr = lfa1-bbbnr.
  h_iln_vendor-bbsnr = lfa1-bbsnr.
  h_iln_vendor-bubkz = lfa1-bubkz.
  e1edka1-ilnnr = h_iln_vendor.
*<<<<<<<<<<<<<< end   insert note 547957 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  MOVE e1edka1 TO int_edidd-sdata.
  APPEND int_edidd.
Call Method PROCESS_IDOC_SEGMENT (BADI MM_EDI_ORDERS_OUT)
  PERFORM badi_process_idoc_segment.
Call Customer Function 002 (enhancement MM06E001)
  PERFORM customer_function
Can any one suggest me how should i maintain the index of the current Segment definition & restore it back so that the vendor name gets populated when ever the IDOC is triggered.
Thanks in Advance

Hi Sheetal,
You can use ABAP command <b>EXPORT/IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key></b> to maintain the index of the current Segment definition and restore it back so that the vendor name gets populated when ever the IDOC is triggered
Please check this link for sample code.
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bde358411d1829f0000e829fbfe/content.htm
Hope this will help.
Regards,
Ferry Lianto

Similar Messages

  • Populated the new field with historic data

    HI,
    I have a data for 2 years now I am enhancing the data source how can I populated the new field with historic data.Is it by
    1)deleting all the data in BW side and the doing an init then setting up a regular delta
    2)running a repair full request with selection condition.
    or is there any other option available? which is the best scenario to load these historic data?
    Regards,
    Ravi

    Hi,
    I think your datasource is already in production, and you want to data only from today onwards for enhanced fields, i.e. historical data is not required for enhanced fields..
    1.Fix ECC down time for 20 to 30 munities
    2. Keep all objects on Qty system in ECC and BW.
    3.Run Delta laods in BW for 2 to 3 times.So with this step you can clear SMQ1 and RSA7. Check the entries in RSA7, if it is ZERO then it is fine.
    4. Move DS from ECC Qty to ECC PROD .
    5. Replicate in BW.
    6. Move all BW objects from BW Qty to BW Prod.
    7. Delete Init load in InfoPackage level (Not in ODS/CUbe).
    8.Load Init without DataTransfer.
    9.Then Run Delta.
    10. Next day on wards deltas will come as usual.
    If you need Historical data also.
    1.Delete data in Cube.
    2.Fix Down Time and load Init then Delta.
    Check
    SAP Note 328181 - Changes to extraction structures inCustomizing Cockpit
    Thanks
    Reddy

  • Having issues with populating a Text Field with data from 2 other fields

    I have 3 fields Tools_1a_pri, Tools_1a_pri_other, Tools_1a_pri_txt.
    Tools_1a_pri is a drop down combo with a predefined list. One of the options is "Other".  When "Other" is selected, the text field Tools_1a_pri_other becomes visible for users to enter the name of the other tool.
    The Tools_1a_pri_txt is a text field with a calculation that shows either text stating that no tool has been selected or the Tools_1a_pri & or Tools_1a_pri_other.
    When I select one of the predefined tools, everything works.  When I select other, it appears that nothing has changed.  It requires that I click on another field before it populates.  This is confusing to the user.
    Tools_1a_pri   Validate code
    this.getField("Tools_1a_pri_Other").display = event.value=="Other" ? display.visible : display.hidden;
    Tools_1a_pri_txt  Calculation code
    //if nothing is selected, do the following
    if (getField("Tools_1a_pri").value.length < 2) {
    event.target.textColor = color.red
    event.value = "No primary tool identified";
    }else if (getField("Tools_1a_pri").value != "Other") {
    //otherwise do this if other is selected
    event.target.textColor = color.black
    event.value = getField("Tools_1a_pri").value;
    }else if (getField("Tools_1a_pri").value = "Other") {
    //otherwise do this if other is not selected
    event.target.textColor = color.black
    event.value = getField("Tools_1a_pri").value + " - " + getField("Tools_1a_pri_Other").value;

    You made the classic mistake of using the assignment operator in an if-statement instead of the comparison operator. Change this line:
    } else if (getField("Tools_1a_pri").value = "Other") {
    To this:
    } else if (getField("Tools_1a_pri").value == "Other") {

  • Popup not populating the originating field with selected results

    Customized setting browser.link.open_newwindow.restriction 0.
    Popups from searchable fields open in new tab BUT they do not populate originating field with results.
    "Diabetes" in search box get choices 250 2504 check choice Hit confirm and search box should have a number 250
    Worked in FF3 not 8.

    Tried that but not working.
    It works fine if I default the newwindow.restriction to 2.
    BUT I like the way the windows tab with 0 AND it used to work in FF3.
    Tried to find safe mode, but FF9 not listed in my programs (FF3 was).

  • Populating descriptive field with itresource name?

    Hi everyone,
    After my AD account is provisioned i need to update request description with resource name. but when i map the descriptive field it populateds descriptive field with key but not the resource name. How can we populate descriptive field with resource name?
    Thanks,
    doki

    ASAIK, you can not see the resource name in map descriptive field. But you can do a workaround like, create a hidden field(UD_ADCS_RESNAME) in AD Process Form and use pre-populate adapter to populate this field with your resource name.
    Now in Map Descriptive Field of AD Provisioning, select the field UD_ADCS_RESNAME under the Process Data. You will be done.

  • A form field (for a client fax number) on my own web site is remembering my email address used to log into the site. The usual clearing of the remembered entry works OK, but evey time I remember the login it automatically populates this one field with my

    The form where this happens contains an email field as well as a password field, so it does have both of the fields that are on the login page. It is used to modify the details of the user of our site and is accessed by the administrators, not the users themselves. To auto fill the fax field (which is named _fax) with my email address is very strange. If I log in as a different admin user then the email address I use to login appears in the field. The password field is also appears on the form and is being populated, presumably with my password. How can Firefox get it wrong and put an entry in a field with a different name, and why that field and not other empty fields on the form?
    == This happened ==
    Every time Firefox opened

    First be sure login and password are OK. Sometimes the address starts wit "http://..." and sometime starts with "ftp://...". Try both normal FTP access and Scure FTP access (SFTP). At the end, contact the site's provider.

  • How to populate a hidden form field with a value passed from another page

    I'm using PHP/MySQL and DW CS4.
    I am trying to obtain the external key for a table, and include it as a hidden field in a form for a second table.
    The user selects a "need" from a list and is taken to a new page which displays the need selected in the prior page and a form the user can fill out with details of his offer, there should also be a hidden field in this form that contains the index to the needs table, this hidden field holds the external key. Most of the code is working, except for populating the hidden field with the external key. I have proven(by printing it to the screen) that I have obtained the external key and stored it in a variable ($saveNeedId) . What I'm unable to do is assign this variable to the hidden field in the form I'm about to store in a table. Sometimes I get zero and sometimes I get the index to the first need in the table. This ought to be simple but I can't get it to work, I must be missing something obvious - still very new to PHP.
    Here's the code that sets up the variable and prints it to the screen for test purposes
          $saveNeedId = "-1";
              if (isset($_GET['needId'])) {
                $saveNeedId = $_GET['needId'];
                print $saveNeedId;
    Here's the code that sets up the hidden fields in the form, the one I'm trying to set up is the first one, needId
         <input type="hidden" name="needId" value="<?php echo $row_rsNeedsUnmet['needId']; ?>" />
         <input type="hidden" name="offerId" value="" />
         <input type="hidden" name="MM_insert" value="form1" />
    The page where the user sees the list of needs is here www.hollisterairshow.com/weneed.php
    I'd really appreciate sone help with this, I've tried all combinations of double quotes, percent signs and nothing works...sigh.
    Tony

    Here's the code that sets up the variable and prints it to the screen for test purposes
          $saveNeedId = "-1";
              if (isset($_GET['needId'])) {
                $saveNeedId = $_GET['needId'];
                print $saveNeedId;
    Here's the code that sets up the hidden fields in the form, the one I'm trying to set up is the first one, needId
         <input type="hidden" name="needId" value="<?php echo $row_rsNeedsUnmet['needId']; ?>" />
         <input type="hidden" name="offerId" value="" />
         <input type="hidden" name="MM_insert" value="form1" />
    <input type="hidden" name="needId" value="<?php echo $_GET['needId']; ?>" />
    I looked at your page. It looks like you figured it out.

  • Is it possible to populate an information field with the expect docURL?

    Hi,
    Is it possible to populate an information field with a function that checks for the expected docURL at checkIn time?
    I need to pass the value of the docURL of the checked in content item to a bpel process.
    Thanks.

    Thanks for the suggestion.
    To test:
    1. I created an information field called 'docURL'.
    2. Added a rule called 'docDisplayURL'.
    3. Selected global rule with Priority 1 and use rule activation condition.
    4. Added a condition called 'CheckIn'
    Selected 'Use Event'. 'On Submit'.
    Selected 'Use Action', ' CheckIn New', 'Check In Selected', 'Content Information', 'Content Update', 'Search', Clicked Ok.
    5. Selected the Fields Tab, Selected the 'Information Fields' in the Add Rule Field.
    6. Changed the Type to 'Info Only'.
    7. Selected the Is Derived Field and in Custom entered the following:
    <$DocUrl$>
    8. Now my rule 'displayDocURL' shows up.
    9. When I go to an item content information I don't see the 'DocUrl' field populated. What could I be doing wrong?
    Thanks
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim

  • Displaying only populated fields

    Is there any quick way to display only those fields that are populated with a value ? We have a third party help desk application running on Oracle 7.3.x. Some of the tables have been defined with MANY fields. I need a way of displaying the contents of only the populated fields.
    Thanks in advance,
    David

    http://technet.oracle.com:89/ubb/Forum88/HTML/001435.html
    null

  • Dynamic population issue with repeated sub form

    I have a subform that populates a dropdown from another subform on a prior page. In the Enter event on the subform I have the following script:
    Drop Down 1
    this.clearItems();
    this.rawValue = null;
    this.fontColor = "0,0,0";
    var nCount = Subform3.Subform2.Subform1.instanceManager.count;
    console.println("nCount: " + nCount);
    for (var i=0; i<=nCount; i++)
    var vFld = xfa.resolveNode("Subform3.Subform2.Subform1[" + i + "]");
    var vItem = vFld.RiskNo.rawValue;
    this.addItem(vItem.toString());
    A second drop down is also populated in the PostOpen event on the subform with the following script:
    Drop Down 2
    this.clearItems();
    this.rawValue = null;
    this.fontColor = "0,0,0";
    var sf1 = Subform3.Subform2.resolveNodes ("Subform1[*]");
    for ( var i = 0; i < sf1.length; i++)
    if (CTPData.RiskRow.Risk.rawValue == sf1.item(i).RiskNo.rawValue)
      var controlsf = sf1.item(i).resolveNodes ("Controls.Control[*]");
      for ( var j = 0; j < controlsf.length; j++)
       var wInput = controlsf.item(j).ContNo.rawValue;
       this.addItem(wInput.toString());
    I then populate a text field with values based on drop down selections with the following Exit Event scripts:
    Exit Event Drop Down 1 to populate text field 1
    var sf1 = Subform3.Subform2.resolveNodes ("Subform1[*]");
    for (var i = 0; i < sf1.length; i++)
    if (CTPData.RiskRow.Risk.rawValue == sf1.item(i).RiskNo.rawValue)
       var wInput = sf1.item(i).RiskInput.rawValue;
       CTPData.RiskRow.RiskTxt.rawValue =(wInput);
       CTPData.ControlsRow.ControlTxt.rawValue = "";
    Exit Event Drop Down 2 to populate text field 2
    var sf1 = Subform3.Subform2.resolveNodes ("Subform1[*]");
    for ( var i = 0; i < sf1.length; i++)
    if (CTPData.RiskRow.Risk.rawValue == sf1.item(i).RiskNo.rawValue)
      var controlsf = sf1.item(i).resolveNodes ("Controls.Control[*]");
      for ( var j = 0; j < controlsf.length; j++)
    if (CTPData.ControlsRow.Control.rawValue == controlsf.item(j).ContNo.rawValue)
       var wInput = controlsf.item(j).ControlInput.rawValue;
       CTPData.ControlsRow.ControlTxt.rawValue =(wInput);
    These scripts work absolutely perfect for the first instance of the subform they are on.  On added instances of the subform however, the drop downs work but the populate text fields from the selected values do not.
    I am sure I am missing something simple but I can’t find it.
    I would greatly appreciate any pointers I could get.
    Thanks,
    Eagle

    I actually tried that with the same results.  It seems to me that the issue is that
    var wInput = controlsf.item(j).ControlInput.rawValue;
    CTPData.ControlsRow.ControlTxt.rawValue =(wInput);
    on the repeated subform has a different CTPData.ControlsRow.ControlTxt.  something like CTPData.ControlsRow.ControlTxt(0). but I don't understand enpough about repeated subform values to figure it out.
    Thanks,
    Eagle

  • AutoPopulating a field with a string plus value from another field

    Hi: I have a table with two fields
    create table LINKREQUEST (
    requestid int primary key,
    INCIDENT_NUMBER varchar2(16),
    REQUESTID is auto populated using a sequence. I want to auto populate the INCIDENT field with the string "INC" plus the value from REQUESTID. Can someone help.
    TIA
    Ravi

    REQUESTID is auto populated using a sequence. I want to auto populate the INCIDENT field with the string "INC" plus the value from REQUESTIDSomething like this?:
    SQL> create table linkrequest (
    requestid int primary key,
    incident_number varchar2(16)
    Table created.
    SQL> create sequence linkrequest_seq
    Sequence created.
    SQL> create or replace trigger linkrequest_trg before insert on linkrequest
    for each row
    begin
    select linkrequest_seq.nextval,
            case when :new.incident_number = 'INC' then 'INC' || linkrequest_seq.nextval else :new.incident_number end
       into :new.requestid, :new.incident_number from dual;
    end;
    Trigger created.
    SQL> insert into  linkrequest (incident_number) values ('XY')
    1 row created.
    SQL> insert into  linkrequest (incident_number) values ('INC')
    1 row created.
    SQL> insert into  linkrequest (incident_number) values ('VW')
    1 row created.
    SQL> insert into  linkrequest (incident_number) values ('INC')
    1 row created.
    SQL> select * from linkrequest
    REQUESTID INCIDENT_NUMBER
             1 XY             
             2 INC2           
             3 VW             
             4 INC4           
    4 rows selected.

  • How to popule date with Sysdate?

    Hi All!
    I am using tabular form(for insert update and delete).all columns are editable except Primary key... There is a date column in it and the Requirement is whenever new rows are to be added, this field should be populated with sysdate.
    Is there a way to do it through this page .. I can't use sysdate in select querry
    as it would show the sysdate for previously entered records too.
    Thanks
    Asit

    another one I think I have a handle on... the fastest way I would do that is to show edit links, select the date field, throw SYSDATE in the default value, make it a PL/SQL Expression and refresh. That populates the date field with sysdate and if the item is displayed as a Date Picker you will get the date picker on the end.
    Did I miss something somewhere about the design of the form that makes that answer too simple?
    I'm assuming you want to do this so the operator doesn't have to enter "todays" date?
    I frequently use this as a "RECORD_DATE" to indicate the date and time the record was created. Although in that instance I hide the field so the operator isn't aware it's there.
    Similarly I always do the same for the user ID as well, hidden so the operator is unaware his ID and Date/Time are recorded into the record.
    If you don't want the operator to edit the field, but still show the SYSDATE you can display the date as Display as TEXT (saves state). That should let them see todays date but prevent them from changing it. Although you did mention you wanted is defaulted rather than uneditable.
    Gonna follow this thread in case there's a better way out there or I had the wrong idea.

  • Error while adding a custom field with Input help via AET

    Hi All,
    I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
    One field is required to have the input search help f4 and autopopulates the second field
    I am able to add one field(not requiring help) successfully through AET .
    I have created one Zsearch_help in se11 and its successfully running  and Autopopulating seocnd field while I am testing it
    While adding second field through AET,I need to enter following details as -
    field label,search relevant ,serach help etc.
    When I type the name of my 'Zsearch_help' against field search help it gives me following error
    'Search help is not compatible'.
    Secondly,not getting getter and setter methods for the attrributes in BTAdminI.
    Last,please tell me if i create zhelp and activate it,would it automatically appear in the list on AETwhile assiging it to input field?
    Please help me out.Kindly be detailed as I am new to SAP CRM.
    Thanks,
    Shivani

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

  • Help, please -  I need a box to pop-up when user hovers over a field with their mouse??

    I created a form with several drop-down fields / questions.  I would  like to create a box that pops up when the person who is filling out the  form hovers over the question/ field with his or her mouse.  The box  would contain additional information about the question that the person  might consider before they select the answer.  I don't want to clutter  the form (and not all form-filler-outers will want or need to see the  additional information) so I want it to pop up when the person hovers  over the question with their mouse.
    Can someone provide some help with how I can do this?
    I'm still new to this.
    Thank you!!!

    Hi,
    To follow on from radzmar, here is a summary of the features that are available/restricted depending on how you deploy your form.
    There are two ways to apply Reader rights, one is using Acrobat Standard (v9) or Acrobat Professional (v8). The other is using an Adobe server product called LiveCycle Reader Extensions ES2.
    You don't need script to apply the Reader rights to your form. Once you have applied the rights, users with Reader will be able to save the data in the form, however there may still be other restrictions in place, like attaching documents to the form or exporting XML data.
    There summary is also available in PDF, with screen shots, here: http://assurehsc.ie/blog/index.php/2010/05/using-livecycle-forms-in-acrobat-and-reader/
    Hope that helps,
    Niall

  • How can I have two fields with the same name if it makes sense?

    Hello, folks :)
    I have a pretty hard time figuring out how I can have two text fields with the same binding name.
    The whole problem is that when I need two fields with the same binding name they are still differnent coz they have the same name but differnt indices.
    I should make a form filled at runtime by merging a pdf form file and an fdf file data file. And I have no choice to do it differently. And my form file needs some data like customerName, companyName twice in one form. But there's only one possible buinding name indexed zero.
    How can I create a field with absolutely the same name or is it just impossible due to possible name conflicts? And is there a workaround to this problem? I just need one piece of data repeated in different places.
    Thanks for your replies :)
    P.S. if u think that the problem is not clear enough let me know. I'll supply you with more details. But the general process can not be changed.
    One pdf should be mergred with an fdf with as the result of their merge a new filled and flattened form. I have no control over fdfs their are generated by Oracle and I can not fill the form using XML files coz this process should be integrated in a working application.

    I just thought about a really ugly workaround with a server-side script adding values to fdf files but it's a bit of work and tests and personally i think it's a bad idea :-(

Maybe you are looking for

  • Memory on iPhone 4S

    I have an iphone 4Gs - 32GB.  I recently purchased a movie on iTunes but did not have enough memory, so I erased a few movies and a bunch of apps until it said I had enough.  Half way through, there was an error saying that I did not have enough.  I

  • PDF viewer bug/ v1.4.5

    This is still not fixed. Try this- open a PDF, zoom in on an area and wait for the Pre to autooff. When you resume, the PDF viewer has crashed.. There is a spinning circle in the top right corner and if you enter a new page number, the total page cou

  • Displaying a matrix in swing----HELP!! :)

    Hello I want to print out values from a matrix in some sort of table. javax.swing.JTable is almost what I want, but you can't do row labels (only column labels, I think)-- Are there any classes like JTable, but a little more like an Excel spreadsheet

  • Matrix Report Issue

    Friends I am creating group matrix report for Balance Sheet. I am not able to calculate sum on group level 1. Suppose, I am highlighting the issue: Asset Current Asset 2012 2013 Account1 10 20 Account2 20 40 30 60 Fix Asset 2012 2013 Account1 10 20 A

  • HT3209 Where are the movies I downloaded

    I purchased movies on iTunes but cannot find them to play back.  Where are they?