Aggregator Add all fields from input to output in mapping

Hi,
i'm creating a mapping, and added a aggregator to it, but i have to add all fields manually to the output attributes. Is it possibe to add all the input attributes automatically to the output.
This will save me alot of time, else i've to create about 50 fields manually...

Have you considered OMB+? I have scripted several similar things to automate tasks. For example, to automate creating the output group of an expression from the field names of a target table, and then connecting the expression to the table field by field I did:
if [catch { set lst [ OMBRETRIEVE TABLE '$TAB_NAME' GET COLUMNS ] } errmsg] {
      puts "Error retrieving table columns: $errmsg"
      return
    } else {
       foreach tcol $lst {
          OMBALTER MAPPING '$MAP_NAME' ADD ATTRIBUTE '$tcol' OF GROUP 'INOUTGRP1' OF OPERATOR 'EXPR_GEN_ID'
          set ctyp [ OMBRETRIEVE TABLE'$TAB_NAME' COLUMN '$tcol' GET PROPERTIES (DATATYPE) ]
          if {[string match NUMBER $ctyp]} {
             set clen [ OMBRETRIEVE TABLE '$TAB_NAME' COLUMN '$tcol' GET PROPERTIES (PRECISION) ]
             OMBALTER MAPPING '$MAP_NAME' MODIFY ATTRIBUTE '$tcol' OF GROUP 'INOUTGRP1' OF OPERATOR 'EXPR_GEN_ID' SET PROPERTIES (DATATYPE,PRECISION) VALUES ('NUMBER','$clen')        
          if {[string match VARCHAR2 $ctyp]} {
             set clen [OMBRETRIEVE TABLE '$TAB_NAME' COLUMN '$tcol' GET PROPERTIES (LENGTH) ]
             exec_omb OMBALTER MAPPING '$MAP_NAME' MODIFY ATTRIBUTE '$tcol' OF GROUP 'INOUTGRP1' OF OPERATOR 'EXPR_GEN_ID' SET PROPERTIES (DATATYPE,LENGTH) VALUES ('VARCHAR2','$clen')        
          if {[string match DATE $ctyp]} {
             exec_omb OMBALTER MAPPING '$MAP_NAME' MODIFY ATTRIBUTE '$tcol' OF GROUP 'INOUTGRP1' OF OPERATOR 'EXPR_GEN_ID' SET PROPERTIES (DATATYPE) VALUES ('DATE')        
          #And now add a connector between the expression and the table.
          OMBALTER MAPPING '$MAP_NAME' ADD CONNECTION FROM ATTRIBUTE '$tcol' OF GROUP 'INOUTGRP1' OF OPERATOR 'EXPR_GEN_ID' TO ATTRIBUTE '$tcol' OF GROUP 'INGRP1' OF OPERATOR '$TAB_NAME'
    }Writing a script to automate copying the INGRP1 group to OUTGRP1 would be pretty similar. Probably not worth it if this the only time you are going to do this, but definitely worth it if this is going to be a common task on your project....
What you are going to do, it seems, is to cycle through the fiends in the OUTGRP and:
OMBALTER MAPPING '$MAP_NAME' MODIFY ATTRIBUTE '$tcol' OF GROUP 'OUTGRP1' OF OPERATOR '$YOUROPERATOR' SET PROPERTIES (EXPRESSION) VALUES ('ingrp1.$tcol')
or something like that.
Cheers,
Mike

Similar Messages

  • How to add Z fields from VBPA in datasource 2LIS_11_VAITM in delta mode

    Hi All,
    I'm looking for a method to add Z fields from VBPA (ie order reponsible , account manager , ..) in the datasource 2LIS_11_VAITM
    Of course these fields should be filled in delta process
    Thanks for your help
    Regards
    Sebastien

    Hi,
    You would have to enhance the extract structure and write code to populate this:
    1.1 First alwas Check if fields can't be added using the standard method - Logistics Cockpit (LBWE)
    1.1. Don't think you would be able to fields from table VBPA though which means you have to enhance the extract structure:
    2.1 RSA6 - Enhance Datasource
    2.2 Double Click on Datasource
    2.3 Double Click on Extract Structure
    2.4. Click Append Structure & give a name for the append strcture
    2.5. Add Z-Fields prefixed with "ZZ"
    2.6. Save & Activate
    3. Enhance Datasource (RSA6)
    3.1 New fields are hidden automatically and you must un-tick "hide" check box
    3.2 Save the datasource
    3. Write Code in Transaction CMOD or BADI (SE19) to popoule the Z-Fields.
    If you search for "enhance 2LIS_11_VAITM" in forum you should get a lot of example on how to do this.
    4. Test in RSA3 that your Z-Fields are populated.
    5. Replicate Datsource on BW side to ensure that new fields are transfered from the Source System.
    6. Maintain Infosource, Transfer Rules, Infocube and Update Rules for the new fields.
    Hope it helps.

  • How to retrieve all fields from Entiy Bean

    Is there a simpler way to retrieve all fields from the entity bean than calling each individual get method?
    I need to retrieve the entire record not the contents of the entire table.
    Though, I may eventually need to do that also.
    I have 56 fields on this table. It does not make sense to code a get statement for every field.
    If you can direct me to sample code that would be good.
    Also, are there any good examples out there of how to create an entity bean or session bean using a local interface?
    Thanks,
    Jim

    I think you are confusing an EJB with a DAO.
    If you want to access the database why not just use JDBC?

  • I have a iphone5. Want to add all music from medai player on pc. can i do it?

    i have a iphone5. Want to add all music from medai player on pc. can i do it?

    Import the music to iTunes and sync it using iTunes.

  • Copy all fields from pdf to word

    copy all fields from pdf to word

    Try using shift/apple/4 - gives you a cross-hair selector to grab part of the screen - saves as Picture1.png to your Desktop then drag that into Word.
    Or, /Utilities/Grab

  • How to Map N number of  columns from input to output schemas at a time?

    Hi,
    I am new to BODI. In my project we are using DAT files, which contains more than 100 columns, as Source. At the Data Flow Level, in Query Transformation we are manually mapping columns from INPUT Schema to OUTPUT Schema one by one.
    Is there any way to MAP all the columns at a time from INPUT schema to OUTPUT schema.
    Hope I am clear with my question.
    Thanks for your support.
    Sudhakar

    Hi,
    Thanks for your answer.It's really helpul.
    But in my case, Source Filed names and Target Field names are different. As we know, OUTPUT column names should be same as Target Field names.
    I am just wondering is there any option to MAP columns between INPUT schema and OUTPUT Schema at a time, like Informatica.
    In Informatica you can MAP all the columns at a time between any 2 Transformation by using their port order, even though the Filed names are different .
    Do we have any option like this in BODI?
    Regards,
    Sudhakar

  • How to add related fields from one transaction to other transacction?

    Hi all,
    I have a problem. I need to add an OPPORTUNITY field (SALESCYCLE) to the ACTIVITY transaction because of an upgrade and I'm now in a new world... The CRM 2007 is an unexplored place to me.
    I added some custom fields (Z fields from the CUSTOMER_H) by adding the context node BTCUSTOMERH to the BT126H_APPT component, view ApptDetails, with transaction BSP_WD_CMPWB (thanks Stephen Johannes for your blogs) and all works correctly.
    I tried doing the same with the SALESCYCLE and it doesn't worked... :_(
    I added the context node BTOPPORTH, but I'm sure I failed at the wizard step with the "Higher level context node" or with the "BOL Relation", but I can't find the correct answer. I found the field in the "Configuration tab", I put it in my view but the GET method doesn't work... The field remains always void.
    I don't have problems adding activity related fields, but when I try to add some flow related (opportunity one in my case) fields it's different.
    I have been looking for any solution but I have only seen that I can add this attribute directly to one context node and modify some BAdI or do any thing similar, but I don't know how to do that either. I will accept this solution if someone tells me how to do that... But I think the first solutions could be the most appropiate (I can be wrong... of course!)
    Thanks in advance....
    Sergio

    Thanks for your answer, Subhasis!
    Your solution is correct if I want to add to the Activity a field related to the Activity or some field on the DocFlow structure (the case you described), but it's not my case. I did that with customer fields before and all worked correctly.
    My scene is like this. I have an Opportunity and there is a follow-up Activity created. When I want to see the Activity, I need to show on the Activity transaction the preceding Opportunity field SALESCYCLE, which is at the CRMD_OPPORT_H table (BTOPPORTH context node).
    The problem comes when I add this context node to the Activity. I think the application is trying to get the field from the CRMD_OPPORT_H with ACTIVITY data and it returns void to the field. I think it forgets to get the opportunity data first and after that try to get the SALESCYCLE value from the CRMD_OPPORT_H (with the Opportunity GUID).
    By the moment, I have added the attribute SALESCYCLE to the BTDOCFLOW context node and, at the moment he do the GET, I change the field it gets by the GUID of the opportunity:
         dref = current->get_property( 'SALESCYCLE' ). "#EC NOTEXT
          dref = current->get_property( 'OBJKEY_A' ). "#EC NOTEXT
    Then I go to the CRMD_OPPORT_H directly to get the SALESCYCLE value...
    I know it's a bad solution... but it works and I don't know any other solution by now. If anyone can help me to do it correctly I'll be greatly appreciated!
    Regards,
    Sergio

  • How To Add new fields in report ( S_ALR_87012026 ) output

    Dear All Experts , ..
    I want to add  Asset  text description in the out but layout of report   S_ALR_87012026
    please um really need a help
    thanks for advance .

    thanks Eduardo So mush .
    but u asked for any enhancement or exit to add customized field 
    thanks for your help .
    Edited by: mohamed medhat on Oct 17, 2011 8:44 PM

  • How to remove items from INPUT and OUTPUT?

    I installed a Movavi demo and deleted (uninstalled) it, but the Movavi sound Grabber still exists in my INPUT and OUTPUT section under sound options. It's making the sound screwy and I often lose audio when I switch from headphones, to blue tooth speaker. Please help!

    You have not uninstalled it correctly, check the directions and do so.

  • Mapping a field from input help screen(Using POV) to user screen

    I have used the Function module 'DYNP_VALUES_UPDATE', to get the value from Description field in the search help.Now its throwing a runtime error mentioned below.
    Runtime errors: CALL_FUNCTION_CONFLICT_LENG
    Except. CX_SY_DYN_CALL_ILLEGAL_TYPE.
    Short text: Type conflict when calling a function module
    the function module was called incorrectly.
    Below is the code i implemented.
    ws_dynpfields-fieldname = wc_scrfld.
    ws_dynpfields-stepl = tc_1017-current_line.
    ws_dynpfields-fieldvalue = ws_hssr-text.
    APPEND ws_dynpfields TO wt_dynpfields.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = 'sapmzapp01'
    dynumb = '1008'
    TABLES
    dynpfields = wt_dynpfields
    EXCEPTIONS
    invalid_abapworkarea = 1
    invalid_dynprofield = 2
    invalid_dynproname = 3
    invalid_dynpronummer = 4
    invalid_request = 5
    no_fielddescription = 6
    undefind_error = 7
    OTHERS = 8.
    IF sy-subrc <> 0.
    MESSAGE e800(zmdb_mda_supplier).
    ENDIF.
    The above code is in screen USER COMMAND OF 1017(POV-input help screen).
    wt_dynpfields is the internal table.
    and its fields are fieldname,stepl and fieldvalue
    ws_dynpfields is the workarea of the internal table.
    wc_scrfld-Constant with value zbut0000qnnyxa-ztfldg6h7np'(the description field name of the screen 1008 where i want the description value to get in automatically after selecting from input help)
    ws_hssr-text= The Work area containing the value 'eg ORDER'.
    kindly get back immediately....

    Hi,
    This function works only after POV.
    So ensure that it is written in that module:
    like AT SELECTION-SCREEN ON VALUE-REQUEST FOR f_name.
    Hope it will guide you.
    Jogdand M B

  • How to Change the Fields from Input mode to display mode

    Hi experts,
    Here is my business requirement. I need to show certain fields in the PRICING TAB OF SALES ORDER  in display mode. Now for this i am using the BADI definition CRM_PRICING_BADI.
       Now, can anybody tell me how to change the field type from input mode to change mode?

    Hi Karan,
      In your BADI has a parameter CT_INPUT_FIELD_NAMES with one field called CHANGEABLE with values:
         Field Can Be Changed
    A     Field Cannot Be Changed
       Assing this values to your fields according with your requirements.
    Regards.
    Manuel

  • I cannot dowload all fields from ALV list to Excel - urgent, please help me

    I developed a report and displayed in ALV list using FM 'REUSE_ALV_GRID_DISPLAY'.The list contains 200 fields.But when i am trying to download in EXCEL file from ALV list, it is unable to download all the fields from ALV list into EXCEL.
    Thanks in advance,
    Katta.

    is your list having packed decimals or any fields which are of large length (around 128 char)?
    It can happen so.

  • Sync all fields from Mac Address Book to iPhone Contacts

    You would think that all the fields entered in Address Book would sync to iPhone Contacts. I have fields for "spouse", "assistant" and some custom fields like "skype", "blackberry", etc, which do not get transferred over to iPhone.
    I migrated from Entourage/Palm to "all Mac apps" to resolve this problem and now have fewer fields available than before!
    I want ALL fields sync'ed over to my iP3G!
    Anyone have a fix for this?

    I have a problem similar to DeeRun's.. I would like the IM fields to be synced.. I use them to send e-mails to when the e-mail field is empty or when i just want to use that specific address.. Very annoying, would take hours if not days to transfer all those IM adresses to e-mail fields in addressbook..
    EDIT: not to mention the mess it would make in my address book!
    Message was edited by: 1NStanley

  • How to add a field from BSAK/BSIK table in FI_AP_4 Data source

    Hi Experts.
    I need to add a field in FI_AP_4 data source.
    Can you provide me steps in detail to do so, any sample for ABAP code too. field name is XZAHL and it is in multiple tables.
    Thanks
    mihameed

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • XSLT Generation from input and output XML

    Is it possible to generate an XSL mapping file in Java if we have input and output XML.
    If yes, then how to achieve this when user defined functions are used during mapping?

    Hi Prateek,
    check the following links for Business connectors and adapter:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/92/3bc0401b778031e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/4fb240ac052817e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/3f93404f673028e10000000a1550b0/frameset.htm
    Hope these help you.
    Regards,
    Anuradha.B

Maybe you are looking for

  • Trying to install Tiger on 17" flat screen imac 800mhz. PLEASE HELP!!

    I posted on this board a few days ago about installing tiger on my 17" imac G4 800 mhz Flat Panel. My computer is running well and with no problems. My current OS is jaguar 10.2.8 and 9.2.2. I have 35gb free on my hd. I have just installed new 517mb

  • New purchased songs can not be sync to an existing playlist...

    I purchased 2 songs through iTunes' store after I have updated my iPhone to iOS 4.2.1. There is an existing playlist and 10 tracks are in it. I just relized, if I add these 2 new songs into this playlist via iPhone (I can see and play these 12 tracks

  • Not able to start dbconsole

    hello everyone, I have installed oracle 11g R2 on my Windows XP professional service pack3. But im not able to access enterprise manager. C:\Documents and Settings\Administrator>emctl status dbconsole Oracle Enterprise Manager 11g Database Control Re

  • Is conditional prompt possible with SAP BO AO Excel?

    Hi folks, Is conditional prompt possible i.e the "prompt" should appear only when the measure is used in the report? Is this kind of feature possible with SAP BO AO on HANA? Regards, Krishna Tangudu

  • HT1338 microsoft office 2008 is not working with Lion

    My Microsoft office 2008 is not working, it gives me a message that this program is in use in another computer on my network. Is there any way to fix this issue?