Unit wise discounts and brokerages

Hi All,
Our sales process requires us to extend discounts and brokerages on a per unit basis and not on percentage basis. Is this possible in SAP BI. 
Also we need to know if penalties for late payments can be incorpated along with cash discounts for early payments in the same payment terms but on a per unit basis only and not as percentage basis.
Thanks and regards.

Dear Avinash,
Item wise brokarage you can set.
Go to  genaral seeting go to BP > Set commision by Item.
Than go to Item master sales tab here set brokageper per unit.
For unit discount you have to take help of SDK.
for let payment in 8.82 there is fuctinality to calulate Intrest.
Regards
MANGESH PAGDAHRE.

Similar Messages

  • Printing of Item Wise Fright and Discount in PO

    Dear Experts,
    When we are printing the PO, we are getting the Fright and Discounts as total but we want the same to be printed at each item level.
    Kindly Advise.
    Regards,
    Suman

    Hi,
    Inorder to get dicount item wise then you need to create condition type for discount and make it available in your pricing procedure which gets populatd intio your po through your Vendor.Thn you can give the dicount % or value for each item of your PO.
    Thanks
    Edited by: Madhavi.n on Oct 18, 2011 12:06 PM

  • Ageing wise vendor  and customer report

    hi....
    Where i can get ageing wise vendor  and customer report?
    Thanks & Regards
    Rekha shrama

    Hello
    First configure credit management & customise.
    A/R Summary
    Degree of ageing
    You can set the allowed degree of ageing in Customizing for Sales, under Basic Functions ® Credit Management/Risk Management ® Credit Management ® Define Automatic Credit Control.
    Under Checks in financial accounting/ old A/R summary, you can enter the permitted degree of ageing for the A/R summary, in the fíelds Permitted days and Permitted hours. Here, you can define how old the A/R summary can be, in order to be called up for a check. If the permitted degree of ageing for the A/R summary is exceeded in the credit check, then the document is blocked.
    Fields allowed days and allowed hours are only available for entry if you have entered an X in field Read A/R Summary in Customizing. The path is: Accounts Receivable and Accounts ® Credit Management ® Credit Control Account ® Make basic settings for credit management.
    Updating
    The A/R summary is either sent periodically (with the help of the report RFCMCRCV) from central Financial Accounting to the decentralized Sales and Distribution units according to ALE distribution model or, if an obsolete A/R summary is presented, updated for the credit check by the system per remote function.
    In order that the system is burdened as little as possible, SAP recommends you stick to the following order:
    Program run: Incoming payments in central FI
    Program run: Distribution A/R summary from central FI to decentralized Sales and Distribution units
    Program run: Renewed credit check for blocked sales documents in decentralized Sales and Distribution units
    Status Management for Obsolete A/R Summary
    If the A/R summary is obsolete, the credit status Credit data obsolete is set. This means that the document is blocked, and appears in the credit representativeu2019s worklist. In Customizing for Sales, in the section Automatic Credit Control, for the single, aforementioned checks, for which FI data is necessary, you can define whether a warning appears in the obsolete data, or whether a status is set.
    If you are working with the A/R summary, and would like to re-process obsolete data, it is recommended that you set a status.
    Reg
    suresh

  • Business area wise profit and loss account urgent

    dear all
    According to business scenario we are going here purchase is made for business area AA purchase account is assigned to this business araea
    later in goods issue we are going to issue R/M for two different business areas.
    purchase one R/M  for business area AA and it is manufactured in two different business areas for production.say two different businesses  A1 manufacturing bricks & A2 is manufacturing of Tails.
    MIGO - They purchase R/M  cement GL account 800000  at company code level  Rs.  2000 and units 10 business area is AA
    Goods Issue MB1A
    They purchase goods for business area AA and they issue goods for business areas A1 and A2 (my question is what is the impact on business area p&L account for this account )
    EX:- For  A1 Rs 600  & 3 units
           For A2  Rs 1400  & 7 units
    When i generate  P&L account business area wise A1 & A2 it is not going to tally.
    so purchase account 800000 is not assigned to business area A1 and A2 it is assigned to business area AA.
    According to business scenario is the purchase is done in one business area AA then by goods issue it is issued to two different business areas.
    according to above example.
    please tell me what is the JV i want to pass to tally business area wise profit and loss account  ro
    i am not able to generate business area A1 & A2 wise P&L accounts  so purchase accoutn assign to business area AA
    regards
    babu

    It's possible in 4.7 and earlier, but not using the FI transactions.  Most places would build these in the report painter/writer, or in KE80.

  • Item wise discount in PO

    Hi Experts,
    I want to create a PO with item wise discount where i will find the item wise discount options and the vendor is a foreign vendor.
    thanks..
    altaf
    Edited by: Csaba Szommer on Oct 18, 2011 8:37 AM

    Hi,
    Inorder to get dicount item wise then you need to create condition type for discount and make it available in your pricing procedure which gets populatd intio your po through your Vendor.Thn you can give the dicount % or value for each item of your PO.
    Thanks
    Edited by: Madhavi.n on Oct 18, 2011 12:06 PM

  • Conversion factor plant or any other organizational unit wise

    Dear Experts,
    Is it posible to maintain the conversion factor between base unit and alter nate unit plant or any other organizational unit wise?
    Please suggest.
    Rgds

    Dear
    what you haver to do is:
    Go to MM02...
    If say you Base UOM is EA and you want to maintain Carton as Alternate UOM...
    then give EA in Base UOM ...Now click on additional data-Click on Unit of Measure Tab---Here you maintain your conversion factor for EA and Carton...
    If at all you are at client level, then also no issues as there are maintained at Masters level.
    These data are maintained at Client level.
    Regards
    Utsav

  • Unit wise inspection in RR

    Hi,
    This is the result recording scenario
    Actually as per client requirement they want a decision for accept and reject the material per unit wise
    Currently it is characteristic wise in general tab of result recording
    But they want acceptance and rejection criteria in unit wise in unit to be inspected tab
    kindly suggest
    Maashish

    Dear Maashish
    Nayak is right . You have to use Single recording.
    If you want to record individual unit of insp then kindly go to detail screen. There you can enter the MIC values as well as the inspection unit number
    Hope this solves the issue
    Regards
    gajesh

  • Display discounts and surcharges

    hi experts
    i have to display one discount and surcharges for one vbeln,  posnr  and one material,
    i have used konv-kschl for condition type and konv-kwert for condition value.
    in my output the conditions what i have given for discounts and surcharges its matching and displaying in different lines. usually i should one line of output one vbeln, but iam getting 3 times, please modify the conditions below what i have given in my object.
    LOOP AT it_konv INTO wa_konv.
        CASE wa_konv-kschl.
          WHEN 'ZD01' OR 'ZD02' OR 'ZD03'.
            wa_konv-discounts = wa_konv-kwert.
          WHEN 'ZEXP'  OR  'ZEXW' OR  'ZCAF' OR 'ZCAP' OR  'ZCAQ'
               OR  'ZS01' OR  'ZS02' OR   'ZS03'.
            wa_konv-surcharges = wa_konv-kwert.
          WHEN OTHERS.
            DELETE it_konv WHERE kschl = wa_konv-kschl.
        ENDCASE.
        MODIFY it_konv FROM wa_konv TRANSPORTING  discounts surcharges.
        CLEAR wa_konv.
        REFRESH wa_konv.
      ENDLOOP.
    please clarify
    thanks in advance

    dear sir
    i will send my object u plz check. their is value for kbetr
    Table Definitions
    TABLES :  knvh,   "Customer Hierarchies
              konv,   "Conditions (Item)
              vbak,   "Sales Document: Header Data
              vbap,   "Sales Document: Item Data
              vbpa.   "Sales Document: Partner
    Internal Tables declaration
    TYPES : BEGIN OF knvh1,
            hkunnr LIKE knvh-hkunnr,    "Customer number of the higher-level customer hierarchy
            kunnr LIKE knvh-kunnr,      "Customer
           END OF knvh1.
    TYPES : BEGIN OF vbak1,
              kunnr       LIKE vbak-kunnr,
              vbeln       LIKE vbak-vbeln,             "Sales Document
              erdat       LIKE vbak-erdat,             "Date on Which Record Was Created
              posnr       LIKE vbap-posnr,             "Sales Document Item
              bstzd       LIKE vbak-bstzd,             "Purchase order number supplement
              matnr       LIKE vbap-matnr,             "Material Number
              spart       LIKE vbap-spart,             "Division
              vtweg       LIKE vbak-vtweg,             "Distribution Channel
              mwsbp       LIKE vbap-mwsbp,             "Tax amount in document currency
              kwmeng      LIKE vbap-kwmeng,            "Cumulative Order Quantity in Sales Units
              netwr       LIKE vbap-netwr,
              knumv       LIKE vbak-knumv,              "Number of the document condition
              kzwi1       LIKE vbap-kzwi1,              "Rate (grossamount)
              ps_psp_pnr  LIKE vbak-ps_psp_pnr,      "Work Breakdown Structure Element (WBS  Element)/project ID
             sellingprice LIKE vbap-netwr,
              netvalue    LIKE vbap-netwr,           "Net Value of the Sales Order in Document  Currency
              grossamount LIKE vbap-kzwi1,
           END OF vbak1.
    TYPES: BEGIN OF konv1 ,
              knumv LIKE konv-knumv,            "Number of the document condition
              kschl LIKE konv-kschl,            "Condition type
              kwert LIKE konv-kwert,            "Condition value
              kbetr LIKE konv-kbetr,
              kposn LIKE konv-kposn,
              discounts LIKE konv-kwert,
              surcharges LIKE konv-kwert,
             hkunnr LIKE knvh-hkunnr,
            kunnr LIKE knvh-kunnr,
         END OF konv1.
    TYPES : BEGIN OF str,
              kunnr       LIKE knvh-kunnr,
              vbeln       LIKE vbak-vbeln,
              posnr       LIKE vbap-posnr,             "Sales Document Item
              matnr       LIKE vbap-matnr,
             sellingprice LIKE vbap-netwr,
              ps_psp_pnr  LIKE vbak-ps_psp_pnr,
              kwmeng      LIKE vbap-kwmeng,
              bstzd       LIKE vbak-bstzd,
              vtweg       LIKE vbak-vtweg,
              discounts   LIKE konv-kwert,
              mwsbp       LIKE vbap-mwsbp,
              surcharges  LIKE konv-kwert,
              netvalue    LIKE vbap-netwr,
              grossamount LIKE vbap-kzwi1,
         END OF str.
    DATA:wa_knvh TYPE knvh1,
         it_knvh TYPE TABLE OF knvh1.
    DATA: wa_vbak TYPE vbak1,
          it_vbak TYPE TABLE OF vbak1.
    DATA: wa_konv TYPE konv1,
          it_konv TYPE TABLE OF konv1.
    DATA: wa_display1 TYPE str,
          it_display1 TYPE TABLE OF str.
    DATA: wa_display TYPE str,
          it_display TYPE TABLE OF str.
       ALV Declaration
    TYPE-POOLS:slis.
    DATA   t_fld TYPE slis_fieldcat_alv.
    DATA:  repid            LIKE    sy-repid,                "Report ID
           is_layout        TYPE    slis_layout_alv,         "Layout For ALV
           it_fieldcat      TYPE    slis_t_fieldcat_alv,     "ITAB for field
           wa_fieldcat      TYPE    slis_fieldcat_alv,
           it_events        TYPE    slis_t_event,            "ITAB for event
           it_listheader    TYPE    slis_t_listheader.       "Itab for listheader
    DATA:  ls_selfield      TYPE    slis_selfield.
    Selection Screen Definitions
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE  b001.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE  a001.
    PARAMETERS : p_hkunnr TYPE knvh-hkunnr OBLIGATORY.
    SELECT-OPTIONS : s_kunnr FOR knvh-kunnr,
                     s_erdat FOR vbak-erdat,
                     s_p_ps_p FOR vbak-ps_psp_pnr,
                     s_hspart FOR vbap-spart,
                     s_hvtweg FOR vbak-vtweg,
                     s_bstzd FOR vbak-bstzd.
    SELECTION-SCREEN END OF BLOCK a1.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION
    INITIALIZATION.
      repid = sy-repid.
      a001 = 'SELECTION CRITERIA'.
    START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM condition_check.
      PERFORM process_data.
      PERFORM display_data.
    END-OF-SELECTION.
    **END-OF-SELECTION.
    **&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM get_data .
      SELECT  hkunnr kunnr  FROM knvh
                            INTO CORRESPONDING FIELDS OF TABLE it_knvh
                            WHERE hkunnr = p_hkunnr AND kunnr IN s_kunnr.
      IF sy-subrc <> 0.
        MESSAGE e012(zmsg).
      ENDIF.
      SELECT  a~vbeln
              a~kunnr
             a~erdat
             a~bstzd
             a~vtweg
             a~knumv
             a~ps_psp_pnr
             b~posnr
             b~matnr
             b~mwsbp
             b~kwmeng
             b~kzwi1
             b~spart
             b~netwr
            FROM vbak AS a INNER JOIN vbap AS b ON bvbeln = avbeln
                      INTO CORRESPONDING FIELDS OF TABLE it_vbak
                     FOR ALL ENTRIES IN it_knvh
                        WHERE a~kunnr = it_knvh-kunnr
                             AND a~erdat IN s_erdat
                             AND a~ps_psp_pnr IN s_p_ps_p .
      SELECT  knumv kposn kschl kbetr kwert   FROM konv INTO CORRESPONDING FIELDS OF TABLE  it_konv
                   FOR ALL ENTRIES IN it_vbak
                   WHERE knumv = it_vbak-knumv .
    ENDFORM.                    " GET_DATA
    *&      Form  condition_check
          text
    -->  p1        text
    <--  p2        text
    FORM condition_check .
    To get the values for selling price, surcharges and discounts
      LOOP AT it_vbak INTO wa_vbak  .
        LOOP AT it_konv INTO wa_konv WHERE knumv = wa_vbak-knumv.
          CASE wa_konv-kschl.
            WHEN 'ZD01' OR 'ZD02' OR 'ZD03'.
              wa_konv-discounts = wa_konv-kwert.
            WHEN 'ZEXP'  OR  'ZEXW' OR  'ZCAF' OR 'ZCAP' OR  'ZCAQ'
                 OR  'ZS01' OR  'ZS02' OR   'ZS03'.
              wa_konv-surcharges = wa_konv-kwert.
            WHEN OTHERS.
              DELETE it_konv WHERE kschl = wa_konv-kschl.
          ENDCASE.
          MODIFY it_konv FROM wa_konv TRANSPORTING  discounts surcharges.
          CLEAR wa_konv.
        ENDLOOP.
    ENDLOOP.
      ENDFORM.                    " condition_check
    **&      Form  process_data
          text
    -->  p1        text
    <--  p2        text
    FORM process_data.
      LOOP AT it_vbak INTO wa_vbak  .
        LOOP AT it_konv INTO wa_konv WHERE knumv = wa_vbak-knumv.
        wa_display1-kunnr         = wa_vbak-kunnr.
        wa_display1-vbeln         = wa_vbak-vbeln.
        wa_display1-posnr         = wa_vbak-posnr.
        wa_display1-matnr         = wa_vbak-matnr.
        wa_display1-sellingprice  = wa_vbak-netwr + wa_vbak-mwsbp.
        wa_display1-ps_psp_pnr    = wa_vbak-ps_psp_pnr.
        wa_display1-kwmeng        = wa_vbak-kwmeng.
        wa_display1-bstzd         = wa_vbak-bstzd.
        wa_display1-vtweg         = wa_vbak-vtweg.
        wa_display1-discounts     = wa_konv-discounts.
        wa_display1-mwsbp         = wa_vbak-mwsbp.
        wa_display1-surcharges    = wa_konv-surcharges.
        wa_display1-netvalue      = wa_vbak-netwr.
        wa_display1-grossamount   = wa_vbak-kzwi1.
        APPEND wa_display1 TO it_display1.
        CLEAR wa_display1.
      ENDLOOP.
    ENDLOOP.
      LOOP AT it_display1 INTO wa_display1.
        READ TABLE it_knvh
                      WITH  KEY kunnr = wa_display1-kunnr INTO wa_knvh.
        wa_display-kunnr         = wa_knvh-kunnr.
        wa_display-vbeln         = wa_display1-vbeln.
        wa_display-posnr         = wa_display1-posnr.
        wa_display-matnr         = wa_display1-matnr.
        wa_display-sellingprice  = wa_display1-sellingprice.
        wa_display-ps_psp_pnr    = wa_display1-ps_psp_pnr.
        wa_display-kwmeng        = wa_display1-kwmeng.
        wa_display-bstzd         = wa_display1-bstzd.
        wa_display-vtweg         = wa_display1-vtweg.
        wa_display-discounts     = wa_display1-discounts.
        wa_display-mwsbp         = wa_display1-mwsbp.
        wa_display-surcharges    = wa_display1-surcharges.
        wa_display-netvalue      = wa_display1-netvalue.
        wa_display-grossamount   = wa_display1-grossamount.
        APPEND wa_display TO it_display.
        CLEAR wa_display.
       DELETE ADJACENT DUPLICATES FROM it_display..
      ENDLOOP.
    ENDFORM.                    " process_data
    **&      Form  display_data
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      PERFORM fill_layout_structure.
      PERFORM fill_field_catalog_table.
      PERFORM alv_header USING it_listheader.
      PERFORM events USING it_events.
      PERFORM call_alv_function.
    ENDFORM.                    " display_data
    **SUBROUTINE TO FILL LAYOUT STRUCTURE
    FORM fill_layout_structure .
      CLEAR is_layout.
      is_layout-colwidth_optimize = 'X'.
      is_layout-zebra = 'X'.
    ENDFORM.                    "fill_layout_structure
    ***SUBROUTINE FOR FIELD CATALOG TABLE DEFINITION
    FORM fill_field_catalog_table.
      wa_fieldcat-fieldname = 'KUNNR'.
      wa_fieldcat-seltext_m = 'CUSTOMER'.
      wa_fieldcat-outputlen = '10'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'VBELN'.
      wa_fieldcat-seltext_s = 'DOC NO'.
      wa_fieldcat-outputlen = '10'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'POSNR'.
      wa_fieldcat-seltext_m = 'ITEM ' .
      wa_fieldcat-outputlen = '6'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'MATNR'.
      wa_fieldcat-seltext_m = 'MATERIAL'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-outputlen = '18'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'SELLINGPRICE'.
      wa_fieldcat-seltext_m = 'SELLING PRICE'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-outputlen = '21'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'PS_PSP_PNR'.
      wa_fieldcat-seltext_m = 'PROJECT ID'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-outputlen = '24'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'KWMENG'.
      wa_fieldcat-seltext_m = 'QUANTITY'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-ddic_outputlen = '19'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'BSTZD'.
      wa_fieldcat-seltext_m = 'ORD. SOUR'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-outputlen = '4'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'VTWEG'.
      wa_fieldcat-seltext_m = 'DIST CHANNEL'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-outputlen = '2'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'DISCOUNTS'.
      wa_fieldcat-seltext_m = 'DISCOUNTS'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-outputlen = '18'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'MWSBP'.
      wa_fieldcat-seltext_m = 'GST'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-outputlen = '18'.
      wa_fieldcat-ref_fieldname =  'WAERK'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'SURCHARGES'.
      wa_fieldcat-seltext_m = 'SURCHARGES'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-outputlen = '18'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'NETVALUE'.
      wa_fieldcat-seltext_m = 'NET VALUE'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-outputlen = '21'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'GROSSAMOUNT'.
      wa_fieldcat-seltext_m = 'GROSS AMOUNT'.
      wa_fieldcat-tabname = 'IT_DISPLAY'.
      wa_fieldcat-outputlen = '18'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
    ENDFORM.                    "output_data
    ***SUBROUTINE FOR ALV HEADER
    FORM alv_header USING it_listheader TYPE slis_t_listheader.
      DATA : wa_listheader TYPE slis_listheader.
      DATA : days LIKE dtresr-weekday.
      DATA : name1 LIKE kna1-name1.
      SELECT name1 FROM kna1 INTO name1 WHERE kunnr = p_hkunnr.
      ENDSELECT.
      DATA :  v_date(10) TYPE c,
             v_erdat(10) TYPE c,
             v_erdat1(10) TYPE c,
             temp(60) TYPE c,
             temp1(60) TYPE c,
             temp2(60) TYPE c,
             temp3(60) TYPE c.
      WRITE : s_erdat-low TO v_erdat DD/MM/YYYY NO-GAP.
      WRITE : s_erdat-high TO v_erdat1 DD/MM/YYYY NO-GAP.
      WRITE : sy-datum TO v_date DD/MM/YYYY NO-GAP.
      CONCATENATE  sy-uname   days    v_date   sy-uzeit  INTO temp SEPARATED BY space.
      CONCATENATE  v_erdat   v_erdat1 INTO temp1 SEPARATED BY space.
      CONCATENATE  'Hlev customer'  p_hkunnr name1 INTO temp2 SEPARATED BY space.
      CALL FUNCTION 'DATE_TO_DAY'
        EXPORTING
          date    = sy-datum
        IMPORTING
          weekday = days.
      CLEAR wa_listheader.
      REFRESH it_listheader.
      wa_listheader-typ  = 'H'.
      wa_listheader-info = 'Mathur collaborations’' .
      APPEND wa_listheader TO it_listheader.
      wa_listheader-typ  = 'S'.
      wa_listheader-info = temp.
      APPEND wa_listheader TO it_listheader.
      wa_listheader-typ  = 'S'.
      wa_listheader-info = sy-repid.
      APPEND wa_listheader TO it_listheader.
      wa_listheader-typ  = 'S'.
      wa_listheader-info =  temp1.
      APPEND wa_listheader TO it_listheader.
      wa_listheader-typ  = 'S'.
      wa_listheader-info =  s_p_ps_p.
      APPEND wa_listheader TO it_listheader.
      wa_listheader-typ  = 'S'.
      wa_listheader-info = temp2.
      APPEND wa_listheader TO it_listheader.
    ENDFORM.                    "alv_header
    **SUBROUTINE FOR ALV EVENT                                             *
    FORM events USING  it_events TYPE slis_t_event.
      DATA : wa_event TYPE slis_alv_event.
      CLEAR wa_event.
      wa_event-name = 'TOP-OF-PAGE'.
      wa_event-form = 'TOP_OF_PAGE'.
      APPEND wa_event TO it_events.
    ENDFORM.                    " f4000_event
    **SUBROUTINE FOR EVENT INFORMATIONS TO ASSIGN TO THE PARTICULAR EVENT  *
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = it_listheader.
    ENDFORM.                    "COMMENTARY_WRITE
    **FORM FOR ALV FUNCTIONS
    FORM call_alv_function.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
         i_callback_program               = repid
       i_callback_pf_status_set           = ' '
      I_CALLBACK_USER_COMMAND           = ' '
         i_callback_top_of_page            = 'TOP_OF_PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
         is_layout                         = is_layout
         it_fieldcat                       = it_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
       it_events                          = it_events[]
      IT_EVENT_EXIT                     =
      IS_PRINT                          =   IS_REPREP_ID
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = it_display
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "call_alv_function

  • Report  for bom wise target and actual cost as well as qty at line item

    Dear Experts,
    Is there any standard tcode for bom wise target and actual cost as well as qty at line item level for the month.
    there is one tcode s_alr_87013127 but user has to double click in order to get line item details.
    I want to see line item wise breakup/bom wise target and cost cost as well as qty.
    Thanks in advance.
    regards
    RK

    Dear experts,
    I am still looking for a revert.
    regards
    RK

  • MB5B Report for Date Wise Stock and Value

    Hi,
    I am Taking MB5B Report for Date Wise Stock and Value.
    But I have one doubt all stocks is coming or not in these report like Unrestrected Stock,Return Stock.Blocked stock,Transist stock,Restrected Stock,qty Inspection Stock.
    I have another Doubt in these report three Stock type indicaters are there like these.
    1.Storage Location / Batch Stock
    2.valuated Stock
    3.Special Stock.
    But i have one doubt what is defferent these
    1.Storage Location / Batch Stock
    2.valuated Stock

    Hi Prasad,
    Yes MB5B report consider the Unrestricted, Quality, Blocked, Transit stock and restricted stock. Not sure about Return Stock.
    If you select the Storage location/Batch stock radio button then the system will display all the possible stock from the storage location and the corresponding batch also.
    If you select Valuated stock radio button then system will show only the valuated stock not the Non-valuated stock. Because Non-valuated material type is available in SAP system will not show those stock suppose if you select the Valuated stock radio button.
    Regards
    Karthick

  • Unit testing, integration and functional testing

    Hello all,
    I would like to know the difference between Unit testing, integration and functional testing. And also what are the testing tools that are more commonly used?
    Thanks,
    Maxx

    Hi,
        Unit testing :
                    A complete cycle of each  module will be tested
                    ie for PP Right from requirements to planned orders /production orders
                    confirmation .
        Integration testing:
                    Here cross module testing will be carried out.
                     ie PP and MM integration
                        After confirming production order a GR is made /billing is carried out
                        and delivered.
          Functional testing:
                    This testing is carried out to see whether the system can with stand l the loads during processing by users.
                    Stress test and volume test.
                Regards,
                nandha

  • Material wise reciept and Issue report with Opening and Closing Stock

    Hi
    I need a report,Material wise Receipt and issue with Opening and Closing stock.Is there any standard report available in SAP ?
    Or we have to go for Customised Report.
    Please reply

    Hi,
    MB5B gives total receipts - if i click on the receipts i can view the multiple material documents - BUT is there any way to drill down the reciepts or view the breakup of the receipts on the same screen OR is there any other report for this.
    Regards,
    Laxmi

  • XL-Reporter - sales analysis including row discount and document discount

    Hello World!
    In XLR I want to report all item-sales to customers grouped by item-groups based on invoives.
    Since I am interested only in net amounts (without tax, freight and other expenses) and discounts I use 'S0_LineTotal' as attribute.
    'SO_LineTotal' includes the discount of each item-row in the document.
    The row selection is as follows:
    FACT
    ARDT(Code = "ARCreditMemo","Invoice")
    FIG(SO_DocType = "I")
    ITM( * ) 
    Group By ITM.ItmsGrpCod
    The problem is that I also have to include the document discount 'OINV.DiscSum' in the result.
    In combination with the row selection specified above the attribute 'Total Discount' delivers no results (always 0).
    In the standard SAP report 'Sales - AR/Sales reports/Sales Analysis' the total discount is averaged to all items in the matrix of a document.
    How can I achieve this in my XL-Report?
    Thank you very much for your support!
    Frank Romeni
    Edited by: Frank Romeni on May 15, 2008 3:55 PM
    Edited by: Philip Eller on May 29, 2008 8:53 AM

    Hello,
    To get this, I tried drag following information from Report composer:
    Under Sales tab, choose Items(Display more atrributes to choose Item Group), Document Number(choose this one because same items may have different discount in different documents), Discount % Per Row(light dimension),Discount % Per Document(light dimension), Row Total(measure).
    Drag the Item Group to the Group region.
    Run the report and the result should be all items are grouped by item Group and discounts and total in different document for each item will be listed.
    Hope this helps you.
    Regards,
    Maggie An
    SAP Business One Forum Team

  • F-53 and F-28, Customized columns for cash discount and %

    Hi Expert,
    With reference to the subject of: Customized columns for cash discount and % ...
    I faced the problem of not able to set / defined hidden column for cash discount and % by creating a new variant.
    Steps:
    Create a variant
    Click <administrator> button ... mark the columns hidden, and click <activate> button
    Then click <Save> button
    Problem: Every time I using the F-53/F-28, the layout is not working, and when goto check the variant settings, the cash discount and % columns remained unchecked.
    SAP version: 4.6
    Kindly advise.
    Thanks and regards,
    sbmel

    Hi JP,
    It is not working using field status group, as I am using F-53 and F-28 and not FB50/60/70.
    The purpose I want to create variant for screen after clicking <process open item> is to control column display (hide cash discount and %).  if the variant is working, I can create a customized Tcode for the F-53 and F-28.
    Now problem is that variant seem not working.
    Thanks and regards,
    sbmel

  • Report of PO wise MIRO and GRN

    Dear all
    is there any standard report to know the PO wise MIRO and GRN details.
    This is required to be run periodically for a range of PO.
    Points will be given
    thanks
    sap

    Hi,
    In t code ME23N you have Purchase order history tab. there you will get the details.
    are you looking somethign else. please clarify
    regs
    sunoj

