Traffic lights both in header&item level in REUSE_ALV_HIERSEQ_LIST_DISPLAY

Hi all,
I am using 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'. I need to display traffic lights both in header and item level. here is the piece of code I used.
  DATA : e_alvly TYPE slis_layout_alv.
    e_alvly-expand_fieldname = 'LIGHT'.
    e_alvly-lights_fieldname = 'LIGHT'.
    e_alvly-lights_tabname   = 'TS_HEADER_DETAILS'.
  CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
    EXPORTING
      i_callback_program = w_prog
      is_layout          = e_alvly
      it_fieldcat        = it_fieldcat
      it_events          = ts_events
      i_tabname_header   = c_ts_header_details
      i_tabname_item     = c_ts_item_details
      is_keyinfo         = key
    TABLES
      t_outtab_header    = ts_header_details
      t_outtab_item      = ts_item_details.
  IF sy-subrc <> 0.
    MESSAGE 'Error in ALV ' TYPE 'I'.
  ENDIF.
Using this I could get traffic lights only  at header level. if I replace 'TS_HEADER_DETAILS' with 'TS_ITEM_DETAILS' , i can see lights only at item level.
Insummary I can get lights eithere in Header or item level, but I need at both the levels.
Please suggest some solution to overcome this problem..
Thanks in Advance,
Vishal..

H,
Have you tried this,
e_alvly-expand_fieldname = 'LIGHT'.
e_alvly-lights_fieldname = 'LIGHT'.
e_alvly-lights_tabname = 'TS_HEADER_DETAILS'.
append e_alvly-lights_tabname.
e_alvly-expand_fieldname = 'LIGHT'.
e_alvly-lights_fieldname = 'LIGHT'.
e_alvly-lights_tabname = 'TS_ITEM_DETAILS'.
append e_alvly-lights_tabname.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
i_callback_program = w_prog
is_layout = e_alvly
it_fieldcat = it_fieldcat
it_events = ts_events
i_tabname_header = c_ts_header_details
i_tabname_item = c_ts_item_details
is_keyinfo = key
TABLES
t_outtab_header = ts_header_details
t_outtab_item = ts_item_details.
IF sy-subrc 0.
MESSAGE 'Error in ALV ' TYPE 'I'.
ENDIF.
hope it works,
Regards,
Abhijit G. Borkar

