How to populate data for a field in data source

Hi
  I have a field(VGBEL) in the data source 2LIS_11_VAITM, but i do not have data in it. I will have to populate data into it for that, I guess i need to write some  ABAP code .My question is where should i write the code.
P.S If I have to write in the functional module or user exit how do i know the relavent functional module or user exit for the particular data source
Thanks
Sheetal

HI sheetal,
there will not be different user exit for each datsource. check this thread for the steps, which are general for any datsource.
How to enhance datasources
How to Data source enhancement i.e Transactional data
you need to write your code in function module EXIT_SAPLRSAP_001 .
hope it helps
Regards
Kiran
*do assign points for helpfull answers.
Message was edited by:
        ravi kiran naalla

Similar Messages

  • How to populate dynamic internal table fields with data??

    Hi Folks,
    How to assign a particular internal table field to a dynamically assigned internal table?
    I have an excel sheet, and i upload the excel sheet data into an internal IT_EXLOAD table using FM ALSM_EXCEL_TO_INTERNAL_TABLE
    Now i created a dynamic internal table which has the same column as in my DB table.
    I have to fill the dynamically created Internal table with the IT_EXLOAD data dynamically.
    Suppose in future if i add some field in DB table and for that field if i add some column in excel sheet there is no need to change in the program.
    Looking for reply...
    Best Regards,
    Sayak

    hi,
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = p_path
                i_begin_col             = '1'
                i_begin_row             = '2'
                i_end_col               = '2'
                i_end_row               = '1000'
           TABLES
                intern                  = intern
           EXCEPTIONS
                inconsistent_parameters = 1
                upload_ole              = 2
                OTHERS                  = 3.
    *declare intern_tmp as internal table tb_data in wich you want the data
    *and declare a field symbol <fs_123>
    LOOP AT intern.
        ASSIGN COMPONENT intern-col OF STRUCTURE
        intern_tmp TO <fs_123>.
        IF NOT <fs_123> IS ASSIGNED.
          CLEAR intern.
          CLEAR intern_tmp.
          CONTINUE.
        ENDIF.
        <fs_123> = intern-value.
        AT END OF row.
          CLEAR tb_data.
          MOVE-CORRESPONDING: intern_tmp TO tb_data.
          APPEND tb_data.
          CLEAR intern_tmp.
        ENDAT.
        CLEAR intern.
      ENDLOOP.
    **paste this code and you can see the data in ur tables dynamically.
    Thanks
    Nitin Sachdeva

  • How to populate the data for additional fields in custom report of fbl5n tr

    hallo friends,
    i ha ve to add some fields to the output of custome report of transaction FBL5N.
    Till now i have only added the fields to the output.
    Now i have to write the code to populate the data for those fields in the program.
    1.     Customer Credit Group(ACM/RCM): (Table: KNKK; Field Name: VKORG )
    2.     Credit Representative Group: (Table: KNKK; Field Name: SBGRP)
    3.     Customer Account Number(CAN#): (Table: KNKK; Field Name: KNKLI)
    4.     Alternative Payer(ALTP#) : (Table: KNA1; Field Name: KUNNR)
    5.     Risk Category: (Table: KNKK; Field Name: CTLPC)
    6.     Credit Info Number: (Table: KNKK; Field Name: KRAUS)
    7.     Rating: (Table: KNKK; Field Name: DBRTG)
    8.     Payment Index: (Table: KNKK; Field Name: DBPAY)
    9.     Credit control area: (Table: KNKK; Field Name: KKBER)
    10.     Company code: (Table: KNB1; Field Name: BUKRS)
    11.     Sales Organization: (Table: KNVV; Field Name: VKORG)
    These are al fields i have to populate in the program..
    MY ATTEMPTS:
    I tried getting the data for KNKK table by GET KNKK ,but it is giving some garbage values...
    And Logical database used here is DDF,and i have to add the VKORG of KNVV too...but KNVV is not there in DDF...
    Can anybody tell me how should i proceed..
    thanks in advance.

    Thnx Andreas,
    i have following doubts again..
    I have to add sales organisation field to the selection screen...(this is given in the req.)
    now if i will say GET KNKK...it would not keep account of this 'sales organisation' field...so how should i fetch the data with these input data( i.e. 'compny code' and 'customer' are the fields given by LDB and 'sales oraganisation' is the field i put it on the selection screen)
    And what about the KNVV-VKORG ,because the KNVV is not present in the LDB.

  • How to populate values for a new field in target infoprovider

    Hi Experts,
    am new to BI. i would like to know on how to populate values for a new field in the target cube with start rotuine.In my case,  i have a source infoprovider, which has 3 fields and a target infoprovider, which has 5 fields. i need to populate the new 2 fields in start routine. i dont want to populate using Field routine and am using 3.5 version. please assist with code on how to solve this issue.
    Thank you,
    Chitra.
    Edited by: Chitra_BI on Jun 13, 2011 10:23 AM

    Debug the standard code and see where the other fields are getting update. you can use the similar approach and area to code for the new field.
    Regards,
    Lalit Mohan Gupta.

  • Source of data for Z fields

    Dear Gurus,
    What is the source of data for Z custom fields ?
    Do we need to create any tables for these fields in the source system ?
    Do we call it as enhancement when we add a Z field or populate an existing field (Unused) in the standard data source or user defined (Generic) ?
    Can we add Z field to any standard and user defined data sources ?
    Points will be taken care.
    Regards
    Mohan

    Hi,
    What is the source of data for Z custom fields ?
    ---> Any standard field or Custom field from the source system.
    Do we need to create any tables for these fields in the source system ?
    ---> Not required.
    Do we call it as enhancement when we add a Z field or populate an existing field
    (Unused) in the standard data source or user defined (Generic) ?
    ---> Whenever you add a standard SAP field or Z field that is not in the Delivered version of the Datasopurce, then we call it as enhancement.
    Can we add Z field to any standard and user defined data sources ?
    --->  Yes, you can.
    Regards,
    Balaji V

  • How to make a list item field with DATE data type?

    I have a column with DATE data type. Using forms 6i I want to generate a poplist list item field with this column while the value of the elements in the list to will be day names like SATURDAY,SUNDAY,MONDAY. if we change the data type from date to char, it will work properly but now with DATE data type behind it, it gives the following error message
    "FRM-32082: Invalid value for given item type.
    List WEEKREST
    Item: WEEKREST
    Block: EMPRESTS
    Form: MODULE3
    FRM-30085: Unable to adjust form for output."
    Using forms 6i how to make a list item field with DATE data type which can hold day names?

    Set your date column as a hidden (non-displayed) field. Create your list item with the varchar2 day names. Create the list item as a non-base-table field that accepts the text values of day names. On that field, create a when-validate-item trigger that translates the text into a real date, which it then uses to set the value of the actual base-table item.

  • Not getting data for 1 field in ODS

    Hi BW Experts,
    I am loading the data from R/3 to BW.I have loaded the data through PSA.The data is available in New data field. After activating the ODS, for 1 field the data is not uploaded and in the report, the values are not displaying.
    I have checked the Transformations also. it is mapped correctly.But still i am not getting data for that field.
    Thanks,
    Siva.

    Thanks for the Update
    1. What is your Service Pack Level?
      Service Pack is 0016
    2. Are you able to see the data in PSA?
       Yes I can see the data in PSA
    3. After load, are you able to see the value in New table?
       Yes i can able to see the data in New data table
    4. Anywhere, are you doing the SORTING of Data Package?
       No I have not sorted the data Package.I have not written any coding on this
    I have not written any coding in transformation also.
    Thanks,
    Siva.

  • Default Data for Document Fields D_CUII_TYP

    Hi experts,
    I am trying to define default data for document fields in Export Switzerland.
    Source field is G_IMPCN,  target field is D_CUII_TYP.
    I create the following master data, i.e.
    G_IMPCN = 39095000
    D_CUII_TYP = FREI
    meaning if G_IMPCN is 39095000 then Legal Document Type FREI is being created automatically.
    Then I run the default data function on document level but nothing happens.
    The log shows G_IMPCN with value 39095000 but D_CUII_TYP = FREI is missing.
    Do you have any idea what else I should do to resolve this issue ?
    Many thanks for help which is much appreciated.
    Best regards,
    Corinne

    Hi Corine,
    Be careful with the logs, they are quite confusing as sometimes it displays the value it is looking for and sometimes the value it has foud. And sometimes the green and red lights are wrong or put in a logic that is confusing.
    Most likely it does not find the value because it is looking in the Import numbering in the import scheeme. Did you try with STAWN ? At any rate, if I may suggest, you need to setup the system with having the commodity code in the Declaration, because if you do not have the Scheme CHEXP defined in the Scheme for commodity code you are going to face trouble when trying to retransfer the Tarification to the feeder System.
    Keep me posted.
    Regards,
    Marc

  • Calendar Tile on Windows 8.1 displaying incorrect date for icloud calendar but date icon displays correct date on iPhone 5 and iPad Air

    Calendar Tile on Windows 8.1 displaying incorrect date for icloud calendar but date icon displays correct date on iPhone 5 and iPad Air.  Date on Windows 8.1 is correct.  Thank you.

    Try doing  a reset on your phone. Sounds like your carrier's time set is not getting through to your device. If the reset doesn't do it, then go to Settings>General>Reset>Reset Network Settings. That should do it.

  • How can I enforce automatic spell checking for selected fields of data entered by form users?

    I'd like to be able to enforce spell checking of selected fields in the forms that I've created using LiveCycle Designer 8.2 at run time, as opposed to design time.  I understand the version LCD 8 has a nifty new spell checker for form designers.  But I want to spell check the data entered by users using Acrobat Reader.  And I want to enforce the spell checking automatically on selected fields only.
    Presently it seems that users filling in my forms, must know how to manually right-click on each field and select "Spell Check" from the resulting dialog box in order to check for spelling errors in the data the user has entered in the form.
    I would like to discover a way to enforce spell checking in selected fields, just as I am able to do in forms created using Acrobat Pro.  In Acrobat Pro, I can set a property for each field to require spell checking.  but that feature seems to be missing in Livecycle Designer.
    I've check the Object model for XFA forms hoping that I might find a method I can call with a Javascript, to check spelling based on an event such as onBlur.  But I haven't found a spell check method.
    Am I missing something simple?  Is there a way to set each field to be spell checked when a user is filling in the form using the free Acrobat Reader?
    Our users are not sophisticated and requiring them to spell check each field separately just won't cut it...
    Any help on this will be greatly appreciated.
    Thanks!
    -David Bartholomew

    Hi David,
    Two things...
    At design time set the locale of the form to one that Acrobat spell checks. For example English (US) and English (UK) locales have spell checkers; however English (Ireland) does not. Check the Warnings tab to see if spell checking is supported for your locale.
    If your form locale supports spell checking then you can go to the button script below.
    If you form locale does NOT support spell checking then Stephanie has a great work around to force spell checking (http://forums.adobe.com/message/2233945#2233945).
    Bring a regular button onto the form and in the click event have the following:
    app.execMenuItem("Spelling:Check Spelling");
    Which will open the spell checker for all fields.  Thanks to Paul for extracting all of the accessible menu items (http://forums.adobe.com/message/1912914#1912914).
    Good luck,
    Niall

  • How to extract data for these fields from R/3 ?

    Hi frnds,
    My requirement is to extract the following fields which
    are related to MM: Condition type, condition
    value, Bill of lading, Qty in external delivery note,
    Different invoicing party, Invoicing document from R/3 to
    BI. But i found that they are not in any purchasing
    datasources or inventory datasources ( Except different
    invoicing party but the values are not picking up through
    standard extractors ).
    Anyone please tell me are there any standard datasources for extracting these fields ?
    If not, if i want to enhance datasources for these fields
    which datasource do i need to enhance i.e
    2lis_02_itm,2lis_02_scl,2lis_02_s012 or 2lis_03_bf,
    2lis_03_um ?
    Full points will be assigned.
    Regards,
    Bhadri M.

    Hi.......
    I think you have filled the set up table..........and you have replicate the datasource also.......and after replicating you have activated in the BI side........
    Then it should extract the data............
    Are you in BI 7.0...........
    You try one thing...............
    Replicate the datasource again............and then activate the transfer rules using program : RS_TRANSTRU_ACTIVATE_ALL...........
    Also check the selection tab of your Infopackage........may be you are giving some selection.........also check if it is coming till PSA..........if it is coming till PSA.....then check your transformation and DTP.......
    It may help you...........
    Regards,
    Debjani..........
    Edited by: Debjani  Mukherjee on Sep 21, 2008 11:18 AM

  • How to populate read only input field or text view form value help only

    Hi experts,
    I have one requirement to populate a read-only field or text view from value help.
    User cant put any value there.value comes only from the value help.
    For example,
    when we read context using Code Wizard,we cant type any value there.value only comes from value help.
    How to implement that functionality?
    Please reply.
    Thanks in advance,
    Subhasis.

    Yes it is possible.
    1.Create a context Attribute and then bind this attribute to the Text view UI element.
    2. read context attribute and then set value to the context attribute like this way.
    DATA:
        elem_context1                        TYPE REF TO if_wd_context_element,
        stru_context1                        TYPE if_first=>element_context ,
        item_potxt                          LIKE stru_context-potxt.
    get element via lead selection
      elem_context1 = wd_context->get_element(  ).
    stru_context1-potxt = 'PO'.
    elem_context1->set_attribute(
        VALUE  = stru_context1
        name   = 'POTXT'
    thanks
    Suman
    Edited by: suman kumar chinnam on Sep 9, 2008 12:12 PM

  • How to Convert a 'Time Stamp' field to Date......?

    Hello Gurus:
    I am using a Generic Extractor to pull some stats data.  One of the field is a Time Stamp field, which tells me the date and time of Transaction run.  I only need "Date".  I tried mapping the stamp field to Date info-object hoping for a automatic determination of the Date.... (like the Week, Month happens).   Well, I was wrong! 
    I only need the Date part.  How can I do this in BI?  is teher a specific SAP info-object for this that could be used..?  If not, what would be the routine.  The Date field that comes in is a SAP format... "u201C20,070,505.0000000u201D meaning the Transaction was run
    on 05/05/2007.  How can I get this convertion in BI transaformation??  is there a special Routine...?
    Also, we are trying to use "Time Stamp" based DELTA from a generic extraction.  The field used is a System date with time stamp.  Value looks like u201C20100,505,170,113.2918470u201D, u201C20100,505,170,113.4748820u201D  Every record pulled has a different value... probably giving me the time at which the record was created or generated.  Now, with DELTA specifid on this type of field, what will be the 'Current Status" value in Delta queue?  Is it based on the last record created and will that be the highest value?  For next Delta extraction, does it compare the extraction time stamp to this value and bring in those records that are greater than the 'Current Status" value?  I guess with that we can have as many deltas as we want..... right??  is there any particular setting I should be doing or worried/ careful about setting etc....?
    Thanks for the response in advance....
    Best..... SMaa

    Thanks Akshay,
    Your suggestion worked right away and was probably the easiest of all.  I tried the Function Module that Pravender suggested,
    but it did not return me the date back.... may be because it does not need the Micro Seconds in it....?  Routine as suggested by
    Satyam might work too, but did not go there....! 
    Thanks to all of you.
    Best..... SMaa

  • How to populate image and text field in SQL Server

    I want to populate a table, i.e insert images in a table in SQL Server. I am using Java(JSP/Servlet). Can any one suggest me how to populate the image and text fields in SQL Server...of course, using Java. If possible, could you please give me a piece of code?
    Regards -
    Samit

    Hi,
    Please check the following link for information on inserting images in to sql server database.
    http://www.databasejournal.com/features/mssql/article.php/1475641
    Cheers,
    vidyut

  • How to give References for the field in the Abap Query

    Dear Freinds,
               I am not able to get Text for Cost Centre which iam using in My custom infotype , when iam calling the Custom infotype in abap querry i dont find the T symbol for my field Cost Centre , since i have created in my custom infotype for Cost Centre similar to the infotype 0001. When i look at the
    infotype 0001 fields in my abap query i can see that there is T field for P0001-KOSTL and again if i double click on it i can see that in the REFERENCES Tab i can see " Function Module:HR_TXID_KOSTL" . Could any one let me how i can assign to my custom field "Function Module:HR_TXID_KOSTL " in the References Tab.
    Regards
    divya

    solved the problem

Maybe you are looking for

  • My iPhone 5S always asks for my iTunes password before i can use my fingerprint

    I have set my iPhone 5s up, i use the fingerprint sensor to unlock and dowload apps etc, i have gone in to settings, general, Touch ID & Passcode, Touch ID and selected to use the finger print sensor for iTunes & App Store, i put my password in etc,

  • JAVA & XML SCHEMA

    Hi gusy, I'm trying to create a simple schema and I use the fellow namespace in my schema header: <schema xmlns="http://www.w3.org/2001/XMLSchema">The problem consist when I use the Sun One Studio to validate my schema I get the error: General Schema

  • How to refer a packaged variable

    Hi, I have gone through the forum where it mentions how to refer a constant in a package.I want to refer a variable declared in package spec. CREATE OR REPLACE PACKAGE p1 IS sDebugMode VARCHAR2(3) := 'ON';.... end;

  • Detecting the end of an flv in ac 2

    I have a custom player i built. How do i detect the end of the flv so i can prompt an action, like go to another frame for instance or loop or call another flv. Have been struggling to find a solution online and keep hitting dead ends.. Thanks in adv

  • Query on CANoe and NI interface

    Hello, I am having NI PXI 1044.  For one of my project I need make interface between CANoe and NI PXI 1044. Please any one let me know is there any interface available in CANoe to access the CANdb files through NI PXI 1044. Regards, Bala.