Read 0PROD_HIER to fill field in DSO

Hi Everyone,
I have a requirement where I need to populate a field (ZATTRBE1) of a DSO with PRODH4 of 0PROD_HIER. 0PROD_HIER is not coming from the source as the source to the DSO is 0material_text.
I have to read the hierarchy. I am aware of an FM 'RSNDI_SHIE_STRUCTURE_GET' but dont know how to use this to populate the field.
Kindly provide any information that you may have regarding this. A code would be very very helpful.
Regards,
Kshama.

Hi Kshama,
check also the following links:
/people/sap.user72/blog/2006/07/11/tracing-data-transformation-in-sap-bw-without-debugging
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0038ad7-a0c7-2c10-cdbc-dd674682c8e7?quicklink=index&overridelayout=true
I suggest you not to change the code but try to use a user break-point. Thanks to debug you can check the data in your internal table.
Hope it helps.
Best regards.
Simone.

Similar Messages

  • Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?

    Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?
    The add annotations field shows as not allowed in the security options. So how do I send this form back with the changes??

    I think you you need to click 'save' first, then it is saved to acrobat, where it will prompt to send.

  • Reg Data fields in DSO

    Hello SAP Guru's!!!!
    I have some doubt on maximum number of data fields in DSO. I gone through so many threads on SCN, but could not clarify my doubt.
    The max no of key fields in DSO is -- 16
    Max no of data fields in DSO is --749.
    But i read in some of the scn documents  a table can have maximum 256 columns .
    DSO is also like a two dimensional table which can also have the same properties of a two dimensional table.
    if the above statement of mine is correct.. the number of columns in a DSO is 256 columns = 16(primary key)+240 (data fields--non key fields)
    but how come 749 data fields (max) will be there ? if it is so ... the max no of  fields will be  749+16 = 765.
    I need some clarification on this ....
    Awaiting for your responses!!!!
    regards,
    vamshi

    Hi Rajavamshi,
    For DSO:
    1. See for Standard DSO we have Key fields & Data Fields will be there
    2. Key Fields will store only Characterisitc Info Objects, maximum no.of characteristic info object we can add here was 16
    3. But in Data fields we can add both Characterstics & Keyfigure infoobjects, Max of 749 data fields we can add here.
    4. Atleast one field should be there in either Key fields & Data fields.
    For InfoCube :
    1. Info cube structure will be having the 16 Dimensions and the Key Fields.
    2. In that 16 Dimensions 13 User defined and the 3 pre defined dimensions.
    3. One user defined Dimension will maximum can hold 248 Characteristics Info Object, not the Keyfigure Info Object here.
    4. But the Key Fields here will store maximum will hold 233 Key Figure Info Object.
    Thanks..!!
    Regards,
    Harish. K

  • Adding fields into DSO in the Key Fields

    Hello Experts,
    I am using a Cube which loads data from DSO. Now, for some requirement I have to add one field into DSO in the key  fields Part. But DSO already has 16 fields which I cannot remove.
    So how can I add one more field into DSO in this case?
    The cube I am using is 0FIGL_C10 and the DSO is 0FIGL_O10.
    Regards,
    Nirav Shah

    You can create an Infoobject - acts as a custom key to concatenate multiple fields into one and make it a keyfield.
    15 fields + custom key ( concatenate 2 fields ) = 16 Keyfields
    Procedure  - > Example
    16th Key - > RVERS-Version-CHAR-3-0VERSION
    17th Key - > RMVCT-TransactnType- CHAR-3-0MOVE_TYPE
    1. Create one infoobject - ZKEY - Length = 6 ( add lenghts of the two objects)
    2. Make ZKEY as a keyfield for the DSO.
    3. Make 16th Key and 17th Key datafields.
    Create a routine for ZKEY in the transformation or transfer rules to concatenate values coming from source into one.
    TRFN Routine
    Concatenate SOURCE_FIELDS-RVERS SOURCE_FIELDS-RMVCT into RESULT.
    Or
    Transfer Rules Routine
    Concatenate COMM_STRUCTURE-RVERS COMM_STRUCTURE-RMVCT into RESULT.
    This way nodata will be lost/overwritten due to less number of keyfields in the DSO.
    We have as many as 21 Keyfields for GL Totals DSO.

  • Key fields of DSO

    Hi Experts,
    I have a issue with DSO.We extracted data from R/3 in to BI and send it in to DSO.We are getting data from R/3 to PSA with right records with init load.But from PSA to DSO,we are getting duplicate records for 2 invoices.We have 2 invoices say xxxx01 and xxxx02 have problems in DSO.
    XXXX01 has 3 items(10,20,30) created on April2008 with billing Doc type A
    XXXX02 has 2 Items(10,11) created on April2008 with billing Doc type B
    But in DSO we are getting extra Item record for each of document
    i.e XXXX 01 has 4items(10,20,30,10).3 items(10,20,30) created on April 2008 with billing Doc type A.One Item(10) created on June 2008 with billing Doc Type C(this is not in R/3 so This extra one).
    XXXX02 has 3 items(10,11,10) .First 2Items(10,20) are original ones created on April 2008 with Billing type B.One extra Item(10) created on June 2008 with Billing Doc Type C(this Item is not in R/3).
    We have key fields in DSO is Sales Document,Material,Billing Item,Fiscal variant.I din't add Document Type,Document Category,Calender day in Key Fields but they are in Data Fields.
    I am not sure how can I overcome this issue either adding Document type ,Calender day,Document Category in DSO or Put some fields in Semantic group.
    Please advise me and tell me some possible solutions.
    We ran setup tables with init and ran infoPackage and ran delta Infopackage too in Testing box.If I change the design in Dev box and Transport in to  the test box,Hope I need to fill the Setup tables again right.Please advise me.
    Thanks,
    Ran.

    Hi,
    Use this key fields and sure it will solve.
    Doc no.,Doc Item. for Orders
    Bill Item and Bill no. for Invoices
    Delivery No. and Delivery item no. for deliveries.
    Moreover check ur transformations once.
    Cheers,
    shana

  • Combining PDFs that have identical user-filled fields in them

    I already have a more specific question about this process posted elsewhere here, but I want to back-up a bit and ask this higher-level question.
    We have an annual event that requires us to create a number of different PDFs, by category, that have user-filled fields in them. Of course we create these forms and create the user fields. We then send these out, then get them back from multiple users who have completed them. We now want to combine all of these submitted PDFs into a single PDF or portfolio (whatever works!). From what I've read so far on this, the problem we have with combining all these into one document comes from the fact that all these completed forms come back to us, completed by their users -- but since many fields all have the same names (which we of course assigned originally) in the completed PDFs that come back to us, Acrobat seems to read all the fields that have the same field name and override all the entered data in those fields with the user-entered data in only one of them (I assume the first on it comes across). Is that correct? If so, what's a logical work-around for this? Sending out PDFs to each user that have field names that are unique to that user only? That seems kind of archaic, but maybe that's it... Although I'm also guessing that someone will suggest a javascript code to use in our files that may resolve this problem. I can copy and paste code, but I'[m no javascripter, so I'd need to know exactly how to do it... Any ideas? Thank you!   - Sean

    For Acrobat PDFs, you will need to flatten each form before concatenation. Merging multiple forms together is called concatenation. Warning: Flattening the form fields will make the PDF fields unreadable and unfillable; and it would be wise to save the merged or flattened document under a different file name. There are Visual Studio .net and JAVA developer libraries that can perform these tasks; but you will need programming experience or hire a developer.
    For more information visit:
    http://www.nk-inc.com/software/fdftoolkit.net/help/2.0/?topic=html/Overload_FDFApp_FDFDoc_ Class_PDFFlatten2Buf.htm
    http://www.nk-inc.com/software/fdftoolkit.net/help/2.0/?topic=html/Overload_FDFApp_FDFDoc_ Class_PDFConcatenateForms2File.htm
    Also, try searching Google for software that can "Concatenate PDF Forms to file":
    https://www.google.com/search?q=Concatenate+PDF+Forms+to+file

  • User exit to check the consistency of filled fields before saving

    Hi,
    I am looking for a User Exit which can be executed when a user click on "Save" button.
    In this User Exit, I would like to implement some controls to check the consistency of filled fields.
    I have an example to better understand : I work on transaction code ME11 and ME12 (create and modify Info Record). When all mandatory fields are filled, the user can save its. When the user click on "Save" button, I want that a checking (with a user exit, or anything else) verify the consistency of some fields (for example, the consistency between the Tax code of the country and the country of the supplier).
    If it's not clear, I could precise...
    Thanks in advance for you help...

    Hi,
    I am looking for a User Exit which can be executed when a user click on "Save" button.
    In this User Exit, I would like to implement some controls to check the consistency of filled fields.
    I have an example to better understand : I work on transaction code ME11 and ME12 (create and modify Info Record). When all mandatory fields are filled, the user can save its. When the user click on "Save" button, I want that a checking (with a user exit, or anything else) verify the consistency of some fields (for example, the consistency between the Tax code of the country and the country of the supplier).
    If it's not clear, I could precise...
    Thanks in advance for you help...

  • Possible to use JavaScript to Import Data from XML file to pre-fill fields?

    Hi,
    I have a dynamic fill-in PDF that I want to "pre-fill" internally in my company before sending out to users who will change any pre-filled fields necessary and answer questions we did not already answer.
    We do not have LiveCycle Reader Extensions, but we can use Acrobat to import data from an XML document to pre-fill the named fields.  Is it possibly to do this task using folder-level Javascript or some other method?  I can look into this, and post my findings, but I'd like to know if it's possible or if I need to use a different programming language.

    Hi,
    I am afraid that solution was for a specific client and I can't share it. If I get a chance I will mock up an example, but this wont be for a while. From memory it was just a straight importData method. This would normally fail silently in a non-certified form, but when the form is digitally signed/certified, it works without a hitch.
    Good luck,
    Niall

  • Adobe Reader 9 Editible Form Field Font Color

    I seem to be having a problem (or what I believe to be a problem) with Adobe Reader 9 when filling out PDF editible forms. On screen I enter data into the editible field and the font color is black but when I print the form, the editible field data prints in green. I don't remember this being the case with prior versions of Reader so I'm wondering if this is new and is there a way to return the text printed text color to the correct font color? Any help would be appreciated.

    George,
    Thanks for the reply. Although I have a third party PDF Editing tool I have tried this with other PDF editable forms and they all seem to be exhibiting the same behavior. For example I went out on the internet tonight and found a UCSB Order Form on http://www.grafikart.com/order/ucsb.htm. When I open this form and type in text the displayed text is always black but when I print the form the entered text is always dark green. Note that I contacted my third party PDF editor tool about the problem they suggested that I run the unedited form thru their software and set all existing fields to be editable and then re-save the form after insuring that the text color for the editable fields was black. I did all that and again, the color of displayed text is still dark green. Note that when I'm talking about the text being green I want you to understand that the form itself prints in black text however any text that I enter into the form always prints dark green.

  • Data fields in dso

    Hi
    If I need to calculate amount based on source and destination,and if these two source and destination fields char are there in data fields of dso and keyfigure amount is also in data fields of DSO can we get exact value if make report on this.
    thx
    rubane

    Actually i need to build report where in rows there will be some char
    like source plant and destination plant and in rows on the basis of source and destination the cummulated value of amount base on some other few restriction
    now my question is :-
    acc to my need I need to make genric extractor but one is already there which contains all my fields. now can i use the same extractor,but the worry is ;these all feilds are first going in dso and all are there in data fields coloumn
    What I'm thinking is; it will suppress or accumulte records on the basis of key field's(as usual).
    so can you pls let me know what to do in this scenario?
    how to build a new report using existing extractor ;can i use existing one?
    rubane

  • Data Fields & Key Fields IN DSO

    Hi Guys,
    Can any one tel me what exactly key field holds & Data field hold in DSO.
    Thanks,
    Venkatesh

    Hi,
    A DSO serves as a storage location for consolidated and cleansed transaction data or master data on a document (atomic) level. This data can be evaluated using a BEx query.
    A DSO contains
    Key fields (such as document number, document item) and data fields that, in addition to key figures, can also contain character fields (such as order status, customer). The data from a DataStore object can be updated with a delta update into InfoCubes (standard) and/or other DataStore objects or master data tables (attributes or texts) in the same system or across different systems.
    Key fields : It will contains both Chars and KeyFigures.
    Data Fields : Based on this i.e. the charecterisctics which you will keep in this Data Fields, the DSO will over write the Data in DSO.
    Overwriting functionality will works based on Data Fileds.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f9/45503c242b4a67e10000000a114084/content.htm
    Thanks
    Reddy

  • Miximum no of fields in DSO

    Hi All,
    Can you please provide me info:
    How many maximum KeyFields a DSO can have?
    How many maximum datafileds a DSO Can have?
    basically is there any restrictions on no of fields for DSO like Infocube?
    Your information is greatly appreciated.
    Regards,
    Ravi

    Hello,
    Yes its there..
    you can have maximum 16 keys for an oracle table therefore you can have only 16 keys for the DSO.
    Also depending upon the maximum size of the data blocks the maximum number of data fields is 749.
    check this thread.
    http://help.sap.com/saphelp_nw04/helpdata/en/4a/e71f39488fee0ce10000000a114084/content.htm
    Not sure if this has chnaged recently but should hold true.
    Thanks
    Ajeet

  • Best Practice to Atomic Read and Write a Field In Database

    I am from Java Desktop Application background. May I know what is the best practice in J2EE, to atomic read and write a field in database. Currently, here is what I did
    // In Servlet.
    synchronized(private_static_final_object)
        int counter = read_counter_from_database();
        counter++;
        write_counter_back_to_database(counter);
    }However, I suspect the above method will work all the time.
    As my observation is that, if I have several web request at the same time, I am executing code within single instance of servlet, using different thread. The above method shall work, as different thread web request, are all referring to same "private_static_final_object"
    However, my guess is "single instance of servlet" is not guarantee. As after some time span, the previous instance of servlet may destroy, with another new instance of servlet being created.
    I also came across [http://code.google.com/appengine/docs/java/datastore/transactions.html|http://code.google.com/appengine/docs/java/datastore/transactions.html] in JDO. I am not sure whether they are going to solve the problem.
    // In Servlet.
    Transaction tx = pm.currentTransaction();
    tx.begin();
        int counter = read_counter_from_database();  // Line 1
        counter++;                                                  // Line 2
        write_counter_back_to_database(counter);    // Line 3
    tx.commit();Is the code guarantee only when Thread A finish execute Line 1 till Line 3 atomically, only Thread B can continue to execute Line 1 till Line 3 atomically?
    As I do not wish the following situation happen.
    (1) Thread A read counter from Database as 0
    (2) Thread A increment counter to 1
    (3) Thread B read counter from Database as 0
    (4) Thread A write counter as 1 to database
    (5) Thread B increment counter to 1
    (6) Thread B write counter as 1 to database
    What I wish is
    (1) Thread A read counter from Database as 0
    (2) Thread A increment counter to 1
    (4) Thread A write counter as 1 to database
    (3) Thread B read counter from Database as 1
    (5) Thread B increment counter to 2
    (6) Thread B write counter as 2 to database
    Thanks you.
    Edited by: yccheok on Oct 27, 2009 8:39 PM

    This is my understanding of the issue (you should research it further on you own to get a better understanding):
    I suggest you use local variables (ie, defined within a function), and keep away from static variables. Those local variables are thread safe. If you call functions within functions, its still thread safe. If you read or write to one record in a database using sql, its thread safe (you dont need a transaction). If you read/write to multiple tables and/or records, you probably need a transaction. Servlets are thread safe. You usually dont need the 'synchronized' word anywhere unless you have a function updating/reading a static variable and therefore want to ensure only one user is accessing the static varible at a time. Also do so if you are writing to some resource (such as a file, a variable in applicaton scope, session scope, or resource that everyone uses such as email server). You dont want more than one person at a time to write to it). Note the database is one of of those resources that is handled by transactions rather than the the synchronized keyword (the synchronized keyword is applied to your application only (not other applications that someone is running), whereas the transaction ensures all applications are locked out while you update those records in the database).
    By the way, if you have a static variable, you should have one and only one function (synchronized) that updates it that everyone uses. If you have more than one synchronized function, that updates it, its probably not thread safe.
    An example of a static variable you would use is a Datasource object (to obtain your database connections). You only need one connection pool in your application and you access it via the datasource variable.
    If you're unsure your code is thread safe, you can create two seperate threads that call the same block of functions repeatedly to ensure it works as expected.

  • Dynamically making read only for a field in get_data(CL_EHHSS_INC_BINFA_UI_FRM)

    Hi Experts,
    I am making read only for a field based on condition in get_data method of class CL_EHHSS_INC_BINFA_UI_FRM.
    But it is not working. Pls find the code for the same.
    LOOP AT CT_FIELD_USAGE INTO lw_field WHERE NAME = 'OC_INC_TYPE'.
       lw_field-read_only = ABAP_TRUE.
       MODIFY ct_field_usage FROM lw_field TRANSPORTING read_only.
       ev_field_usage_changed = 'X'.
    ENDLOOP.
    Pls help me what is wrong in this coding.
    Regards,
    Reny Richard

    Hi Richard,
    Please check if   this loop is executing for the correct desired event(say on click or from the start ). & the field name specified is correct or not through debugging. And check by placing the parameter ev_field_usage_changed = 'X'. after the loop statement.
    Below is a sample code for making the field read only.
    field-SYMBOLS: <fs_field> like line of CT_FIELD_USAGE.
       loop at CT_FIELD_USAGE ASSIGNING <FS_FIELD>.
         case <FS_FIELD>-NAME.
         when 'OC_INC_TYPE'. " name of the field
             <FS_FIELD>-READ_ONLY = 'X'.                " ' ' for editable
         ENDCASE.
    CV_FIELD_USAGE_CHANGED = abap_true.
    Regards,
    Harsha

  • Read versions of comments field using javascript client object model

    Hi,
     Does someone knows how to Read versions  of comments field in 'tasks' list using javascript client object model?
    Thanks
    Manvir

    Hi,
    According to your description, I know you want to read versions of comments field.
    We can use the
    SPServices to achieve it. The below code for your reference:
    $().SPServices({
    operation: "GetVersionCollection",
    async: false,
    strlistID: "tester",
    strlistItemID: 1,
    strFieldName: "comments",
    completefunc: function (xData, Status) {
    $(xData.responseText).find("Version").each(function(i) {
    console.log("Name: " + $(this).attr("Information") + " Modified: " + $(this).attr("Modified"));
    More information:
    http://spservices.codeplex.com/releases/view/81401
    Best Regards,
    Dennis Guo

Maybe you are looking for