PSA  level Errors are not displayed

Hi friends,
    I'm using BI 7.0....up to PSA  i'm getting data  perfectly.. Even though some errors are there  i mean.. data mis match in my flatfile(for NUMC fields  I was enterd Charecter data... ... that time also.. psa level data was  showing green only.... if i upload into ODS  then only i'm getting  problem..
      but   in previous versions  it was showing  Red  (for error reacords..) in PSA level itself...
     for what reason  I'm not getting  like this.... is there  any  problem  with my procedure.. or   is this BI 7.0 feature..
plz clarrify..
Thanks
babu

Hi,
    Using the Error Handling function on the Update Parameters tab page in the scheduler, you can control the behavior of the BI system if data records with errors occur in the data flow with 3.x objects (use of transfer and update rules) when you are loading data using the PSA.
The system checks for data records with errors:
      in the transfer rules
      in the update rules
      when data is updated to the master data tables, text tables, or hierarchy tables
      when data is updated to the InfoCube
      when checking for referential integrity within an InfoObject against the master data tables or DataStore objects on the communication structure level.
Features
Incorrect records arising in transfer rules, update rules, when updating to a data target, or when checking for referential integrity, are highlighted and returned to the error handler. The error handler locates the original PSA records and writes the corresponding log. This function is not yet available for updating to DataStore objects.
Using the Error Handling function on the Update Parameters tab page in the scheduler, you can control how the system responds to incorrect data records.
Activities
       1.      Define how the system should react to incorrect data records
a.       No update, no reporting (default)
If errors occur, the system terminates the update of the entire data package. The request is not released for reporting. However, the system continues to check the records.
b.       Update valid records, no reporting (request red)
This option allows you to update valid data. This data is only released for reporting after the administrator checks the incorrect records that have not been updated and manually releases the request (using a QM action, that is, by setting the Overall status on the Status tab page in the monitor).
c.       Update valid records, reporting possible
Valid records can be reported immediately. Automatic follow-up actions, such as adjusting the aggregates, are also carried out.
With option a), the incorrect records are marked in red in the PSA maintenance. You can display the relevant error messages amodally, edit the records, and update the request manually. If it was not possible to write to the PSA (hierarchy or transfer method IDoc), an application log is written instead.
With options b) and c), a new request that is only updated to the PSA is formed from the incorrect records. Here you can edit the records of the new request in the PSA and start the update manually.
If errors arise when an InfoCube is updated, new requests are generated for incorrect records for each InfoCube combination. Among these requests, the incorrect records are updated to the PSA. These new requests have entered as data targets the InfoCubes for which there were incorrect records. If, for example, a record was updated to two InfoCubes by mistake, a request is generated for this record that contains both InfoCubes as data targets. In the PSA tree, the requests appear as successfully updated in the PSA. These new requests can then be triggered again for updating to the InfoCubes.
       2.      Specify the maximum number of incorrect data records that are allowed before the system terminates the load process. In the PSA, you can display the errors that have arisen up to that point. If you do not specify the maximum number of incorrect records after which termination should occur, the handling of incorrect data records is inactive and the update terminates after the first error.
       3.      Define how the BI system should react if the number of data records received by the BI system is not the same as the number of data records updated in BI.
A difference between the number of received and updated records can occur:
         in the transfer rules
         in the update rules
         when updating
Records are sorted, aggregated, or added.
If you set the No Aggregation Permitted indicator, the request is deemed incorrect if the number of received records is not the same as the number of updated records.
Regardless of this indicator, an error occurs if the number of selected records is not the same as the number of records received in the BI system.
Result
The monitor directs the user to the relevant error case and enables a direct navigation into the PSA or the respective error request.
If you want to continue processing the incorrect data records in a program that you have written yourself, you can use the method GET_ERRORS of class CL_RSSM_ERROR_HANDLER. The use of this method is documented in the RS_ERRORLOG_EXAMPLE.
More Information:
Checking and Changing Data Using the PSA APIs
To perform complex checks on data records, or to carry out specific changes to data records regularly, you can use delivered function modules (PSA-APIs) to program against a PSA table.
If you want to execute data validation with program support, select Tools ® ABAP Workbench ® Development ® ABAP Editor and create a program.
If you use transfer routines or update routines it may be necessary to read data in the PSA table afterwards.
Employee bonuses are loaded into an InfoCube and sales figures for employees are loaded into a PSA table. If an employee’s bonus is to be calculated in a routine in the transformation, in accordance with his/her sales, the sales must be read from the PSA table.
Procedure
       1.      Call up the function module RSSM_API_REQUEST_GET to get a list of requests with request ID for a particular InfoSource of a particular type. You have the option of restricting request output using a time restriction and/or the transfer method.
