Dynamic structure creation failure for only some structures.

I have some code to dynamically create a structure and table based on some sap how to... documentation. It works perfectly for a number of structures but fails on the structure I wish to create.
'l_c_cube_write' in the code is the variable that defines which structure. This code is in BW, if I have an InfoCube YINFOCUBE then the code should create a structure and table based on structure /BIC/VYINFOCUBE2.
This code works fine when based on structure /BIC/VYINFOCUBEI but fails when based on structure /BIC/VYINFOCUBE2. These structures are generated for each InfoCube created in BW.
Looking at the two structure definitions in SE11 there are a few differences but it is not clear to me if these differences are causing the error.
Does anyone know why the error occurs and whether there is a way to avoid it.
The code is as follows.
data:
  l_c_cubestruct   type string,
  l_r_cubestrudesc type ref to cl_abap_structdescr,
  l_r_cubedatadesc type ref to cl_abap_tabledescr,
  l_v_cubedatastru type ref to data,
  l_v_cubedatatabl type ref to data,
  l_v_cubecomp     type cl_abap_structdescr=>component_table,
  l_c_comp         type string.
field-symbols:
  <l_fs_anytabl>  type standard table,
  <l_fs_anystru>  type any.
no need to dynamically create data object as the program is created dynamically
concatenate '/BIC/V' l_c_cube_write 'I' into l_c_cubestruct. "this works
  concatenate '/BIC/V' l_c_cube_write '2' into l_c_cubestruct. "this does not
  l_r_cubestrudesc  ?= cl_abap_structdescr=>describe_by_name( l_c_cubestruct ).
  l_v_cubecomp       = l_r_cubestrudesc->get_components( ).
  l_r_cubestrudesc   = cl_abap_structdescr=>create( l_v_cubecomp ).
  l_r_cubedatadesc   = cl_abap_tabledescr=>create( l_r_cubestrudesc ).
  create data l_v_cubedatastru type handle l_r_cubestrudesc.
  create data l_v_cubedatatabl type handle l_r_cubedatadesc.
create a data object for the datapackage and the dataackage structure
  assign l_v_cubedatastru->* to <l_fs_anystru>.
  assign l_v_cubedatatabl->* to <l_fs_anytabl>.
Differences between structures:
The structure that fails also includes components 0INFOPROV and 1ROWCOUNT.
The structure that fails has components in the format 0MATERIAL, 0CALMONTH, etc. The structure that does not fail has components in the format MATERIAL, CALMONTH, etc.

I encountered the above problem recently. It is a pain because it means you can't use MOVE-CORRESPONDING.
It's also not possible to define a structure statically with components beginning with numbers - though it is ok in the data dictionary.
e.g.
TYPES: BEGIN OF my_struc,
         0COMPONENT TYPE...
       END OF MY_struc.
Seems to me to be rather inconsistent!
matt

