Add InfoObject Atrribute as field to the InfoSource by Transfer Rule

Hi
To filter out a special customer country in the start routine in update rules for a sales cube, I need the InfoObject 0COUNTRY in the update rules.
I already included 0COUNTRY to the cube and the update rules (filled via Master Data Attribute of 0CUSTOMER in update rules. Yet as 0COUNTRY is not in the InfoSource I cannot use it in start routine to filter one country out.
How can I add 0COUNTRY to the InfoSource and populate it by Transfer Rule if it is not in the DataSource. I guess I'd have to load it from Customer Master Data? But there is no obvious option in the Transfer Rules like there is in the Update Rules.
How do I have to proceed to be able to filter out records with special navigation attribute values before they reach the cube?
Full points will be assigned.
Thanks,
German

Hi German,
please try
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line  -
TABLES: ...
TABLES: /BI0/PCUSTOMER.
DATA:   ...
DATA: i_t_customer like /BI0/PCUSTOMER occurs 0 with header line.
$$ end of global - insert your declaration only before this line   -/code
... internal definitions ...
$$ begin of routine - insert your code only below this line        -
fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
to make monitor entries
  DATA: i_l_data_package LIKE LINE OF DATA_PACKAGE,
          i_t_data_package LIKE STANDARD TABLE OF DATA_PACKAGE.
  select * from /BI0/PCUSTOMER into table i_t_customer.
  LOOP AT DATA_PACKAGE.   
    MOVE-CORRESPONDING DATA_PACKAGE TO i_l_data_package.
    read table i_t_customer with key
      CUSTOMER = i_l_data_package-CUSTOMER.   
    IF sy-subrc = 0.
      IF i_t_customer-COUNTRY = 'DE'.
          APPEND i_l_data_package TO i_t_data_package.
      ENDIF.
    ENDIF.       
  ENDLOOP.
  REFRESH DATA_PACKAGE.
  DATA_PACKAGE[] = i_t_data_package.
  REFRESH i_t_data_package.
if abort is not equal zero, the update process will be canceled
  ABORT = 0.
$$ end of routine - insert your code only before this line         -
/code
This code should filter records with customers located in Germany, for other countries adjust line
IF i_t_customer-COUNTRY = 'DE'.
to correct country code.
Best regards,
Björn
===================================================
EDIT: Did some corrections...
Message was edited by: Björn Grahlher

Similar Messages

  • Not able to find the infosource and transfer rules in the infosource tab

    Hi everyone,
    Not able to find the infosource and transfer rules in the infosource tab in Modelling. I was able to see that the infosource is available under nodesnot connected in the transport connection tab. But i cannot see the same in infosource tab. Please advise.

    I have searched with technical name, I am not able to find it, but when i double click on the datasource .....the transfer rules pop up. Because I have not transported the application component, I am not able to find it. But even though it should be available on the nodesnotconnected, I still cannot see it. Is there a work around this ?
    I have also tried rsa1old, it still could not find.
    Thanks for your quick response

  • Hoping we can add "Baseline Work [Assignment]" field to the "My Timesheet" view

    Hey folks,
    I was hoping we can add "Baseline Work [Assignment]" field to the "My Timesheet" view.  Unfortunately there is only "Baseline Work [Task]" in the list.  Are there any work arounds that will help us accomplish this?
    Note we are using Project On-line and Project Pro 2013. 
    Thanks in advance,
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

    Hi Spiro,
    I confirm your observation and at this time I don't see any workaround. Creating a custom field will not work at assignment level. Maybe some of our colleagues will bring a solution but unless you start a development to achieve your need, I don't see an
    easy way.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Add Prodcution order number field on the Create/ maintain inspection lot

    Hello,
    Can some one please guide me how to add production order  number field on the QA01/02/ and 03 transaction codes?
    Thank you!
    Khan

    What are you trying to do exactly?
    The production order number only becomes available in QA01 when you select 04 as the inspection type you are creating.  You can't populate this field using any other inspection types. 
    When using QA02 or QA03 you can use the drop down match codes to search for an inspection and I beleive you can use the production order number in one of the match code screens to select a lot.
    Craig

  • Is the extraction without Transfer rule possible?

    Can you help me out for this question.
    Thanks in advance
    Kay
    Is the extraction without Transfer rule possible?

    Until the version 3.x we need transfer rules for physical transfer of data.

  • How to add a custom Project field in the "OData Projects Data.odc" connection file? Project server 2013

    Hi,
    I created a project Enterprise field named "Countries and Cities" which contains a lookup table with information such as "USA.Seattle". How can I add this field in the oData connection file?
    Thanks 

    Paul,
    How do you write the custom field name
    "Countries and Cities" which contains 2 spaces?
    I always get the error:
    "We couldn't get data from the Data Model, Here'is the error message we got:
    The content of the data feed is not valid for an Atom feed."
    Thanks

  • Add columns with custom fields in the table control of MIGO

    Hi,
    I have to add custom fields in the table control view of item in the MIGO.  I have added the fields in the GOITEM structure and i am able to display it in the item details tab.  I want the same fields to be visible as columns in the table control view of the items.
    I found that TV_GOITEM is the control in SAPLMIGO program referring to the table control of items but it is referring only to the standard fields available in Screen 200.
    Please let me know if there is any screen exit or option to add the custom fields in the control TV_GOITEM.
    Thanks.

    Hi,
    Thanks for your reply.  I have added the custom fields in the item detail.  But the customer wants the custom fields in the table view also.
    Is there any screen exit available to modify the table control of MIGO?
    Thanks.

  • Is it possible to add icons to a field in the table control  ?

    Dear Gurus,
               Greetings..............
    Is it possible to add icons to the line item of  a field in the table control ?
    Thanks in advance
    Raj Kumar

    HI
    YES IT IS POSSIBLE.
    DO THE FOLLOWING
    1.DECLARE INCLUDE <ICON>.
    2.IN YOUR INTERNAL TABLE DECLARE FIELD ICON
    icon(4) TYPE c,
    3. POPULATE YOUR INTERNAL TABLE WITH APPROPRIATE ICONS BY SELECTING FROM INCLUDE SPECIFIED ABOVE.
    EG:
    wa2-icon = '@5C@'.
    4.PASS IT TO FIELDCAT
    wa_fieldcat-fieldname = 'ICON'.
        wa_fieldcat-icon = 'X'.            " Displayed as Icon
      wa_fieldcat-tabname = ' '.
      wa_fieldcat-seltext = 'Status'.
      wa_fieldcat-coltext = text-001.
      APPEND wa_fieldcat TO it_fieldcat.

  • OIM: how to add a new search field in the Manage users page

    Hi,
    I want to add a new field to the menu of available searchable.
    I have changed the
    Lookup.WebClient.Users.Search and now I see my new field, but the search fails:
    16:28:19,406 ERROR [WEBAPP] Class/Method: tcSearchUserAction/searchUsers encount
    er some problems: Error executing procedure XL_SP_FindUsersFiltered
    Thor.API.Exceptions.tcAPIException: Error executing procedure XL_SP_FindUsersFil
    tered
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.findUsersFiltered(
    Unknown Source)
    at com.thortech.xl.ejb.beans.tcUserOperationsSession.findUsersFiltered(U
    nknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
    tatelessSessionContainer.java:237)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
    What else I have to change to have an attribute of the user profile searchable?
    Thanks a lot.

    Hi Dost,
    thanks for the quick answer.
    I added this row to the mentioned lookup:
    (code key) (decode)
    Users.Personalcode Personalcode
    Personal code is a custom attribute defined I added to user defined fields form.
    Is that wrong?
    Thanks again.

  • CIC0- Add Date of Birth Field in the BP Search,

    Hi,
                Please do let me know the procedure for adding the Date of Birth Field in the BP Search of Interaction Client Center.
    I have activated the Field  BP1_BIRTHDATE in the CRMC_CIC_SEARCH_CNTR,
    and i have changed the Layout of the HTML Page via the Transaction SMW0 in the SAP WebRepository in the CRM_CIC_COMPONENTS package.
    Now im able to find the Date of Birth Field in the CIC0 but while i'm trying to search based in the Date Of Birth field it is not working it.
    Please do suggest me what i have to do.
    Anilkumar.

    How can you expect to search on DOB basis if its not suported at the BOL level. Make sure the business logic is written to carry out search on DOB basis.
    You need to enahcne the already exsiting search code to support search on date of birth basis.
    <b>Reward Points if useful</b>

  • Problem in writing the routine in transfer rule....

    Hi,
    I want to put the routine for the upper case in the transfer rules.
    When I go to the Infosource and create the transfer routine I do not
    get the editable code for the field for which I want to create the routine.
    Only editable thing I get is "RESULT"
    As nothing else is editable not even the TRAN_STRUCUTE has anything.
    Everything is commented out by the system automatically.
    How to make this editable and put the code.
    Thanks , Jeetu

    try to concatenate all the message into a string.. and finally call the method. Also, search in WEB DYNPRO forum on this..
    LOOP AT t_return INTO wa_return WHERE type = 'E'.
         lo_api_controller ?= wd_this->wd_get_api( ).
            CALL METHOD lo_api_controller->get_message_manager
              RECEIVING
                message_manager = lo_message_manager.
            lv_message_string = wa_return-message.
    *     report message
            CALL METHOD lo_message_manager->report_error_message
              EXPORTING
                message_text = lv_message_string.
    *        EXIT.
        ENDLOOP.

  • Issue with the activation of transfer rules

    Hi,
    I am working with the datasource 0PRODUCT_TEXT, and I am trying to install transfer rules from BI Content and unable to get the active version.
    But the transfer rules are showing inactive and the error is as follows.
    Error generating program
    Message no. RSAR245
    Diagnosis
    An error occurred during program generation:
    Template:   RSTMPL80
    Error code: 6
    Row:        47
    Message:    Statement concluding with "...LIKE" ended unexpect
    Procedure
    Correct the template to remove the problem
    Please help me in this issue.
    Thanks in advance,
    Rama Murthy.

    Try to run RSActivate* all transfer rule program that will activate the inactive transfer rules. Don't forget to replicate the datasource once again before you run the program.
    thanks.
    Wond

  • How can I add my Sold to field in the infocube via transformation if it is a separate infoobject?

    Hello all,
    Really need your help...I want to include the Sold_to field in my Revenue BEx query but it is not available in the infocube I am sourcing from. It is however in BW as a separate infoobject. Is it possible to include the data in my infocube by adding a field to transformation and sourcing it from 0SOLD_TO? If so, how can it be related to the current data in the infocube (i.e. meaning how will it know which records are applicable to the said Sold to fields if there is no document number in the cube. 
    Please advise if possible or if there are better options which would not require updating the standard datasource 0CO_PA_1.
    Thanks!

    Hi,
    Sorry, Unable to understand your requirement....however below are options which probably may help you:
    1) Add Sold to Infoobject in Cube...Enhance your datasource write logic to populate the datasource field and map accordingly.
    2) Add Sold to Infoobject in Cube...Write Routine/Read Master data to populate in the cube....you should have logic and relationship to derive the same.
    Regards,
    Mayank

  • Is there any way to add a digital signature field at the end of forms?

    I am trying to have my patients fill out the mandatory forms online and have them sign it aswell.
    any help would be great.

    You can easily create a form in FormsCentral that your patients can fill online but FormsCentral doesn't support signature field.
    If you must have a signatures then you can have a look at http://echosign.acrobat.com.
    You can still use FormsCentral to create a PDF form that you can then use with EchoSign but you won't be able to gather data in FormsCentral.
    Gen

  • Using a field to subtract or add to a number field in the database

    Hi everyone I use Jdeveloper 1.5 with ADF and have the following functionality
    I have 3 fields
    Account withdrawing from:
    Account depositing to:
    Sum:
    In the database I have 2 tables clients and accounts. Client table has client name, adress phone, account number which is a foreign key in a one to many relationship with accounts. Accounts table has account number and account balance which is a number and represents the amount of money u have in your account. Each client has one or more accounts and can put money in other people's accounts or transfer between his own accounts (if he has more than one) So what I want is for the fields above to withdraw the sum from the account and deposit into another account or throw an error "Not enough funds" if the account withdrawing from has less money in it than is written in the field.
    Unfortunately I have no idea how to do this and was hoping u guys could help.

    2. Use a ValueChange listener on the input text field and query the account balance before processing the deposit
    How do I do this? When you say query you mean sql query right? The thing is I'm not sure if I will be allowed to use Jdeveloper for this or will have to use Dreamweaver so would love to use as much SQL as possible.

Maybe you are looking for

  • After ios 8 update i can not connect my iphone 5s to laptop

    after i up dated to ios 8.0,2 i can no longer connect my iphone to my computer.t get usb device not recognized

  • Windows 8.1 with Bitlocker

    Hello Experts? I have a one big problema. Today i was found problem on my directors portable hard disk. He has used bitlocker drive encryption and remember his password. When plugged hard disk then unlock drive enter password with completed successfu

  • Latest update network connectivity issues

    I updated the Apple TV with the latest update. Now every time it comes out of sleep mode it requires a restart to connect to iTunes. It's wired direct to an AirPort Extreme Any help or thoughts

  • Everything freezes immediately when connecting iPod

    When I connect my ipod via the usb cable to my laptop basically everything freezes, including itunes and even the ipod updater. IMMEDIATELY, im talking exactly when i unplug it (even though it says do not disconnect) the computer unfreezes. I am not

  • Create a new header+item after sync the item some informations are deleted

    Hi All, I have a DO with a backend adapter and 3 bapi wrapper (GetList, GetDetail, Create). When I create a new instance (header+item) on client side the data are correct in the database. After a sync the instance is also on the client and the Backen