Place InfoObjects under  InfoObject  Catalog

Hi Guys,
I have few InfoObjects (IO) under unassigned infoarea and want to place under particular infoarea. I am telling IO name, IO Catalog name etc. reading a tab delimited text file which are already exists in server. Here is the structure:
IO_CAT        IO_NAME  IO CAT_TEXT     IO CAT_TYPE     IO CAT IAREA
ZTEST_AS  ZIO_DM1         ZTEST AS     CHA              ZEA_PLAY_AREA
ZTEST_AS  ZIO_DM2         ZTEST AS     CHA              ZEA_PLAY_AREA
File reading is ok but when I call FM 'BAPI_IOBC_CHANGE', it's throwing an error.
Here are the code - can some one help me please where I am doing wrong:
REPORT  ZAS_BAPI_TEST2.
      Declaring Internal table for creating InfoObject
DATA: p_file TYPE string.
Data: BEGIN OF bapi_cat OCCURS 0,
        io_cat(30) TYPE C,
        io_name(30) TYPE C,
        io_cattxt(60) TYPE C,
        io_cattype(3) TYPE C,
        io_infoarea(30) TYPE C,
     END OF bapi_cat.
DATA ibapi LIKE STANDARD TABLE OF bapi_cat.
DATA: WS_BAPI LIKE ibapi.
DATA: lt_return type BAPIRET2 occurs 0 with header line.
PARAMETERS: sel_file(1500) TYPE c default ' ' OBLIGATORY LOWER CASE.
      PUT THE TEXT FILE PATH TO P_FILE
p_file = sel_file.
**Copy the file from the workstation to the server/ internal table**
CALL FUNCTION 'GUI_UPLOAD'
     EXPORTING
       filename                = p_file
       FILETYPE                = 'ASC'
       HAS_FIELD_SEPARATOR     = 'X'
               HEADER_LENGTH           = 0
               DAT_MODE                = SPACE
               CODEPAGE                = SPACE
               IGNORE_CERR             = ABAP_TRUE
               REPLACEMENT             = '#'
               READ_BY_LINE            = 'X'
             IMPORTING
               FILELENGTH              =
               HEADER                  =
    TABLES
        data_tab                = bapi_cat[]
    EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        not_supported_by_gui    = 17
        error_no_gui            = 18
        OTHERS                  = 19.
    IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
     MESSAGE e012(zea_spms) WITH 'Method' 'GUI_UPLOAD' sy-subrc.
   ENDIF.
*Place all IOs under InfoObject Catalog through BAPI Function
CALL FUNCTION 'BAPI_IOBC_CHANGE'
  EXPORTING
    INFOOBJCAT  = bapi_cat-io_cat
    DETAILS     = bapi_cat
  TABLES
    INFOOBJECTS = bapi_cat
    RETURN      = lt_return.
loop at lt_return.
  if lt_return-type = 'E'.
   MESSAGE ID lt_return-ID TYPE lt_return-TYPE NUMBER
   lt_return-NUMBER
    WITH lt_return-MESSAGE_V1 lt_return-MESSAGE_V2
    lt_return-MESSAGE_V3 lt_return-MESSAGE_V4.
  endif.
endloop.
*ENDLOOP.
      SELECT THE LOCATION FOR TEXT FILE
AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
  CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
      def_filename     = ''
      def_path         = 'C:\'
      mask             = ',Documentos de texto (*.txt), *.txt.'
      mode             = ''
    IMPORTING
      filename         = p_file
    EXCEPTIONS
      inv_winsys       = 1
      no_batch         = 2
      selection_cancel = 3
      selection_error  = 4
      OTHERS           = 5.
  find '.txt' IN p_file.
  if sy-subrc <> 0.
    concatenate p_file '.txt' into sel_file.
  else.
    sel_file = p_file.
  endif.
Thanks,
Mau

