Writing a char reference in CMOD Enhancement?

Hi,
Can anyone tell me how to write the char reference of a praticular cube in CMOD enhcancement?
As because the char will be stored in dimesnions, we can only give table names,
is there any option?
Thanks in advance
Regards
ram

Hi A.H.P,
Thanks for responding me, i have given complete details n posted again.you may look into the first page of this category n revert me.
Thanks in advance,if u want me to still generalise it, iam ready for that.
Thank you
Ram

Similar Messages

  • PMS: Creation of new tabs for reference elements of ENHANCE BADis

    Dear Experts,
    I am on a PMS EHP5 implementation (for all practical purposes, it's an EHP4 implementation as we are not using the pre-defined template) and have the below problem.
    I have the ENHANCE_FIX and ENHANCE_FREE BADIs included at the VA level (as the requirement is to create immediate child objects for the template through these BADIs). I have a reference element (VB) defined for these BADIs.
    Example template (L1 = Level 1, L2 = Level 2, L3 = Level 3):
    L1 - VA
    ---- L2 - VB1
    --------- L3 VC1
    --------- L3 VC2
    ---- L2 - VB2
    ---- L2 - VB3
    In the above example template, the ENHANCE* BADIs will add VBs (example: VB4 and VB5) at the L2 level (appearing in the document below VB2 and VB3).
    The requirement is to have separate tabs for each VB at the L2 level (so I will have one tab for VA and 5 tabs for VB from the above example).
    I am unable to specify creation of new tabs for the reference element VB when I carry out my tabs and process configuration.
    I have not been able to find any information on this aspect either. Would appreciate any help that can come my way.
    Thanks.

    Thanks Maurice.
    I still feel that the product should leave that option to the designer of the solution. There are a lot of solutions which can get chaotic. If designed appropriately, I guess this chaos can be controlled.
    At the very least, I am sure that I have not left anything out in configuration. I will raise this with SAP over a CSS.
    Thank you for your input.

  • CMOD Enhancements

    Hi please confirm that you want to convey that i can write the actual code in CMOD exit_rsap_saplr_001 for transactional data?? if i put 20 data sources enhancement code in there is'nt that too bulky and will cause the failing all extractor if one code is wrong if you still suggest that i can go ahead with 20 similar codes as below . please see my code below which i have used for all 20 datasources with little modification
    if you can recommend some changes in code to improve performance would be great
    case i_datasource.
    WHEN '0CUSTOMER_ATTR'.
    loop at i_t_data into l_s_BIW_KNA1_S.
    l_tabix = sy-tabix.
    clear i_knvp.
    select single * from KNVP into i_knvp where KUNNR = l_s_BIW_KNA1_S-KUNNR.
    if sy-subrc = 0.
    l_s_BIW_KNA1_S-ZZPARFN = i_knvp-PARVW.
    l_s_BIW_KNA1_S-ZZCUSNOBP = i_knvp-KUNN2.
    modify i_t_data from l_s_BIW_KNA1_S index l_tabix.
    endif.
    endloop.
    endcase.
    Thanks
    Poonam

    Hi,
    As a performace improvement , you better to store all the required records from KNVP table into internal table as shown below.
    and one more thing , there are different includes( and FM ) for MAster data and Transaction data enhancements respectively.
    TYPES BEGIN OF TYPE_BIW_KNA1_S.
    INCLUDE STRUCTURE BIW_KNA1_S.
    TYPES END OF TYPE_BIW_KNA1_S.
    TYPES BEGIN OF TYPE_KNVP.
    TYPE: KUNNR LIKE KNVP-KUNNR,
    PARVW LIKE KNVP-PARVW,
    KUNN2 LIKE KNVP-KUNN2.
    TYPES END OF TYPE_KNVP.
    WHEN '0CUSTOMER_ATTR'.
    DATA:
    ITAB_BIW_KNA1_S TYPE STANDARD TABLE OF TYPE_BIW_KNA1_S
    WITH HEADER LINE
    WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    DATA:
    ITAB_KNVP TYPE STANDARD TABLE OF TYPE_KNVP
    WITH HEADER LINE
    WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    ITAB_BIW_KNA1_S[] = I_T_DATA[].
    SELECT KUNNR PARVW KUNN2 FROM KNVP INTO CORRESPONDING FIELDS OF TABLE ITAB_KNVP FOR ALL ENTRIES IN ITAB_BIW_KNA1_S
    WHERE KUNNR = ITAB_BIW_KNA1_S-KUNNR.
    LOOP AT ITAB_BIW_KNA1_S.
    READ TABLE ITAB_KNVP WITH KEY KUNNR = ITAB_BIW_KNA1_S-KUNNR.
    IF SY-SUBRC EQ 0.
    ITAB_BIW_KNA1_S-ZZPARFN = ITAB_KNVP-PARVW.
    ITAB_BIW_KNA1_S-ZZCUSNOBP = ITAB_KNVP-KUNN2.
    MODIFY ITAB_BIW_KNA1_S.
    ENDIF.
    CLEAR ITAB_BIW_KNA1_S.
    ENDLOOP.
    I_T_DATA[] = ITAB_BIW_KNA1_S[].
    With rgds,
    Anil Kumar Sharma .P

  • LSMW Direct Input Inspection Plan Not Writing Inspection Char File

    Hello Experts,
       I am using Direct Input Program RCPTRA01 to Load Inspection Plan.
    Created 3 structures - Inpection Plan/Operations/Inspection Characteristics one below the other in that order.
    We have a internal numbering system for assigning Group to Inspection Plan.
    I defined GROUPID column in Maintain Source Fields Inspection Plan/Operations/Inspections characteristics structures and set "Identifying Field Content" as 1.
    When i read data - program is reading inspection plan and operations. But it is not writing Inspection Plan file.
    What am i missing. Spent quite a bit of time trying to figure out what i am missing.
    Any help is appreciated.
    Thanks in advance
    Thanks

    Hi,
    I have exactly followed the same thread.
    1. I have actually maintained 3 files, but when reading it takes only the header file.
    2. When Creating input session I an getting a error,
    No profile with entry tool for task list /  3 in session INSPLAN
    Regards
    Subbu.

  • Active CMOD enhancement components

    Hi Experts..
    How are you.. I hope you all are doing fine..
    I want to create one repo q

    Hi..
    thanks for your reply...
    But it will show status of project.. I want the status of Exit FM...
    Example.. In CMOD transaction i click on Componet.. so it will show me the EXIT FM.. in that screen there is a one right sign with green colour.. so i need that EXIT FM.. and there status..
    i need to make a list of such FM...
    Thanks In Advance.....

  • WriteUTF writing strange chars at the beginning?

    I have the following class, which requires a Filename and a String:
    class Log {
         public void appendLog(String Filename, String appendText) throws IOException {
              FileOutputStream outFile = new FileOutputStream(Filename, true);
              DataOutputStream outData = new DataOutputStream(outFile);
              outData.writeUTF(appendText);
              outData.close();
    But the output always begins with this:
    �AR

    I have the following class, which requires a Filename
    and a String:
    class Log {
    public void appendLog(String Filename, String
    appendText) throws IOException {
    FileOutputStream outFile = new
    w FileOutputStream(Filename, true);
    DataOutputStream outData = new
    w DataOutputStream(outFile);
              outData.writeUTF(appendText);
              outData.close();
    But the output always begins with this:
    �AR Try this...
    class Log {
            public void appendLog(String Filename, String  appendText) throws IOException {
                   PrintWriter out= new PrintWriter(new BufferedWriter(new FileWriter(Filename,true)));
                   out.write(appendText);
                   out.close();
    Hope it helped...
    appu

  • Enhance LO communication structure.

    Hello experts,
    I need to enhance LO DataSource 2LIS_11_VAHDR. My requirement is, if my sales order contains  hazard goods indicator(CONT_DG) then I need to fill two more fields which are added by enhanceing the extract structure / communication structure.  Here my question is, if I add fields to communication structure (ex: MCVBAK), Can I use RSAP0001 to populate data for enhanced fields. Please advise.
    Thanks in advance,
    Zakir.

    Hi
    If you are enhancing the communication structure in the BI side then there no code required to wite.
    but you can populate the field by using startroutine ( by writing a logic)
    If you are enhancing in the R/3 or ECC side
    Detail steps to Enhance the extractor (follow this it will help you)
    1)Go to RSA6 and find the data source you need to enhance.--> Display
    2)Double click on the Extract structure.
    3)Now click on the append structure button to add the required field on to the existing structure.
    4) add your required fields with ZZ appended to your field.
    5) Save & Activate the append structure. Then go back and make sure you activate the extract structure also.
    6) Now again go back to RSA6 and select your Data Source. But this time go to change Data Source to remove the hide option to the enhanced fields. By default they ll be in hide mode. If you dont remove the hide field then this field will not be seen in BW side.
    7) Now go to SE38 to write the logic to populate the data into the enhanced field. Program name to write the logic is ZXRSAU01.
    8) Check + Save + Activate.
    9) Check in RSA3 if data is populated as per your requirement.
    10) Replicate your Data Source.
    11) Now go to Data Source/ Trans. Structure screen. Now you can see the enhanced field on the right hand side.Enhancements:
    Go to CMOD.
    1. To Save give Description , create,create new project and give the project name
    2. Select the radio button Enhancement Assignment and give the Enhancement name you want and press Enter.
    3. If the Enhancement is already assigned to some other project it will display the same message saying it is already assigned it some other project. Click on
    4. If the Enhancement is not assigned to any project save.
    5. Give RSAP0001 
    6. Activate the Project.
    Santosh
    Edited by: Santhosh Nagaraj on Jul 26, 2010 12:42 PM

  • Enhancement to add userdefined  fields for standard definition in  cj20n

    Hi all
    sub:enhancement to add userdefined  fields in a user defined screen tab for standard definition in t-code cj20n
    can anyone provide an idea how to write the logic for retriving the data from the standard table into the user defined screen added into the project definition using the t-code cj20n( project system module)
    thanks
    sirisha

    I think you may need to implement enhancement 'CNEX0007'
    CMOD==> Enhancement==> Componet==> Get the Screen area.
    Go to SE41 ==> Give the Screen program and number==> add your WBS tab there. The values will be available to screen
    Hope this is helpful for your answer.
    Cheers,
    TM.

  • MODX_FUNCTION_ACTIVE_CHECK always called before SMOD / CMOD exit?

    Hello,
    am I right to assume that the function module MODX_FUNCTION_ACTIVE_CHECK is always called before a SMOD / CMOD customer exit function module is called?
    I have already searched SDN and SAP Notes and SAP Help, but I could not find a clear statement.
    Kind regards
    Martin
    Edited by: Martin Schlegel on Feb 4, 2008 4:28 PM

    Hello Mike, thank you for your fast answer.
    Like you, I have the impression that this function should be called alle the time before an SMOD/CMOD enhancement EXIT_... Function is called.
    But I would like to be 100% sure.
    Kind regards
    Martin

  • Transactional datasource enhancement

    Need documentation for transactional datasource enhancement
    Please search SDN
    Edited by: Pravender on May 25, 2010 12:28 PM

    hi,
    chk the links
    Master data enhancement
    CMOD Enhancements
    Enhancing master data extractor
    Lo Enhancement- Transactional data
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46
    Ramesh

  • Enhancing CO-PA DataSources

    hi guys,
    i created a COPA datasource and i want to enhance it with 2 more fields.
    In RSA6 i can enhance the extract structure with the new fields, but i'm not able to find the right Enhancement to put under cmod.
    Is it possible to do it?
    Doing it can i have problem during delta extraction?????
    Regards
    Piero

    Hi,
    if you want to populate the additional fields of you COPA extractor you have to use the cmod enhancement for transaction data EXIT_SAPLRSAP_001. This one is for all transaction data extractors and within the coding you have to separate the coding by asking the datasource name, i.e. with a case-statement.
    If you have never used the extraction enhancements in cmod you first have to activate them.
    This enhancement has no impact on the delta mechanism.
    Regards
    Adios

  • Virtual Char/KF Question

    Dear Experts,
       I have the following requirement:
    In my cube I have the following Chars:
    Reference #
    Clearing Date
    Net Date
    Date1
    Date2 => Virtual Charc
    I have a query with input variable as Key Date based on Infoobject Date2 in the cube. I want to restrict a Key Figure based on value of Date2.
    In my query I want to accept user input via Key Date. Then,
    If Reference# <> blank and (Clearing Date = Blank OR Clearing date GT Key Date)
      I want to assign Net Date to Date2
    else
        I want to assign value in Date1 to Date2
    I would really appreciate if someone could point me how to do it.
    I know the characteristics and Key Figures can be accessed in Virtual Char/KF implementation but my question is how can I access the value of Key Date which is a user input value in Virtual Char/KF implementation?
    Thanks.
    Regards,
    bw_newbie

    Try this document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e473ab90-0201-0010-22ac-fdd925cac167
    It isn't exactly what you are doing, but it should be close enough to get you where you want to go...
    Brian

  • Enhanced Experience 2.0

    I've seen several references to the "Enhanced Experience 2.0" speed up, but how is it enabled? Is there a regular analysis of the boot drive and drivers? I can't seem to find any controls on my W520 for this. What am I missing?
    W520, i7-2820QM, BIOS 1.42, 1920x1080 FHD, 32 GB RAM, 2000M NVIDIA GPU, Samsung 850 Pro 1TB SSD, Crucial M550 mSata 512GB, WD 2TB USB 3.0, eSata Plextor PX-LB950UE BluRay
    W520, i7-2760QM, BIOS 1.42 1920x1080 FHD, 32 GB RAM, 1000M NVIDIA GPU, Crucial M500 480GB mSata SSD, Hitachi 500GB HDD, WD 2TB USB 3.0

    OK, does it optimize the system periodically?
    W520, i7-2820QM, BIOS 1.42, 1920x1080 FHD, 32 GB RAM, 2000M NVIDIA GPU, Samsung 850 Pro 1TB SSD, Crucial M550 mSata 512GB, WD 2TB USB 3.0, eSata Plextor PX-LB950UE BluRay
    W520, i7-2760QM, BIOS 1.42 1920x1080 FHD, 32 GB RAM, 1000M NVIDIA GPU, Crucial M500 480GB mSata SSD, Hitachi 500GB HDD, WD 2TB USB 3.0

  • User-defined tagged structures in Documents

    Hi, here's my situation. I'm trying to build an interface for users to create, edit, and view information that is marked up with two types of tags. The first type is structural and function pretty much identically to XML tags. Not a problem, really, if that's all I wanted. However, the second type of tags are structure-independent (i.e. can start and end anywhere) and thus don't work as part of an XML document.
    Here's an example:
    <Start>
    Starting here...
    <1>Hey, this is <A id = "blue">pretty </1>
    <2>cool</A id = "blue"></2>
    </Start>
    the "Start" and "1" tags are the structure tags and the "A" is what I call a floating tag. My plan is to have the user perform various operations on both sets of tags, such as adding of deleting them, moving the start or end, swapping between various stored content, etc.
    Anyway, I've been banging my head against the wall trying to integrate this with the StyledDocument interface, hopefully by slightly extended the DefaultStyledDocument class. I oculd run the whole thing with Positions and insertString() and delete()'s, but I feel as if there should be something that I can hook in with that let's me do this.
    I've been hoping that the Element interface would be my savior here, but that seems to be getting further and further from happening the more I screw around with it.
    Anyway, if you've gotten this far, thanks for your time and interest. Here are my questions:
    1) Is there any way to implement the Element interface and then insert my classes into a DefaultStyledDocument?
    2) Is there anyway of using the createBranchElement and createLeafElement from AbstractDocument to insert Elements into an already filled Document?
    3) When using the ElementSpec methods of inserting Elements, is there any way of getting the created Elements a la the createXXXElement methods from AbstractElement?
    4) After I get an Element in a Document, is there any simple way of getting it a reference to it based on position in the Document? Also, is there a programmatic way of removing it from the Document?
    5) Am I totally on the wrong track here? Is there some really easy way of pulling this off that I'm just overlooking?
    Again, thanks for your time,
    Steve Erdman

    Hi Jack,
    Here they hav explained clearly pls go through the link below USER DEFINED INCLUDE STRUCTURES
    http://www.michaelmanagement.com/forum/uploads/20070621_164819_OSS_335065_-_Us.pdf
    Datasourceenhancement
    Below are the steps to enhace a data source.
    log on to r/3
    1..R/3sys, enter RSA7, SELECT UR DS(0FI_GL_4), SELECT DISPLAY ENTRIES,
    2.Select Delta Update and Execute.
    3.now u can see the records if at all they r available.
    4.Now Check The Data in u2018smq1u2019 in R/3 and Execute.
    5.Select ur Data source now.
    6.Display Entries.
    if at all any entries are there it display in the form of queues
    if u find any where data , it must be scheduled to ur data target using Info packages.
    Now let us see How to Enhance the Data source.
    7.R/3, Enter RSA6., select ur Data source, then Click on enhance extract structure.
    8. Now it populates a structure name. Like this u201CZADTFIGL_4u201D. Go with continue
    9.Give the Description.
    10. Under Component Give the Description of the fields u want to add Starting with ZZ
    11. Under component type give the concerned Technical names OF RELEVANT FIELDS in r/3. AND u201CENTERu201D
    12. SAVE
    13.Give The Package go with save, request no go with continue.(or create a new request)
    14. Now check and activate.
    15. go back from current screen select ds and go with change. Message continue, Request no continue
    16.now find ur newly added fields in ds, deselect hide flag and field only flag(check box)
    17. So far u have added field to ur DS, now u need to populate Data to UR Newly Added fields by writing user exit.
    Enter CMOD in R/3, give the project name , go with Create.
    18. Give the Description and Save
    log on to bw , rsa1-source systems, find ur ds replicate ds
    Now Devolope Required fields in Bw
    Add to ur communication structure,
    apply the Transfer rules ,
    Add to ur Target
    Recreate Update rules.
    Schedule the data..
    Regards,
    Marasa.

  • File I/O and encoding (J2SDK 1.4.2 on Windows)

    I encountered a strange behavior using the FileReader / Writer classes for serializing the contents of a java string. What I did was basically this:
    String string = "some text";
    FileWriter out = new FileWriter(new File("C:/foo.txt"));
    out.write(string);
    out.flush();
    out.close();In a different method, I read the contents of the file back:
    FileReader in = new FileReader(new File("C:/foo.txt"));
    StringWriter out = new StringWriter();
    char[] buf = new char[128];
    for (int len=in.read(buf); len>0; len=in.read(buf)) {
        out.write(buf, 0, buf.length);
    out.flush(); out.close(); in.close();
    return out.toString();Problems arise as soon as the string contains non ascii characters. After writing and reading, the value of the string differs from the original. It seems that different character encodings are used when reading and writing, although the doc states that, if no explicit encoding is specified, the platform's default encoding (in my case CP1252) will be used.
    If I use streams directly instead of writers, it does not work, either, as long as I do not specify the encoding when converting bytes to strings and vice versa.
    When I specify the encoding (no matter which one, as long as I specify the same for reading as for writing), the resulting string is equal to the original one.
    If I replace the FileReader and Writer by StringReader and StringWriter (bypassing the serialization), it works, too (without specifying the encoding).
    Is this a bug in the file i/o classes or did I miss something?
    Thanks for your help
    Ralph

    first.... if you are writing String objects via serialization, encoding doesn't matter whatsoever. Not sure you were saying you tried that, but just for future reference.
    For String.getBytes() and String(byte[]) or InputStreamReader and OutputStreamWriter: If you don't specify an encoding, the system default (or default specified on the command-line or set in some other way) will be used in all cases.
    For byte streams: If you are reading/writing bytes thru streams, then the character conversion is up to you. You call getBytes on a string or create a string with the byte[] constructor.
    For readers/writers: If you are reading/writing characters thru readers/writers, then the character conversion is done by that class.
    However, StringReader and StringWriter are just writing to/from String objects and they are writing Unicode char's, so it's really a special case.
    Okay...
    So if you have a string which has characters outside the range of the encoding being used (default or explicitly specified), then when it's written to the file, those characters are messed up. So say you have a Chinese character which needs 2 bytes. Generally, the 2 bytes are written, but when read back, that one character shows as 2. Whether 2 bytes are written or 1, probably depends on the encoding. But the result is the same, you get a munged up string.
    Generally speaking, you are going to get better storage on most text when using UTF-8 as your encoding. You need to specify it always for reads and writes, or set it as the default. The reason is that chars are written in as many bytes as needed. And it'll support anything Unicode supports, thus anything String supports.

Maybe you are looking for

  • Can't sign document

    Provider type does not match registered value error 2148073499

  • Can't open NeoOffice, need java update, do update, can't open, same reason

    Try to open NeoOffice. Told I need java update download latest update try to open again get same message that I need update.

  • RH_STRUC_GET (HR ABAP)

    Hi All, I am using the fuinction module RH_STRUC_GET in a custom function module. When i enter an object id which does not exist it should raise an exception. But when i execute the FM it does not raise the exception , but gives an error 'Structure 0

  • Oracle Auditing Whenever not successful

    Hi, I have few doubts on auditing failed insert statements on my DB. Below are my parameter settings: SQL> show parameter audit NAME TYPE VALUE audit_file_dest string /opt/oracle/product/11gR1/db/r dbms/audit audit_sys_operations boolean FALSE audit_

  • Face intermittent ping failure

    Hi Guys, i face intermittent ping failure to a server which is monitor using IP Sentry. But when i do a sh logging buffer on my 6509 switch, i nvr see the port which is connected to the server "leaves". Does that means that the physical connectivity