Similar Messages

  • Exclude foreign data in delivery & billing at header & item level

    Dear all,
    I want to stop foreign data check from my export sales scenario in delivery or in billing document, I have not done any configuration for the same. Even by deselecting check in delivery or in billing at both level Header & Item level, my billing accounting document is not getting post due to foreign data incompletion. My requriement is system should not ask to maintian any foreign data to maintain in delivery & in billing document so that my billing doc will get posted directly to accounts even when I am selling goods to abroad.
    How to solve this issue, can anybody suggest in this matter.
    Thanks
    Regards,
    Savi

    If the shipping point country is different than ship-to party country, then foreign trade is activated. If you still want to switch off, then refer OSS 1459330 - Error Message: VF072 Foreign Trade Data Incomplete.
    Regards,

  • SRM7.0 Transfer Header/item level attachments

    Hi
    Can somebody confirm me whether the Header/item level attachment transfer is supported in SRM7.0( for  ERP EHP4 to SRM7.0)
    Is there any SAP note explanining about the issue.
    Pls confirm.
    Regards
    Ckumar

    Hi Masa
    Thanks for your support before.
    I have  few more questions..can you please confirm.
    Since Header level GOS attachment transfer is not possible without addon development effort, we need to confirm whether atleast item level attachment can be transferred from ERP to SRM7.0 in standard customizing.
    I heard its not possible to transer item level also from ERP(PR)  to SRM(SC) using DMS.
    Can you please confirm if this possible or not.
    does CPPR functionality have option to transer both Header level & item level transfer from ERP(PR)  to SRM(SC).
    any past experience says its possible>
    pls share your experieince...
    Regards
    Ckumar

  • Sales order condition change for Header and Item level..

    Hi Gurus,
    My requirement is as below..
    Business wants to create new sales order from reference.. While creating slaes order fron reference , need to populate header/Item level condition tab data from originally paid by the invoice for that refence sales order not from refence sales order condition price.
    I would like to how to bring this one, any user exit or copy control and any VOFm routine need to populate this kind of requirement.
    Any one have any idea please let me know.. It very urgent, give reward points for right solution..
    thanks,

    Hi,
    Here are the answers to your question
    > Is it possible to add/change condition types on the sales order (header and item level) for which invoice has been created already?
    I mean is it possible to add some surcharge condition to already invoiced order and than as result debit memo?
    The answer is No. You cannot add or change the condition once it is invoiced.
    > And one more question : Are there some time restrictions when debit/credit memo can be created? (I believe not, but I would like to have this confirmed, as I am not SD expert.)
    The answer is No again. There is no time restriction and you can create debit or credit memo immediately when the invoice is released to accounting.
    Hope this helps
    Thanks
    Mukund S

  • How to copy header/item text from Quotation to sales order?

    Dear All,
    On ECC 6, I am trying to get text copied from the quotation to the sales order (when the order is created with reference to the quote).
    As of now, the order creation is fine with all the right items & partners etc. in it, but the text is missing.
    The same text IDs have been assigned to both documents (at header & item levels).
    Is the text content supposed to be copied by standard SAP? Is there any customizing needed for this? Please guide me on how I can achieve this.
    Please help.
    Thanks
    Best regards,
    Rohit L
    Edited by: Rohit Lokray on Nov 26, 2009 10:49 AM

    Hi Rohit,
    Pls check this e.g.
    Text Determination Procedure
    You can define text for
    Customer
    Sales document
    Delivery
    Billing 
    1) Create new text types
    (Menu Path:  SPRO-IMG-Sales and distribution- Basic function-Text Control-Define text type). You can define new text type in this menu for your requirement for different objects (Customer, Sales document, Delivery and billing document). T-code: VOTXN
    2) Assign the new text ID in the text   determination procedure
    (Menu Path:  SPRO-IMG-Sales and distribution-Basic function- Text Control-Define text type). Click on change on application tool bar. Select text procedure   created and double click on Text ID'  s in text Procedure. Assign new text Id to Text determination procedure
    3) Define and Assign an access sequence to the new text ID
    (Menu Path: SPRO-IMG-Sales and distribution-Basic function-Text Control-Define access sequence for determining text).Access sequence can be defined only for sales document not for customer master. Select text procedure and double click on text id's in text procedure folder. Select text id and double click on access sequence and create new access sequence here.
    4) Assign the Text determination procedure with the sales document type.
    (Menu Path: SPRO-IMG-Sales and distribution-Basic function-Text Control-Define and assign text determination procedure) In this menu path you can assign text determination procedure to sales document type.
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/90/758534c960a134e10000009b38f83b/frameset.htm]

  • Sales BOM : Header item stock and cost

    Hello gurus,
    I'm very new for sales BOM and have one questions.
    We have material A and B (purchased from vendor).
    They will be assembled by 3PL company as C.
    Then we will sell C to the our customer.
    I want to set price/cost at the header item level.
    because we will sell material B free of charge.
    I've set C like below  
    1. Item category group. : ERLA
       Item category : TAQ
       Setting of A and B
        Item category group. : NORM
       Item category : TAE
    2. Then make BOM in tcode CS01 with C
        Material : C
        Plant: XXXX
        BOM Usage :5
        subitem : A, B
        Item category : N(Non-stock item)
    After then I tried to make a sales order
    with material C.
    I can get sub-items(A,B) successfully
    however system said there is no atp stock for C.
    How can I get stock of C from stock of A and B?
    And How can I set the cost of C with value of A+B?
    And How can I set the condition of C to calculate cost of C in header level?
    or can I set like
    price is determined in header level and cost is calculated in item level?
    Or please recommend nicer solution.
    Thank you very much.
    J.K.

    Hi Azam,
    It seems to me that you want to use Delivery Group for Sales BOM where If Mat A = Mat B + Mat C and Mat B Availability date is 20/07/2014 (DD/MM/YYYY) and Mat C availability is 25/07/2014 then Main line item should be confirmed with 25/07/2014.
    If any one sub Item is not available, then Any of the item from the Grouping should not be dispatched.
    If this is the requirement then, In Item Category (VOV7) for main Item update Create Delivery Group field with X and your requirement will be fulfilled.
    Do let us know the result after testing.
    Regards,
    MJ.

  • Header/Item extractor data modelling question

    Hi,
    I have installed the Business Content for CRM Activities. In the Business Content they have a separate extractor and cube for header and item level.
    However, for our reporting requirements we would like to use one cube. We don't consider a multicube as a valid solution since the item/header cubes have ofcourse not all fields in common what will lead to the famous not-assigned behaviour in Bex.
    Therefore I'm trying to enrich each item line with all header fields. I don't want to write a user-exit to enhance the item extractor on datasource side since this will be a lot of work and also not sure this would be delta-compatible. I have bad experiences with this on a previous project.
    So I would like to find a solution on BW (data modelling) side but at the moment I don't see any good alternatives. The only thing that I can think of is to build one ODS/master data object (transaction number) that contains all header information and to read this ODS/Master data object while loading the item lines from the ODS to the cube. This way I can copy all header fields to the item line. But this will force me to do FULL loads between the item ODS and the "global" cube and ofcourse I would like to avoid this. (if a header fields changes I want this to be changed in all item lines as well ofcourse)
    Does anyone have better solutions ?
    Thanks

    What I finally did is the following :
    1) Create a new cube with all characteristics and keyfigures from header/item level.
    2) Load Header ODS to new cube
    3) Load Item ODS to new cube but via a startroutine that enriches the item datasources with all header characteristics that are not yet available on item level.
    4) Make a query and put constant selection on a restricted keyfigure that contains the following :
    a) Product (item level) ==> CONSTANT SELECTION enabled
    b) Nr. of activities (header level)
    In Bex everything looks now fine with the nr. of activities header keyfigure, even when I do a filtering on material that still only exists on item level thanks to the constant selection but my result row is acting a little bit dissapointing. I hope that can be solved.
    Let me give an example : (i'm even excluding the header line in this query)
    1) all fine
       Transaction nr ; Nr. Of activities
       6000           ; 1
       ====================================
    Resultrow           1
    2) drilldown to material
       Transaction nr ; Material ; Nr of activities
       6000           ; 12D      ; 1
       6000           ; 13D      ; 1
    =====================================================
    Resultrow                      2
    ==> As you can see the resultrow changes to 2 after doing the drill-down.
    Note that I am using "calculate result as summation". If I use "nothing defined" the result will be fine in this case but then it is not correct in the case where I do filterings on e.g. a material number. It will then show the number of activities for the WHOLE query.
    Is there anything I can do to get the resultrow right in all circumstances using constant selection ?
    Thanks
    Message was edited by: Double U

  • Form's Experts, Ur attention please..form level first or item level first ?

    Hi
    I placed some validation code in when_valid_item at both form and item level. if i execute the form which triggers fires first. because both the triggers at same level has the same code, which will fire first.?
    thanx
    asp

    Hi Francois Degrelle
    Thanks for ur answer but, u said that it is subsitutued, before or after, but actually i found out that is override or before or after in 10 g
    Any very thanx u are the first person answered this question since i posted the same question many times but no statisfactory reply.
    Thanks it's working
    prasanth

  • How can we revise the pricing both at header and item level of sales order?

    Dear All,
      Now there's one issue of the pricing to me. i want to revise the pricing both at header and item level of sales order. but after i finished the cutomize and tested it, it's more different as i thought. i found that the pricing can revise at the one side only,for example, if i revise the pricing at item level and it's grey and can't be revised at the header. on the other hand, it's the same result what's happened at item.
      So, in my opinion, we can't revise the pricing both at header and item, right? if not, please give me more advices and teach me how to solve the problem. thanks a lot.

    Dear Lakshmipathi,
      Thanks a lot for your kindly and useful answer for me and I learn more for the pricing technology.
      I didn't notice the way that you reminded ago therefore I also saw the button at the condition tab. And your suggestion makes me know more.
      And I had tested the way that you said, I met with a question. Below is my opinion for my testing.
      I had created one SO and the pricing was $10, then I revised the pricing from 10 to 15 by VK11. It can't be updated automatically at SO and I must update it manually by clicking the "Update" button. This is OK for my testing, but I have another question to disturb you for the use of "Active" button. When I click the button and nothing is responsed, it's quite different what you said. So, please give more detail for the Active button. Thanks a lot.

  • Frieght should appear in both header and item levels

    Hi SAP gurus,
    while doing the Sales Order transaction(va01),  frieght should appear in both header and item levels,  how can we configure in SAP.
    Thanks in advance.
    Sathya........

    Hi Sathya,
                   You can maintain the  Fright condition type (KF00) in your pricing procedure and maintain the condition record for that as per your requirement, or you enter manually at Sales Oreder it will come at header and item level.
    I hope it will solve your problem,
    Regards,
    Murali.

  • A new TAB in MIGO both at header as well at item level

    hey Folks ,
    My requirement is I want to add a new TAB in MIGO both at header as well at item level , I have made efforts with BADI *mb_migo_badi * and added the tab with a text box   .
    I want to save the text added in the text box  ,
    Please help how to procede ...!
    Regards
    Swapnil

    Hey Ashok ,
    I have already made the efforts with the same class .
    My problem is that i had to save the TEXT in the TEXT BOX with the OBJECT ID ,OBJECT NAME  I have used various function mobules as create text ,save text also .....!
    Have created  OBJECT ID  using SE75 since for MIGO transaction its not provided by SAP
    Please guide me for the same .
    Regards
    Swapnil

  • Printing of Condition value at both header and Item level

    Dear Sap Gurus,
    Please any body tell me how to print the condition value at both header and at item level in PO print out. ie.  I am using RA00 at both item and header level and i want to print this value at both header and item level.
    Thanks and Regards,
    Patil

    Hi,
    Please check with abaper is he calling the function like mention below or not
    CALL FUNCTION 'PRICING'
        EXPORTING
          calculation_type = 'B'   
    or  (calculation types = as in condition type)
          comm_head_i      = komk
          comm_item_i      = komp
          preliminary      = ' '
          no_calculation   = ' '
        IMPORTING
          comm_head_e      = komk
          comm_item_e      = komp
        TABLES
          tkomv            = i_komv.
    regards
    Edited by: bvdv on Jul 8, 2009 7:35 PM

  • Traffic lights in ALV list header

    how do i display traffic lights as icons in ALV list header. for example, in the code below, i want to display a green icon at the end of closed items and a red icon at the end of the open items:
                closed : 4 [green-icon]
                open   : 2  [red-icon]
    CLEAR header_alv_wa-info.
      header_alv_wa-key  = 'closed:'.
      header_alv_wa-info = gv_closed.
      header_alv_wa-typ  = 'S'.
      APPEND header_alv_wa TO headeralv.
      CLEAR header_alv_wa-info.
      header_alv_wa-typ  = 'S'.
      header_alv_wa-key  = 'open:'.
      header_alv_wa-info = gv_open.
      APPEND header_alv_wa TO headeralv.

    Hi,
    http://www.sapfans.com/forums/viewtopic.php?t=79424
    http://www.sapfans.com/forums/viewtopic.php?t=24512
    the above links will give u the code for the same..
    Regards,
    Aparna

  • PO number prints only if it is at header level not for item level

    Hi All,
    I am not able to print the PO number in my order acknowledgement and COA printout when I enter the PO number in the sales order at item level of only. It prints fine when it is at the header level.
    Please assist.
    Thank you,
    Shanu Jain

    Hi,
    BSTKD Field in the VBKD is dependent on two things . IF the Header PO Number is same as the Item number if u change at Header level it will be changed at all items level also. If both are diff then if u change the PO Number at Header level it will change PO numbers of the Items which is having same value as Header Po Number otherwise it wont change the Item PO Number .
    Ex " Order Number 1000 is having PO Number at Header Level is PO1. And the sales order is having Item 010 and 020.
    IF Item 010 and 020 is having PO1 at item level if u change the value of PO1 at header Level if will be applicable to items 010 and 020.
    If Item 010 is having Po Number PO1 and 020 is having PO2, if i change value of PO number at header to PO3 then it will change Item 010 PO Number to PO3 and Item 020 PO Number will be same as PO2.
    Try to Take The VBKD - BSTKD where Item Number POSNR is blank that means Header PO Number .
    IF u want Item Po Number then pass the item number in POSNR and get it.
    Regards,
    Srinivas.

  • Delivery tolerance at header and item level in sales order

    Dear All,
    My client wants to maintain delivery tolerance at both header and item level. NOTE: The tolerance at sales order header is different than the delivery tolerance at sales order item.
    eg if i maintain 3% plus and minus tolerance at item, the header level tolerance can be 2%.
    Also if there are more than 1 line items, the system should give warning message, when it finds that the delivery tolerance at item level can be maintained but that of the header level cannot be maintained and vice varsa.
    Awaiting an early help and thankful for the same in advance.
    Regards,
    Avnesh Kamdar

    Hi Avnesh,
    Delivery tolerance can be made in the customer master,sales org data ---delivery tab.
    Delivery tolerance is always at item level.
    Reward points if it helps.
    Regards
    Karan