You must know the request ID, as the request ID is the key that makes managing data records in the PSA possible.
       2.      With the request information received so far, and with the help of the function module, you can
         read RSAR_ODS_API_GET data records from the PSA table
         write RSAR_ODS_API_PUT changed data records in the PSA table.
RSAR_ODS_API_GET
You can call up the function module RSAR_ODS_API_GET with the list of request IDs given by the function module RSSM_API_REQUEST_GET. The function module RSAR_ODS_API_GET no longer recognizes InfoSources on the interface, rather it recognizes the request IDs instead. With the parameter I_T_SELECTIONS, you can restrict reading data records in the PSA table with reference to the fields of the transfer structure. In your program, the selections are filled and transferred to the parameter I_T_SELECTIONS.
The import parameter causes the function module to output the data records in the parameter E_T_DATA. Data output is unstructured, since the function module RSAR_ODS_API_GET works generically, and therefore does not recognize the specific structure of the PSA. You can find information on the field in the PSA table using the parameter E_T_RSFIELDTXT.
RSAR_ODS_API_PUT
After merging or checking and subsequently changing the data, you can write the altered data records into the PSA table with the function module RSAR_ODS_API_PUT. To be able to write request data into the table with the help of this function module, you have to enter the corresponding request ID. The parameter E_T_DATA contains the changed data records. 
Result
The corrected data is now available for continued updates.
if it helps plz assign points