To assign your Infoobject you must use a separate BAPI:
BAPI_IOBC_CHANGE
This function module changes an existing InfoObject catalog. Enter all the InfoObject catalog properties in the DETAILS parameter
If the Catalog doesn't exist you have another BAPI:
BAPI_IOBC_CREATE
This function module creates a new InfoObject catalog. You have to give all the InfoObject catalog properties in the DETAILS parameter
Regards,
Sergio

Similar Messages

  • Creating InfoObjects using program and assignment under InfoObject Catalog

    Hi All,
    There is a FM BAPI_IOBJ_CREATE which can create an Infoobject but the problem is it is not having provisions to get assigned to a particular " Infoobject Catalog".
    Is there any other program or some way by which we can do it using the same FM.
    Thanks in advance

    To assign your Infoobject you must use a separate BAPI:
    BAPI_IOBC_CHANGE
    This function module changes an existing InfoObject catalog. Enter all the InfoObject catalog properties in the DETAILS parameter
    If the Catalog doesn't exist you have another BAPI:
    BAPI_IOBC_CREATE
    This function module creates a new InfoObject catalog. You have to give all the InfoObject catalog properties in the DETAILS parameter
    Regards,
    Sergio

  • Program To Activate Infoobject Catalog

    Hi Friends,
    Can you please share the program that is used to activate the inactive infoobject catalog.
    I require this because the catalog is inactive in quality after transport.
    I am in need of the program as all my transports are failing.
    Catalog is notassigned characteristics catalog. (mismatch in the objects in the system turned the catalog to inactive status.
    Regards,
    Ramesh

    Hi Ramesh,
    Since the catalaog is a Not assigned char catalog, why do you want to transport it?
    If you have info objects under them you can just transport the objects with out transporting the catalog.
    If it is not a new catalog there is no need to transport it.
    I have done this quite a few times and it has transported sucessfully and all my new info objects were in the active state.
    thanks,
    rahul

  • Error on installing infoobject catalog from business content

    while performing Install from Administrator Workbench:Business Content I am getting error.
    I am trying to install Infoobject catalog 0MMIC_CHA01 and 0MMIC_KYF01 from business content
    The error messages appearing are as follows:
    Installation (simulation mode) of: InfoObject (IOBJ)
    Checking Objects with Type InfoObject
    Checking InfoObject 0BPARTNER
    Char. 0LEGALFORM is exclusively an attribute (cannot be a navigation attribute)
    Checking InfoObject 0CM_CDT1
    Char. 0CM_HIEID may not appear in compounding and attributes simultaneously
    Characteristic 0CM_CDT1 is used as Navigation Attribute of 0RT_SEAROLL, but characteristic
    IInstallation (simulation mode) of: ODS Object (ODSO)
    Installation (simulation mode) of: Update Rules (UPDR)

    Hi
    It seems although's are warnings and not errors. Instead of using Simulation just install the content.
    check out the below article
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b1d20e-c1e8-2c10-d9b9-d48eb3a83d89?QuickLink=index&overridelayout=true
    Regards,
    Venkatesh

  • Error installing Business Content: InfoObject Catalogs

    hi all,
    just new in this community and hope you can help with my encountered problem regarding Installation in BI content.
    I'm trying to activate:
    InfoObject Catalog (technical name) : 0CHANOTASSIGNED
    InfoObject Catalog(description)        : Unassigned characteristics
    upon installation here is the job log that i got:
    Message text | Message class | Message no. | Message type
    Replication completed successfully | RSAOLTP | 33 | S
    Replication completed successfully | RSAOLTP | 33 | S
    The object R3TR ISTS 0CUST_CLASS_TEXT_BA does not exist | TK | 233 | S
    Assign a package | TR | 709 | S
    Specify the package or flag it as a local object | TR | 742 | E
    Job cancelled after system exception ERROR_MESSAGE | 00 | 564 | A
    what seems to be the error here?
    thanks and regards,
    karl

    hi chintamanim,
    thanks for the response.
    i verified the objects included on the BI content objects window and noticed that the object 0CUST_CLASS_TEXT "active version" is not available and i tried finding 0CUST_CLASS_TEXT_BA and cannot find it.
    does this have an effect on the error i got from activating and receiving the error upon activation?
    The object R3TR ISTS 0CUST_CLASS_TEXT_BA does not exist
    I did follow a document for Building Block Configuration Guide:
    B03: General Settings for BI Integration
    and the step is included here:
    Activating Business Content: InfoObject Catalogs:
    1.     On the Data Warehousing Workbench: Business Content screen:
    a.     At the top of the right hand frame, choose Grouping and select In Data Flow Before.
    b.     At the top of the right hand frame, choose Collection mode and select collect automatically.
    c.     In the left hand frame, select Object Types.
    d.     In the middle frame, expand InfoObject Catalog and make a double-click on Select Objects.
    2.     In the Selection of Query Objects dialog box.
    a.     Select the following InfoObject catalog:
    0CHANOTASSIGNED
    b.     Choose Transfer Selections.
    c.     If a dialog box Remote Activation in the Source System <…> occurs, choose OK and log on to the source system on the following screen.
    d.     If a dialog box appears Exceeded runtime when collecting objects choose Continue.
    3.     At the top of the right frame, choose Install and select Install in Background.
    4.     In the Install Business Content in the Background dialog box choose Yes.
    5.     In the Information dialog box choose Continue.
    6.     Choose Exit.
    please advise on how to continue.
    thanks and regards

  • Custom InfoAreas and InfoObject Catalog

    Hi,
    How to assign business content cubes and info objects to custom info areas and info object catalog while activating itself?
    Thank you,
    sam

    hi Sam,
    you can use drag and drop after the the business content cubes/infoobjects installed/activated from business content,
    if the drag drop not enabled, try
    se16, type in RSADMINSV.
    click edit/pencil icon.
    remove checkmark for 'Drag&Drop Off'. and save
    or right click the infoobject catalog and find the infoobjects and move from right to left and activate again the infoobject catalog
    hope this helps.

  • What happens when we activate the InfoObject Catalog

    HI
    What happens when we activate the InfoObject Catalog.
    Does it creates any table...
    Regards

    hi,
    Info object catalogue is nothing but directory to maintain char infoobject catalogues and keyfigure infoobject catalogues. when you activate it wont create any tables.
    points if helpful
    regards
    vadlmaudi

  • QUERY - Creating InfoObject Catalog

    Hi,
    I am new to BW as well as Group.
    When I am trying to Create InfoObject Catalog, it is saying Template Not Set (Select using Pushbuttons)
    I don't know what does it mean. Please help me out.
    Procedure which I am following
    Right Click on InfoObject (iademo) -> Select Create InfoObject Catalog -> In Edit InfoObject Catalog Dilogue box Iam giving InfoObjCat, Short Test and InfoObject Type as Char -> Click on Create ->
    In Template area I am getting a msg Not Set (Select using Pushbuttons)
    I don't understand wether my approach is wrong or is there any software problem.
    Please help me out.
    Thanks for your help in advance.
    Regards,
    Aruna

    Hi Aruna,
    To create a Infoobjcatalog follow this stpes,
    RSA1 -->Create Info Area
    Click Info objects>choose Info Area> Right click to create Info object catalog(Char) , Give Technical name and Description and continue ---> Activate it
    Like wise create IOC for Keyfigure also
    Note: Assign points if it helps
    Regards,
    Arun.M.D

  • List of codes under various catalog types

    Hi All,
    I want an illustrative / sample list of various codes under following catalog types applicable for QM notifications which is relevent for a industry involved in trading and servicing of medical equipment.
    Can anybody please provide me the same ?
    1) Coding
    2) Defect location
    3) Defects
    4) Causes
    5) Tasks
    6) Activities
    Regards,
    MHP

    1) Coding -
    If you are measuring color of the material then you can create "COLOR" as code group and under this code gp you can create diff code as required, example;
    001 - white
    002 - black
    003 - red
    004 - yellow etc...Same way you can create diff code grp and code combination.
    2) Defect location -
    If you are inspecting material at diff location then you can create diff code for each location
    001 - QC lab
    002 - QA lab
    003 - Electrical lab...etc..
    3) Defects -
    Here for each defect you Crete one new code..
    001 - Color is not good
    002 - Cert missing
    003 - Out of spec...etc..
    To create all different codes for diff activity first you need understand you business process and try to map those business process steps with creating code and map to process.
    hope this helps to understand.

  • Best Practice to place InfoObject in model

    Hi Gurus, I have this Z InfoObject that created to to hold values 1,2,3 and 4 to indicate quarters. I intend to use this in determining th quarter when a user enters a date on a query (like a formula). This cube is kind of a copy of "Actual and Budget" cube that SAP delivers. I wanted to place this 'Z' object n one of the dmensions and was having hard time on how i should determine where it should go? Any help would be appreciated.
    Thanks.

    I am sure you cannot add it to the TIME dimension.
    If there is not any dimension that contains a close relation to the Quarter characteristic, fo ahead and create another new dimension and put it in there.

  • Recent Places list under Save As...

    When I do a Save or Save As..... the Mac window usually defaults to a folder location for placing the file. Maybe the last folder I was in. When you click on the Folder pop-down window you see the path to the current folder.. .But you also see a list of folders and locations called RECENT PLACES. Can someone help with this? I am frequently saving emails and word docs back and forth to different locations. But when I do so, my Recent Places list does NOT show the recent folders I've been to. It presents some folders, all right, but I cannot figure how it has selected those. (If you type "Recent Places" into the Mac's built-in HELP search window, it produces no text!) How do you control this feature -- set default folders, control how many recent places are shown, and in what order? (the kinds of things we used to do with Boomerang!) I found a November 2005 post here where someone suggested removing some "Launch Service" pref files that are supposedly in the Caches folder. Not on my mac they aren't. Help anyone? A tech note somewhere on this OS feature?

    Hi, David.
    You wrote: "I am frequently saving emails and word docs back and forth to different locations. But when I do so, my Recent Places list does NOT show the recent folders I've been to."How this list is handled appears to be a function of the given application, not a System-wide function.
    For example, in one application I use, the list under Recent Places shows folders into which I've recently saved documents edited in that application. In the case of TextEdit, I can't determine exactly what logic it's using to populate Recent Places.
    As you note, it's undocumented in Mac Help. The only documentation I've found for this is in the Apple Human Interface Guidelines, in the section concerning "Dialogs," where it is defined for both the Open and Save dialogs as:"...the five most recent folders the user opened or saved documents to..."and where it is further qualified by"Note: Recent Places (in the Where pop-up menu of a Save dialog) does not record folders selected in Choose dialogs."This may explain the behavior I've observed in TextEdit where the Recent Places are not folders in which I saved TextEdit documents, but other folders where the Save dialog was used in other applications. This list also differs from the Finder > Go > Recent Folders list.
    Since the behavior can be customized at the application level (per the developer documentation) this would also appear to explain why, in some applications, I see a list of Recent Places that is specific to that application.
    You wrote: "How do you control this feature -- set default folders, control how many recent places are shown, and in what order?"Bottom line: it does not appear to be something you can tailor. "Recent Places" either:
    - Works in an application-specific way, defined by the developer through customization of the dialogs and coding.
    - Is built, by default, based on other locations from which/to which you've opened/saved files using the Open/Save dialogs.
    If you want to create a set of locations that will work across the Open and Save dialogs in all applications that use such, add those folders to your Finder Sidebar. You can then select them from the Sidebar that appears in the Open and Save dialogs.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Decimal places in SRM-MDM Catalog 3.0

    Hi experts,
    Iu2019m using SRM-MDM Catalog 3.0 and Iu2019ve an issue related to the decimal places configuration.
    Our products are defined with 2 decimal places and after importing the records I can see them in Data Manager with the correct price information. However, when I access my catalog in EP, I can see all my records but without any decimal places. For instance, if I define a price 1.25 Eur for one product, in EP I have 1 Eur.
    Can someone help me? Itu2019s really important that we can show the product correct price.
    Thanks in advance.
    Best regards,
    Andreia Nascimento

    Hi,
    My problem was in MDM Data Manager - currencies table. If you choose currencies table, select your currency and check if there are any decimal places defined.
    You can also check in MDM Console price table u2013 amount u2013 decimal places.
    BR,
    Andreia Nascimento

  • [weblogic 8.1-sp4] taglibs not allowed any other place then under WEB-INF?

    i pack my application as EAR with several skinny WARs + JAR libs under "lib" directory of EAR (and ofc WARs have their manifest adjusted to point to those). standard.jar is also there, no web.xml definition of the taglibs.
    when i deploy the EAR, any of the JSPs throw famous IOException: "cannot resolve 'http://java.sun.com/jstl/core' into a valid tag library".
    i dug a bit and saw people mention that TLDs are scanned for only when they are placed under WEB-INF of a WAR (hence you suck when your TLDs are somewhere else like "/lib" in my case) and classpath has nothing to do with that. is it true and what can be done to avoid it?
    ps.
    to clarify: servlets 2.3; jstl 1.0; jsp 1.2
    Edited by: [email protected] on Dec 8, 2008 6:33 PM

    well placing 10 taglib definitions in each web.xml is imho a bad idea. as there's no real way to exclude all but certain JARs from a WAR using maven (the ideal solution i'd prefer), the solution i had to choose was to set maven-dependency-plugin up the way it would extract the TLDs from certain JARs and place it anywhere under WEB-INF of the WAR when it's assembled. the cons is that TLDs are duplicated, but on the other hand the configuration for that is minimal (which also seems important to me).

  • How to place caption under landscape

    How do I get a caption under a photo placed in landscape orientation?  The "click here for caption" only appears under portrait orientation. It's the last thing I have to do to complete my "album".

    Two ideas I can think of:
    1) Create multiple pivot tables and then display them one under the other
    2) Create multiple measure columns such as "male_amt", "female_amt", "white_amt", "asian_amt", "black_amt", etc. for all the columns you need. Then you could simple stack them in a single pivot table.
    Option #2 might give you the prettiest results - but also requires a lot more maintenance (for instance, if you reclassify ethnic groups, you'd have to go through the reports to add additional metric columns).
    Hope this helps,
    Scott

  • Elements 12 Organizer freezes when "Calculating Total Media Size..." at 57%under "Backup Catalog..."

    I have been trying to overcome this issue for a very long time, but not able to find a solution. There has been some users who have logged the very same issue on other versions. This process has been running for more than 12 hours now and still shows the same error. I am actually reproducing the error this time, and I was able to cancel this process without crashing the application. So I don't know what causes this problem.
    I have around 32,000+ photos and no videos in the catalog.

    Hi Prabhuram and falez,
    This issue appears where there are any inconsistencies in your catalog (generally for video files). This issue may be due to offline files, missing files, video scenes. The recommendation here would be to fix these inconsistencies and try again. If that doesn't solve the issue, please follow steps mentioned in email by me.
    ~Surendra

Maybe you are looking for

  • Problems with external context mapping

    Hi , I am having the following problems with external context mapping from one WD component to another. Problem description: In the <i>Component Interfaces</i> I have defined a WD interface "InfA". In the <i>interface controller</i> of this compoenen

  • Parallel Stops working, Photo Booth Not working, Video Effects Gone.

    This all happened after I upgraded it to Leopard. In parallel, I keep getting error that .HDD is corrupted. Also, itunes said its file is corrupted. don't know what's hapenning

  • How do i check my download usage?

    Hey everyone Silly question, but how do i check my download usage? i've looked around the site, but not found anything yet

  • Java programming language

    What are the major differences between Java programming language and HTML or XML and why is it better?

  • Why do you need a credit card when no money due

    I recently was trying to add an older 3G IPad to my Verizon account.  Went through all the steps online and then went to check out.  We currently have 4 phones and 1 other IPad on this account.  Anyway everything is fine until I go to check out.  The