when i am try find BAPI for change prince on search engine, I'm Found BAPI_M_REVAL_CREATEPRICECHANGE but in this BAPI block by statement .... * Im Standard deaktiviert error_flag = 'X'. IF ( NOT error_flag IS INITIAL ). EXIT. ENDIF. ..... Why ?? until now I don't no why this BAPI is block !!. My solution is just copy to Z_BAPI .. and remove that statement and running well. Note : minimal required for parameters table MATERIAL_PRICE_LIST is plant = ft_list-werks. material = ft_list-matnr. curr_type = '10'. IF ft_list-vprsv = 'S'. change_std_price = 'X'. std_price = ft_list-nstpr * 100. ELSE. change_mov_price = 'X'. moving_pr = ft_list-nstpr * 100. ENDIF. currency = ft_list-waers. iso_code = ft_list-waers. price_unit = ft_list-peinh. quantity_unit = ft_list-meins. isocode_unit = ft_list-meins. hope can help for change price (MR21).
Example ABAP code for Filter data of table control *---------------------------------------------------------------------* * Form F_filter_data *---------------------------------------------------------------------* * By Oka Wirasatha *---------------------------------------------------------------------* form F_FILTER_DATA . field-symbols : <selected_col> type CXTAB_COLUMN. data : LW_COLS like TC_ITEM-COLS. data : GT_FIELDCAT type LVC_T_FCAT. data LAYO type LVC_S_LAYO. data : GT_FILTER_INDEX type LVC_T_FIDX, LT_SELCOL type table of LVC_S_COL with header line. data : LT_FILT type LVC_T_FILT, LW_FILT type LVC_S_FILT, LT_LAYOUT type LVC_S_LAYO. * find out if a column is selected. loop at TC_ITEM-COLS assigning <selected_col>. if <selected_col...
Base on sap note 325546, I will give example for add new fields Order type to report KOB1. Go to tcode SM34 and maintain view table V_TKALV add new fields ZZAUART in structure KAEP_COAC, field group "K". Go to sap enhancement SMOD and entry Enhancement project COOMEP01 and click button test run. double click include table CI_RKPOS and add new component ZZAUART component type AUFART. Then activated structure CI_RKPOS. Double click FM EXIT_SAPLKAEP_001. In area Function module double click ZXKAEPU01 to create include file. Add this code CHECK i_rep_object = 'OR'. SELECT SINGLE auart INTO cs_record-zzauart FROM aufk WHERE aufnr = cs_record-aufnr. Activated ZXKAEPU01 and then actived COOMEP01. Now you can see in KOB1 fields order type in line item data. (Oka)
Comments