Similar Messages

  • RZ20 Monitor - Errors are not displayed - more than 3 days..

    Hi
    In our RZ20 alert monitors we are not able to see the errors for the PO which are created 3 days back.. I dont know whether its archieved or deleted.   Is there any possiblity to restore it in RZ20?  Please let me know where is the settings for this?
    I know we can see the error in BBP_PD after running the transaction bbp_procdoc_transfer to get the latest error.
    But my requirement is the error should be there in the RZ20 monitor for a month..
    please help. many thanks in advance..
    We are using SRM 5.0

    Hi
    <u>Please read this -></u>
    <b>Here are few OSS Notes to check out -></b>
    <u>Note 746193 RZ20: Generating all-clears ("green alerts")
    Note 783725 EP6.0 CM & Collaboration SP2 Patch 27
    Note 441768 - Displaying canceled shopping carts in monitor 3.0 and 3.5
    Note 395699 - Display shopping baskets with status 7 in the Monitor</u>
    <b>Other related links -></b>
    Re: Application Monitor entries "auto-deleted"?
    RZ20 stopped displaying errors.
    RZ20 Transaction
    Hope this will definitely help.
    Regards
    - Atul

  • Getting Error - Dimension has multiple leaf levels which are not identical

    Hi All,
    While creating two hierarchies with in same dimension , i am getting error like - Dimension has multiple leaf levels which are not identical.
    Does this error mean , the number of levels in both hierarchies should be same or it has some thing else meaning.
    I was creating hierarchies like below -
    LE details
    - LRU Details
    - LRU's Registration Details
    - LE's Registration Details
    How should i create the hierarchy?
    Thanks ,Ashish

    Hi... Ashish
    Look at this... http://oraclebizint.wordpress.com/2007/11/30/oracle-bi-ee-101332-one-dimension-multiple-hierarchies/
    Thanks & Regards
    Kishore Guggilla

  • New created values are not displaying after upload

    Hi
    I have created 2 key figures(Infoobject),4 new nodes and leafs(Hierarchy), to include the new logic at R/3 end as well as BW end.Every thing is fine even after doing full upload(repair).
    When i execute the query the data is not populated in its respective infoobjects and hierarchy nodes and leafs.
    Even 1 infoobject which is used for Counter value is not showing the counting as it's defined as aggregate to the info object Count and that included to ODS which is responsible for counting. after full upload it's not showing the counter values.
    After full upload(Repair) all these entries are not displaying in the report against the data which is present at RSA3 level.
    Can any one tell me how to make them available in the query even after data is uploaded / available in the bw.
    Gaurav Upadhyaya
    Edited by: Gaurav on Aug 26, 2008 10:55 AM

    Hi,
    You can´t see hierarchies in an infoprovider, so this is ok. A hierarchie is a part of an infoobject. But you say  you have 2 new kefigures and they are not filled. I suppose you added both keyfigures to your DSO/Cube and to the datasource (in your source system). Have you extended the transformations between datasource <-> DSO and DSO <-> Cube too? Are the keyfigures correctly connected (in the transformations)? If yes, check your PSA after loading. Are the keyfigures filled here? If no, check the RSA3 in your source system. Are the fields for you keyfigures filled there?
    Pls. check this all and tell us, what the result is.
    Regards

  • Unposted values are not display in input-ready queries - BRAIN 485

    Hi experts,
    After installing the support package level from "7.00 SP16" to "7.00 SP21" we meet an issue in our input-ready queries.
    When we use the setting "Access Type for Result Values" according to master data in a query with time characteristics in columns, the system error BRAIN 485 occurs & no cells are not displayed.
    Any idea ?
    Thanks in advance,
    Laurent

    Hi raj,
    Thanks for your reply.
    Please tell me with which BEx patch you have faced this issue.
    We are on BI7.0 SP 19.
    Thanks.
    Regards,
    Rik

  • Excise duty rates are not displayed in J1IEX

    Dear friends,
                       Excise duty rates (BED, ECS, SECESS) are not displayed in item level in excise invoice J1IEX, But excise values are updated correctly. I have maintained duty rates in J1ID. Kindly give your valuable inputs.
    Thanks and Regards
    ETR.

    Hi Maladri,
                   Thanks for your reply.
    I have maintained my condition types BED, ECS, SEcess in respective fieslds of BED Condition, ECS condition, SEcess condition already, eventhough the % not updated in J1IEX Excise invoices.
    But it has updated 10 days before all values came properly in J1IEX.
    Can you explain which condition type we have to maintain in BED %, ECS%, SEcess % in Maintain excise defaults, I didnt maintain any condition types there. If it is the reason then how it updated correctly 10 days before?
    Kindly guide me
    Thanks and Regards
    ETR

  • Warning messages are not displayed in confirmation

    Hi,
    We are working with SRM 5.0 classic scenario. Our issue is warning messages are not displayed whenever we press the CONFIRM or DELETE button in the confirmation, however warning messages are displayed if we press CHECK button in the confirmation.
    Please suggest the solution to display the warning messages while clicking CONFIRM or DELETE button in the confirmation.
    Thank you
    Natarajan

    Hi Muthu,
    Thanks for your reply. We raised the OSS message for this issue. As per  the standard system behaviour, warning messages will not be diplayed when " DLETETE" button pressed.
    In the DELETE mode, the system will display only the first EXPRESS
    ERROR message and not WARNING messages.
    Inorder to maintain an error message as EXPRESS, the FIELD_NAME
    (i.e ls_message-field_name) has to be assigned with the value
    EXPRESS.
    For example,
    ls_message-msgty = 'E'.
    ls_message-msgid = 'ZF'.
    ls_message-msgno = '000'.
    ls_message-field_name = 'EXPRESS'
    Kindly note that in the DELETE mode, the system does not display
    EXPRESS message with msgty = 'W'.
    Only EXPRESS message with msgty = 'E' is recognised and displayed.
    The Warning messages will be displayed only during the CHECK mode.
    Thank You
    Natarajan

  • CIN: Items are not displayed while updating the RG1 Register using T Code:

    Hi Experts,
    Items are not displayed while updating the RG1 Register using T Code: J1I5.
    System is not showing any error message.
    Can any one explain to update the RG1 Register?
    Thanks
    Chandra

    Hi,
    dont go the table again and again . the table is updated at intial stage only for stock update but not when SAP is running.
    In day to day bussiness the flow is as follows:
    Production - MB31 - to Unres stock
    Sales - VL02n - PGI - to customer - i.e out of unres stock
    Every day u can run TC J1i5 once in a day as decided and update the register so all transactions which have happend in that day gets updated i.e both input and output.
    and this will happen every day.
    hence dont use table as it is only for intial data upload i.e just before golive.
    Hope i am clear.
    krishna

  • Pricing errors are not cleared after fixing the master data

    Hi All,
    Kindly go through the issue explained below.
    Pricing is determined properly in transaction level(Oppt) when the master data is correct. cool.  
    System shows pricing error (Mandatory condition 0PR0 is missing, Pricing could not be determined) when price(condition record) is not maintained in product. This is also fine.  Now the issue is, Pricing errors are not going away from Opportunity even after the master data(product) fixed with maintaining pricing.
    Scenario     :  Opportunity is saved with pricing errors. 
    Analysis     :  Price or/and Sales area are not maintained in Product that is maintained in Oppt.  That is why this error occurs.  So, we have maintained the Sales area/Price(condition record) in product. Now master data is corrected.
    Expected result: After maintaining the price/sales area in product, the errors should go off from the created Opportunities and pricing should be determined properly.
    Actual result: When we create a new opportunity with the same product, pricing is determined.  But the errors are not going away from the already created opportunity transactions.
    Please let me know if this scenario is not clear to understand. 
    Please help with your inputs.  Thank you for your time.
    Regards,
    Maddy

    Hi Luis,
    Thank you very much for your reply.  Could you please help me where is the button 'Redermine Pricing' available?  I have checked in Opportunity transaction but failed.
    Regards,
    Maddy

  • Edge animation-images are not displayed on my dreamweaver-site

    Hello, could someone please help me?
    My animation, which is inserted into  a Dreamweaver-website, shows no pictures - only text elements when you open the page in the browser. In the live view and preview in the browser the images are displayed but on the Website they are not display. I have already set the file permissions to 777 - but it did not help.
    When i open the Animation without my Dreamweaver-site - only the Animation in the browser the Images are displayed correctly.

    I've just found the error! One file was not uploaded... sorry !  Anyway thanks for the quick reply!!!

  • [38073] dimension has multiple leaf levels which are not identical

    Hi,
    I am trying to implement a time dimension with 2 source tables.
    The time dimension is from minute to year where logical table includes 2 source tables :
    Source table#1 : Year,month,week,day
    Source table#2: hour,minute (minute is a leaf level and chronological key)
    When i try to check-in i got the following error: [38073] dimension has multiple leaf levels with are not identical.
    Thank you.
    Michael

    Hi RM
    i am able to create multiple hirerachy in time dimension and assigned time_id as chronological key which is at the dimension detail level and acting as shared child level for both of them......
    I have created AGO function for calendar year as
    AGO(Test."Fact".amount_sold, Test."Time Dim"."Calendar Year", 1)
    but when i have used AGO column in answers i am getting below mentioned error:-
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22046] To use AGO function, the query level ('Calendar Year, Fiscal Year') must be a static level. (HY000)
    any suggestion would be appreciated to solve this.
    thanks & regards

  • After upgrading to 3.5 from a library of images are not displayed.

    After upgrading to 3.5 from a library of images are not displayed. All images are filled with black. Ifoto the same library looks fine.

    Yes, they are compile errors, which state 'xmlObject cannot be resolved to a type' on this line: protected XmlObject xmlDocument = null;
    and on an import line: import org.apache.xmlbeans.*;
    the compiler states the import.org.apache.xmlbeans cannot be resolved.
    I have three classes that deal with xml objects and all three have the same errors.
    Also I'm getting the same type of errors on an import javax.media

  • Umlauts are not displayed correctly in different programs

    Hello!
    I live in germany, but my locale is set to "en_US.UTF8" because I like to have everything in english.
    I do not have any problems with umlauts on the machine, but when I connect with sFTP oder Samba to it, the umlauts in files are not displayed correctly.
    Look at this example
    The upper word is how it looks in "ssh putty" (=locally on the machine), the bottom one is from "filezilla" (from my windows host)
    This is my locale
    locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=
    When I create a file "asd_aöü" locally on the machine (with the help of ssh - putty), it looks fine, but when I connect by samba or filezilla again the umlauts are not displayed correctly.
    Do you understand my problem? What can I do?
    Thanks!
    Last edited by cyberius (2011-02-19 10:12:19)

    Did you check the locale settings on your Windows machine?

  • Chinese characters are not displayed in the Firefox bookmarks

    Chinese characters are not displayed in the Firefox bookmarks. The name looks like e.g. "??????? ???? cn.nytimes.com"
    Chinese character of the site name is displayed ok in the head of the browser window and there is no problem reading chinese web content. I use Firefox Portable 11 /English from portableapps.com in Windows XP.
    I googled and got some tips:
    1) Set your browser to recognise Chinese language internet sites.
    Windows users: Under "Tools - Options" on your browser's menu-bar add Chinese to the languages list.
    - I did this.
    2) Set your browser's "Character Set" or "Encoding" to UTF-8 (sometimes also called Universal Alphabet or Unicode).
    Encoding settings can be changed under the "View" option in your browser's menu-bar.
    - It was already set to UTF-8.
    3) Windows users: If Chinese text still does not display correctly, East Asian language support may need to be enabled.
    - This has been done when I installed Windows.
    I still don't get any Chinese fonts in the bookmark names. I can edit the bookmark name with chinese characters and then save the bookmark, it works fine. But why does not Firefox recognize the characters when saving bookmarks? Help is appreciated.

    No I didn't change anything deep beneath the hood. My problem didn't apply to the URL, but to the name of the link or bookmark header or whatever you would like to call it. (When hitting Ctrl + D there is a Name field). I only got ???????? instead of chinese characters in the name. Also for e.g. www.cntv.cn ...but maybe all China is not in the whitelist either. ;-) But anyway, this was not the real problem for me.
    Apparently I was wrong as after a reboot of the computer it worked. The solution seemed to be to add Chinese to the language list. I don't know why it was not enough to restart Firefox?
    Now I only have problems to show chinese characters in the name field of my external link manager... But I guess it is not an issue for Mozilla.

  • Column Heading are not displayed in ALV Report using CL_SALV_DISPLAY?

    Hi,
       I am using CL_SALV_DISPLAY class to display data. I Created an Internal Table Dynamically based fieldcatalog which was prepared based data at run time. When i displayed data using CL_SALC_DISPALY data is display in output but column headings are not displayed.
    can anyone suggest me how to display heading in ALV using CL_SALV_DISPLAY class, My code is
          CLASS lcl_report DEFINITION
    CLASS lcl_report DEFINITION.
      PUBLIC SECTION.
        METHODS:
          display  IMPORTING l_table  TYPE string
                             l_fcat   TYPE string.
    ENDCLASS.                    "lcl_report DEFINITION
          CLASS lcl_report IMPLEMENTATION
    CLASS lcl_report IMPLEMENTATION.
      METHOD display.
        DATA: gr_table   TYPE REF TO cl_salv_table.
        DATA: gr_columns TYPE REF TO cl_salv_columns_table,
              gr_column  TYPE REF TO cl_salv_column_table,
              ls_fcat    TYPE slis_fieldcat_alv.
        DATA: gr_display TYPE REF TO cl_salv_display_settings.
        DATA: l_o_functions TYPE REF TO cl_salv_functions_list,
              l_field    TYPE string.
        FIELD-SYMBOLS : <fs_table>    TYPE STANDARD TABLE,
                        <ft_fcat>     TYPE STANDARD TABLE.
    Get the ALV object refering to the output table
        ASSIGN (l_table) TO <fs_table>.
        ASSIGN (l_fcat)  TO <ft_fcat>.
        TRY.
            cl_salv_table=>factory(
              IMPORTING
                r_salv_table = gr_table
              CHANGING
                t_table      = <fs_table> ).
          CATCH cx_salv_msg.                                "#EC NO_HANDLER
        ENDTRY.
    Add basic default functionality in the ALV report
    Functions
        l_o_functions = gr_table->get_functions( ).
        l_o_functions->set_all( abap_true ).
        gr_columns = gr_table->get_columns( ).
        gr_columns->set_headers_visible( abap_true ).
    Display the list
        gr_table->display( ).
      ENDMETHOD.                    "extract
    ENDCLASS.                    "lcl_report IMPLEMENTATION
    *& start-of-selection declaration
    START-OF-SELECTION.
      PERFORM :
      get store codes
        get_storecodes    USING      p_stfile
                          CHANGING   it_t001w,
      fetching mard data
        read_mard_data,
      preparing fieldcatalog for Final Data
        create_filedcat   USING      it_t001w
                                     it_site
                          CHANGING   it_fieldcat,
      preparing structure & internal table for Final Data
        create_final_table_structure  USING  it_fieldcat,
      prepare output data
        prepare_final_data.
    *& end-of-selection declaration
    END-OF-SELECTION.
      PERFORM :
      display data
        display_data    USING l_table
                              l_fcat.
    *&      Form  get_storecodes
    FORM get_storecodes  USING    p_p_stfile
                         CHANGING p_it_t001w  LIKE it_t001w[].
      DATA  :
    internal table for RAW
      lt_raw    TYPE truxs_t_text_data,
      rs_site   LIKE LINE OF rt_site,
      l_index   LIKE sy-tabix.
      FIELD-SYMBOLS :
    field symbol for it_t001w
      <fs_t001w>   LIKE LINE OF p_it_t001w.
    calling function module to get Stores Data from File
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_line_header        = 'X'
          i_tab_raw_data       = lt_raw
          i_filename           = p_p_stfile
        TABLES
          i_tab_converted_data = p_it_t001w[]
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      SORT p_it_t001w BY werks.
      CLEAR rs_site.
      rs_site-sign   = 'I'.
      rs_site-option = 'EQ'.
      rs_site-low    = p_dccode.
      APPEND rs_site TO rt_site.
      IF it_t001w[] IS NOT INITIAL.
        LOOP AT p_it_t001w ASSIGNING <fs_t001w>.
          l_index   = sy-tabix.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = <fs_t001w>-werks
            IMPORTING
              output = <fs_t001w>-werks.
          MODIFY p_it_t001w FROM <fs_t001w> INDEX l_index.
          IF <fs_t001w>-werks GE s_site-low AND <fs_t001w>-werks LE s_site-high.
          append site to ranges
            CLEAR rs_site.
            rs_site-sign   = 'I'.
            rs_site-option = 'EQ'.
            rs_site-low    = <fs_t001w>-werks.
            APPEND rs_site TO rt_site.
            CONTINUE.
          ENDIF.
        ENDLOOP.
        SORT p_it_t001w BY werks.
        SORT rt_site.
      ENDIF.
    ENDFORM.                    " get_storecodes
    *&      Form  create_final_table_structure
    FORM create_filedcat   USING    p_it_t001w      LIKE it_t001w[]
                                    p_it_site       LIKE it_site[]
                           CHANGING p_it_fieldcat   LIKE it_fieldcat[].
      FIELD-SYMBOLS :
    field symbol for p_it_t001w
      <fs_t001w>     LIKE LINE OF p_it_t001w,
    field symbol for p_it_site
      <fs_site>      LIKE LINE OF p_it_site.
      DATA :
    fieldname
      l_fieldname    TYPE slis_fieldname,
    workarea for site ranges
      rs_site        LIKE LINE OF rt_site.
      CLEAR : l_fieldname, rs_site.
      l_fieldname    = p_dccode.
      PERFORM
    prepare fieldcatalog
      build_fieldcatalog USING :   'MTART'      'CHAR'        '5'  ,
                                   'MTBEZ'      'CHAR'        '25' ,
                                   'MATKL'      'CHAR'        '6'  ,
                                   'WGBEZ'      'CHAR'        '20' ,
                                   'MATNR'      'CHAR'        '18' ,
                                   'MAKTX'      'CHAR'        '30' ,
                                    l_fieldname 'CHAR'        '17' .
    create header for excel
      PERFORM create_excel_header USING  : 'Division',
                                           'Divsion Description',
                                           'MC Code',
                                           'MC Description',
                                           'Article',
                                           'Article Description',
                                            l_fieldname.
    loop for creating fieldcatalog
      LOOP AT it_site ASSIGNING <fs_site>.
        READ TABLE it_t001w ASSIGNING <fs_t001w> WITH KEY werks = <fs_site>-werks
                                                                  BINARY SEARCH.
        IF sy-subrc = 0           AND <fs_t001w> IS ASSIGNED AND
           <fs_site> IS ASSIGNED  AND <fs_site>-stock GT 0.
          CLEAR : l_fieldname, rs_site.
          l_fieldname    = <fs_site>-werks.
        prepare fieldcatalog
          PERFORM build_fieldcatalog USING : l_fieldname    'CHAR'   '17'.
        create header for excel
          PERFORM create_excel_header USING  l_fieldname  .
          CONTINUE.
        ENDIF.
      ENDLOOP.
      l_fcat  = 'it_fieldcat[]'.
    ENDFORM.                    " create_final_table_structure
    *&      Form  build_fieldcatalog
    FORM build_fieldcatalog  USING    p_fieldname      TYPE slis_fieldname
                                      p_datatype       TYPE datatype_d
                                      p_length         TYPE intlen.
      DATA : ls_fieldcat    LIKE LINE OF it_fieldcat.
      CLEAR  : ls_fieldcat.
      ls_fieldcat-fieldname   = p_fieldname.
      ls_fieldcat-datatype    = p_datatype.
      ls_fieldcat-intlen      = p_length.
      APPEND ls_fieldcat TO it_fieldcat.
    ENDFORM.                    " build_fieldcatalog
    *&      Form  create_final_table_structure
    FORM create_final_table_structure  USING    p_it_fieldcat.
    Create dynamic internal table and assign to FS
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fieldcat
        IMPORTING
          ep_table        = t_table.
      ASSIGN t_table->*  TO <ft_final>.
    ENDFORM.                    " create_final_table_structure
    *&      Form  create_excel_header
    FORM create_excel_header  USING    p_p_fieldname.
      DATA : ls_header  LIKE LINE OF it_header.
      CLEAR ls_header.
      ls_header-col_name  = p_p_fieldname.
      APPEND ls_header TO it_header.
    ENDFORM.                    " create_excel_header
    *&      Form  prepare_final_data
    FORM prepare_final_data .
      DATA          : l_matnr       LIKE g_matnr,
                      l_werks       LIKE g_werks,
                      l_index       LIKE sy-tabix.
      FIELD-SYMBOLS : <fs_mard>     LIKE LINE OF it_mard.
    Getting No. of Lines in IT_MARD internal table
      DESCRIBE TABLE it_mard LINES g_lines.
      LOOP AT it_mard ASSIGNING <fs_mard>.
        l_index    = sy-tabix.
        IF l_matnr IS INITIAL.
          l_matnr  = <fs_mard>-matnr.
          CLEAR : l_werks.
          l_werks    = <fs_mard>-werks.
          UNASSIGN : <fs_value>, <fs_final>.
        Create dynamic work area and assign to FS
          CREATE DATA t_line LIKE LINE OF <ft_final>.
          ASSIGN t_line->*   TO <fs_final>.
          ASSIGN COMPONENT 'MATNR'  OF STRUCTURE <fs_final> TO <fs_value>.
          <fs_value>        = <fs_mard>-matnr.
          ASSIGN COMPONENT l_werks  OF STRUCTURE <fs_final> TO <fs_value>.
          <fs_value>        = <fs_value> + <fs_mard>-labst.
        getting Article Type,MC & its Descriptions
          PERFORM get_other_data    USING     l_matnr
                                              l_werks.
        ELSEIF l_matnr <> <fs_mard>-matnr.
          APPEND <fs_final> TO <ft_final>.
          CLEAR l_matnr.
          l_matnr  = <fs_mard>-matnr.
          CLEAR : l_werks.
          l_werks    = <fs_mard>-werks.
          UNASSIGN : <fs_value>, <fs_final>.
        Create dynamic work area and assign to FS
          CREATE DATA t_line LIKE LINE OF <ft_final>.
          ASSIGN t_line->*   TO <fs_final>.
          ASSIGN COMPONENT 'MATNR'  OF STRUCTURE <fs_final> TO <fs_value>.
          <fs_value>        = <fs_mard>-matnr.
          ASSIGN COMPONENT l_werks  OF STRUCTURE <fs_final> TO <fs_value>.
          <fs_value>        = <fs_value> + <fs_mard>-labst.
        getting Article Type,MC & its Descriptions
          PERFORM get_other_data    USING     l_matnr
                                             l_werks.
        ELSE.
          CLEAR : l_werks.
          l_werks    = <fs_mard>-werks.
          ASSIGN COMPONENT l_werks  OF STRUCTURE <fs_final> TO <fs_value>.
          <fs_value>        = <fs_value> + <fs_mard>-labst.
        ENDIF.
        IF l_index = g_lines.
          APPEND <fs_final> TO <ft_final>.
        ENDIF.
      ENDLOOP.
      l_table  = '<ft_final>[]'.
    ENDFORM.                    " prepare_final_data
    *&      Form  get_other_data
    FORM get_other_data  USING    p_l_matnr
                                  p_l_werks.
      FIELD-SYMBOLS : <fs_mara>     LIKE LINE OF it_mara,
                      <fs_t023t>    LIKE LINE OF it_t023t,
                      <fs_t134t>    LIKE LINE OF it_t134t,
                      <fs_makt>     LIKE LINE OF it_makt.
      READ TABLE it_mara ASSIGNING <fs_mara> WITH KEY matnr = p_l_matnr.   " BINARY SEARCH.
      IF sy-subrc = 0 AND <fs_mara> IS ASSIGNED.
        ASSIGN COMPONENT 'MTART'  OF STRUCTURE <fs_final> TO <fs_value>.
        <fs_value>        = <fs_mara>-mtart.
        ASSIGN COMPONENT 'MATKL'  OF STRUCTURE <fs_final> TO <fs_value>.
        <fs_value>        = <fs_mara>-matkl.
        READ TABLE it_makt  ASSIGNING <fs_makt>  WITH KEY matnr =  <fs_mara>-matnr   BINARY SEARCH.
        IF sy-subrc = 0 AND <fs_makt> IS ASSIGNED.
          ASSIGN COMPONENT 'MAKTX'  OF STRUCTURE <fs_final> TO <fs_value>.
          <fs_value>        = <fs_makt>-maktx.
        ENDIF.
        READ TABLE it_t023t ASSIGNING <fs_t023t> WITH KEY matkl = <fs_mara>-matkl  BINARY SEARCH.
        IF sy-subrc = 0 AND <fs_t023t> IS ASSIGNED.
          ASSIGN COMPONENT 'WGBEZ'  OF STRUCTURE <fs_final> TO <fs_value>.
          <fs_value>      = <fs_t023t>-wgbez.
        ENDIF.
        READ TABLE it_t134t ASSIGNING <fs_t134t> WITH KEY mtart = <fs_mara>-mtart  BINARY SEARCH.
        IF sy-subrc = 0 AND <fs_t134t> IS ASSIGNED.
          ASSIGN COMPONENT 'MTBEZ'  OF STRUCTURE <fs_final> TO <fs_value>.
          <fs_value>      = <fs_t134t>-mtbez.
        ENDIF.
      ENDIF.
    ENDFORM.                    " get_other_data
    *&      Form  display_data
          text
    FORM display_data  USING    p_l_table
                                p_l_fcat.
      DATA:
    Variable for Object Creation
      o_report TYPE REF TO lcl_report.
      CREATE OBJECT o_report.
      o_report->display( EXPORTING l_table = p_l_table
                                   l_fcat  = p_l_fcat ).
    ENDFORM.                    " display_data

    I don't know how to read the code you pasted or I would have checked this myself.
    Do your fields in the internal table reference dictionary objects or elementary types? If not using dictionary types, the column names will be blank by default. If you can't change your fields to be dictionary types, you can try this to change the column names:
    I made a method inside my local class to add the names:
            call method set_colname
              EXPORTING iv_tab = alv_tab
                        iv_colid = 'xxxx'  "fieldname from the table
                        iv_stxt = text-t54
                        iv_mtxt = text-t55
                        iv_ltxt = text-t55.
    METHOD set_colname .
      data:
              alv_cols type REF TO cl_salv_columns_table,
              alv_col type REF TO cl_salv_column.
      TRY .
    *... Change fieldnames
            call METHOD iv_tab->get_columns RECEIVING value = alv_cols.
            call method alv_cols->get_column EXPORTING columnname = iv_colid RECEIVING value = alv_col.
            IF iv_stxt <> ''.
              CALL METHOD alv_col->set_short_text EXPORTING value = iv_stxt.
            ENDIF.
            IF iv_mtxt <> ''.
              CALL METHOD alv_col->set_medium_text EXPORTING value = iv_mtxt.
            ENDIF.
            IF iv_ltxt <> ''.
              CALL METHOD alv_col->set_long_text EXPORTING value = iv_ltxt.
            ENDIF.
       CATCH cx_salv_not_found.
      ENDTRY.
    ENDMETHOD. "set_colname

Maybe you are looking for

  • Log and Capture in FCP 6.0.5 flash red frames

    So I have been having a very odd and troubling issue during my log and capture stage in post production, whenever I try to import a tape into FCP I get this intermittent red colored frame that flashes for what I could only guess is a frame and it hap

  • How to get back my deleted mail message

    how to get back my deleted message

  • How to read a particular word from the middle of the line from a .txt file

    BufferedReader reader = new BufferedReader(new FileReader("D:\\kiran.txt")); //given as a input String line = reader.readLine(); StringBuffer sb=new StringBuffer(); while(line!=null){ sb.append(line);//appended to line line=reader.readLine(); line=sb

  • Songs on itunes suddenly skipping around like a record

    All of a sudden, when I try to open another window on my computer while listening to itunes, the music starts skipping and gets kind of "crackly" like an old record. I just updated to the latest itunes version. Anyone know what's going on?

  • Photoshop CC startet nicht mehr

    Nach ausfürhren vom Programm kommt das Feld "Anmeldung erforderlich" .Ich drücke weiter und dann kommt "Vielen Dank Photoshop CC wird jetzt für email bla bla lizensiert. Dann drücke ich auf weiter und dann kommt wieder das Feld "Anmeldung erfoderlich