Additional column in ZMB5B not getting displayed.

Hi Guys!
I've written a code for adding "Product Hierarchy" column (MARA-PRDHA) in custom ZMB5B report.
But I'm not getting the column added while generating the report. Program, Includes, etc. Everything is activated.
I've done the following:
1. Declared MARA-PRDHA in STYPE_MSEG_LEAN  in the include ZRM07MLDD.
2. Wrote a subroutine for this column in include ZRM07MLBD_FORM_02.
Subroutine code:
FORM GET_PRODUCT_HIERARCHY .
   DATA:BEGIN OF ls_prd_hrc,
         prdha TYPE mara-prdha,
         END   OF ls_prd_hrc.
   DATA:lt_prd_hrc LIKE STANDARD TABLE OF ls_prd_hrc.
   DATA:lt_g_t_mseg_lean TYPE STANDARD TABLE OF stype_mseg_lean,
        ls_mseg_lean     TYPE stype_mseg_lean.
   MOVE g_t_mseg_lean[] TO lt_g_t_mseg_lean[].
   DELETE lt_g_t_mseg_lean WHERE prdha IS INITIAL.
   "SORT lt_g_t_mseg_lean BY lifnr.
   "DELETE ADJACENT DUPLICATES FROM lt_g_t_mseg_lean COMPARING lifnr.
   IF NOT lt_g_t_mseg_lean[] IS INITIAL.
     SELECT prdha
     FROM mara
     CLIENT SPECIFIED
     INTO TABLE lt_prd_hrc
     FOR ALL ENTRIES IN lt_g_t_mseg_lean
     WHERE mandt = sy-mandt
     AND   prdha = lt_g_t_mseg_lean-prdha.
   ENDIF.
   LOOP AT g_t_mseg_lean INTO ls_mseg_lean .
     READ TABLE lt_prd_hrc INTO ls_prd_hrc
     WITH KEY prdha = ls_mseg_lean-prdha.
     IF sy-subrc = 0.
       ls_mseg_lean-prdha =  ls_prd_hrc-prdha.
       MODIFY g_t_mseg_lean FROM ls_mseg_lean
       TRANSPORTING prdha.
     ENDIF.
   ENDLOOP.
ENDFORM.                    " GET_PRODUCT_HIERARCHY
3. Added following code for field catalog form F0400_CREATE_FIELDCAT:
    G_S_FIELDCAT-FIELDNAME     =  'PRDHA'.
    G_S_FIELDCAT-REF_TABNAME   =  'MARA'.
    G_S_FIELDCAT-SP_GROUP      =  'M'.
    PERFORM  F0410_FIELDCAT    USING  C_TAKE   C_OUT.
Could you please tell me how to get the column in the ALV?
Thanks in Advance.
Cheers,
Ashutosh.

Hi Pablo & Vinoth,
There wasn't any problem with the layouts; but I had to modify a couple more tables and field catalogs with this field, and the report was done.
Thank you anyways!
Cheers,
Ashutosh.

