Display discounts and surcharges for the same vbeln in the same row
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 for the same vbeln and posnr. usually i should get one line of outputfor one vbeln, but iam getting 3 times repeated
(one without discounts, surcharges,
second : same vblen, posnr with discounts,
third : same vblen, posnr for surcharges )
please modify the internal table and conditions below what i have given in my object.
DATA : BEGIN OF it_konv OCCURS 0,
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 it_konv.
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.
As per one of the abap expert who responded to my query is the following.
DATA : BEGIN OF it_konv OCCURS 0,
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 it_konv.
DATA : BEGIN OF wa_konv OCCURS 0,
kposn LIKE konv-kposn,
discounts LIKE konv-kwert,
surcharges LIKE konv-kwert,
hkunnr LIKE knvh-hkunnr,
kunnr LIKE knvh-kunnr,
END OF wa_konv.
move '1' to it_konv-knumv.
move 'ZD01' to it_konv-kschl.
move '1200' to it_konv-kwert.
move '0010' to it_konv-kposn.
append it_konv.
move '2' to it_konv-knumv.
move 'ZEXP' to it_konv-kschl.
move '1300' to it_konv-kwert.
move '0010' to it_konv-kposn.
append it_konv.
move '3' to it_konv-knumv.
move 'ZEXP' to it_konv-kschl.
move '1400' to it_konv-kwert.
move '0010' to it_konv-kposn.
append it_konv.
LOOP AT it_konv.
MOVE-CORRESPONDING it_konv to wa_konv.
CASE IT_konv-kschl.
WHEN 'ZD01' OR 'ZD02' OR 'ZD03'.
wa_konv-discounts = IT_konv-kwert.
WHEN 'ZEXP' OR 'ZEXW' OR 'ZCAF' OR 'ZCAP' OR 'ZCAQ'
OR 'ZS01' OR 'ZS02' OR 'ZS03'.
wa_konv-surcharges = IT_konv-kwert.
ENDCASE.
COLLECT WA_KONV.
CLEAR wa_konv.
ENDLOOP.
But to try according to the above, i dont have the values for kwert, i know only the condition type (KSCHL). based on this how can i solve my problem
please clarify
thanks in advance
Refer to the suggestion given by Naimesh here Can we modify a sub-total in ALV making use of function GET_GLOBALS_FROM_SLVC_FULLSCR and the method GET_SUBTOTALS. You can see the parameter ep_collect01 refered in case of subtotals. Can you please check ep_collect00 for grand total in your case.
As said about EP_COLLECT00,here goes a classic example Modify grand total in ALV GRID
BR
Keshav
Edited by: Keshav.T on Sep 21, 2011 9:39 AM
Similar Messages
-
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 advancedear 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 -
CO-PC--discounts and surcharges on purchased items
In Product costing, CO-PC, What is the configuration needed to setup discounts and/or surcharges on purchased items ?
Please reply at the earliest.
Thanks.Discounts and surcharges would taken care of by the pricing procedures and the accounting keys assingned to them they will flow into the stock valuation. with these values you make up the bom for the finished product.
-
I changed my Apple ID (other email address and password) and now I can not login to my account in the iPhone iCloud. When I open the tab iCloud displayed my old Apple ID (it was in the iCloud) and asks for a password, but neither the old nor the new password does not match. What to do?
If you want to change your iCloud ID or password on your phone go to Settings>iCloud and tap Delete Account, then sign back in with your updated information. Note: this only deletes the account and any synced data from your phone, not from iCloud. Provided you are signing back into the same account and not changing accounts it will be synced back to your device when you sign back in.
-
Exemptions from discounts and surcharges
I work for an entrepreneurial company. We do quite a range of business across many different industry sectors. We support many different types of business deals. One of our biggest challenges is managing pricing.
Wherever possible we try to set up our pricing calculation based on the most general attributes. For example: Sales Organization \ Price list type.
Unfortunately, our business is not that simple. We may have situations where the price may need to be calculated based on the customer\ material, or customer\ plant\ material combinations, etc... This is not a problem in the standard system. We've just arranged the access sequences in the appropriate manner.
Our challenge comes in with the range of discounts and surcharges. Typically, management comes to us and says, "We need to add a surcharge for all customers who buy this product. There are 5,000 customers this would apply to. "
The approach has been to create a new condition type if necessary, and to organize the access sequences in as general as possible a manner, to minimize maintenance, in order to apply the surcharge.
After a few hours, a few days, or a few weeks, the sales leadership realizes 10% of the customers need to be exempted from this surcharge. What's the best approach to do this?
We have traditionally created a new access sequence for customer\ material and added a new condition record for the combination at a rate of $0.00. The new access is then assigned above the access used to apply the surcharge. The system then finds the $0.00 value record before any others, applies it, and stops. The customer has the surcharge condition applied, but at no value. If the value is $0.00, then the record does not print on any customer facing output. The customer never sees the $0.00 charge, and we satisfy the sales management requirement.
The downside of this approach is as follows:
The pricing screen in the sales order gets cluttered with $0.00 value records. (i.e. Fuel surcharges, product surcharges, location surcharges, internal statistical conditions, etc..) Many of these may apply on a single order. It gets confusing for customer service and others trying to read the pricing screen.
When a pricing report is run we inevitably get the question why are there so many records with $0.00 value? More confusion and ultimately IT support time.
It becomes difficult to identify what the final price to a customer is without simulating an order. You must create\simulate an order to get at the net price the customer will pay. Now we need to introduce the SAP quotation process ( we currently don't use it), or code a program to work up a price. More IT development and or support time.
Numerous other reasons I can't think of at the moment
The simple approach would be to go back to sales management, tell them to forget about the discounts & surcharges, just work up a net price and be done with it. Unfortunately, the funds need to be channeled to different account assignments. Accounting wants transparency in the account assignments, and likes to see the application of the charges and discounts separated by condition types.
Caught between a rock and a hard place, what is a poor SD guy to do? Is there a better way to deal with the exemptions, minimize maintenance, and reduce the level of confusion and noise?
Any thoughts are appreciated.Hi,
It is not advisable to go for a general access. It should be always from more specific to more general.
It seems that business process involves more functionality in pricing.
You can group your customers. You can use the fields like Customer group, Price group, Price list. If you take Customer group, you can maintain u2018nu2019 number of customer group say A, B, C , D, E, F, G, H, I , J. Create an access like Sales org / Distribution channel / customer group / Material group.
If your client wants to apply 5% surcharge to all customers, create condition records for all (A to J) customer group. If he wants to exempt some of the customer group, change the condition records for that particular customer groups. The client should be given be advice to go for any change in pricing according to the customer group or any other suitable fields (Price group or price list)
Regards,
K Bharathi -
What's the difference between PNG and JPG for exporting .idea files from the Adobe Ideas app?
What situations are better to export to to .PNG or .JPG?
JiPad apps are designed specifically for the iPad and will not run on the iPhone or iPod Touch. iPhone/iPod apps will run on the iPad, but will only take up an iPhone sized portion of the iPad screen (though you get a 2x button which effectively doubles each pixel in both directions so may appear pixelated). There are also 'universal' apps (which have a '+' symbol against them in the store) which have processing in them to recognise the device that they are on and will tailor the display accordingly (so will make use of the iPad's larger screen).
-
was recently sent a very large emoji message amd now when i try to acces messages it will not display mesagges and then will bring me back to the home page
Quit the messages app and reset your phone.
Go to the Home screen and double click the Home button. That will reveal the row of recently used apps at the bottom of the screen. Tap and hold on the app in question until it jiggles and displays a minus sign. Tap the minus sign to actually quit the app. Then tap anywhere on the screen above that bottom row to return the screen to normal. Then restart the app and see if it works normally. Then reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart.
After the phone restarts go into Messages and delete the thread containing the problem message. -
I get an error message in iPhoto when I click on thumbnails of pictures in certain albums. It reads 'the volume for "(file name)" cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again.' What does this mean and how do I fix it?
It means that you imported the files in Referenced mode and have now remvoed them from the Mac. Put the disk or card back.
For more on iPhoto and file management see this User Tip:
https://discussions.apple.com/docs/DOC-6361 -
just got a Nikon D610 and CS5 for Mac can't open the images -- message says installed version of camera raw doesn't support the camera. Downloaded the Raw 6.2 update for Mac, but installation failed. Now what?
The D610 didn't get out-of-the-box RAW support until Photoshop CC.
You can either upgrade to CC or use the DNG Converter to convert and open your DNGs in CS5. -
In addition to my iMac, I have a Power Mac G4 (10.4.11 Tiger) which of course is pre-Intel. I can boot up and use for about 5 minutes before the mouse freezes. I believe something is
overheating. What would that be - so I can have repairs done? The machine is the Digital Audio version, M7627LL/A and Serial Number XB******KXQ.
<Edited By Host>Hello USME,
'Tis a common problem on old Macs.
Do as Allan says: open the door and blow out all the dust bunnies. Canned air from Wal-Mart or Radio Shack can be handy (though sort of expensive) especially for blowing through the back of the power supply. A cool Mac is a happy Mac.
Be sure your Mac can breathe. The air intake is on the bottom of the case, so be sure a deep pile rug or too many papers on your desk are not blocking the air supply.
Feel the power supply and the processor with your hand. They should be warm but not hot; if you have to move your hand away, that's too hot!
Check the fan on the power supply, and on the processor if it has one. Take a flashlight and peer in the back of the (Mac) case through the grille; make sure the fan is turning. If it's not, the power supply won't work for long.
Fans are not considered serviceable, though they will succumb to mechanics of determination. A CPU fan is easy and straightforward.
A fan replacement will not cure an already damaged power supply; the PS may already be done for. Used power supplies for a DA are hard to come by, and not especially cheap when found (c.$50). An entire working DA or Quicksilver may often be found for under $100 on eBay, and swapping in your HD is easy and simple... this might be cheaper and more expeditious than repairing an expired DA. Replacing a power supply is fairly easy, but it's a nuisance and requires a 2mm Allen head wrench in addition to the usual #2 Phillips head screwdriver.
In my experience, power supplies and CPUs are about equally likely to fail. There are a few other possibilities, but they are not nearly so common.
Good luck!... Jon -
Hi Experts,
I am trying to build a PowerShell Script to get the details Like Scope,Last Deployed date and Name for a Solution Deployed in the Farm.
Can anyone advise on this please.
RegardsGet-SPSolution|Select Name,Scope,LastOperationResult,LastOperationEndTime|Export-CSV "SPInstalledSolutions.csv" -NoTypeInformation
SPSolution properties
Get-SPSolution
This post is my own opinion and does not necessarily reflect the opinion or view of Slalom. -
can anyone help on the following please. When I have been away from the office for a few days and check for emails it only supplies the most recent 100 emails and the ones before that are never received. thanks
Does your server have a limit?
-
Im using 10.7.4 and looking for a way to change the streaming port on quicktime x
used to be able to do via system preferences > quick time > advanced
But cant find these settings anymore
Thanks
PaviClick on the pull down window next to From: and you should be able to select the individual account you want to send from. The account that you want to send from must be an Enabled account in the Account Preferences of Mail.
-
Im completely new to Mac. Im swapping my windows laptop for macbook pro and looking for network storage solution which the Time Capsule seems to do. Is it possible to use this as NAS for my desktop Windows PC - windows 7
Broadly speaking I want some sort of network storage( wireless or through my existing wifi router) that I can access files for both my windows PC and Macbook and also to access files to my iPad/ iPhone. Some sort of backup and sychronisation so that I can access certain files remotely.
Buy a real NAS.. synology or QNAP are the standard... although companies like Netgear and Western Digital and Seagate make them as well.
There is no problem sharing between Mac and PC now.. you do not even need a NAS to do that.. you simply share the hard disk directly. Mac talk SMB.. everything talks SMB nowadays.. so it is easy.
ipad and iphone are not designed to use NAS.. they are designed to backup only to the cloud or itunes.. but you can load an app like file browser if you want.
http://www.stratospherix.com/products/filebrowser/
Remote access to the Apple TC is somewhere between difficult, to impossible from a PC.. Apple use BTMM and iCloud but the service is not offered to PC.
A real NAS will offer HTTPS or SFTP or several other methods.. that both Mac and PC can use.
You simply plug it into the current wireless router.. it is a network device and assessable over the network. It is not necessary to buy another router.. in fact that is a waste. -
How can I get Airport Utility to find my Airport? It is nearby, no interference, and worked for about 9 months. The Airport still provides wireless internet for the household, though it won't recognize the printer -- plugged in or wireless.
Are you using the latest version (5.5.2) of the AirPort Utility to access the new 802.11n AirPort Extreme Base Station (AEBSn)? Your tagline has it that you are running OS X 10.4.6. You would need at least 10.5.7 to run the utility. I assume that you are running the latest utility on another device ... correct?
When having difficulties accessing the AirPort thru the AirPort Utility, try the following, in order checking accessibility with the utility after each step:
o Check the local connection. If you are trying to access the AirPort wirelessly, make sure that you are connected to its wireless network before running the AirPort Utility to administer it. If you are still unable to access it with the utility, temporarily connect your computer directly using an Ethernet cable to one of the base station's LAN ports.
o Power cycle the base station. Remove the power adapter's plug from the power outlet, and then, wait 15 seconds before plugging it back in.
o Perform a "factory default" reset on the base station.
Maybe you are looking for
-
Mini-DVI to Video (composite or S-Video), can't get it to work
hi guys, I got a MacBook (bought in Japan) and a mini-DVI to Video adapter (Bought in Canada recently). I am trying to watch TV, but I am getting a very bad b&w image (as if I was watching using a very old antenna). I changed the display resolution t
-
How do you turn off the "Update Template Files" dialog when saving a template in Dreamweaver?
As the title states I'd like to not have to see the "Update Template Files" dialog when saving a template. I'm not sure what its purpose is other than to annoy as it does not seem to do anything -- selecting update, don't update, any combination of
-
Comission on orders booked by agents
Hi all, please help me on the following i have to create agents / brokers who books orders for my company, if a single order value booked by the broker or agent is more than Rs. 50000 i will give him commission of 2% ( only after receiving the paymen
-
Macbook Pro shutting down. Hardware error code 4MEM/62/40000000:0x7f537f90
Macbook Pro shutting down. Not the same action making it shutdown. Anywhere from being online to attaching a photo to an email to working in Word or Photoshop. Even after it's closed and not being used. I come back to it being shut off and saying it
-
Cisco 3502I Not getting ip address
I just deployed 2 brand new 3502I access points. Ap's are connected to a PoE module on a 4507. Ap's are powering up. The 4507 is configured to hand out ip addresses to the ap's. When I run 'sh cdp nei det', I can see the ap's but they do not have