Coding regarding adding fields to datasource

hi gurus,
         i need to enhance an existing data source to add 3 fields )say customer purchase order date etc..) to  it.I need to add three fields to sales order header data datasource .can any one send me the coding for it.thanks in advance

Hi srikar,
Take a look at this blog:
<a href="/people/ajay.das/blog/2005/03/28/custom-fields-and-bw-extractors-making-a-mixed-marriage-work-part-1-1:///people/ajay.das/blog/2005/03/28/custom-fields-and-bw-extractors-making-a-mixed-marriage-work-part-1-1
And also this one:
<a href="/people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it:///people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
Ciao.
Riccardo.
Reward points if you are satisfied and if you want.
Message was edited by: Riccardo Venturini

Similar Messages

  • After adding field to Datasource not getting data for it

    Hi All,
    I have extended the datasource 2lis_11_VASCL and added three keyfig to it.
    I have changed it accordingly in EXIT_SAPLRSAP_001 (trans. data).
    In RSA3 when i go to debug mode it is fetching correct data, But the problem is that when i check the data in the rsa3 using displaylist it is not showing newly added fields in the structure.
    I have replicated the datasource to BW here i can see newly added fields.when i ran the delta update still it is not extracting anything for newly added fields.
    I think my problem is in R/3 only coz it is not showing fields itself in rsa3 or rsa7.
    Pls. help me out.
    Regards,
    Viren.

    Hi,
    In RSA3 after you display the list choose a record and selected Choose detail(CtrlshiftF3)  and check.
    Or from the menu select >  settings > display variant  > current  and see if it is in the hidden list.
    Jaya

  • Not able to see added field in datasource after transporting in quality

    Hi,
    I enhanced a datasource in dev.now i transported it to quality.but in quality m not able to view added field.
    let me know where its going wrong.
    thanks in adv.
    bhavna

    Replicate your datasources...and activate the transfer structure...now go to the transfer rules and bring the field for mapping.
    Hope it will help.
    Assign points if useful.
    Regards
    Gajendra

  • Adding Fields to DataSource

    I am trying to add REFBN and REFBT (TCRSA6)and it is not allowing me saying "Not Permitted" when I choose "Change dataSource". Any help appreciated.

    Hi Tou Sy,
    Follow these steps..
    1. Goto RSA6
    2. Select your datasource and click on enhance structure on the top tool bar.
    3. then give any name to your enhance structure.
    4. On the next screen in the components column enter the fieldname starting with ZZ (EX: ZZREGIO ....REGIO from LFA1)
    5. In the componenttype column enter the DATAELEMENT type of the respective field from the table you intend to get the field from.
    6. Enter Short description for your enhance structure.
    7. Press ENTER...now you can see rest of the colums are filled.
    8. Save it and activate it.
    Then go back to RSA6...
    1.select your datasource
    2.click on CHANGE icon
    3.IF you see a check mark in HIDEFIELD and FIELDONLY columns for the just added fields UNCHECK them and SAVE it.
    4.GOTO RSA3 check if the data is coming.
    Message was edited by: Srinivas

  • Adding fields to custom idoc type

    Hi,
    i have a query regarding adding fields to custom idoc type.
    To add fields to custom idoc type we are trying to cancel the release from we30, but we are facing error that 'The release of basis type cannot be reset'
    When we are trying to cancel release from we31we are facing error 'Error while ressting release of segment z type'.
    Kindly suggest the solution to add fields in basic idoc type.
    Thanks & regards,
    Farheen.

    Reason that you are getting these errors is that you cannot cancel
    the release of an extension made in previous version . Instead you have to create a new extension.
    1.It is not possible to change a segment definition which is released in a
    lower release.
    2.You must create a new segment definition for the new release e.g. 620 with a new segment
    field with the appropriate length.
    In transaction WE20, outbound parameters, you can specify
    the "segment release in IDoc type" for the communication.
    Please read the F1 help of this field for further information.
    3.For your own segments you can define a new version of the segment
    tcode  WE31 -> Add Version
    Thanks!

  • URGENT:: regarding adding new field in the info type0002

    Hi,
    I have added tax number in the 0002 info type through pm01 and CI include and then i creatad a sub module to calll the TAX NUMBER.
    the added field is appearing in T588M table for that screen, but it is not appearing when i tryed to open a emploee that new field is not coming in the info type screen.
    do i need to call this sub screen some where else.. if so please help wherei  need to do what...
    Please help on this...
    Thanks suresh

    Hi suresh,
    You should also add the field into the screen through program MP .. 0002.
    I advise you to add it from the P0002 structure which is the red dotted icon on the top part of screen maintenance screen.
    Regards,
    Dilek
    P.S. Please reward if helpful

  • Cutover approach - new fields added to existing DataSources / DSOs / Cubes

    My current project has been phased across multiple releases. The phase 1 go-live was a few months ago and there is already a reasonable amount of data in the production environment. We will soon cutover from our QA to production environment. Some of our developments involve the addition of new fields (not key fields) to datasources.
    For existing delta-enabled DataSource we are going to adopt the following approach:
    1- Source system transports deployed
    2- DataSources replicated in BI system
    3- Before InfoObject / InfoProvider transports are sent we will delete data
    4- The INIT flag will be deleted
    5- Full Repair loads will be executed
    6- INIT without Data Transfer will be executed
    For new delta-enabled DataSources we are going to:
    1- Source system transports deployed
    2- DataSources replicated in BI system
    3- INIT loads executed
    4- DELTA loads executed
    Does this approach seem correct? Does this avoid the risk of losing any data? Will it lead to delta loads functioning correctly? Will we get data loaded in the new fields for existing records?

    One approach that we used for getting around having to delete and re-fill setup tables (which, by the way can be done without downtime - I wrote a blog on that about 1 year or more ago), is to create generic DataSources (some with generic deltas) for the additional data, ensuring that we had the keys for the target InfoProviders in the DataSource and then used those as an additional transformed source to the InfoProviders.
    Example:
    Was
    2LIS_XX_XXX -> 0XX_DSXX
    Now
    2LIS_XX_XXX  \
                              >    0XX_DSXX (with appended columns)
    ZLIS_XX_XXX /
    Edited by: Dennis Scoville on Oct 13, 2010 10:28 AM

  • Enable Selection field in datasource

    Hello All,
    I need to make a selection in InfoPackage for making Initialization of Datasource.
    When i checked in InfoPackage under data selection tab,i could nt able to see any selection Field
    i checked the datasource from which this IP is created and found that "Selection check box is not active for all fields in Datasource"
    I tried editing the datasource so that I can enable the check box but i could see its in Greyed.
    Could anyone suggest how to enable it
    Datasource :9ademcrt
    Extraction from DB view
    View/Table  /sapapo/9ademcrt
    Regards
    Bala

    Hi Bala,
    Use the following piece of code the selection will be invoked for the field
    Select * FROM ROOSFIELD INTO table it_roos
                  WHERE OLTPSOURCE EQ '9ademcrt'
                  AND FIELD EQ <your field name>
    LOOP AT it_roos assigning <lt_roos>
       <lt_roos>-selection = 'X'
       <lt_roos>-selopts = '1'
    <lt_roos>-notexrel = 'Y'
    ENDloop.
    UPDATE ROOSFIELD FROM table it_roos.
    Create a ABAP program in the source system APO in your case and use the above coding
    Prathish
    Edited by: prathish soosai antony on Jul 5, 2010 1:52 PM

  • Date Added field blank in attachment

    Hi All,
    I am adding an attachment (through coding ) to an UDO.
    The attachemmt attaches fine but the Date Added field is blank and non editable.
    Moreover I cannot find any APIs to fill this field with the current date.
    As a result, my UDO does not get saved.
    Please provide pointers to fill the Date Added field either automatically or through coding.
    Regards,
    Himanshu

    Since there are no standard API's to set the date added field., you can use getExtensionField to set the date. The field ID for date Added within AttachmentSubIBeanIfc is "MODIFIED".
    You can use this line of code to set the date added:
    attachmentBean.getExtensionField("MODIFIED").set(TypeFactory.createSysDatetime(new java.util.Date()));
    where attachmentBean is of type AttachmentSubIBeanIfc.
    regards,
    Immanuel
    Edited by: immanuel farrar on Mar 23, 2010 5:42 AM

  • Added Field, but no data displayed

    Hello Experts,
    I have added CITY field successfully in Relationship Assignment Block by creating a new Attribute using WIZARD.
    Component : BP_DATA
    View: AccountRelationshipsOV
    Context Node: BUILRELATIONSHIP
    Attribute: City
    It has generated
    GET_CITY
    SET_CITY
    GET_M_CITY
    GET_I_CITY methods successfully.
    I can see the added field in my WEB UI i.e. CITY.
    But the problem is when a new Relationship is created or selected by clicking on 'New' on Relationship Assignment Block, it is displaying only NAME but not CITY.
    While creating the Attribute thorugh wizard, in Attribute Definition
    I have given
    Attrib.name        : CITY                ( can this be city or should be ZCITY)
    BOL Entity         : BuilAddress
    BOLAttribute      :  CITY.
    What else have to be done to get the data for this particular field.
    your suggestions are really appreciated.
    Thanks in Advance.
    Mythili S

    You can add new field in the view as value node(data dictonary) or context node(BOL).
    Value node field - in this case if you want to populate the values in the field, you can write code withing GET_CITY. See some sample GET methods
    Context note field - since this will be part of BOL structure you do not need to do anything for populating the field. Standard SAP fetched data as whole BOL structure so it should take care.
    Hi Anand,
    I think this is Context Node field only,
    I have created a adde these two fields by right clicking on ATTRIBUTE.
    The coding is done in all the methods.
    GET_CITY, SET_CITY...etc.
    Where could be the mistake?
    Thanks & Regards
    Mythili

  • Adding field in Report Painter

    Hello Gurus,
    I am working in the Report Painter PR20-001.
    My requirement is to add a new column in the output of the report but even when i am able to add a new field and save it on the reports execution i am unable to view the added field in the output.
    Kindly tell me the entire procedure to add a new field in the output of the respective report painter output.
    Regards,
    Swati.

    Hi,
    Go to Global Parameters Definitaion in report painter, variable will be used only along with the field, just in global paramerters enter your desired field and click in next column, system will show you a pop up select your variable for that field...
    now its just done run the report and test it!
    If you still not make it refer to standard report of such kind, you will surely get it....
    Regards,
    Sayujya

  • Newly added field not getting displayed in ALV output

    Hi All,
       I'm adding one more field/column to be displayed in an old existing program that uses REUSE_ALV_FIELDCATALOG_MERGE to generate the ALV fieldcat.
    DATA: BEGIN OF it_salary OCCURS 0,
            pernr LIKE pa0000-pernr,
            ename LIKE pa0001-ename,
            rtext like lv_rtext, -
    added field
            waers LIKE pa0008-waers
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = driver
          i_internal_tabname     = 'IT_SALARY'
          i_client_never_display = 'X'
          i_inclname             = driver
        CHANGING
          ct_fieldcat            = lv_fieldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = driver
          it_fieldcat             = lv_fieldcat[]
          i_default               = 'X'
          i_save                  = 'A'
          is_variant              = lv_tmplt
          is_layout               = lv_ls_layout
         i_callback_user_command = 'USER_COMMAND'
        TABLES
          t_outtab                = it_salary
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.
    The newly added field is not getting populated in the lv_fieldcat table. Tried running programs BALVBUFDEL,
    BCALV_BUFFER_DEL_SHARED then logging off and logging in but of no help.
    Please provide suggestion for this issue.
    Regards,
    Sridevi S

    Hi,
    Fieldcat is buffered - so use
    I_BYPASSING_BUFFER = 'X'
    Since a while CL_GUI_ALV_GRID is available which does NOT need any fieldcat (is determined internally using RTTI). It is worth playing around whith this class if you have some time. This class is recommended for ALV Output by SAP (but no edit is possible - was never supported officially).
    A simple use would be:
    data: gt_output type standard table of (adjust!).
    *simple ALV output
    data go_alv type ref to cl_salv_table.
    data go_functions type ref to cl_salv_functions_list.
    data go_columns type ref to cl_salv_columns_table.
    data go_column type ref to cl_salv_column_table.
    *Exceprion handlig
    data: go_exception  type ref to cx_root,
          gv_errortext   type string.
    ** fill table gt_output ...
    ** ALV output
    if not gt_output is initial.
        try.
            call method cl_salv_table=>factory
              importing
                r_salv_table = go_alv
              changing
                t_table      = gt_output.
          catch cx_salv_msg into go_exception.
            gv_errortext = go_exception->get_text( ).
            message gv_errortext type 'A'.
        endtry.
    * enable all standard ALV functions
        go_functions =  go_alv->get_functions( ).
        go_functions->set_all( ).
    * hide MANDT
        go_columns = go_alv->get_columns( ).
        go_column ?=  go_columns->get_column( columnname = 'MANDT' ).
        go_column->set_technical( ).
        go_alv->display( ).
    Kind regards,
    Holger

  • Added fields not appearing in the DSO transformations.

    Hi,
    I have added three new info objects into data fields in the DSO then activated and not appearing added fields in the transformations.
    Please suggest me,
    regards,
    Jayapal.

    Hi Jayapal,
    i dont know whether it would help you...you can give a try on it.
    Instead of deleting the Transformation, just delete the mappings if any in the transformation.
    Goto DS->Fields Tab-->In the Column Template info Object. Try mapping corresponding IO with the Source IO.
    Then it will show a pop up give Copy . Activate the DS.
    Goto Info Provider>Select the Transformation> If it is active-->reactivate it by clicking the Pencil Icon with glass and click activate icon.
    If its not active, then reactivate it again by clicking the Pencil Icon with glass.
    Let me know if it Works... Cheers
    Regards,
    Syed
    Edited by: shameer83in on Nov 20, 2009 12:10 PM

  • Data Loading to added fields in DSO.

    Hi experts,
    I have a DSO1 with 5 fields and DSO2 with 8fields.
    I want to load data to DSO2 from DSO1 for the added fields in DSO2 also for the records in DSO1.
    thanks in advance.
    with regards,
    KPS Moorthy.

    Hi Moorthy,
    What are the Fields u want to MAP to the DSO2 from DSO1.??
    Is it that u want to derive some filed from DSO1 to DSO2.!!!
    PL provide some more info
    SVU123

  • UDM_SUPERVISOR: Adding fields and data at customer item level

    Hi
    I am having the same issue with newbie82_c; I need to populate the added fields in transaction UDM_SUPERVISOR.
    I know that the previous thread was tagged as answered already but the solution to the issue was not indicated in the thread.
    Here are the scenarios:
    - i've added fields in the item level invoice worklist of the customers by enhancing structure FDM_COLL_INVOICE_ALV (appending fields to FDM_COLL_INVOICE)
    - thru the implementation of the BADI FDM_COLL_SEND_ITEMS, i was able to retrieve the data specified by the user (Reference Keys in FB05)
    - i've populated CT_EXT_ITEMS with the retrieved data
    Now I need these data to be displayed in the added fields in UDM_SUPERVISOR.
    What ABAP object/s is/are responsible for populating the process receivable details?
    Thank you in advance for the assistance.
    Edited by: JPLCaliuag on Dec 19, 2008 8:31 AM

    Hi K.R.Reddy,
    Can you kindly provide me with a working solution for this? I'm currently facing a similar issue for a similar BAPI (in my case it's BAPI_CUSTOMERRETURN_CHANGE) and can't seem to update the custom fields in VBAK. I have put in necessary values in the EXTENSIONIN table as well as updated the UPDATEFLAG indicator to 'U' and although it says that the order is saved, it seems to overwrite the custom field with its original value.
    The custom field seems to get updated correctly when I use BAPI_CUSTOMERRETURN_CREATE but when I make changes using BAPI_CUSTOMERRETURN_CHANGE, it gets overwritten with the original value.
    Any help is appreciated.
    Thanks and regards,
    Adeline.

Maybe you are looking for

  • Unable to Open Mail "index is read only

    I am unable to open my mail and receive the following message. Mail can't open because its index is read-only. The index file is located in /MacBook Pro HR/Users/tommygorse/Library/Mail/Envelope Index.  If this file is on your computer, use the Get I

  • Duplicate tables in sql server

    i have sql server 2005 environment and have arounds 10-12 DBs. i have scramble data and duplicacy issue in terms of tables. when i talk about table m talking about table with the same name. there are tables with same name exists on server in multiple

  • VAT accounting in Spain (Recargo de equivalencia)

    Hi everybody, We have a plroblem with VAT booking with spanish speciality Recargo de equivalencia. SBO allows to create VAT type and % with the corresponding account where to book. Our problem is with the Recargo de equivalencia we need to book for I

  • How do I back up file on external Portable Hard drive

    I recently dropped my laptop on the floor doing damage to the screen. I took it to Apple store and they were able to back my hard drive onto an external hard drive. It has been a couple weeks since then and I would like to update all the files since

  • I tunes failed after trying to burn cd and can no longer play tunes .

    i am helping a friend on his dell who has wnidows xp home addition desk top. 1gig ddr he can no longer play music from his i tunes or burn a cd he has static thanks for any help you can give me mike ryan