Similar Messages

  • MD06  Issue - Planned orders not getting displayed

    Hello,
    Planned order with the exception "Newly created order proposal" does not get displayed in MD06 with the option "Only Unprocessed MRP Lists" in the processing indicator.
    I am running MD06 report with the following parameters:
    Plant
    MRP Controller
    Exeception Group - All exception selected except 8-Terminations
    Processing indicator - Only unprocessed MRP LIsts, Only with new exceptions
    My material which has a newly created planned order thorugh MRP run with exception "1 - Newly created order proposal" does not get displayed.
    Only when I specify Only processed MRP lists or All MRP LIst in the processing indicator, this material gets displayed. The planned order is for a Stock Transfer order to this plant (receiving plant). How is the MRP LIst processed?
    Please help me out with this issue.
    Sincerely,
    Ketan

    Hi Ketan,
    When you execute the MD06 report, you would find a column with the heading CI, if am right it would be just after the MRP cntlr, here you would find a Pencil & a tick mark. If you find them both, it means the row is unprocessed, but if you find only a tick mark it means that the row is processed.
    So now check for the planned order, it would be just a tick mark & hence would be showing only for the processed MRP list or all MRP lists.
    To process a row or unprocess, just click on the icon & it changes.
    Check & revert if it answers your query.
    Regards,
    Vivek

  • Search Help not getting displayed

    Hi ,
    I have included my own Search Help ZSH to Standard Search Help MAT1 which is related to field MATNR , in the following path..
    In MAT1->MAT1_A, I have INCLUDED my Search Help.
    I have tested it in SE11, it's working fine.
    But, in VA01 screen when I press F4 on the MATNR field only 9 Search Helps are displayed, and my Z-Search Help is not getting displayed.
    What additional settings should I do for the display of my Z-Search Help?
    Thanks in advance,
    Shivaa...

    Also look at this thread Search help enhancement - VA01
    Regards,
    Raymond

  • First Cell value in the first row of the structure not getting displayed

    Hi Friends,
                     We've got one structure at rows level, there as per our requirement i've taken around 12 "New Selections", that's ok i'm getting everthing fine, but whatever the new selection i put on the top of that structure in that, the First Cell Value for the first column not getting displayed...
                       I'm really wondering, this is the first time that i'm facing this kind of problem... what might be the reason & what is the solution for that...
    just awaiting for your inputs...
    Regards,
    Balaji Reddy K.

    There is no declarative way to do this as the table rows are stamped. This means there is no way to can access a value like (row+1).attributename
    So there is some coding needed. Check http://lucbors.blogspot.de/2012/02/adf-11g-fancy-master-detail-or-how-to.html and http://lucbors.blogspot.de/2012/02/adf-11g-even-fancier-multi-master-multi.html which might help you to implement your case.
    Timo

  • Quantity field not getting displayed

    Hi,
    I am using Adaptived RFC Model to get Sales Order Data from SAP. The Sales Order BAPI that i am using is
    BAPI_SALESORDER_DETAIL. I have mapped the SALESORDER table(SALESOPRDER Model node) to the TABLE UI element in my WebDynpro Application.
    The problem i am facing is that while all the fields get displayed the Quantity value is not getting displayed in the appropriate column. I have checked the mapping and everything seems to be fine.
    Also when i create a separate value node for the table and fill the value node from the model node the quantity value gets displayed then.
    Please suggest what can be the possible cause for this.
    Regards
    Sidharth
    Can you please

    Hi,
    As far as I understand you display output parameters of BAPI, so check to following things:
    1. After calling BAPI model method call invalidate on context node to update the values (e.g. outputNode.invalidaet() )
    2. Check that you dispaly output parameters and not input parameters of the table. (e.g. You have Quantity and QuantityOutput node so connect you table field to QuantityOutput)
    Hope it helps.
    Victor.

  • Index keywords not getting displayed in alphabetical order

    Greetings to one and all!!1
    Why the keywords defined in my index folder, is not getting
    displayed in alphabetical order..what option am i missing to set??
    can anyone help me to achieve this!!!
    Thankx

    Hi all
    In addition to what Colum offered, if you choose to keep a
    non-binary index (those are my particular preference) you may
    right-click the index and sort the terms. (Inside RoboHelp, not in
    the compiled output)
    Just a thought... Rick

  • Material cost not getting displayed in CN41N

    Hi Gurus,
    When we execute CN41N, Materials assigned to the Network activity are visible but the cost of each material is not getting displayed against it (under Proj. Cost Plan Column) and it is appearing as '0' whereas, it is appearing as an accumulated cost against the activity. I checked SAP notes for this problem, though I could see some notes which are very close to the problem but all are for Release 600 whereas we are using 604 (ECC 6.0). Have anyone encountered such problems or whether the cost will not appear against Material in CN41N.
    Awaiting your valuable suggestions.
    thanks in advance.
    Vinodh

    I have seen planned cost of material against material itself in structure report like CN41, CN41N under following conditions:-
    1. Valuated Project Stock
    2. Material is created using Reservation for WBS or PR+Res for WBS Procurement indicators.
    3. Costing relevancy box ticked for material
    4. Statistical Cost element exists for Inventory account.
    I have not seen planned cost for non-stock item or material with res for network in project. This is purely based on my experience and I dont have any notes or help document to validate my statement.

  • Total is not getting displayed in the ALV output.

    Hi,
    Total is not getting displayed in the ALV output.
    I m using :REUSE_ALV_BLOCK_LIST_APPEND & REUSE_ALV_BLOCK_LIST_DISPLAY
    Are  there any issues with it as the same settings are working fine with REUSE_ALV_LIST_DISPLAY
    source code:
    DATA: layout TYPE slis_layout_alv,
          IT_eventS  TYPE slis_t_event,
          fcat   TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          rec_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    TYPES: BEGIN OF ty_tab,
          belnr TYPE dberchz-belnr,
          belzart TYPE dberchz-belzart,
          net TYPE dberchz-nettobtr,
          END OF ty_tab.
    DATA: lt_tab TYPE STANDARD TABLE OF ty_tab.
    SELECT belnr belzart nettobtr
      FROM dberchz
      INTO TABLE lt_tab[]
    WHERE belnr eq '000000000001'.
      if sy-subrc ne 0.
      ENDIF.
    *  defining layout
    layout-colwidth_optimize = 'X'.
    layout-def_status = 'X'.
    *defning event
    *event
    *defining field catalog
    fcat-col_pos = 1.
    fcat-fieldname = 'BELNR'.
    fcat-tabname  = 'LT_TAB'.
    APPEND fcat.
    fcat-col_pos = 2.
    fcat-fieldname = 'BELZART'.
    fcat-tabname  = 'LT_TAB'.
    APPEND fcat.
    fcat-col_pos = 3.
    fcat-fieldname = 'NET'.
    fcat-tabname  = 'LT_TAB'.
    fcat-do_sum = 'X'.
    APPEND fcat.
    *calling alv
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
      EXPORTING
        i_callback_program             = 'YZ_PLR'
    *   I_CALLBACK_PF_STATUS_SET       = ' '
    *   I_CALLBACK_USER_COMMAND        = ' '
    *   IT_EXCLUDING                   =
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
        is_layout                        = layout
        it_fieldcat                      = fcat[]
        i_tabname                        = 'LT_TAB'
        it_events                        = IT_EVENTS[]
    *   IT_SORT                          =
    *   I_TEXT                           = ' '
      tables
        t_outtab                         = lt_tab[]
    * EXCEPTIONS
    *   PROGRAM_ERROR                    = 1
    *   MAXIMUM_OF_APPENDS_REACHED       = 2
    *   OTHERS                           = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    Thanks,
    Gaurav

    Hi
    No I don't think, this is my code (based on your code) and it works fine:
    TYPE-POOLS SLIS.
    DATA: BEGIN OF LT_TAB OCCURS 0,
           BELNR LIKE BSEG-BELNR,
           GJAHR LIKE BSEG-GJAHR,
           WRBTR LIKE BSEG-WRBTR,
           WAERS LIKE BKPF-WAERS,
          END OF LT_TAB.
    DATA: LAYOUT     TYPE SLIS_LAYOUT_ALV,
          IT_EVENTS  TYPE SLIS_T_EVENT,
          FCAT       TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          REC_FCAT   TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
    START-OF-SELECTION.
      FCAT-COL_POS       = 1.
      FCAT-FIELDNAME     = 'BELNR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'BELNR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      APPEND FCAT.
      FCAT-COL_POS       = 2.
      FCAT-FIELDNAME     = 'GJAHR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'GJAHR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      APPEND FCAT.
      FCAT-COL_POS       = 3.
      FCAT-FIELDNAME     = 'WRBTR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-CFIELDNAME    = 'WAERS'.
      FCAT-REF_FIELDNAME = 'WRBTR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      FCAT-DO_SUM        = 'X'.
      APPEND FCAT.
      FCAT-COL_POS       = 4.
      FCAT-FIELDNAME     = 'WAERS'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'WAERS'.
      FCAT-REF_TABNAME   = 'BKPF'.
      FCAT-DO_SUM        = SPACE.
      APPEND FCAT.
      SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE LT_TAB
        WHERE BUKRS = 'MAAB'
          AND BELNR = '0000000001'.
      LT_TAB-WAERS = 'EUR'.
      MODIFY LT_TAB FROM LT_TAB TRANSPORTING WAERS WHERE WAERS = SPACE.
    *CALLING ALV
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          I_CALLBACK_PROGRAM = 'ZPROVAMAX5'.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT   = LAYOUT
          IT_FIELDCAT = FCAT[]
          I_TABNAME   = 'LT_TAB'
          IT_EVENTS   = IT_EVENTS[]
        TABLES
          T_OUTTAB    = LT_TAB[].
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
    I've also inserted a currency field
    Max

  • Data is not getting displayed in the report from an Infoset.

    Hi All,
    I am having a report  based on an infoset. This report is displaying the data in the Dev. envmt. When it is transported to the QA, it is not displaying the data in the BEx as well as RSRT, in the QA envmt. The patch levels of both the Dev. and QA are the same. The Queries are same in the Dev and QA also.
    While trying to display the data from the infoset (rt.click- display data), i am able to view the data, in the QA.
    Could anyone please suggest why the data is not getting displayed in the query designer.
    Thanks & Regards,
    A.V.N.Rao

    Hi Ashish,
    I ran the "ZPS/!ZPS" in RSRT where ZPS is the infoset name. In Dev, it displayed the values. In QA, it displayed the below messages:
    ECharacteristic 0TCAKYFNM does not exist. Check authorizations
    WThere are calculated elements. These results are bracketed [  ]
    and below that, it displayed the values for Number of records. But, it has not displayed the values for the other figures.
    Does this has any impact in QA.
    Thanks & Regards,
    AVN Rao.

  • '@' not getting displayed in the ALV report

    Hello,
    I am facing  a strange issue in the ALV report display. A string starting with '@' is not getting displayed and says "default icon " on the report. and this is varying from system to system for the same user.
    can anyone please help me in resolving the issue.
    Thanks in advance.
    Thanks and Regards,
    Santhosh Guptha N.

    @ is a default value as per ALV internal process. This is used in icons .
    I think this is causing the confusion.
    Check in the fieldcat if there is any adjsutment to be made to handle this.
    Br,
    Vijay

  • Dynamic mandatory field error message is not getting displayed in webui

    Hi,
    In Appointment if the importance is HIGH i made Location as mandatory.For this i enhanced BT126H_APPT/ApptDetails. In the get_p_location() method of BTACTIVITYYH i have written the code.
    Now the problem is Error message for this dynamic mandatory field is not getting displayed in webui.
    I debugged in DO_FINISH_INPUT error message is getting generated but it is not getting displayed in ui.
    Can anybody tell where the problem is?
    Thanks,
    Hari.

    Hi Hari,
    Really sorry do not know how to convert this nug file to text
    How ever quick solution for your problem would be just keep your validation in 'DO_VALIDATE_INPUT' method of the view controller.
    Means even if the User clicks on SAVE , Since it fails here , it would not allow you to go further.
    Thanks,
    Rajesh P

  • Portal Forms are not getting displayed in the new oracle environment.

    Hi All,
    The Forms in our Portal applications are not getting displayed after we have done the upgradation of Database in Unix from 8i to 9i. The reports are working fine.The forms that were added as portlets are not getting displayed and other forms that are called thorough links returns error when it is run. The Newly created forms are also not running but returns error. The Portal Version is 3.0.9.8.3. Pls help.
    Regards,
    Tom

    Hi ,
    Based on the requirement , check whether the customer contact has been done carried out for the invoice  , then possibility it must have gone out of the worklist , chekc whether the Invoice posted in the AR has been transferred to FSCM collection .

  • Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Did you check the Zoom setting?
    Have you tried a reset (reboot)? Hold HOME and SLEEP until an Apple logo appears.
    If it isn't Zoom and a reboot doesn't help try Settings/General/Reset - Reset all settings

  • Default Value is not getting displayed in SUN ONE Ldap

    Hello,
    I have created an attribute in slapd.user_at.conf and it is associated in slapd.user_oc.conf.
    The attribute default value is given through SUN ONE Console. But, In our application the default value is not getting displayed.
    We need the default value to run our applicatin. Can anyone help me for this issue
    Regards,
    K. Senthil Kumar

    Hi anandkumar,
    I belive this issue can be resolved by changing the  Query proprties for the perticular field.
    Kindly check the Field proerties in query designer and ensure that Text is enabled ather than Key.
    __Field property check up:__Go to query designer->click onn the field-> Right hand side in properties click on display tab-> select Text in drop down menu of Display as tab.
    FURTHER CHECK UP: check the master data avaiulability for the perticular info object, if masterdata is not available, do the text data for txt data availability in report level.
    Hope this helps you!!
    Best Regards,
    Maruthi

  • Material type not getting displayed in the cube........

    Hi,
    In my infocube material type for one of the material is not getting displayed.
    When I check in the content of the cube for this material all the fileds are getting displayed except material type.
    However it is present in the material master data from which it is put into the update rules to populate in the cube.
    Its getting displayed for some other materials , so we cant say that mapping is wrong or problem with update rules.
    Can some body let me know what could be the reason.
    Thanks,
    Jeetu

    Hi Jeetu,
    can you check in your cube if you have for one material, entries with AND entries without the MATL_TYPE? If this is the case then you were loading transactional data before having the corresponding material master data.
    You should adapt your scenario:
    - first do not use the standard attribute derivation during your URules: performance is very bad.
    - implement a start routine filling an internal table with your material and MATL_TYPE for all entries of material in your datapackage.
    - implement an update routine on the MATL_TYPE with a READ on this internal table an raise an ABORT = 4 if the MATL_TYPE is initial or the material in not found.
    Now to fix your situation you'll have to reload your cube or alternatively just reload your missing MATL_TYPE MATERIAL from your cube itself and selective delete those which are empty.
    hope this helps...
    Olivier.

Maybe you are looking for