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.
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 -
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 -
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 advanceRefer 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 -
How do I move and store my purchased items from itunes from my pc to icloud?
I'm trying to watch a rented movie on my pc through itunes, but itunes won't let me download anymore because my pc lacks memory. So I'm trying to free up some ram on my pc, by storing all of my purchased items from itunes on my pc and moving it to my icloud account. Will that solve the problem? And how do I do that exactly?
Hi DKX31,
To set up iCloud on your PC, you will want to follow the instructions in this article -
Apple - iCloud - Learn how to set up iCloud on all your devices.
http://www.apple.com/icloud/setup/pc.html
If you want to keep your purchased content in the iCloud, you will want to enable iTunes match
iTunes Store: Subscribing to iTunes Match
http://support.apple.com/kb/HT4914
Thanks for using Apple Support Communities.
Best,
Brett L -
Please help me. I have tried for ages to purchase items.
You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
(100376) -
HT5621 other country iTunes store and keep US purchase items
I move to an other country and now want to change country for iTunes store and keep all my US purchase iTunes items, how can i do that?
I'am in the same situation as you, I'm french and I'm in America now. I have a card for Itune ($15) but I need to change the country for use the code and I can't because I need to "clear" my account (to have 0€), I have 0,54€.
Help?! ^^ -
I can't change anything on my ipod through itunes what might be the problem? I stransfered everything, I authorized my computer but I cant use the apps page on itunes all the apps inside the ipod picture and on the side are faded and I cant click on any of them, and I need it to arrange my apps in my ipod , since its much easier this way. any solution?
Because you changed your syncing iTunes library. You can only sync to one iTunes library. If all yur apps and music and other stuff in on your new computer you have these options:
- Restore from backup. Check the Devices tab in iTunes' Prferences to see if there is there. You can tell by name and date. If it is there then restore from that backup. If the backup is not there you need to go back to your old computer and move/opy the iPod backup to the new computer. That file is located:
iTunes places the backup files in the following places:
Mac: ~/Library/Application Support/MobileSync/Backup/
Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
Note: If you do not see the AppData or Application Data folders, you may need to show hidden files (Windows XP, Windows Vista and Windows 7), or iTunes may not be installed in the default location. Show hidden files and then search the hard drive for the Backup directory.
- If you do not have the backup all you can do is to restore the iPod to factory defaults/new iPod and sync everything from the new computer. You will lose app data. -
We are unable to find iTunes on your computer....just had this pop up and unable to connect to iTunes
I have no Norton security or whatever, just Windows firewall.
So i guess it cant be a firewall error or something.
We'd better check the Windows firewall, just in case:
[How to enable iTunes in the Windows Vista and Windows 7 Firewall|http://support.apple.com/kb/HT2553] -
Purchased items transferred to itunes and won't go back on my iPhone
I purchased a music album (Hey Rosetta! - Second Sight) on my iPhone 5 a couple of days ago. It didn't show up in my iTunes, so I plugged in & synced my iPhone with iTunes. The album then transferred to my iTunes and for some reason is no longer on my iPhone. I have tried syncing and selected the album to be on my iPhone 5 four times over the last couple of days. Each attempt has been unsuccessful , despite ample free space (over a gb). If I click on my iTunes store on my iPhone, it shows the album purchased, but I cannot download it. If I check under my playlists on my iPhone, and click on purchased items, the album does not show. Yet, I purchased it a few days ago on my iPhone. It's very frustrating! Any help would be greatly appreciated. Thanks.
Do a reset hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.
-
Will purchase items continue 2 download if I'm watching other stuff on TV?
I know that my iTunes Library will not sync to my TV until I stop watching something on it. Basically, no TV activity if I wanna sync.
And since TV can function as an independent device sans Mac, I'm not sure whether if I can watch a TV show or music video and let a purchase item or rental to download in the background.
Why I ask? Well, rented a HD movie and went on to watch two TV shows. After the TV shows, I returned to check on the rental download and I got an Error -50. Now, I quit all TV activities and just let the rental to finish download. Wish I could do these simultaneously.I was wondering the same thing. I rented a movie and watched something else on AppleTV while it was downloading, and afterwards went back to the rental only to see it had paused downloading and was at the same percentage as before I started watching something else. I had assumed that it would keep downloading in the background, but I guess I was wrong. Surprising.
-
Purchased items list do NOT load in Apple update area on iphone 5
I am trying to remember applications that I have loaded in the past, as I had to reset my phone and icloud/itunes backup did not reload
my apps.
I have had 2 other people with the iPhone 5 test going to apps/update/and purchased and loading the purchase items list.
The list NEVER loads. I the past on my iPhone 4, this list loaded in about 4-5 seconds. Now it never loads.
It used to say 'on this phone', 'not on this phone', but now just says LOADING... indefinately.
Is there an issue with this feature?
ChrisI have the same issue. I went to the genius bar and this issue has been "escalated to engineering". I'll keep you all posted if I hear anything...
-
Why when im playing an app game and try to purchase items do I get prompted your purchase could not be completed?
Contact iTune Support
http://www.apple.com/emea/support/itunes/contact.html -
Need Function Module for Printing Rates,Discounts and Taxes in Invoice.
Hi All,
For our Invoice printing I need to get a function module which will provide me the rates,discounts and taxes against each item line of the Invoice No.
Finall it will be printed accordingly.
Can anyone help me regarding this with input parameter example.
Thx in Adv.Hi,
As far as I know there is no fun module to print all this stuff.
You have to get this data from KONV table by passing the VBRK table KNUMV field.
Then check for all the Rates and amount KBETR and KWERT fields for the respective condition Types.
You have to loop the KONV internal table and write all the condition rates and amounts in the script driver program.
see any Std script for this.
Regards,
Anji -
Someone has hacked into my iTunes account and has been purchasing things
Someone has hacked into my iTunes account and has been purchasing items! What can I do?
Change your password.
Alert itunes support
Maybe you are looking for
-
Apps no longer downloading on iTunes, iPhone or iPad
I cannot update any apps on iTunes, iPhone or iPad. On iTunes, I get the error "There were problems downloading some purchased items." then there is a drop down stating that 6 apps had problems. On both the iPhone and the iPad I get the same error an
-
Problem pasting text from Word into Mail
When I compose text in Word and paste it into Mail, paragraphs are separated by spaces that weren't in the original Word document and I have to do a lot of work to get rid of them. If I compose or paste the text in TextEdit and then copy the message
-
Passing Presentation variblae to the logical column in the rpd
Hi, Can some one please tell me how to pass presentation variable to RPD logical column i am capturing a date from prompt and defining a status column based on the date user selects in the prompt, can some please tell me how to achieve this.. Thanks
-
I have a new iMac running 10.5.2 and am having trouble connecting my guitar directly to the mac using logic express. It all works fine with garageband but I can neither hear or record my guitar in logic. Please Help
-
Face tracking in director?
Hi all, I recently come across this video on youtube http://www.youtube.com/watch?v=wznrHpL8AJ8 and I start thinking that if we could implement something similar for our shockwave games, the degree of realism and imersion would increase rapidly. The