2lis_03_um and MBEW- STPRS
Hi Experts
i have a requirement where in need to get the value of the stock which is quantity * Standard price.
And i should take the standard price from MBEW-STPRS when i am investigating into details i could find one field 0CPPVLC purchase value in datasource UM
My dobuts are
1. Is this 0CPPVLC has any link or else is it getting calculated from MBEW-STPRS , because the field BWGEO is connect to this 0CPPVLC and BWGEO is not in R/3 but its getting calculated at the time of extraction.
thanks and regards
Sreedhar
Hi gurus,
I'm not sure that 0CO_PC_ACT_05 data source reads table MBEWH. What I could see, is that the datasource extract only data from MBEW. It extracts Standard and Moving price for the Current period, previous period and previous year.
Is it correct what I saw?
Have you any idea about how extract both tables data, maybe in delta mode too?
Thanks.
regards.
MAtteo.
Similar Messages
-
Standard Price in material master and MBEW
Hi
We have unique problem. The currency was setup with out decimal places due to some valid reason. Due to which STANDARD PRICE in MATERIAL MASTER looks alright (lets say 1000) but in MBEW(field STPRS) it is 10.
I would like use value which is in Material master for calculations in ABAP program. How can i achieve this? Is there any function module for the same so that I can convert value in MBEW-STPRS to value in material master.
Thanks in advance.Hi ,
Try to use the following FM's:
CONVERT_MATPR_TO_MBEW_MTPER
use the BAPI "BAPI_MATERIAL_GET_DETAIL" and take the price from the Export parameter MATERIALVALUATIONDATA. This parameter points to the structure BAPIMATDOBEW which has all the material price details like :
Price control indicator
Moving average price/periodic unit price
Standard price
Price Unit
Currency Key
ISO code currency
Hope this solves your problem.
Thanks,
Greetson -
How to get Material standard price: MBEW-STPRS?
Hi BW experts,
I am wondering what is the best way to extract data for <u>material standard price</u> in Material master data - Accounting view (<b>MBEW-STPRS</b>)?
I checked existing extractors for material master, but I didin't find one which could be used.
Any help and feedback will be awarded.
Thanks and regards.
SallyHi Sally,
Check if 0CO_PC_ACT_05 helps here.
http://help.sap.com/saphelp_nw04/helpdata/en/22/1b383fdb800804e10000000a114084/content.htm -
View creation on MKPF and MBEW
Hi gurus,
I want to create a view on mkpf and mbew data base table for creating the generic extractor. Can one please tell me the step by step procedure or any screen shots send to mail id, my id is [email protected]
i will be grateful if any help is provided.
Thanks in advance.Hi ,
chk this
views
http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ec5d446011d189700000e8322d00/content.htm
creating views
http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f5/35c83ecedc636be10000000a114084/content.htm
Cheers,
Swapna.G -
Hi gurus,
I want to create view on RESB and MBEW tables. Can any one tell me which field i need to take as delta field in the Generic datasource for this view.
Thanks in advance.Hi,
Go through this link http://rlaan.mine.nu/SAP-Tables/SAP%20Table%20Listing.htm.
Regards
Sridhar -
Conversion of External Price Value to Internal Dec. notation of MBEW-STPRS
Hi Guru's,
I'm doing the Report for the BOM.
I'm facing one problem in passsing the MBEW-STPRS value,
I'm passing it as character field, even though it is checking for the format for the price.
could you guys suggest me one Function Module which converts the External Price value to Internal Price Format using Internal Decimal notation.
Thanks in advance.
Regards,try to use [SET COUNTRY|http://help.sap.com/abapdocu/en/ABAPSET_COUNTRY.htm]
-
Business content referring RESB and MBEW tables for MM
Hi Gurus,
I have a requirement where i need to extract data from RESB and MBEW tables.
Is there any business content extractor which takes data from these tables. or the data can be compensated from other tables like EKBE,EKKO,EKPO or MSEG. please let know. Help or advice is greatly appreciated. Thanks in advance.
Regards,
SatishYou'll have to use 0CO_PC_ACT_05 (Material Valuation: Prices) for MBEW note that it doesn't support delta.
For RESB you might look at 0PS_COMPONT_ATTR, but I'm not really shure
Message was edited by:
Pabloj -
hi friends,
may i get a extractor for Standard cost with material no and variance information
plz help me.Hi ,
Check the below URLs.
Standard datasource for MBEW, MARD & RESB tables
http://help.sap.com/saphelp_nw04/helpdata/en/51/7fe75e107211d48b390000e83234f3/content.htm -
Difference between J_3AMADKA and MBEW / Update SKU standard prices with AFS
Dear reader,
Environement: ECC 6 with AFS 6.3
In a first step,I am trying to create, and in a second step, to update the SKU standard prices using FM: BAPI_MATERIAL_SAVEDATA.
It is really strange the way it performs changes on table MBEW and J_3AMADKA.
Can anyone explain to me the different use of those two tables? I thought that the J_3AMADKA was dedicated to SKU level, but finally, the TA: /n/afs/conv1 create the SKU standard prices only in MBEW !? But BAPI_MATERIAL_SAVEDATA.
just create ONE entree in MBEW (?!?) while all SKU entree but without prices in J_3AMADKA.
In FM: BAPI_MATERIAL_SAVEDATA., I mainly filled structure VALUATIONDATA (=> MBEW) and SKU_PLANTDATA_VALUATION, where surprisingly, there is no standard price field for the SKU !?
Any link or remarks about this topice will be most apprecitaed,
Thanks,
DanielHi Kalias,
Many thanks for your fats reply.
I had a look to the (really old) SAP notes and after some few researches, it seems that AFS 6.3 insert the PRICE and ZKPRS columns again into table J_3AMADKA.
Those columns are even populated with values So it means that they are required by some SAP standard programms.
Maybe you have another clue about this topic?
Thanks again for your help,
Daniel -
How to fill up set up tables for 2lis_03_UM and BF?
Hi,
I am working on Material movements, and i have a How to do document. According to that, its showing me to fill up set up table for 2Lis_03_bf by using TCode OLI1BW, and in the very next step its again telling me to fill up set up table for UM, by using the same TCODE ( OLI1BW ) .
Now, if i do that, how would the system know that it has to fill up set up table for BF and then UM ? , no where in the screen its asking to fill up the Data source.
OR i just have to fill up set up table ONCE, and it will fill up for both the DS ?
please help.
thanksHi,
I think you can follow the same procedure. After completion of setup table filling you can check the result in RSA3.
In case of UM, you will have the provision to load data based on specific Company codes, but if you don't have any such requirement then you can simply fill setup tables.
Regards,
Durgesh.
Edited by: Durgesh Gandewar on Aug 30, 2011 10:29 AM -
Urgent:Inventory Modelling with Moving price
I have to create an Inventory report storage locationwise material stock along with standard price and moving average price.
We have a z cube zic_c03.
Moving price and standard price is stored an Z ODS on fiscal/period wise.
I need to have the following fields in the report
charactersitics
Plant
Material
Storage location
Price control(from Z ods)
keyfigures:
Valuated stock qty(from zic_c03)
Valuated stock value(from zic_c03)
Standard price(from ods)-Using routine
Moving Price(from ods)-Using Routine
I have created another cube(included all the fields from zic_c03 and added the three fields from ODS).
For the fields included from ODS, I have written an lookup routine in the new cube (zic_c04) update rule.
For ex.Stand price routine as follows:
PROGRAM UPDATE_ROUTINE.
TABLES: ...
DATA : tstd like /BIC/AZMM_O0200-pRICE_std.
DATA : tavg like /BIC/AZMM_O0200-pRICE_avg.
DATA : tpc like /BIC/AZMM_O0200-PRICE_CTRL.
fill the internal table "MONITOR", to make monitor entries
select single PRICE_STD
into tstd
from /BIC/AZMOV_O0100
where material = COMM_STRUCTURE-material
and plant = COMM_STRUCTURE-plant
and FISCPER = COMM_STRUCTURE-FISCPER.
RESULT = tstd.
RETURNCODE = 0.
ABORT = 0.
I have the following issues:.
1)After adding the price control Indicator(assigned to all keyfigures in update rule) Valuated stock qty and value showing in negative.
2)Intially I didn't compress the new cube(zic_c04).After seeing negative values I compressed(no marker update enabled) it and checked.But still showing negative.
2)If I assign price control Indicator to only standard price and moving price Iam not getting any results for valuated qty and stock(price control Indicator = 'not assigned')
Pls help me to do the right modelling for the above requirement.
Thanks in advance.
Regards
SoujanyaHi,
I have different Modeling scenario to get MAP in BIW.
Take a Look on this thread:
Re: 2lis_03_um and MBEW- STPRS
Re: How to get Moving Average Prince and Standard Price in BW (inventory cube).
With rgds,
Anil Kumar Sharma .P -
How to get Moving Average Price ( MAP ) & Standered Price in BW
Hi all,
I want to get the Moving Average Price ( MAP) & Standered price in BW Report.So that please suggest me
1. which Cube I have to use &
2. which datasource having that Moving Average Price ( VERPR) Field.
If having other Procedure to calculate Moving Average Price in BW .
please give me these details.
Thanks,
kiranHi Kiran,
0IC_C03 Cube can be used to bring the fields you require.
Please search forum post by Anil Kumar, link is not available thats why i am copying the text here.
You need to enhance the Standard DS of Infoobject 0MAT_PLANT and Infoobject 0MAT_PLANT to include these 2 fields.
And you need to enahance the 0IC_C03 cube to include 0MAT_PLANT and need to complete the mapping in all 3 Update rules for this added Infoobject.
And you need to upload the attribute data of 0MAT_PLANT as full upload every day.
In the reports , you need to dependent on Formula varibles with replacement path with standard price an MAP price attributes of 0MAT_PLANT. So if you go with these formula variables with replacement path, you should take 0MAT_PLANT characterstic into rows as a prerequiste.
If you want to avoid this prerequisite, then take a look on How to calculate with attributes values.
Other wise you need to do the calculations at 0MAT_PLANT level by a base query after every upload,and the result should be stored in TODS by APD .And then you can final report with out 0MAT_PLANT in rows upon this ODS.
please see this links
Re: 2lis_03_um and MBEW- STPRS
Re: How to get Moving Average Prince and Standard Price in BW (inventory cube).
Hope this Helps.
Thanks
CK -
Table MBEW and Transaction MC.9
Hi,
I developed a report program that reads stocks from table MBEW, but it doesnt reconcile with the stocks you get from MC.9.
Im thinking MC.9 gets the data from other source tables. I need to explain why its not the same and possibly modify the code to reconcile the quantities.
Please help.
Thanks.
Kennycheck with LQUA Table,MLGT Table,MARD-LABST Table
See the below Program and Which is inventory report :
type-pools
type-pools : slis.
Data Declaration
tables : mara,
marc,
lagp,
mvke,
makt.
Constants
constants : c_werks(4) type c value '1000'," Plant
c_lgort(4) type c value '1000'," Storage Location
c_periv like MARC-PERIV value 'XX',
c_perkz like MVER-PERKZ value 'T'.
Internal Tables
Internal Table for MARA and MAKT and MARD
data : begin of I_material occurs 0,
matnr like mara-matnr, " Material
lgpla like mlgt-lgpla," Storage Type
zzdept like marc-zzdept," Pick Dept
ZZPRODDEPT like marc-ZZPRODDEPT," Prod Dept
vmsta like mvke-vmsta, " Material Status
end of i_material.
Structure
data : begin of i_final occurs 0 ,
matnr like mara-matnr," Material #
maktx like makt-maktx," Description
lgpla like mlgt-lgpla, " Storage Bin
days like P0347-SCRDD, " No of Days
menge like mseg-menge, " Avg Daily Sales
kbetr like konp-kbetr, " Avg
labst like mard-labst," Inventory Stock
stprs like mbew-stprs, " Mvg avg Price
dos like mseg-menge, " DOS Units
dosm like konp-kbetr, " DOS $$
end of i_final.
data : int_ges_verb_tab like sverbtaba
occurs 0 with header line.
Internal table for A004
data : i_a004 like a004 occurs 0 with header line.
Data Variables
data : v_stprs like konp-kbetr,
v_repid like sy-repid,
v_labst like mard-labst,
v_maktx like makt-maktx.
ALV Function Module Variables
DATA: g_repid like sy-repid,
gs_layout type slis_layout_alv,
g_exit_caused_by_caller,
gs_exit_caused_by_user type slis_exit_by_user.
DATA: gt_fieldcat type slis_t_fieldcat_alv,
gs_print type slis_print_alv,
gt_events type slis_t_event,
gt_list_top_of_page type slis_t_listheader,
g_status_set type slis_formname value 'PF_STATUS_SET',
g_user_command type slis_formname value 'USER_COMMAND',
g_top_of_page type slis_formname value 'TOP_OF_PAGE',
g_top_of_list type slis_formname value 'TOP_OF_LIST',
g_end_of_list type slis_formname value 'END_OF_LIST',
g_variant LIKE disvariant,
g_save(1) TYPE c,
g_tabname_header TYPE slis_tabname,
g_tabname_item TYPE slis_tabname,
g_exit(1) TYPE c,
gx_variant LIKE disvariant.
Selection-screen
selection-screen : begin of block blk with frame title text-001.
parameters : p_werks like marc-werks obligatory default '1000'.
select-options : s_matnr for mara-matnr,
s_MATKL for mara-MATKL,
s_mtart for mara-mtart,
s_LGTYP for LAGP-LGTYP,
p_vmsta for MVKE-VMSTA,
s_dept for marc-zzdept,
s_pdept for MARC-ZZPRODDEPT.
selection-screen: end of block blk.
selection-screen begin of block periods with frame title text-002.
selection-screen begin of line.
selection-screen comment (15) text-c01.
selection-screen position 18.
Period 1
parameters: p_stdat1 like mkpf-budat obligatory.
selection-screen position 35.
selection-screen comment (10) text-c02.
parameters: p_endat1 like mkpf-budat obligatory.
selection-screen end of line.
selection-screen end of block periods.
Fill the default values
initialization.
v_repid = sy-repid.
PERFORM LAYOUT_INIT USING GS_LAYOUT.
PERFORM EVENTTAB_BUILD USING GT_EVENTS[].
Validation for Dates
at selection-screen.
if p_stdat1 > p_endat1.
message e206(zwave) with
' End date should be greater than or equal to Start Date'.
endif.
Make one of the Selection should be mandatory
if s_matnr-low is initial.
if s_matkl-low is initial and s_mtart-low is initial and
s_dept-low is initial and s_pdept-low is initial.
message e208(zwave) with
'Enter atleast one selection Criteria'.
endif.
endif.
Start-of-selection.
start-of-selection.
Get the data from MARA,MARD,MAKT Table
perform get_data_tables.
Read the data into FInal Table.
perform read_data.
END-OF-SELECTION.
end-of-selection.
if not i_final[] is initial.
ALV Function Module
perform print_alv.
endif.
*& Form get_data_tables
Get the data from Tables MARA,MARD,MAKT
FORM get_data_tables.
select a~matnr
b~lgpla
czzdept cZZPRODDEPT d~vmsta into table i_material
from mara as a inner join mlgt as b on amatnr = bmatnr
inner join marc as c on cmatnr = amatnr
inner join mvke as d on dmatnr = amatnr
where a~matnr in s_matnr
and c~werks = p_werks
and a~mtart in s_mtart
and c~ZZPRODDEPT in s_pdept
and a~MATKL in s_MATKL
and c~zzdept in s_dept
and b~lgnum = '100'
and b~LGTYP in s_lgtyp
and b~lgpla ne space
and d~vkorg = '0001'
and d~vtweg = '01'
and d~matnr in s_matnr
and d~vmsta in p_vmsta.
if sy-subrc ne 0.
message e207(zwave) with 'No data found for Given Selection Criteria'.
endif.
sort i_material by matnr .
DELETE ADJACENT DUPLICATES FROM i_material COMPARING matnr.
ENDFORM. " get_data_tables
*& Form read_data
Read the data
FORM read_data.
loop at i_material.
Storage Bin
i_final-lgpla = i_material-lgpla.
Days of Sales ( End date - Start date )
CALL FUNCTION 'HR_HK_DIFF_BT_2_DATES'
EXPORTING
DATE1 = p_endat1
DATE2 = p_stdat1
OUTPUT_FORMAT = '02'
IMPORTING
DAYS = i_final-days.
Get the Average Daily Sales (Units) from MVER Table
perform get_average_sales.
Get the Average Daily Sales ($$) from VK13 Transaction
perform get_avgsales_price.
clear : v_labst.
Get the Inventory from MARD Table
select single labst from mard into v_labst
where matnr = i_material-matnr
and werks = p_werks
and lgort = c_lgort.
if sy-subrc eq 0.
Inventory Stock - MARD-LABST
i_final-labst = v_labst.
endif.
Material #
i_final-matnr = i_material-matnr.
Get the Material Description
clear v_maktx.
select single maktx from makt into v_maktx
where matnr = i_material-matnr
and spras = 'EN'.
if sy-subrc eq 0.
Description
i_final-maktx = v_maktx.
endif.
Get the Mvg Average Price
perform get_moving_avgpr.
Days of Supply Units.
if i_final-kbetr ne 0.
i_final-dos = i_final-labst / i_final-menge.
endif.
Days of Supply $$
i_final-dosm = i_final-dos * v_stprs.
append i_final.
clear : i_final,
i_material.
endloop.
refresh i_material.
ENDFORM. " read_data
*& Form get_average_sales
Get the data from MVER Table
FORM get_average_sales.
data : lv_menge like mseg-menge.
refresh int_ges_verb_tab.
clear : int_ges_verb_tab,
lv_menge.
CALL FUNCTION 'CONSUMPTION_READ_FOR_MM'
EXPORTING
KZRFB = ' '
MATNR = i_material-matnr
WERKS = c_werks
PERKZ = c_perkz
PERIV = c_periv
TABLES
GES_VERB_TAB = int_ges_verb_tab
UNG_VERB_TAB =
EXCEPTIONS
WRONG_CALL = 1
NOT_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at int_ges_verb_tab.
if int_ges_verb_tab-ertag >= p_stdat1 and
int_ges_verb_tab-ertag <= p_endat1.
add int_ges_verb_tab-vbwrt to lv_menge.
endif.
endloop.
i_final-menge = lv_menge / i_final-days.
ENDFORM. " get_average_sales
*& Form get_avgsales_price
Avg Daily Sales Price
FORM get_avgsales_price.
Get the data from A004 table to get KNUMH
Added new field Sales Unit - Seshu 01/09/2006
refresh : i_a004.
clear : i_a004.
data : lv_kbetr like konp-kbetr," Condition value
lv_KPEIN like konp-kpein , "per
lv_KMEIN like konp-KMEIN. " Sales Unit
select * from a004 into table i_a004
where matnr = i_material-matnr
and vkorg = '0001'
and vtweg = '01'.
if sy-subrc eq 0.
sort i_a004 by DATAB descending.
Get the Latetest Date
read table i_a004 with key matnr = i_material-matnr
vkorg = '0001'
vtweg = '01'
binary search.
Get the Sales Value
select single kbetr KPEIN KMEIN from konp
into (lv_kbetr,lv_KPEIN, lv_KMEIN)
where knumh = i_a004-knumh
and kappl = i_a004-kappl
and kschl = i_a004-kschl.
if sy-subrc eq 0.
i_final-kbetr = lv_kbetr / lv_KPEIN.
i_final-kbetr = i_final-kbetr * i_final-menge.
endif.
endif.
clear : lv_kbetr,
lv_kpein,
lv_KMEIN.
ENDFORM. " get_avgsales_price
*& Form get_moving_avgpr
Get the data from MVEW Table
FORM get_moving_avgpr.
Local Variables
data : lv_stprs like mbew-stprs, " Standard Price
lv_verpr like mbew-verpr, " Moving avg Price
lv_vprsv like mbew-vprsv. " Price Indicator
clear : lv_stprs,
lv_verpr,
lv_vprsv,
v_stprs.
select single stprs verpr vprsv from mbew
into (lv_stprs,lv_verpr,lv_vprsv)
where matnr = i_material-matnr.
if sy-subrc eq 0.
if lv_vprsv = 'S'.
i_final-stprs = lv_stprs * i_final-labst.
v_stprs = lv_stprs.
elseif lv_vprsv = 'V'.
i_final-stprs = lv_verpr * i_final-labst.
v_stprs = lv_verpr.
endif.
endif.
ENDFORM. " get_moving_avgpr
*& Form print_alv
REUSE_ALV_GRID_DISPLAY Function Module
FORM print_alv.
PERFORM COMMENT_BUILD USING GT_LIST_TOP_OF_PAGE[].
Populate field catalog
PERFORM fieldcat_init using gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = g_user_command
I_CALLBACK_TOP_OF_PAGE = g_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 = gs_layout
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS = GT_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
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_final
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. " print_alv
*& Form get_fieldcatlog
Fieldcatlog
*& Form fieldcat_init
Fieldcat
FORM fieldcat_init USING e01_lt_fieldcat type slis_t_fieldcat_alv.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Material #
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-ref_fieldname = 'MATNR'.
LS_FIELDCAT-ref_tabname = 'MARA'.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'Material'.
ls_fieldcat-seltext_M = 'Material'.
ls_fieldcat-seltext_S = 'Material'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MAKTX'.
LS_FIELDCAT-OUTPUTLEN = 30.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'Description'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Storage Bin
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'LGPLA'.
LS_FIELDCAT-OUTPUTLEN = 10.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'Storage Bin'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Start Date
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'SDATE'.
LS_FIELDCAT-OUTPUTLEN = 10.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'Start Date'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
End Date.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'EDATE'.
LS_FIELDCAT-OUTPUTLEN = 10.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'End Date'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Days of Sales
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'DAYS'.
LS_FIELDCAT-OUTPUTLEN = 12.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'Days of Sales'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Average Daily Sales(Units).
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MENGE'.
LS_FIELDCAT-OUTPUTLEN = 18.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'Average Daily Sales(Units)'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Average Daily Sales($$)
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KBETR'.
LS_FIELDCAT-OUTPUTLEN = 18.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'Average Daily Sales($$)'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Inventory(Units)
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'LABST'.
LS_FIELDCAT-OUTPUTLEN = 18.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'Inventory(Units)'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Inventory($$)
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'STPRS'.
LS_FIELDCAT-OUTPUTLEN = 18.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'Inventory($$)'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
DOS($$)
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'DOSM'.
LS_FIELDCAT-OUTPUTLEN = 13.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'DOS($$)'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
DOS(Days)
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'DOS'.
LS_FIELDCAT-OUTPUTLEN = 13.
LS_FIELDCAT-TABNAME = 'I_FINAL'.
ls_fieldcat-seltext_L = 'DOS(Days)'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM. " get_fieldcatlog
FORM COMMENT_BUILD *
--> LT_TOP_OF_PAGE *
FORM COMMENT_BUILD USING LT_TOP_OF_PAGE TYPE
SLIS_T_LISTHEADER.
DATA: LS_LINE TYPE SLIS_LISTHEADER.
Variables for Date
data : lv_year(4) type c,
lv_mon(2) type c,
lv_day(2) type c,
lv_date1(10) type c,
lv_date2(10) type c.
LIST HEADING LINE: TYPE H
CLEAR LS_LINE.
LS_LINE-TYP = 'H'.
LS_LINE-INFO = sy-title.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
clear : lv_year,
lv_day,
lv_mon,
lv_date1.
lv_year = p_stdat1+0(4).
lv_mon = p_stdat1+4(2).
lv_day = p_stdat1+6(2).
concatenate lv_mon '/' lv_day '/' lv_year into lv_date1.
STATUS LINE: TYPE S
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = TEXT-c01.
LS_LINE-INFO = lv_date1.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
clear : lv_year,
lv_day,
lv_mon,
lv_date2.
lv_year = P_ENDAT1+0(4).
lv_mon = P_ENDAT1+4(2).
lv_day = P_ENDAT1+6(2).
concatenate lv_mon '/' lv_day '/' lv_year into lv_date2.
LS_LINE-KEY = text-c02.
LS_LINE-INFO = lv_date2.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
CLEAR LS_LINE.
ENDFORM.
FORM TOP_OF_PAGE *
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'FDLOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM.
FORM EVENTTAB_BUILD *
--> RT_EVENTS *
FORM EVENTTAB_BUILD USING RT_EVENTS TYPE SLIS_T_EVENT.
*"Registration of events to happen during list display
DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = RT_EVENTS.
READ TABLE RT_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE G_TOP_OF_PAGE TO LS_EVENT-FORM.
APPEND LS_EVENT TO RT_EVENTS.
ENDIF.
ENDFORM.
FORM LAYOUT_INIT *
--> RS_LAYOUT *
FORM LAYOUT_INIT USING RS_LAYOUT TYPE SLIS_LAYOUT_ALV.
**"Build layout for list display
RS_LAYOUT-DETAIL_POPUP = 'X'.
lslayout-f2code = p_f2code.
rs_layout-zebra = 'X'.
rs_layout-colwidth_optimize = 'X'.
ENDFORM.
Reward Points if it is helpful
Thanks
Seshu -
Link of Object ID and Description to MARA/MBEW
Hello,
Please help me find the relationship of fields DOBJT (Object ID) and OJTXB (Object Description) to tables MARA and MBEW. These fields are found in structure STPOV_ALV. I need to find a link for these two objects as I will have to display them. Are there database tables which I can use to retrieve these data? Here is how I got DOBJT and OJTXB - Go to transaction CS15, fill up Material Number, Valid From and check Direct and Material BOM chkboxes, F5 then on the next screen fill up Plant and Usage then F8.
Please help me. Your help will be greatly appreciated. Thanks in advance.
CLA2005Instead trying to find out the tables, may be you can use these function modules to get your data.
CS_WHERE_USED_CLA Bills of material; class use
CS_WHERE_USED_CLA_ANY Bills of material; direct class use or via other class
CS_WHERE_USED_CLA_VIA_CLA Bills of material; class use via classes
CS_WHERE_USED_COP
CS_WHERE_USED_DOC Bills of material; document use
CS_WHERE_USED_DOC_ANY Bills of material; direct and (indirectly) document use via classes
CS_WHERE_USED_DOC_VIA_CLA Bills of material; document use via classes
CS_WHERE_USED_KNO Bills of material; use object dependency
CS_WHERE_USED_MAT Bills of material; where-used list
CS_WHERE_USED_MAT_ANY Bills of material; where-used list as material or class item
CS_WHERE_USED_MAT_VIA_CLA Bills of material; where-used list via classes -
2LIS_03_UM initilization and loading to BW
Hi All,
Currently we are installing the datasource 2LIS_03_UM and going to use the Revaluated value for the stock. We have already done the setup table fill up for data source 2LIS_03_BF and loaded into cube and done the compression, checking the no marker update tick.
Now the question is, Is the 2LIS_03_UM also should be filled setup table and has to be loded to cube 2LIS_03_BF and need to be compressed checking the no marker update tick? or is there any other procedure needs to be followed for this?.
Kindly provide me an idea to proceed.
Thanks,
Muruganand.KHI
Yes, Need to setup and load Revaluations - 2LIS_03_UM also if any value changes are required.
Same as "BF", setup, loading, no marker update required.
After executing the menu entry, a dialog box appears in which you must specify
whether you want to carry out a setup for material movements (to be extracted using
the DataSource 2LIS_03_BF, Report RMCBNEUA, transaction OLI1BW) or for
revaluations (DataSource 2LIS_03_UM, Report RMCBNERP, transaction OLIZBW).
More info : [How Tou2026 Handle Inventory Management in BW|http://sap.seo-gym.com/inventory.pdf]
Srini
Maybe you are looking for
-
How can I get back all my data to my iPhone?
Hi guys! I accidently synced my iPhone with my computer and it erased all of my data on it. Is there anyway I can get the data back to my iPhone? Thanks ;)
-
WIN 7/ XP environment, combined with ethernet/wireless connection
OK, here's the setup HP OfficeJet 7310, which I've had for a few years, as such have no idea where the support/install CD for it is. Connected through an ethernet cord to my router, which is connected to my desktop computer running WIN 7. Since I do
-
SWF doesn't display once imported to LMS
We're in the process of setting up TrainingPartner LMS, and I'm trying to get a SCORM quiz working. I can publish everything and upload to our (separate) content server, and if I visit that URL, the quiz works fine. However, if I add that quiz URL to
-
Hi Experts My report extracting all data in to text file and output to ALV. Internal order number is in Selection screen(Range). My requirement is, 1) If Order number is in selection screen, check the system status filel in KO03 t.code. 2) if S
-
TS4062 Invalid Response?
So I simply cannot sync my iPod to the computer with USB or Wi-Fi. Only because I keep recieving an error that reads my ipod is getting an invalid response. I have tried everything for the last two days and dont know what to do. My iPod is 4th Genera