Similar Messages

  • Birthday calendar for only some of my contacts are showing up twice in my iPhone. They are not showing up twice tho on my iMac. No, I do not have duplicate names in my address book either. Any idea how to fix that?

    my birthday events for only some of my contacts are showing up twice in my iPhone. They are not showing up twice tho on my iMac. No, I do not have duplicate names in my address book either. Any idea how to fix that?

    I have uploaded the InDesign file so that you can take a closer look at:
    http://www.hsdesign.comuf.com/downloads/
    The file is called "Template_File.indd"
    So, as discussed the main issues are:
    1) The TOC doesn't generate all the listings (only those with the applied paragraph style "Heading 1 - Appendix")
    2) When I try to create a new pargraph style and apply it to existing or new text, it reads the pargraph style in the Paragraph Style menu, but the style doesn't actually apply.
    Hopefully you can figure something out from this. I really appreciate your help.
    Thanks!

  • Download link for only some rows

    Hi,
    I have 2 tables. One contains records for products, and the other contains images for only some of the products. The images have been uploaded through the application and therefore are in a 'upload_data' table.
    The tables are linked by product_id.
    I would like to display a report that shows all the column from the products table and a download link for only those products that have an image.
    So far the query only returns those rows that have an image.
    Thanks
    Edited by: user12970007 on 20-Apr-2010 17:59

    What does this query look like?

  • Hotspot click for only some rows in ALV grid for a particular column ?

    Hi there,
            In ALV grid, we can make Hotspot enable for all rows in a specified column
    by specifying in the fieldcatalog with Hotspot attribute set as true.
    But I want to enable Hotspot only for certain rows in the particular column. I tried with MC_STYLE4_LINK , but I didnt got the required result.
    So , how could I achieve that in ALV grid.
    Points would be rewarded for helpful answers.
    Regards,
    Anil .

    Hi,
    You can do it for a column. Please refer to the code snippet below,
      DATA : it_fcat TYPE lvc_t_fcat,
             wa_fcat LIKE LINE OF it_fcat.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
      I_BUFFER_ACTIVE              =
         i_structure_name             = 'SMMW_ALERTS_ICON_S'
      I_CLIENT_NEVER_DISPLAY       = 'X'
      I_BYPASSING_BUFFER           =
      I_INTERNAL_TABNAME           =
        CHANGING
          ct_fieldcat                  = it_fcat
       EXCEPTIONS
         inconsistent_interface       = 1
         program_error                = 2
         OTHERS                       = 3
    LOOP AT it_fcat INTO wa_fcat.
      IF wa_fcat-fieldname = 'STATUS'.
        wa_fcat-hotspot = 'X'.
        MODIFY it_fcat FROM wa_fcat.
        CLEAR wa_fcat.
      ENDIF.
    ENDLOOP.
    CALL METHOD l_obj_alv_grid->set_table_for_first_display
          EXPORTING
        i_structure_name              = 'SMMW_ALERTS_ICON_S'
       CHANGING
            it_outtab                     = lt_alerts_st
            it_fieldcatalog               = it_fcat.
    In the above replace the structure 'SMMW_ALERTS_ICON_S' with your structure and column 'STATUS' with your desired column.
    Hope this helps,
    Regards,
    Vinodh

  • Can you apply keywords and metadata for only some subfolders at import?

    I thought I should make a separate thread for my second LR file import question.
    It seems that LR authors assumed that most users would download single events or projects but that isn't the case with me.  I'm just an amateur with a Canon 30D and a 4 gb CF card.  I can get hundreds of raw files on that card and many times I won't download the contents of the card to my computer until I have taken pictures at several different events.  So I may have a birthday and a campout and some landscapes in the download and the same keywords or metadata may not apply to all of them.  LR allows me to group these different events by date in different subfolders but it looks like the metadata/keywords that you can add at download apply not to individual subfolders but to the entire download, is that right?  If I've misunderstood or overlooked something how do you apply different keywords or metadata to different subfolders at download?

    As you have discovered, Lightroom applies the same keywords, metadata and any develop settings to every photo during import. The workaround to break the import down into individual events by only selecting one shoot at a time in Import dialog thumbnail window. Deselect ALL of the thumbnails then use the keyboard modifiers such as Opton/Alt, Cmd/Ctrl or Shift to select the particular shoot that you want to import.

  • "Missing signed entry in resource" for only some users

    Hi,
    I have recently updated my .jnlp file and .jar file and added some extra jar resources in the new jnlp.
    Since this new version, some users receive an error saying
    "Missing signed entry in resource:" for one particular resource.
    While for other users it works fine.
    I have signed the jar with jarsigner.
    Does anyone have an idea what could be the problem here?
    Thanks very much in advance,
    Best regards,
    Stein Aerts,
    University of Leuven, Belgium

    I remember hearing something like this, and had to do with :
    1.) what version of jarsigner was used to sign the jar, and
    2.) what version of JRE was used to validate the signed jar file on the client.
    (including US only vs. International version of JRE)
    For the jar that gets this error:
    Does it have any empty directories in it., or does it have entries with non-english characters in the resource names ?
    What version of the JDK was used to run jarsigner to sign this jar, and what jre is the application running on ?

  • Migration for only some selected programmes.

    Today I bought a new MacBook Pro 13" Retina. No I like to copy Photoshop CS6 and some NIK porgrammes from my 2010 iMac to the new MakBook. 1. Is it possible to migrate only one or selected programmes from one mac to the other? And if not, what will be with the belonging files, for example music files when copieing itunes? I don´t want these files or all programmes on my new machine. I know I can install again from DVD, but I have lost all my original intall DVD´s. Thank you for your help!

    Most software - such as the CS6 applications or packages - can be downloaded from the vendor and you no longer need a CD/DVD. You will need your activation codes, however.
    You can't just copy the applications themselves as this does not copy the support files. If I were you, I would use Migration Assistant to transfer everything. That would be the easist way to handle it.
    Clinton

  • Receiving iChat communication error messages for only some buddies

    My son is using iChat 4.0.8 and OS 10.5.8. With some buddies he is able to chat (video and audio) without problem. With other buddies, he cannot connect by video or audio and receives a 'communication error' message -- the buddy didn't pick up. However, the buddy receives the same message. However, he CAN aim these buddies through iChat. The problem does not seem to be with these buddies however because friends can video and audio chat with them. Within his group of friends, my son is the only one having this problem, and it applies only to some of his friends. Any suggestions? I did make sure Internet Sharing was turned off but that made no difference. Thanks!

    Hi,
    iChat uses port 5190 on the TCP Protocol to do the Login and do most Text Chats.
    For AV chats iChat uses port 5678 for the Visible Invite and one from 16393-16402 to do the actual chat (No Matter which Buddy list you use).
    Now in iChat 5 (Snow Leopard) the Connection Doctor reveals an extra drop down choice of Network Status.
    This in turn reveals that iChat prefers routing devices that use the Full Cone method of doing NAT (Network Address Translation)
    Some things that can help.
    In iChat > Preferences > Accounts > Server Settings change the port to 443
    (you/he has to Log out first)
    This splits the TCP Login away form the UDP use of port 5190 that is for File Sending, Pics in Chats (Direct IMs) and some Buddy List feedback.
    This is because some modems do not seem to like iChat using the port twice (Zyxel modems are particularly bad at this but are not alone)
    Use UPnP (Universal Plug and Play) in the router (Or modem if it routes) to open the ports.
    7:35 PM Thursday; February 18, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Making comments mandatory for only some roles when approving CUP requests.

    Does anyone know if there is a way to make Comments required in CUP requests when approving a request for just certain roles?  We don't want comments to always be required, just if you are approving a request for Role XXX for example.
    I tried using the Comments Mandatory setting that is available on the Role Details screen (along with the associated flags on the Roles/Role Selection screen), but this only seems to require a 'request reason' for the role when the request is being built.  It doesn't require comments when the request is being approved.  (There also appears to be a bug with this because this request reason doesn't show up anywhere in the request after it is built.)
    I know you can set the Comments Mandatory on for the workflow stage, but then you have to enter a comment for every request, regardless of the roles.  We are wanting them to required only for a few specific roles.
    We are on GRC 5.3 11.2.
    Thanks.

    Hi Bob,
    It is not possible to enable the comment option only for few roles. Either it can be on for all, or off.
    Rgds,
    Raghu

  • Verizon Fios and internet connection issue for ONLY some of my devices

    Lost my internet connection last night for about half of my devices (iMac, iPad, Kindle) but the funny thing is that the other devices are able to connect to the internet at the same time. 
    The Verizon Fios router is MI424WR with dual antennae.  I have a Time Capsule hooked up via ethernet to the Verizon router and am using the TC as a wireless access point. 
    As I am not computer knowledgable, could this happen if there was a firmware update on the Fios router?  Could the Fios router allow only certain devices access while denying access to other devices to the internet?  It seems that if only one device can access the internet, the system does work but there is a "gatekeeper" that is not allowing access.

    No, you use the airport utility not Network Preferences which is your local computer setup.
    Setup of the TC you need to select it in the airport utility.. on either a Mac or in a phone or ipad.
    When you open it click on the TC and go to the edit tab and check all the details. eg the bridge is here.
    Go to the wireless tab to setup wireless.
    I recommend a change of wireless name if you do not use names that are short, no spaces and pure alphanumeric. do so.
    See how you go without a factory reset but if that doesn't work then a reset is in order.

  • How to set up proxy for only some of all my accounts?

    I have two accounts A and B set up in my thunderbird. Now I'm going to connect to server A through a proxy while directly connecting to server B by just clicking the get new messages button. Is there a way to do that?

    You can set up an iTunes account for each of your kids without providing a credit card. Instead use gift cards or set up an allowance. For detailed info see: iTunes Gift Options
    Also make sure to check the Parental Control preferences in iTunes (iTunes: Using Parental Controls) and on each iPod (iPhone, iPad, and iPod touch: Understanding Restrictions).
    Alexander
    Message was edited by: narya

  • Query for Software Updates Reports Install Date for only Some of the Installed Updates

    We use the following query to retrieve a list of software updates for a specific collection and software update group.  There are many cases where the installation status of a software update is 'installed' but there is no corresponding 'install
    date'.  Can anyone tell me why?
    declare   @AuthListLocalID as int
    declare @CollID as varchar(8)
    Select @CollID=CollectionID
    from v_Collection
    WHERE CollectionID='ZSV0000A'
    select @AuthListLocalID=CI_ID from   v_AuthListInfo
    where    CI_UniqueID='ScopeId_EAD5EB80-CC39-4EA2-B08F-A45BB84F1D76/AuthList_4DEAD110-5740-495E-8BD8-467A55C50A0C'
    select
    rs.Name0 as ServerName,
    catinfo.CategoryInstanceName as Vendor,
    catinfo2.CategoryInstanceName as   UpdateClassification,
    ui.BulletinID as BulletinID,
    ui.ArticleID as ArticleID,
    Case ui.Severity WHEN 10 THEN 'Critical' WHEN 8 THEN 'Important' ELSE LTRIM(ui.Severity) END as Rating,
    ui.Title as Title,            
    Targeted=(case when ctm.ResourceID is not   null then '*' else '' end),
    Installed=(case when css.Status=3 then   '*' else '' end),
    IsRequired=(case when css.Status=2 then   '*' else '' end),
    Deadline=cdl.Deadline,            
    CAST(CASE   IsNull(AddRem.InstallDate0,CAST('1/1/1900' as smalldatetime)) WHEN   CAST('1/1/1900' as smalldatetime) THEN AddRem64.InstallDate0 ELSE   AddRem.InstallDate0 END as Date) as 'Install Date',
    ui.InfoURL as InformationURL
    from v_UpdateComplianceStatus css
    inner join v_UpdateInfo ui on   ui.CI_ID=css.CI_ID
    inner join v_CIRelation cir 
    on ui.CI_ID=css.CI_ID and cir.ToCIID =   ui.CI_ID -- add this
    inner join v_CICategories_All catall on   catall.CI_ID=ui.CI_ID 
    inner join v_CategoryInfo catinfo on   catall.CategoryInstance_UniqueID = catinfo.CategoryInstance_UniqueID and   catinfo.CategoryTypeName='Company' 
    inner join v_CICategories_All catall2 on   catall2.CI_ID=ui.CI_ID 
    inner join v_CategoryInfo catinfo2 on   catall2.CategoryInstance_UniqueID = catinfo2.CategoryInstance_UniqueID
    and   catinfo2.CategoryTypeName='UpdateClassification'
    left outer join v_CITargetedMachines ctm   on ctm.CI_ID=css.CI_ID
    and ctm.ResourceID = css.ResourceID
    left outer join v_GS_ADD_REMOVE_PROGRAMS   AddRem on css.ResourceID = AddRem.ResourceID and ui.Title =   AddRem.DisplayName0
    left outer join   v_GS_ADD_REMOVE_PROGRAMS_64 AddRem64 on css.ResourceID = AddRem64.ResourceID   and ui.Title = AddRem64.DisplayName0
    left outer join (select atc.CI_ID
    ,CreationTime=min(a.CreationTime)
    ,ExpirationTime=min(a.ExpirationTime)
    ,StartTime=min(a.StartTime)
    ,EnforcementDeadLine=min(a.EnforcementDeadLine)
    ,LastModificationTime=min(a.LastModificationTime)
    ,Deadline=min(a.EnforcementDeadline)
    from v_CIAssignment a
    inner join v_CIAssignmentToCI atc on   atc.AssignmentID=a.AssignmentID
    group by atc.CI_ID) cdl  
    on cdl.CI_ID=css.CI_ID
    left outer join v_R_System rs ON   css.ResourceID=rs.ResourceID
    where    css.ResourceID in (
    Select vc.ResourceID
    FROM v_FullCollectionMembership vc
    WHERE vc.CollectionID=@CollID)
    and cir.FromCIID=@AuthListLocalID
    and cir.RelationType=1  
    order by
    catinfo.CategoryInstanceName
    , catinfo2.CategoryInstanceName
    , ui.ArticleID

    Hi Mate,
    Its really difficult to do get the installed date of the patches as there is no table available in SCCM  DB to pull this info i had a requirement in the past but i was unable to do had done it via work around.
    This can be done after editing of sms_def.mof file or else using the power-shell script in windows server 2008 where the powershell is a feature by default.
    H/W inventory: 
    For the 2000 servers this has to be installed but if we enable this its mentioned it may utilize upto 100 % of the Memory during the h/w inventory you can check that in your SMS_DEF.MOF  -
    QuickFixEngineering you can see the warning.uickFixEngineering
    http://support.microsoft.com/kb/279225/en-us
    Powershell script:
    http://msmvps.com/blogs/richardsiddaway/archive/2011/10/23/1760058.aspx
    the warning for the quick fix engineering is not there on 2012 but there on 2007 hope the info help you to achieve your output.
    Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights

  • Why would a third party image-caching program like Thumbs Plus display thumbnails for only some PDFs

    . . . and not for other PDFs, if all of the PDFs have their page thumbnails embedded in them using Acrobat Standard or Professional?

    An Acrobat specific user forum may not be the optimal place to ask about the why-n-whatfore of a third party software.
    Perhaps the application you are using has a vendor support site or user community?
    Be well...

  • IMessage works for only some iPhone users!

    Okay holy crap I am so annoyed. First off, my iMessage suddenly stopped working with someone who I've always used iMessage with. I tried turning it on and off but it didn't work. It still works with other contacts, just a few of them suddenly stopped working randomly. Also, I'm on T-Mobile with an unlocked iPhone and after I came back from overseas, I can no longer send MMS to non-iMessage contacts. I've tried turning MMS on and off also and it doesn't work. Even if I have 5 bars of service it won't send. Theorectically I should be able to...but I can't. Can someone please help me with one of these problems I'm desperate!!!! Thanks in advance

    T-Mobile? Oversees? Quite complicated. Maybe when doing a recent sync or adding another iOS device could cause iMessage to get mixed up wither certain contacts. Because I know that Apple employees don't like unlocked iPhones (this may not be true, just read it somewhere) you will have to do this on your own. Try factory resetting and reinstalling the SIM card. It won't be easy, but it should probably do the trick.

  • Here's how to use DYNAMIC tables for almost any structure (4.6C onwards)

    Hi guys
    I'm describing a  feature  here that has been around since 4.6C that is not really well known but can really simplfy programming where you need to get data into some sort of internal table and then display it either as a classical list or as al ALV grid.
    This feature is RTTI which allows you to retrieve your structure, build a dynamic FCAT (Field catalog) and a Dynamic table.
    Here's a really quick little program which reads 200 entries from VAPMA into a dynamic table. Any structure will work if you use the code sample shown.
    To pass it to an ALV GRID  is then really simple as you've already got the Field Catalog, Table and Data.
    The method I'm showing below will work for almost ANY structure you care to name whether or not the fields are in the data dictionary.
    I create a dynamic FCAT and dynamic table based on the FCAT and then populate it.
    You can create field catalogs dynamically quite simply by using the new RTTI facility available from 4.6C onwards.
    (From here it's only a small step to dynamic tables and EASY ALV grid displays)
    Example to create dynamic FCAT and table and populate it with 200 entries from VAPMA
    PROGRAM ZZ_BUILD_FLDCATALOG.
    tables: vapma.
    Define any structure
    types: begin of s_elements,
    vbeln type vapma-vbeln,
    posnr type vapma-posnr,
    matnr type vapma-matnr,
    kunnr type vapma-kunnr,
    werks type vapma-werks,
    vkorg type vapma-vkorg,
    vkbur type vapma-vkbur,
    status type c,
    end of s_elements.
    end of your structure
    data lr_rtti_struc type ref to cl_abap_structdescr .
    data:
    zog like line of lr_rtti_struc->components .
    data:
    zogt like table of zog,
    wa_it_fldcat type lvc_s_fcat,
    it_fldcat type lvc_t_fcat ,
    dy_line type ref to data,
    dy_table type ref to data.
    data: dref type ref to data.
    field-symbols: <fs> type any,
    <dyn_table> type standard table,
    <dyn_wa>.
    *now I want to build a field catalog
    *First get your data structure into a field symbol
    create data dref type s_elements.
    assign dref->* to <fs>.
    lr_rtti_struc ?= cl_abap_structdescr=>describe_by_data( <fs> ).
    zogt[] = lr_rtti_struc->components.
    Now build the field catalog.  zogt has the structure in it from RTTI.
    loop at zogt into zog.
    clear wa_it_fldcat.
    wa_it_fldcat-fieldname = zog-name .
    wa_it_fldcat-datatype = zog-type_kind.
    wa_it_fldcat-inttype = zog-type_kind.
    wa_it_fldcat-intlen = zog-length.
    wa_it_fldcat-decimals = zog-decimals.
    wa_it_fldcat-coltext = zog-name.
    wa_it_fldcat-lowercase = 'X'.
    append wa_it_fldcat to it_fldcat .
    endloop.
    Let's create a dynamic table and populate it
    call method cl_alv_table_create=>create_dynamic_table
    exporting
    it_fieldcatalog = it_fldcat
    importing
    ep_table = dy_table.
    assign dy_table->* to <dyn_table>.
    create data dy_line like line of <dyn_table>.
    assign dy_line->* to <dyn_wa>.
    select vbeln posnr matnr kunnr werks vkorg vkbur
    up to 200 rows
    from vapma
    into corresponding fields of table <dyn_table>.
    from here you can pass your table to a GRID for display etc etc.
    Cheers
    Jimbo

    Thanks for the info.
    I went to their web site and also Googled.
    I found a great review on their photographer's books on nikonians.org
    They use an HP/Indigo Ultrastream 3000 digital offset press for all hardcover books, which is GREAT!
    I did sign up and requested the 45 day trial "photographer" account.
    I am curious if Shared Ink offers a size that matches the ONLY current book size from Aperture, the odd 8.5x11.
    In the above review, I saw that Shared Ink offers a 12x12 book.. very nice! Except you will need to design that one in CS2
    So then, all that Apple really needs to do is simply add the ability to select/create custom book sizes. Then we don't need a printing service from Apple, as there are plenty of options out there, and more arriving on the market each month!

Maybe you are looking for