Maybe you are looking for

  • IPod Shuffle Music Distorted

    I got an IPod Shuffle for Christmas and I downloaded music and it worked fine for about an hour and now the music sounds distorted (can't make out the words on songs, although you can hear music...). Is this is a hardware problem or do I need to rese

  • Time Capsule backups disappeared. Anyone can help?

    Hello! I would like to know if anyone has experienced the problem I'm having now. I have a 2TB Time Capsule to backup the data from my MacBook Pro (2.53GHz Core 2 Duo). A couple of days ago, I needed to look for a backed up file, so I ran to my TC ba

  • Installing 11gR2 (linux.zseries64) on oracle linux 5 guest system failed

    Dear experts, I decided to post a detailed thread since it seems my last thread is totally forgotten. Hopefully, this thread could clarify my problem of installing oracle database 11.2.0.2 in oracle linux guest system in windows 7 host system. Sorry

  • Pidgin crashing - _gtk_text_btree_tag assertion failed

    This started today after running a system upgrade and doing some cleanup. At first swiftdove started crashing but then I realised that the build I was using was no longer in the aur. I uninstalled it and installed a new version (also from AUR). Pidgi

  • Prem Pro Creatice Cloud hangs up and will not launch on windows 8.1

    It stops loading on (Loading Exporter AVI.prm. It was working fine until I updated to 8.1. Adobe says its OK to run with 8.1 I need to get this fixed it has shut down all production. Help please.