Maybe you are looking for

  • ORA-01720 while trying to grant select on a view

    Hi Friends, Iam getting the following error while trying to grant select privilege for the view to SchemaB, i have the view in schemaA. I have used the tables from both the schema for creating the view and iam getting the error on showing a particula

  • Best Practice?: Snapshot Production for Costco Printing

    I've got another LR user friend that asked me to think of a good way to crank out 4x6 images for some overdue family photobooks. My thinking is to have 2 presets, one for vertical, and one for horizontal. The presets would have a 4x6 crop, some clari

  • "Adobe Premiere Elements 13 has stopped working"

    I got a copy of Premiere Elements 13 on "Black Friday" (one month ago).  I am using stabilization and sometimes get "Adobe Premiere Elements 13 has stopped working".  I have been guessing at the problem and run several experiments - one being; stabil

  • How to compare user entered date with current date

    Hi all my requirement is, user allowed select one date, in code i have compare this date with current day date. it should be 15days gap other wise display error message. I am worried about how to get current date in code. Is there any code to get cur

  • Report format trigger not working

    Hi, I am using a format trigger on a column in my report as follows: function B_9FormatTrigger return boolean is begin if (:TEST > 30) then return (FALSE); else return (TRUE); end if; end; When testing in reports builder everything works fine, but wh