Report of material consumed against Project PO WBS
Hi Gurus,
I am looking for a report that will help me to track the total material consumed against the PO. Please let me know if there is any Std report or tables information where i can fetch the required data according to consumption.
Please let me know you valuable inputs.
Regard
Naveen
Hi Naveen,
Please search in the forum about this report. While searching you will come to know about many other wonderful reports provided by SAP on this topic.
@ All: Friends, please let all the members search on the material which is already available in the forum.Let them come up with their findings and specific queries on it. Thank You.
Regards
Saurabh
Similar Messages
-
Report for Material Issued against Service Orders But not Billed.
Hi Experts,
For CRM Service Orders Based on the Reservation number generated in CRM we will make the Goods issue document in ECC.
My Question In CRM Do we have any standard report to see Material issued against CRM Service orders but not billed. i.e. Work in progress.
Thanks in Advance,
AbhineshHi Vivek,
What I wanted to say that you won't get information from VAV about billing since as far as I know it doesn't contain any relevant table.
You should try create a query using LIKP-LIPS-(joint type: left outer)-VBRK. This will connect deliveries to billing document, you can also get SO number. Please try this.
(Sorrowully I don't know which logical database would be good for you)
BR
Csaba -
Raw material consumed against wip asset
Dear All,
How to be mapped scenario - Raw material (cement) consumed against Construction work (WIP Asset).
Regards,
RanjeetThanks,
Now, problem solved.
Use Movement type 201 cost center issue and entry WIP Gl account manually in MB1A transaction and pass the excise JV through J1IH.
Regards,
Ranjeet -
Report for material which not consumed during C015
HI ALL,
"I required a report for material which material are not
consumed at C015 production confirmation time against actual consumation (order wise , part no wise & date wise )"
its v urgent
good suggesstion reward with valuable points.Amit,
I think your problem is that you want to monitor when users are deleting the goods issue while confirmation. So you would have to know if for a confirmation qty of 100, the planned consumption should have been 100 but the actual consuption is 50.
So you would want to relate the confirmation qty with the planned and actual consumption.
In COOIS Remt, qty and Withdrawal qty will show the total reqmt and actual withdrwal. Hope this will not be helpful if I understand correctly.
You have to create a simple query joining tables AFVV with RESB. Calculate the planned consuption for the confirmation qty. This along with the actual consuption will help to give what you are looking for.
I am right ?
Ram -
Is any report available to find the PO against network or WBS
Hi Experts,
Shall we have th report for Purchase orders or sales orders against network or WBS in standard.
Thanks in Advance.
Regards,
Madan.Hi ,
By checking this reports shall we cancel the open items which are there exists in the WBS or Project Level and can create new rewquirement with New Plant.
Shall we change the WBS reservations or cancelled those reservations .
Thanks in Advance.
Regards,
Madan. -
Travel Expenses settlements against Service Order/WBS Element/Project Ord
Hi Experts,
I have one req. in Travel Expenses, i.e. need to settle travel expneses against Service Order/WBS Element/Project Order.
Can you guide me how to do this req.
Thanks & Regards
RajeshHye mate,
This is possible for sure what you need to do is to go at travel request . In travel Request there is an option of Enhanced Travel cost/ Alternative master cost center. if you click on it . you would find an option of cost assignmnet click on it
there you would have option , like an excel sheet like fields of the cost centre, wbs element, profit center, order number what eve is requred and save it.
now the cot of trip would go that particulat cost center or der numbe or WBS rather then the cost center assigned at master data in ifototype 0027.
Regards
Waqas Anwar -
Report on Settlement - Project wise/ WBS element wise
Hello Friends,
I am looking for a report on settlement which will include the senders - Projects or WBS elements and Settlement receivers and the amount settled in the any period for a particular fiscal year.
Your response will be rewarded.
Vishal.Hi,
Pls refer CJIC and CJID.
Regards,
Amit -
Project stock against a particular WBS element
How can i get the opening & closing stock value (not quantity) of project stock against a particular WBS element?
Regards,
IndranilHi,
Hiu2026
Im adding to above replies.
Prerequisites
You can only set the Closed status after Released status.
If u want to close the project/wbsu2026plz follow
Technically completed (TECO)
We can use this status for WBS elements that are completed from a technical point of view, but where you still expect costs to accrue.
Cj20nu2026Editu2026..Statusu2026.Complete technicallyu2026..set./undo(revoke)
Closed (CLSD)
We can use this status for a work breakdown structure or WBS element that has been completed from both a logistic and an accounting point of view.
Cj20nu2026.Editu2026..Statusu2026.Closeu2026..set./undo(revoke)
Both status can revoke.
Refer this link
http://help.sap.com/saphelp_erp60_sp/helpdata/en/a9/8a853488601e33e10000009b38f83b/frameset.htm
pherasath -
Report for resources against projects
Hi,
I'm looking for a PS report that can list available / utilized resources against projects. Is there a standard report available for this requirement in SAP?
Regards,
AmanHi Aman!
Take a look at these 2 reports: CN50N (Project Info System: Capacity Reqmts Initial Screen) and CMP9 (Workforce Planning - Reporting).
In CMP9, you can view the workforce planning in 3 different views: project, work center and personnel resource.
I think this might help you.
If you need any other help, tell us!
Best regards,
Ivanna -
Material Document against Accounting Document Report
Dear All ,
Where can i get the Material documnet against Accounting Document
Any Tcode is there, pl help me
Regards,
KSPHi:
Please put material document number in MB51 header data...input material document ..once report is executed please double click the document ...In new screen you will find FI document ..This will show you acc document..FB03 display of accounting document..in menu...environment...document environment...original document. this will also show you the material document.
Regards -
Report for Material consumption quantity & its cost in Repetitive MFG.
Hello,
Is there any Standard Report available in SAP to check the Quantity of raw / intermediate material consumed & their cost in Repetitive manufacturing Backflush transaction MFBF?
ThanksHere I'm interesed in the MFBF Qty & against which the consumption of Raw Materials & their cost.
The reports which you asked me to check are all structures & not much of use for individual analysis.
My requirement: When we access the material document(MB51) of the individual MFBF we get all the Raw material Consumption Qty & from there we can go to FI Doc (A/c Document).In A/c documet we get the cost of all Raw materials consumed alongwith the Qty.
Is there any report or I need to develope a new report? -
Report to show breakdown of a particular WBS number
Hi SAP Experts,
Is there any report in SAP that I could see a breakdown of costs posted against a particular WBS number.
So in other words, I have a WBS number refering to a project and I want to run a report to show me what invoices have been posted to this WBS.
This report could be in SAP or BW.
Many thanks
AlexHi,
Please check S_ALR_87013532 to 87013541 -
Material procurement as Project stock
Hi,
I have assigned a Non Stock Material (N) to WBS activity ---> converted the PR (created for network) to PO --> now i want to do GR for this PO and update the material recieved as Project stock on the correspondign WBS.
I am using movement type 501Q when doing GR, and i expect that the corresponding WBS should automatically be populated or i should be able to add the WBS manually? but WBS field in MIGO screen when doing GR is greyed out?
Any pointers to address this will be helpful?
Thank you.
Regards,
JatinderHi,
>>>>>>
But now for one project i dont want to take material from store, but want the material to be supplied by supplier directly at project site, also i dont want to show the material supplied as directly consumed but want to show it first as WBS stock and then do GI to show consumption? how can we achieve this??
<<<<<<<
If you are intended to ship directly to site, then change procurement scenario as Drop shipment. In that case material never see the warehouse, what I mean no GR. Hope this make sense.
for other requirement, discuss with your WM guys who should have fictious GR for that material. In that case you have to use material account assignment as Q (project stock). the only thing is you are not physically bringing material into warehouse but still you have GR for that material.
Why you want to follow suck kind of routing, directly use drop ship procurement scenario which makes your life easier without any risk. By doing this you encouraging some kind of malpractices in system where users may misuse.
Any have its your call and take decision accordingly.
Regards,
PSR -
Pruchase order in MM don't consume budget in the WBS
Hi fiends,
We are doing implementation for Public Sector with EA-PS, MM and PS (ECC 6.0).
We are having problems in the control availability or commitments of the WBS: duplication of the commitments in WPS:
- In EA-PS create a Funds Commitment (FMZ1) : 10u20AC
- In MM create a Purchase order: 10 u20AC
In our model the committed should be 10 u20AC instead of 20 u20AC.
We need that the Pruchase order don't consume budget in the WBS.
Is there any way of doing these operations?
Thanks in advance.
Carlos.Hi,
In std SAP commitment is created after creating a PR or a PO against the project.so you need to look how to prevent the this.
Wait may be expert will advice you regarding this otherwise you can send request to SAP directly about the requirement they can give you the solution,
Regards,
Muzamil -
Report for material consumption
Can any one guide me in developing a report to find the material consumed during a certain period ,
selectio screen should me consiting of matrial and dateHi
See the sample report and do accordingly
report ystk message-id yz2 line-size 231 line-count 45
no standard page heading.
Type Declaration *
type-pools slis.
Tables *
tables: mkpf, " Material Document: Header Data
mseg, " Material Document: Item Data
mara,
mard,
s031,
ekko,
ekpo,
likp,
makt,
j_1iwrkcus,
t001w,
wb2_v_mkpf_mseg2,
mmim_rep_print,
yw2_stkmovements,
yplnt,
mardh.
Internal Tables *
data: i_werks like j_1iwrkcus occurs 0 with header line.
data: begin of i_yplnt occurs 0,
pplnt like yplnt-pplnt,
wplnt like yplnt-wplnt,
end of i_yplnt.
data: begin of i_mkpf occurs 0,
mblnr like mkpf-mblnr,
mjahr like mkpf-mjahr,
budat like mkpf-budat,
vgart like mkpf-vgart,
bwart like mseg-bwart,
matnr like mseg-matnr,
werks like mseg-werks,
lgort like mseg-lgort,
menge like mseg-menge,
meins like mseg-meins,
kunnr like mseg-kunnr,
zeile like mseg-zeile,
xauto like mseg-xauto,
shkzg like mseg-shkzg,
matnr1 like mseg-matnr,
end of i_mkpf.
data: begin of i_mardh occurs 0,
werks like mardh-werks,
meins like mara-meins,
matnr like mardh-matnr,
lgort like mardh-lgort,
labst like mardh-labst,
lfgja like mardh-lfgja, "Added -MB
lfmon like mardh-lfmon, "Added -MB
perio(6),
insme like mardh-labst,
einme like mardh-labst,
speme like mardh-labst,
retme like mardh-labst,
o_stk like mardh-labst, " Opening Stock
c_stk like mardh-labst, " Closing Stock
end of i_mardh.
data: begin of i_mard occurs 0,
werks like mard-werks,
matnr like mard-matnr,
lgort like mard-lgort,
labst like mard-labst,
insme like mard-labst,
meins like mara-meins,
einme like mard-labst,
speme like mard-labst,
retme like mard-labst,
end of i_mard.
data: i_mard1 like i_mard occurs 0 with header line.
data: i_mardh1 like i_mardh occurs 0 with header line.
data: begin of i_mkpf1 occurs 0,
mblnr like mkpf-mblnr,
werks like mseg-werks,
matnr like mseg-matnr,
budat like mkpf-budat,
bwart like mseg-bwart,
mjahr like mkpf-mjahr,
vgart like mkpf-vgart,
lgort like mseg-lgort,
menge like mseg-menge,
meins like mseg-meins,
xauto like mseg-xauto,
shkzg like mseg-shkzg,
end of i_mkpf1.
data: begin of i_mkpf2 occurs 0,
werks like mseg-werks,
matnr like mseg-matnr,
budat like mkpf-budat,
bwart like mseg-bwart,
mjahr like mkpf-mjahr,
vgart like mkpf-vgart,
lgort like mseg-lgort,
menge like mseg-menge,
meins like mseg-meins,
xauto like mseg-xauto,
end of i_mkpf2.
data: begin of i_final5 occurs 0,
werks like mseg-werks, " Plant
matnr like mseg-matnr, " Material
lgort like mseg-lgort, " Storage Location
budat like mkpf-budat, " Posting Date
mtart like mara-mtart, " Material Type
spmon like s031-spmon, " Month
maktx like makt-maktx, " Description
meins(3), " UOM
meins like mseg-meins,
o_stk like mardh-labst, " opening stock
trecep like mardh-labst, " total receipts
produ like mardh-labst, " Net Receipts - Production
recep like mardh-labst, " Net Receipts - Receipts
sal_ret like mardh-labst, " Net Receipts - Sales Return
tdisp like mardh-labst, " total dispatches
custmr like mardh-labst, " Net Dispatches - Customers
oplant like mardh-labst, " Net Dispatches - To Other Plant
tloss like mardh-labst, " Total Loss
trloss like mardh-labst, " Transit Loss
whloss like mardh-labst, " Warehouse Loss
c_stk like mardh-labst, " Closing Stock
trfstk like mardh-labst, "Transfer stock
menge like mseg-menge,
othadj like mardh-labst,
end of i_final5.
data: begin of i_final occurs 0,
werks like mseg-werks, " Plant
matnr like mseg-matnr, " Material
budat like mkpf-budat, " Posting Date
mtart like mara-mtart, " Material Type
spmon like s031-spmon, " Month
maktx like makt-maktx, " Description
meins(3), " UOM
meins like mseg-meins,
o_stk like mardh-labst, " opening stock
trecep like mardh-labst, " total receipts
produ like mardh-labst, " Net Receipts - Production
recep like mardh-labst, " Net Receipts - Receipts
sal_ret like mardh-labst, " Net Receipts - Sales Return
tdisp like mardh-labst, " total dispatches
custmr like mardh-labst, " Net Dispatches - Customers
oplant like mardh-labst, " Net Dispatches - To Other Plant
trfstk like mardh-labst, "Material Transfer stock
trloss like mardh-labst, " Transit Loss
whloss like mardh-labst, " Warehouse Loss
tloss like mardh-labst, " Total Loss
c_stk like mardh-labst, " Closing Stock
othadj like mardh-labst,
end of i_final.
data: i_final1 like i_final occurs 0 with header line.
data: begin of i_final_temp occurs 0,
werks like mseg-werks, " Plant
matnr like mseg-matnr, " Material
mtart like mara-mtart, " Material Type
maktx like makt-maktx, " Description
meins like mseg-meins,
o_stk like mardh-labst, " opening stock
trecep like mardh-labst, " total receipts
produ like mardh-labst, " Net Receipts - Production
recep like mardh-labst, " Net Receipts - Receipts
sal_ret like mardh-labst, " Net Receipts - Sales Return
tdisp like mardh-labst, " total dispatches
custmr like mardh-labst, " Net Dispatches - Customers
oplant like mardh-labst, " Net Dispatches - To Other Plant
trfstk like mardh-labst, "Material Transfer stock
trloss like mardh-labst, " Transit Loss
whloss like mardh-labst, " Warehouse Loss
tloss like mardh-labst, " Total Loss
c_stk like mardh-labst, " Closing Stock
othadj like mardh-labst,
end of i_final_temp.
For Materials
data: begin of i_mara occurs 0,
matnr type mara-matnr,
mtart type mara-mtart,
meins like mara-meins,
labst type mard-labst,
maktx like makt-maktx,
end of i_mara.
data: begin of i_stkmvmnts occurs 0,
bwart like mseg-bwart,
shkzg like mseg-shkzg,
vzbew like yw2_stkmovements-vzbew,
end of i_stkmvmnts.
data: begin of i_finalt occurs 0,
werks like mseg-werks, " Plant
matnr like mseg-matnr, " Material
budat like mkpf-budat, " Posting Date
mtart like mara-mtart, " Material Type
spmon like s031-spmon, " Month
maktx like makt-maktx, " Description
meins(3), " UOM
meins like mseg-meins,
o_stk like mardh-labst, " opening stock
trecep like mardh-labst, " total receipts
produ like mardh-labst, " Net Receipts - Production
recep like mardh-labst, " Net Receipts - Receipts
sal_ret like mardh-labst, " Net Receipts - Sales Return
tdisp like mardh-labst, " total dispatches
custmr like mardh-labst, " Net Dispatches - Customers
oplant like mardh-labst, " Net Dispatches - To Other Plant
trfstk like mardh-labst, "Material Transfer stock
trloss like mardh-labst, " Transit Loss
whloss like mardh-labst, " Warehouse Loss
tloss like mardh-labst, " Total Loss
c_stk like mardh-labst, " Closing Stock
othadj like mardh-labst,
month(8) ,
end of i_finalt.
data: imkpft like i_mkpf occurs 0 with header line.
data: imkpft1 like i_mkpf1 occurs 0 with header line.
data: imardt like i_mard occurs 0 with header line.
data: imardht like i_mardh occurs 0 with header line.
data: t_final like i_mkpf occurs 0 with header line.
data: imkpft2 like i_mkpf occurs 0 with header line.
FCAT is used for the field catalog
data: fcat type table of slis_fieldcat_alv with non-unique default key
with header line initial size 0,
for excluding the ICONs from the application toolbar
fexc type table of slis_extab with non-unique default key
with header line initial size 0,
FS_LAYO is used for Grid Layout
fs_layo type slis_layout_alv,
FEVENTS to handle the events TOP OF PAGE & USER_COMMAND
fevents type table of slis_alv_event with non-unique default key
with header line initial size 0,
FHEADER is used for List header
fheader type table of slis_listheader with non-unique default key
with header line initial size 0,
sort is used for sorting
fsort type table of slis_sortinfo_alv with non-unique default key
with header line initial size 0,
fcat1 type table of slis_fieldcat_alv with non-unique default key
with header line initial size 0,
fs_layo1 type slis_layout_alv,
gt_list_top_of_page1 type slis_t_listheader,
fevents1 type table of slis_alv_event with non-unique default key
with header line initial size 0,
fheader1 type table of slis_listheader with non-unique default key
with header line initial size 0,
g_statu_071 type slis_formname value 'Z_PFSTATUS',
alv_variant1 like disvariant.
Variable Declaration *
types: trff_type_dec_6_5(6) type p decimals 5.
data: fyear(4),
mon(2),
fyear1(4),
mon1(2),
obal like mard-labst,
cbal like mard-labst,
index type i,
count,
count1 type i,
o_stk type p decimals 3,
c_stk type p decimals 3,
v_mjahr like mkpf-mjahr,
months type trff_type_dec_6_5,
month type i.
Global variables for handling ALV functionality
data: alv_keyinfo type slis_keyinfo_alv,
alv_variant like disvariant,
alv_layout type slis_layout_alv,
alv_repid like sy-repid,
alv_print type slis_print_alv,
alv_detail_func(30),
alv_default_variant like disvariant-variant,
alv_colourize_fields like mmim_rep_print-color.
ranges: r_budat for mkpf-budat.
*Added by Prabhu for year on 26.4.05.
data: idate like r_budat occurs 0 with header line.
Selection Screen Elements *
selection-screen begin of block blk with frame title text-001.
select-options: s_werks for mard-werks obligatory
no intervals.
parameter: p_spmon like s031-spmon no-display .
select-options: s_matnr for mara-matnr obligatory,
s_lgort for mseg-lgort no-extension no intervals,
s_mblnr for mkpf-mblnr,
s_budat for mkpf-budat obligatory .
selection-screen end of block blk.
selection-screen begin of block blk3 with frame title text-004.
parameter : mtart like mara-mtart
default 'FERT' no-display.
selection-screen end of block blk3.
selection-screen begin of block blk2 with frame title text-003.
selection-screen end of block blk2.
ADDED BY PRABHU FOR DAY-WISE REPORT.
selection-screen begin of block b3 with frame title text-007.
parameters: d1 radiobutton group p1 default 'X',
m1 radiobutton group p1,
y1 radiobutton group p1.
selection-screen end of block b3.
selection-screen begin of block b2 with frame title text-006.
parameters: alv_def like disvariant-variant.
selection-screen end of block b2.
data: s_budat1 like s_budat occurs 0 with header line."prabhu
Initialization *
initialization.
perform alv_init.
at selection-screen on value-request for alv_def.
perform alv_f4.
At Selection Screen
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_spmon.
PERFORM monat_f4.
At Selection Screen *
at selection-screen.
checking for the layout
perform alv_check.
authorisation check for the Plant
PERFORM auth_check.
Validation for the Plant
perform validity_check.
if mtart ne 'FERT'.
message e041 with 'Material Type must be FERT Only...'.
endif.
if d1 = 'X'." On 26.4.05.
p_spmon0(4) = s_budat-low0(4).
p_spmon4(2) = s_budat-low4(2).
else.
p_spmon0(4) = s_budat-low0(4).
p_spmon4(2) = s_budat-low4(2).
endif.
loop at s_budat.
if s_budat-high is initial.
s_budat-high = s_budat-low.
modify s_budat.
endif.
endloop.
idate-low = s_budat-low.
idate-high = s_budat-high.
call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
exporting
i_date_from = idate-low
i_date_to = idate-high
importing
E_DAYS =
e_months = month
E_YEARS =
data: i(3) type c.
i = s_budat-low+4(2).
clear: r_budat.
refresh: r_budat.
*added by Prabhu for Only for Oneday.on 18.5.5
if month eq '0'.
month = month + 1.
endif.
*added by Prabhu for Only for Oneday.on 18.5.5
do month times.
r_budat-low = s_budat-low.
append r_budat.
enddo.
i = 0.
loop at r_budat.
r_budat-low4(2) = s_budat-low4(2) + i.
i = i + 1.
r_budat-low+6(2) = '01'.
modify r_budat.
endloop.
loop at r_budat.
call function 'RP_LAST_DAY_OF_MONTHS'
exporting
day_in = r_budat-low
importing
last_day_of_month = r_budat-high
EXCEPTIONS
DAY_IN_NO_DATE = 1
OTHERS = 2
modify r_budat.
endloop.
loop at r_budat.
if r_budat-low4(2) = s_budat-low4(2).
r_budat-low = s_budat-low.
modify r_budat.
endif.
if r_budat-high4(2) = s_budat-high4(2).
r_budat-high = s_budat-high.
modify r_budat.
endif.
For Summary on 26.4.05.
if y1 = 'X'.
clear r_budat.
refresh r_budat.
r_budat-low = s_budat-low.
r_budat-high = s_budat-high.
append r_budat.
clear r_budat.
endif.
endloop.
At Selection Screen *
at selection-screen output.
Start of Selection *
start-of-selection.
v_mjahr = p_spmon+0(4).
Get plant distinction warehouse/production
perform get_plant_distinction.
Collect the data from various tables
perform getdata_fg_stock.
here the number of rows in the output table is found
perform output_table_check.
here the top of the page code is written, that is to be displayed
in the output
perform z_top_of_page.
here ALV layout properties are set
perform z_layout_settings.
ALV EVENTS for TOP OF PAGE and for USER COMMAND
perform z_alv_events.
The field catalog is defined for the Primary List is defined in
the subroutine CREATE_FIELD_CATALOG include program ZPRRDOCR_FCAT
perform z_create_field_catalog.
This is for displaying the output
perform z_reuse_alv_grid_display.
*& Form getdata_fg_stock
Getting data from standard tables
form getdata_fg_stock.
For getting the Start date & end date of the month
PERFORM get_month_dates.
Getting the Opening Stock from MARDH table
if mon eq '01'.
mon1 = mon.
fyear1 = fyear.
mon = '12'.
fyear = fyear - 1.
else.
mon1 = mon.
fyear1 = fyear.
mon = mon - 1.
fyear = fyear.
endif.
perform get_records_from_db.
*added for Month Summary on 26.4.05.
loop at r_budat.
s_budat-low = r_budat-low.
s_budat-high = r_budat-high.
*for Month
p_spmon0(4) = s_budat-low0(4).
p_spmon4(2) = s_budat-low4(2).
*for summary.
if y1 = 'X'.
loop at s_budat.
s_budat1-sign = 'I'.
s_budat1-option = 'NB'.
s_budat1-low = s_budat-low.
s_budat1-high = s_budat-high.
append s_budat1.
clear s_budat1.
endloop.
endif.
imkpft[] = i_mkpf[].
imkpft2[] = i_mkpf[].
imardt[] = i_mard[].
imardht[] = i_mardh[].
perform month_wise.
perform process_movements.
perform calculate_opening_stock.
perform update_non_transaction_itms.
perform delete_empty_records.
clear: imardht,imardt,imkpft1,imkpft,i_final,i_final5.
refresh: imardht,imardt,imkpft1,i_final,i_final5,imkpft.
endloop.
clear: r_budat.
refresh: r_budat.
*end of changes for month.
endform. " getdata_fg_stock
FORM MONAT_F4 *
F4-Hilfe für Monat *
form monat_f4.
data: begin of mf_dynpfields occurs 1.
include structure dynpread.
data: end of mf_dynpfields.
data: mf_returncode like sy-subrc,
mf_monat like isellist-month,
mf_hlp_repid like sy-repid.
field-symbols: .
Wert von Dynpro lesen
get cursor field mf_dynpfields-fieldname.
append mf_dynpfields.
mf_hlp_repid = sy-repid.
do 2 times.
call function 'DYNP_VALUES_READ'
exporting
dyname = mf_hlp_repid
dynumb = sy-dynnr
tables
dynpfields = mf_dynpfields
exceptions
invalid_abapworkarea = 01
invalid_dynprofield = 02
invalid_dynproname = 03
invalid_dynpronummer = 04
invalid_request = 05
no_fielddescription = 06
undefind_error = 07.
if sy-subrc = 3.
Aktuelles Dynpro ist Wertemengenbild
mf_hlp_repid = 'SAPLALDB'.
else.
read table mf_dynpfields index 1.
Unterstriche durch Blanks ersetzen
translate mf_dynpfields-fieldvalue using '_ '.
exit.
endif.
enddo.
if sy-subrc = 0.
Konvertierung ins interne Format
call function 'CONVERSION_EXIT_PERI_INPUT'
exporting
input = mf_dynpfields-fieldvalue
importing
output = mf_monat
exceptions
error_message = 1.
if mf_monat is initial.
Monat ist initial => Vorschlagswert aus akt. Datum ableiten
mf_monat = sy-datlo(6).
endif.
call function 'POPUP_TO_SELECT_MONTH'
exporting
actual_month = mf_monat
importing
selected_month = mf_monat
return_code = mf_returncode
exceptions
factory_calendar_not_found = 01
holiday_calendar_not_found = 02
month_not_found = 03.
if sy-subrc = 0 and mf_returncode = 0.
ASSIGN (MF_DYNPFIELDS-FIELDNAME) TO <MF_FELD>. " ==>> note 148804
<MF_FELD> = MF_MONAT.
call function 'CONVERSION_EXIT_PERI_OUTPUT'
exporting
input = mf_monat
importing
output = mf_dynpfields-fieldvalue.
collect mf_dynpfields.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = mf_hlp_repid
dynumb = sy-dynnr
tables
dynpfields = mf_dynpfields
exceptions
invalid_abapworkarea = 01
invalid_dynprofield = 02
invalid_dynproname = 03
invalid_dynpronummer = 04
invalid_request = 05
no_fielddescription = 06
undefind_error = 07. "<<== note 148804
endif.
endif.
endform. "MONAT_F4
*& Form get_month_dates
Calculating the Month Start & End Date
form get_month_dates.
if m1 = 'X'.
fyear = p_spmon+0(4).
mon = p_spmon+4(2).
concatenate fyear mon '01' into r_budat-low.
r_budat-sign = 'I'.
r_budat-option = 'BT'.
call function 'BKK_GET_MONTH_LASTDAY'
exporting
i_date = r_budat-low
importing
e_date = r_budat-high.
append r_budat.
clear s_budat.
refresh s_budat.
s_budat-sign = 'I'.
s_budat-option = 'BT'.
s_budat-low = r_budat-low.
s_budat-high = r_budat-high.
append s_budat.
else.
fyear = p_spmon+0(4).
mon = p_spmon+4(2).
concatenate fyear mon '01' into r_budat-low.
r_budat-sign = 'I'.
r_budat-option = 'BT'.
call function 'BKK_GET_MONTH_LASTDAY'
exporting
i_date = r_budat-low
importing
e_date = r_budat-high.
append r_budat.
endif.
endform. " get_month_dates
*& Form output_table_Check
checking for records for output
form output_table_check .
describe table i_finalt lines index.
if index eq 0.
message i041 with text-005.
leave list-processing.
endif.
endform. "OUTPUT_TABLE_CHECK
*& Form Z_TOP_OF_PAGE
for setting the details in the top of page *
has no formal paramters *
Maybe you are looking for
-
Keynote won't open the Inspector.
Each time I try to open the Inspector I get the following message: An unexpected error has occurred. Please quit and reopen Keynote. I'm running Keynote '09 version 5.1 (1018) OSX 10.6.8 I've run system update and run all the latest updates. I've rep
-
Recently restored my iPod touch (32GB, 3rd Generation, iOS 4.3.3 in Portuguese,non-jailbroken) and when I went to use the application "Maps", I came across it in Chinese. Iq do not understand nothing of the language. I've been on the "Settings > Gene
-
How do I delete a Contact List?
I added a Hotmail account to my phone some time ago, and for some reason it imported all the contacts from that account. I no longer wish to use the account so I deleted the email account from the phone, but that is not deleted the associate contacts
-
i have a > (greater than) sign in my wi-fi password and cant enter it on my apple tv, any suggestions?
-
How many network interfaces the Airport Extreme (a/b/g/n with USB) has?
I am trying to use an SNMP client on the computer to monitor my network traffic. I using the Airport Extreme (AEBS) to connect to the internet using PPPoE. wifi and ethernet (RJ45) ports are used for LAN Now after setting up the SNMP client, it shows