Populating field

Hi
I want to populate a field value in the segment E1EDP19 of the outbound idoc that I genrated from VF03 transaction. Can you tell me where should I code for this purpose?
Thank you very much!

Hi,
Check the user exit EXIT_SAPLVEDF_002
In that user exit..Do the following..
if int_edidd-segnam = 'E1EDP19'.
modify the current row of the internal table INT_EDIDD..
Endif.
Thanks,
Naren

Similar Messages

  • Populate DDL from the pre-populated field

    Hello,
    I previously have from done by enter the value in the userID to populate the DDL, then user can select one of the values from the DDL to populate the others fields. Now the userID field is a pre-populated field and they want to populate the DDL from that userID field (without entering any value) to populate the other fields.
    Can any one please advise on how to get it done.
    Thank You in advance,
    Han Dao

    Hi Steve,
    The data is coming from web service that created in Workbench ES for all the fields including the DDL.
    Thanks,
    Han

  • 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

  • How to get values from dynamically populated field symbol

    Hi all,
    I am having a field symbol <fs_table> type standard table, which is getting populated dynamically.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = i_fieldcat[]
        IMPORTING
          ep_table        = is_eptab.
      ASSIGN is_eptab->* TO <fs_table> .
    After the ALV display i am making some changes in the ALV and getting a new internal table <fst_table>,which is having changed values.
    Now the problem is that i am not able to get the changed values from <fst_table>  as it is not of any structure type and cant associate it with any field like we do in normal internal table and work areas like, wa-fieldname.
    All the fields are dynamic.
    Regards,
    Anant

    Hello Anant
    You have to access to access the fields of your dynamic outtab dynamically as well.
    DATA: ls_fcat   TYPE lvc_s_fcat.
    FIELD-SYMBOLS:
      <ls_struc>   TYPE any,
      <ld_fld>       TYPE any.
    LOOP AT <fs_table> ASSIGNING <ls_struc>.
      LOOP AT i_fieldcat INTO ls_fcat.
        ASSIGN COMPONENT ls_fcat-fieldname OF STRUCTURE <ls_struc> TO <ld_fld>.
        ...  " do processing
      ENDLOOP.
    ENDLOOP.
    Regards
      Uwe

  • Adding a populated field to an incident form

    Hi,
    hopefully someone here can help me out, I'm looking to add a field to the Incidents form in SCSM 2012, specifically a 'Location' dropdown with a few of our sites already in it and a 'room number' text box.
    I'm having trouble getting started with this customisation and the more I read TechNet articles and blog posts the more difficult it seems.
    Does anyone have any pointers on how to achieve this?
    Thanks.

    So there are two things that you need to do to do this. First: add a place to store this information. Second: add controls to the form so those places are exposed for editing. 
    The first part is more complicated, but not hard. Let's start with some design choices:
    i'm assuming these two values are properties of the affected user, rather then the incident? the distinction here is if the location and room number are the location of the user having the issue, or a unique location for this issue. imagine a printer problem,
    and bob calls this problem in. should the location field be linked to Bob's office so the analyst can find bob in the building, or should it be blank until bob specifies the room number that the printer is in? 
    If you want user properties, then the first step would be to
    extend the user class (specifically, System.Domain.User) using
    the SCSM authoring tool, by adding a ENUM or list property for the location, and a text property for the room number. you'll want to
    save and seal this MP, then close the unsealed version and open the sealed version before continuing. If you want the Incident properties, you'll do the same process, only to the incident
    class (System.WorkItem.Incident) instead oft he user class. 
    In regards to the second part, customizing the form: start by creating a second MP to store the form. you'll want to keep the class and form definitions separate, due to some property reference issues if they are in the same MPs. If the location is linked
    to the user, then you'll want to follow
    this example to create read only fields linked to the user in the new form. If Not, then you'll want to
    customize the incident form, and
    add a text box and
    list control to link your form properties. Either way, save and seal the form MPs and import them both into Service Manager. 
    Open the forms and check your work. you'll note the dropdown has no entries. you'll want to create a third MP, this time inside SCSM (not the authoring tool) to store the List entries. find the list you created in the authoring tool and
    add some entries. 
    At this point, if you are just storing the information on the incident, then you're done. if you are storing the data on the users, then you'll want to populate this information. you can do this with some automation, like powershell or orchestrator, to get
    this data populated from it's original source, say the HR system that assigns offices, or you can customize the user form to expose these properties so your analyst can start populating this data. 

  • Problem in populating field of same name in main & sub screen

    Hi Guys,
    I have a problem in my BDC program where the same field name appear in main screen and subscreen. Everytime i run the BDC program it will only populate to the field in main screen but not in the subscreen.
    Below are the result of my BDC recording: Where PKHD-LGNUM, PKHD-LGTYP and PKHD-LGPLA exist in main screen 0110 and also sub screen.
    SAPMMPKR    0110    X
                           BDC_OKCODE       =SAVE
    <b><i>                       PKHD-LGPLA       KB
                           PKHD-LGNUM       100
                           PKHD-LGTYP       150</i></b>
                           PKHD-BEHAZ       10
                           PKHD-SIGAZ       8
                           PKHD-BEHMG       50
                           BDC_SUBSCR       SAPMMPKR                                0813INCLUDE8XX
                           PKHD-UMLGO       S020
    <b><i>                       PKHD-LGNUM       100
                           PKHD-LGTYP       150
                           PKHD-LGPLA       KB</i></b>
                           BDC_SUBSCR       SAPMMPKR                                0820INCLUDE820
                           BDC_CURSOR       PKHD-KOSTL
                           PKHD-KOSTL       8441
                           BDC_SUBSCR       SAPMMPKR                                0830INCLUDE830
    This is the actual extract from SAP standard recording program, i even re-run the recording and it is not able to populate the value back into the subscreen fields of the same.
    Any one encounter the same problem and solve it? please help me please.
    Many thanks,
    Jay

    The transaction i'm dealing with is PK01, control cycle creation. There is a screen where we specified the control cycle data and there is a subscreen to specify stock transfer location. Problem when both these main and subscreen have fields tied to the same name and structure.
    If the screen fields name are the same, logically the BDC suppose to populate both field at the same time, however in my case the BDC only populate to the one in the main screen while the fields in subscreen are left empty. I have tried to specify the subscreen before populating the screen field, the value just won;t go in. I suspect it is still the problem in specifying the subscreen in populating the BDCDATA. I just dont know how, i have tried every possible way of specifying the subscreen.

  • 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

  • Posting msgs based on populated fields

    I have a field on a form called CLOSING_DATE which decides if a record should stay closed or opened (archive the record and don't show the record to the user or continue to show the record to user). That is, when a user enters a CLOSING_DATE, I want to ask the user if they really want to close the record by displaying a msg on a wondow with the YES and NO button. If the user clicks on YES, I want to set the status of the record to CLOSED and archive it (don't show records with CLOSED status to users), and if the user clicks on NO, I want to leave the record the way it is and clear the CLOSING_DATE field.
    I have a trigger that monitors the CLOSING_DATE field and as soon as the CLOSING_DATE is populated, trigger will fire and the status of record will be changed to CLOSED.
    However, I am having issues with the msg box asking the user if he/she wants to close the record. How can I setup this msg box based on CLOSING_DATE field being populated. Please note that I want to ask the user for confirmation PRIOR to user saving the record with a CLOSING_DATE.

    Nathan,
    Sure...
    1. Modify the code sample to fit you page. This just means change PXX_CLOSING_DATE to fit your page number and get the submit values as you would like as well.
    2. Place the code sample in the HTML Header of the page.
    3. Configure your submit button to use the Option URL Redirect,Type = URL, and enter the following for the URL:
    javascript:comfirm_close_record();
    4. Make sure that your processes have conditions or conditional logic that picks up on the value of the request. This can be referenced with :REQUEST
    If you need more help, please put up an example on apex.oracle.com and provide credentials that I can use to get it and get it working for you.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • ABAP HR - Populating fields on Infotype screen

    Hi
    I have the foll. requirement.
    In Infotype 8 when an employee enters the ANSAL field ie. the value for Annual Salary all the wage types should get populated on their own in the wage type table control in the screen based on the following calulations :
    basic pay = 40% of ANSAL
    HRA       = 30% of basic. etc.
    Please tell me where exactly I should write the code for this calculation and how.

    You need to implement use exit EXIT_SAPFP50M_001, (cmod/smod thing)
    and code something like this inside:
    IF innnn-infty = '0008'.
        call method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
          exporting
            prelp = innnn
          importing
            pnnnn = wa_p0008.
    * Assign the values/calculations here
    *  wa_p0008-yourfield = whatever_you_want.   "Change this line
    *  wa_p0008-yourfield = whatever_you_want.   "Change this line
    *  etc.
    *  etc.
        call method cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
          exporting
            pnnnn = wa_p0008
          importing
            prelp = innnn.

  • Populating fields from database values

    I have a page being populated from database values. I used the Application Builder Wizard to create the application. One of the fields is displaying on the report, but when I click edit, the value is not there. The field is defined as a float and being displayed as a text item. I have created this Application twice with the same results.
    Any ideas?
    thanks!
    Christie

    Thank you for the quick reply!
    I turned on the debug, to ensure the automatic fetch
    process it on and it is. The edit page has 7
    fields, all are being populated except for this one.
    I have confirmed it is using the correct database
    column and it is replacing the existing value the
    same as the other fields.
    Any other ideas to what could be going on?You can see each page item assignment in the debug output. Look there to see where the page item is being set, and potentially unset I suppose. The thing to look for here might be page processes that might be interacting with that item.
    You could also simply drop the problematic page item and recreate it to see if you can make the value stick.
    Earl

  • How to retrieve online form with populated fields?

    Greetings, SDN members!
    I have a WD Java application which embeds an Adobe Interactive Form inside.
    There are a couple of fields in this form, which are binded to context, as the PDF form itself (througjh binary pdfSource attribute).
    My scenario requires saving the form in KM after user fills out several fields.
    I am trying to save the form through an WD action, button to which is placed outside the form itself (regular WD button).
    My problem is once I try to save the binary content of the form, it doesn't include the information filled by end users, it only gives me those fields that were populated automatically.
    My intuition tells me I should add some script that "updates" the binary content before I save it to KM.
    Any ideas?

    Hi Ivan,
    Hope you have inserted WebDynpro Script from Utilities.
    When you do this step some built in javascript gets inserted into the form which enables the communication between WebDynpro and Form through script file "ContainerFoundation_JS".
    Please check the following threads as well
    [Problem with submit button]
    [Submit Button - Onclick event ?]
    [Problem when using submit to sap button in adobe form based on web dynpro j;
    Thanks & Regards,
    Sanoosh

  • Populating fields based on list box values

    I have created an application based off of a table and so the 1st page is the actual report and the 2nd page is the data entry form. I have changed the form elements (like text box to select list) etc.
    I need to have (2) text box fields populated based on the value from the 2nd select list box. I created a pl/sql page process that will check the value of the select list and assign values to the text boxes. This is triggered when a POPULATE button is pressed.
    When I select a truck number in the select list - nothing happens and the original select list values get reset back to original. There is another button used in order to insert the data so that's why I figured I needed to add another button to trigger the population of the text boxes from a table. Here is my pl/sql page process used to populate:
    BEGIN
    SELECT dr1_name, dr2_name
    INTO
    :P2_DRIVER_1, :P2_DRIVER_2
    FROM
    active_drivers a
    WHERE
    :P2_DRIVER_CODE = a.code;
    END;
    It is set to fire on submit - before computations and validations.
    Regards,
    Jeff

    Not sure if this is the best way but it works for me……
    Make P2_DRIVER_CODE be a form element of Select List with Submit
    Create 2 items, P2_DRVR1 and P2_DRVR2, of form element Hidden
    Edit the P2_DRIVER_1 item. In the source region enter :P2_DRVR1 in Post Calculation Computation.
    Edit the P2_DRIVER_2 item. In the source region enter :P2_DRVR2 in Post Calculation Computation.
    Create a page rendering computation for item: P2_DRVR1.
    Type: SQL Query
    Computation Point: Before Header
    Computation: SELECT dr1_name FROM active_drivers a WHERE a.code = :P2_DRIVER_CODE
    Create a page rendering computation for item: P2_DRVR2.
    Type: SQL Query
    Computation Point: Before Header
    Computation: SELECT dr2_name FROM active_drivers a WHERE a.code = :P2_DRIVER_CODE
    When an item is selected in P2_DRIVER_CODE the page will submit/refresh, causing the computations to be fired. P2_DRIVER_1 and P2_DRIVER_2 will be populated by the return of the queries in the computations respectively.
    P2_DRIVER_1 and P2_DRIVER_2 are still editable by the user (unless you define them as read only) but if you have another select list with submit on the form, if used, the page will refresh and the computation will run again overwriting what the user has entered.
    Suppose I want the user to be able to change the defaults and keep from losing them (changed back to default) in case another item submits/refreshes the page.
    Create a hidden item P2_DRIVER_CODE_CHANGE with the source of: Static Text. For the Default Value enter &P2_DRIVER_CODE. (include the period after &P2_DRIVER_CODE)
    Edit the P2_DRVR1 and P2_DRVR2 computations and in the Conditional Computations region set:
    Condition Type: Text in Expression 1 != Expression 2 (include &ITEM substitutions)
    Expression1: &P2_DRIVER_CODE.
    Expression2: &P2_DRIVER_CODE_CHANGE.
    Hope this works for you,
    Jeff

  • Populating Fields from Database

    Hi everyone,
    Need some help from the experts.  I have a PDF form that is already connected to a Progress/OpenEdge database through ODBC connection.  Here's what I want to happen:
    Just as an example, in the database suppose the 'Job' table contained 3 fields: JobID, JobDescription, and CustomerName.  When a user enters a job number into a specific PDF form field which corresponds to the JobID field of the database, the form fields in the PDF for Job Description and Customer Name auto-populate with the corresponding information from the database.
    Can this be done?
    Thanks so much,
    Jon

    Thank you for the quick reply!
    I turned on the debug, to ensure the automatic fetch
    process it on and it is. The edit page has 7
    fields, all are being populated except for this one.
    I have confirmed it is using the correct database
    column and it is replacing the existing value the
    same as the other fields.
    Any other ideas to what could be going on?You can see each page item assignment in the debug output. Look there to see where the page item is being set, and potentially unset I suppose. The thing to look for here might be page processes that might be interacting with that item.
    You could also simply drop the problematic page item and recreate it to see if you can make the value stick.
    Earl

  • Auto-populating fields based on another field (must access dif record type)

    This is a long one. I basically want to know if it's possible to have several fields auto-populated based on the data in another. It gets a little tricky here, because the information I want to auto-populate will have to be searched for in another record type. An example will hopefully make my request clear:
    I have 10's of thousands of records of the "Product" record type that each have a product number. Well, let's say I have several fields to enter into an "Opportunity" record type, based on the information for this product number in the "Products" record type. I want to know if I can enter the product number on the "Opportunity" record, and have OnDemand go look up this product number in the "Product" record type, pull information from that record, and auto-populate that additional information in certain fields back on the "Opportunity" record that I am entering information for.
    I know a workflow can do this on simple things where you have a few different part numbers and can create a workflow for each, but I literally have 40k part numbers, and I can't very well create that many workflows. If there was a way to dynamically script the workflow to use the part number in the field on the "Opportunity" record and go fetch the data to auto-populate, that would be nice.
    I also can't use a cascading picklist because, again, there are around 40k products records and picklists have a limit to how many choices you can have.
    My think tank has run empty, and I am out of ideas. I was wondering if there is any other way to get this done, or if it's even possible?
    Thanks,
    B
    Edited by: user10885599 on Feb 5, 2009 11:54 AM

    As I read this, I am wondering if you would be able to use the new JoinFieldValue() function to update the fields. The problem is that the Opportunity record does not have a direct link to products. The Revenue table does however, so you should be able to do this from Revenue, if that is how you are using the application.
    The process would be to create a workflow that watches for new Revenue records, and updates the new fields in the Revenue object using the JoinFieldValue function to pull the data.

  • Creation of substitution for populating field like segment

    Hi Friends,
    It is an  requirement with my client as they have a customized field called Customer Segment Not like SAP standard Segment and they want to populate customer segment in all the records or all the documents posted.
    Luckily, they have only one Customer segment and they want all the documents posted should populate this field by using substitution. I want a help out of you as how do I can write the substitution for this scenario. The customized field is named as YYCSG.
    Regards,
    Shilpa

    Hi,
    Can you please tell me the way to substitute by using VWTYGB01 ? Can you please elaborate this ?
    Regards,
    Shilpa

  • How do I calculate the average of ONLY the populated fields?

    I'm working on an Adobe form to streamline the process of summarizing course evaluations.  To protect the anonymity of the students, instructors with 10 or fewer students are given a typed summary of the evaluation results.  On the first half of the evaluation, the students are asked to rate a series of statements from 1-5.  Three of these are highlighted on the summary form with the average response. 
    I've already set up the form with 10 unique boxes for each question and an 11th box which calculates the average.  Each field is named according to the question number and the student's "number" (I arbitrarily gave each student a number so that each field would be unique):
    i.e. #1. Questionquestionquestion.  Q1S1  Q1S2  Q1S3  Q1S4  Q1S5  Q1S6  Q1S7  Q1S8  Q1S9  Q1S10  1AVG
    The problem, of course, is that no matter how many students were actually in the class, the AVG field will always be calculated based on a group of 10...which isn't accurate or fair to the instructor.  I thought about just changing the form and removing the unused fields from the equation each time I make up a new summary, but the point of creating a form was to make it as quick and easy as possible to bang these things out... Plus, some of my coworkers might be using the form from time to time and I'd have to explain what they have to do and if they don't have Adobe Acrobat then they can't actually make the changes and blah blah blah...it just gets ridiculous really quickly!
    So anyway, I tried reading some other posts for similar questions in an attempt to figure out a custom calculation script for myself, but I just couldn't focus on it.
    I was hoping someone could explain how to write a custom calculation script that will omit any fields which are left blank... Or, even better...is anyone willing to write it for me?  At least just an example of the first guy, cause I could probably figure out how to get all the other ones from there.
    Thanks.

    In formcalc the function Avg will calculate the average of only the fields with a value in them. So you would would put in the calcuate event of the average field:
    $ = Avg(Q1S1,Q1S2,Q1S3,Q1S4, etc)

Maybe you are looking for

  • Can't launch iTunes due to previous version of QuickTime installed

    I installed an older version of QuickTime, now I can't launch iTunes anymore. In Control Panel, I have QuickTime 32--version 2.11.57 listed. I did everything in the document http://discussions.apple.com/thread.jspa?messageID=3366434&#3366434 but noth

  • JMS adapter transaction. Rollback message to queue.

    Hi all ! A have question about jms adapter transaction. My composite application has 3 steps : JMS adapter (listener), mediator, WS adapter. JMS adapter listen queue push message to mediator, mediator invoke web service. If ws not available (server d

  • Conditional Statements, student working on finals... help =(

    Please help me! I have been working on finals since 8 am just today... it is now almost midnight and I am exhausted! Can someone please help me??? What I'm trying to do is simply click on a button and then have a info box i have created show up. I ha

  • TS1559 Wifi is off (grey) reloaded software but still say off.  Pls help???

    It seems after loading the lastest software OS on my IPAD3 the Wifi will not work.   It has stayed GREY OFF and can't sync to wifi.   My wifes IPAD2 does but not my IPAD3 since I did the update (it seems).    Any help please, this thing is driving me

  • Check how many SMS are on my phone

    Hello i was wondering if there was a way to see how many SMS are on my 8120. Ive determined that it can hold 1003 messages with all the apps o have installed so, i want to delete them before they delete themselves. Ive looked through the options, and