Coding extra fields in infosets

Hi group,
We have coded several extra fields in our infoset.  This works fine for the most part when users query on a reference date. The challenge is when they query a period. I have yet not found a way to write my code so it outputs the correct values for the records that exsist in the period of the query. 
I have tried different date-handling in my where-clause, but they all seem to give some unexpected surprises.
So I am looking for best practice here - preferrably with examples.
Do you guys know of any documentation on how to write code to handle record splits like this?
I have searched documentation, forums and blogs without finding a good answer.
Best regards
Kirsten

Hello Ricky Sh ,
                          The reason for those additional fields is in the SE11 is by defalut after you go inside the SE11 and enter the table name and go inside by pressing "F7" . There if you see the menu Go-> Text table  there the link is assigned internally. That is the reason you are able to see the texts in the SE11 result screen.
To create a tabel with text table field shown up you need to create a table as mentioned below:-
Procedure
To use the functions offered by a text table, create a table(ZCustom Text Table) in the ABAP Dictionary with the same key as table <ZCustom Table> and an extra field with type SPRAS. Define the text fields as non-key fields in this table. Then define a text foreign key from this text table to table <ZCustom Table>.
Hope this answers your questions.
Thanks,
Greetson.

Similar Messages

  • Adding Extra Field in INFOSET

    Hi,
    I am working on infoset which is reteriving the data through Logical Database and trying to add the field for the field description.
    It has to display the data through data element but it is not doing so .
    Actually, i had created a query which shows the data about the changes made in the Material.I am able to display all the data but not the text that shows the description of what has been made .
    Here's the code:-
    TABLES: CDPOS.
    DATA: E_DD04V LIKE DD04V OCCURS 0 WITH HEADER LINE.
    DATA: E_DD03L LIKE DD03L OCCURS 0 WITH HEADER LINE.
    DATA: P_DDTEXT LIKE DD04V-DDTEXT.
    IF CDPOS-FNAME <> 'KEY'.
        CALL FUNCTION 'GET_FIELDNAME_TEXT_1'
          EXPORTING
           I_AS4LOCAL                = 'A'
           I_AS4VERS                 = '0000'
           I_FIELDNAME               = CDPOS-FNAME
           I_TABNAME                 = CDPOS-TABNAME
          TABLES
           E_DD03L                   = E_DD03L
           E_DD04V                   = E_DD04V
         EXCEPTIONS
         ERROR_IN_PARAMETERS       = 1
         NOT_FOUND                 = 2
         OTHERS                    = 3
      ENDIF.
      IF SY-SUBRC <> 0.
         CLEAR E_DD04V-DDTEXT.
    *      ELSE.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      IF CDPOS-FNAME = 'KEY'.
        P_DDTEXT = 'New Entry Made'.
      ELSE.
        P_DDTEXT = E_DD04V-DDTEXT.
      ENDIF.
    Please provide me guidelines to solve this problem.
    Edited by: ricx .s on Jul 15, 2009 11:37 AM

    Hi,
    Currently i am doing the following:-
    I had created a Logical Data Base where i had made the logic for the Changes Made To Material. I am fetching the data from the following tables:-
    MARA,MAKT,CDHDR AND CDPOS.
    As i am checking the LDB it is working fine as i had verified the data and i follow the whole procdeure to make Query and then generated it,it is working fine. But when i try to add the extra field (which shows the description what change has been made,it give errors for it).
    Please provide me guidelines to solve this problem.

  • Adding extra Field to a Infoset Query

    Hi Experts,
      I need to add an extra field to a SAP Query(infoset). SInce the code uses a dynamic program call, how do I add my code . Can I have some example code used to add extra field to a SAP Query

    Hi Mithun and gurus,
    My code is working now for these 3 new additional fields. The thing is it works if these fields were selected solo. but if all of these 3 or 2 of it simultaneously, an error occurs.
    Error when generating the report (see long text)
    Message no. AQ_AD_HOC221
    Diagnosis
    The report cannot be generated because the internal description is invalid or incomplete, or because the selection screen is too large.
    Regenerate the assigned InfoSet, and read the log. If the InfoSet is OK, make sure that at least one field is given as output.
    If you used the 'Refresh' icon to start the query, use the 'Output' menu option to execute the query. This gives you a full screen display of the data.
    If an output was generated, the query cannot work with actual data in the construction view. In this case, always use the 'Output' function to execute the query.
    Procedure
    If the selection screen is too large, you need to reduce the number of your selections.
    Make sure that the assigned InfoSet is correct. The name of the assigned InfoSet is stored in the menu option 'Extras -> Template Information'.
    Output at least one field. Otherwise you will not be able to save or generate reports.
    If you do not have this problem, execute the query using the 'Output' function.
    Otherwise, there is an error in the InfoSet Query.
    >>>I checked and the code seems fine at least. I think there must be something I need to configure. I tried the SEQUENCE for Codes but nothing happens..
    I hope you could helop me with these..Thanks a lot!!!

  • Infoset extractor with an extra field

    Hi
    I've created an extractor with an extra field - it concatenates date and time to get a timestamp. When I use this infoset in my generic datasource, the extra field is not displaying. It's just displaying the table that the infoset is based on.
    Any help with this will be appreciated.

    wxs,
    if you are just concatenating- why not do it on the BW side by way of transfer / start routines instead of customizing your extractor...?
    Arun
    Hope it helps...

  • Abap query: Create selections for extras field

    Hi,
    I have a custom query and Infosets where I have defined customer fields in Extras tab (infosets).
    Now I want create (into Infosets) a selections field (select-options) to filter the extras field created but I receive message AQ120 that say I can't do that !
    You know some trick to do this ?
    (I don't have any database table to join with selections)
    Thanks,
    Daniels

    Hi
    U can use the extrafield in the selection-screen of the query, why do u need to create a SELECT-OPTION in the infoset?
    Max

  • FB60 additional coding block fields

    Hi experts,
    In the SAP system of our client IS-Media solution has been implemented which has some extra coding block(ZZ-fields) fields that need to be posted to by FB60. However the transcation FB60 does not show these fields.
    The underlying table structure ACGL_ITEM for the table control to enter the GL account line items has these fields available but they are not visible in the transaction.
    How can we get the extra fields to be available in the transaction? Is it done through some configuration?
    Thanks and Regards,
    Prem

    hi prem ,
    go to  fb60  and   on line  item  screen  click on   configuration on the right hand side , pop up will appear , click on  administrator  and  check  all the fields are present  in this and  also check whether they are invisible  or not  .
    regards
    ranjan

  • Insert extra field in ALV report

    Hi All,
    I’ve requirement like … need to add Vendor’s ‘Country Code’ very next to ‘Tax code’ field in standard SAP standard ALV report S_ALR_87012357 .
    I’ve copied program (RFUMSV00) into z-program.
    But I’m not getting any idea how can I add extra field in field catalogue and corresponding value in internal table.
    Any ideas please…..
    Full points will be rewarded for useful answers…

    I didn´t understand the question very well, but if i am in certain, you will have to modify the internal table to add the field. If the table which shows the alv is like a data base type, you will have to modify this in this way:
    data: begin of gt_table occurs 0,
         include structure ,
         new_field type XXXX.
    data: end of gt_table.
    Then, you will have to add this new field to the field catalogue, in this form:
    ls_catalogue-fialdname = 'NEW_FIELD'.
    ls_catalogue-tabname  = 'GT_TABLE'.
    etc...
    Luck in your requeriment.
    ls_catalogue-tabname  = 'GT_TABLE'.
    etc...
    Luck in your travel.

  • Additional field for Infoset in BI 7.0

    Hi
    I have created an Infoset with a cube and a masterdata object. Now my requirement is to have an additional field which i can not extend to cube or masterdata.
    Is it possible by any chance to add an additionla field to Infoset and write an abap code ?

    Any suggestions ?

  • Add extra field in alv

    Hi experts,
    i want to add extra field in alv that is totalprice
    the total price = qunatity * price
    already quantity and price from data base tables
    but the field total price is not from any table..
    thanks advans

    Hi,
    Quantity and Price both are ddic fields.
    Define the TOTAL PRICE of the type Price in the final internal table(table to b displayed).
    before passing the data / in looping define the logic...
    LOOP AT T_SOURCE.
    T_FINAL-PRICE = T_SOURCE-PRICE.
    T_FINAL-TOL_PRICE = T_FINAL-QTY x T_FINAL-PRICE
    ENDLOOP.
    Now all the required values are in the final table.
    Reward if helpful.
    Thanks.

  • How  to add an extra field in the output of a predefined report

    Hi everybody,
    I have to add an extra  field  by name  "DAYS"(VTBFHAPO-ATAGE) in the output of a predefined report" RFTMBL01".
    please provide me the code and where to add in the predefined report

    Hi  Pasquale Isolato
    the predefined alv report name is "RFTMBL01" . If u r  with system  please check the code and the field name i have to add ids"DAYS'.
      if u are not with  system please reply me so that i will sen the code also
    Thanks in advance

  • Creation of extra field in customer master.

    Hi All,
    I have a requirement where i need to create one extra field.
    We intend to capture taluka for each distributor. This will give us micro level detail. We can start analyzing sale at taluka level.Therefore we believe this additional field will be important.
    Kindly provide your valuable solutions to achieve this.Thanks in advance.
    Thanks,
    Pavan.

    Hi Pavan,
    Rather adding an Extra Field(if your requirement "Taluka" is only for information or statical purpose) you can go with charecterstics and classification.
    In my Client Business, the requirement was to add the " Sales Group's" mobile number and Email id in customer master, so that they can a have report where they easily findout the phone number and mail id for the each sales group. so i have acheived this through Charecterstics.
    Screenshot for your Reference:
    This would be also an option.
    Regards
    Kamal

  • How to have extra Field attributes as per BP Role?

    Hi all, using path Cross-application components->Business Partner-> Field Groupings -> Configure field Attributes per BP role,  we come across Data Sets for each BP role where we can specify if fields can be hidden, required or optional. What if i want to add more data sets, i am not able to add it here. For the same, i need to use tcode BUSD and then assign a new Data Sets to BP Views (of same BP role). But i am not able to see any effect of the same. Can someone advise what I am missing out on. For e.g. if i want to use Data Set "tax numbers" and assign it to the BP View "xxx", which in turn is assigned to BP role "xxx", I am not able to see the extra fields for Data Set "tax numbers". Is there way i can find out what all fields are there in a particular Data Set?

    Hi Bappaditya,
    You will not be able to add new fields via the IMG path Cross-Application Components->SAP Business Partner->Business Partner->Basic Settings->Field Groupings->Configure Field Attributes per BP Role. This is used only to control the various visibility options of the fields associated with the datasets that are attached to your BP view.
    Now, if you want to add new custom fields to your BP role,
    1. Create a new BDT application that uniquely recognizes your scenario (Tcode -> BUS1)
    2. Create a new Dataset (Tcode -> BUS23)
    3. Create a new field group (Tcode ->BUS2)
        a. Here, associate different fields from data dictionary to the new field group
    4. Create a new View (Tcode->BUS3)
        a. Assign, your BDT application
        b. Assign your data set
        c. Enter the screen painter program name and screen number
        d. Enter function modules that may be required to validate screen input
        e. Assign your field group
    5. Create a new Section (Tcode-> BUS4)
        a. Assign yoru view to Section
    6. Create a new Screen (Tcode-> BUS5)
        a. Set Screen type (Data screen, Initial screen - Dialog, modal dialog box etc.)
        b. Assign your section to your screen
    7. Create a new Screen Sequence (Tcode->BUS6)
        a. Assign your screen
        b. Assign screen sequence category
    8. Create Divisibility View (Tcode->BUSD)
        a. Assign your data set
        b. Assign Calling BDT application
        c. Assign screen sequence
    9. Define new BP role using IMG Path Cross-Application Components->SAP  Business Partner->Business Partner->Basic Settings->Business Partner Roles->Define BP Roles
       a. Here, create new BP role category
       b. Assign your view
    You can then control the visibility of your fields by using the option 'Configure field Attributes per BP role' as you mentioned.
    Hope this helps.
    Regards,
    Pavithra
    **PS : Please reward points if this helps.

  • Query : Addition of extra fields in the User Registration page of portal.

    Hi All,
    I have a query, about adding extra fields in the new user registration page of portal.
    If you can suggest the required source files in details,inorder to incorporate two more fields.
    Say, AGE and COMPANY,with the existing fields in the same page.
    Along with this,can you please send the details of retrieving those information from backend and the backend functionalities associated with the SUBMIT button on the registration page.
    Regards,
    Sudeep

    Hi,
    Your query is divided into two parts.
    The first part is adding new fields into existing form. This feature comes under Branding of portal. Plz use the link below understanding the same and related help :
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/affe402a5ff223e10000000a155106/frameset.htm
    The second part is retrieving the values from backend.Here it will be the UME database. You need to develop a logon.par file and replace the same in your portal.
    Happy Customizing.
    Sukanta Rudra

  • Form Wizard, Excel Sourced Documents, Dozens of Extra Fields

    I have a series of PDF documents which I generate on a weekly basis from MS Excel reports.
    It looks something like this:
    Description
    Jan Sales
    Feb Sales
    Mar Sales
    Apr Sales
    May Sales
    Order 1
    Order 2
    Order 3
    Order 4
    Vendor 1
    Widget 1
    2
    5
    5
    4
    Widget 2
    4
    7
    2
    8
    7
    Vendor 2
    Widget A
    2
    9
    3
    8
    2
    When I run this through Form Wizard, I get a form field in every blank cell.  I'd really like form fields limited to the Order 1 column.  Is there anything I can do to trick the Form Wizard to limit its attention to this area?  Perhaps by modifying the underlying Excel form before printing to Acrobat?
    Edit:
    Maybe I should mention that it's the fact that I have 200 pages/week that motivates me to look for a reduction in the Form Wizard initial field generation.  It takes me a little over 2 minutes a page to delete out the 100+ extra fields per page.  Eliminating the better part of a day's repetitive labor is kind of a big deal.
    Message was edited by: jwpfw

    Here are some ideas you can try. You can delete fields with JavaScript, so you could set up a script that loops through the fields and deletes them based on some criteria, such as the position on the page or the field name that Acrobat automatically generates. You can set up the script so it's activated from a custom toolbar button or menu item, or as part of a batch sequence (custom action). If you'd like specific help with the code, it would help if you could post a sample document that has the fields added.
    An alternative that you can use if the layout of the document will remain unchanged is to add the fields using a script, perhaps taking advantage of tempates. So instead of running the Form Wizard to add the fields, you create a script to add the fields exactly where you want and with the field names and any other properties you want.

  • How to validate Extra Fields in Journals

    Hi all.
    We are working with journals in SAP EPM 10, and we have created several extra fields as a part of the process. as you already know, the extra fields are dummy fields, and we would need to perform some validation when the user save or post the journal.
    Is there any way to do it? any badi or something similar?
    Thanks in advanced.
    Regards

    First of all and just to avoid misunderstandings. For my purpose which was to check the values in the additional fields added into a journal template, I´ve implemented the BADI UJJ_CALCULATED_AMOUNT.
    Then, I´ve added the code into the method IF_UJJ_CALCULATED_AMOUNT~CALCULATE_AMOUNTS. That code should work when the user is saving the journal.
    If by adding a breakpoint, you are still having problems to debug this piece of code, what you can do  is to add an ABAP code at the beginning of the mentioned method like this:
      DATA:lv.
      lv = 1.
      IF sy-uname EQ 'YOURUSERNAME'.
        WHILE ( lv = 1 ).
          lv = 1.
        ENDWHILE.
      ENDIF.
    And after that, in the transaction sm50, you should be able to select and debug the process.
    Please let me know if you are ok after that.
    Regards.

Maybe you are looking for