PS_PSP_PNR vs. MAT_PSPNR in MSEG
Hello experts,
I have been making some tests and it seems that it is possible to control the project stock in one WBS element (MAT_PSPNR) and control the costs in other WBS element (PS_PSP_PSPNR). Is that correct? I mean that I'm controlling the MRP and the stocks of all the components in one WBS but the cost are set in other ones. Is there any problem working like this??
In my case the project is non-valuated stock and it seems that this scenario is ok, but what happens with valuated stock? Is it possible to work this way in this case?
Any comment or documentation about this topic would be appreciated.
Thanks in advance.
Laura
Hi,
If you are on ECC6 and EHP 03 i.e.SAP-APPL 603 and up, please activate business function switch OPS_PS_CI_1. One of the Enhancement in this Business Function is Determine WBS Account Assignment at MRP Area Level.
Please explore this functionality.
Hope it helps!
Thanks and Regards,
Varshal Kachole
Similar Messages
-
Hi experts,
I'm doing a program that gets the pep element from mseg.
But, there are two fields there: PS_PSP_PNR and MAT_PSPNR.
I can't find the logic it uses to decide when fill each field.
Some one know what is the diference ?
thanks,
AlexandreHI,
PS_PSP_PNR is the WBS element field which will be filled from Project Systems data, from project -> pr_. PO and Material document
and MAT_PSPNR is the Valuated Sales Order Stock WBS Element which is filled from Sales Side data.
reward if useful
regards,
ANJI
Message was edited by:
Anji Reddy Vangala -
Migo Goods Receipt Purchase Order
Hi all
I have to clear ,in transaction Migo, the wbs elements ( only in certain cases ) .For that we ve created an user-exit in the program of Substitutions that clear the fields : cobl-ps_psp_pnr, cobl-mat_pspnr. But the two fileds are not cleared .
the user exit is this :
IF ( V_BWARTWE = '101' OR
V_BWARTWE = '102' OR
V_BWARTWE = '122' OR
V_BWARTWE = '123' ).
SELECT SINGLE * FROM ekpo
WHERE ebeln = cobl-ebeln AND
ebelp = cobl-ebelp.
check EKPO-PSTYP EQ '3'.
check EKPO-KNTTP EQ 'Q'.
cobl-kostl = 'ZCL_PIENO'.
CLEAR cobl-ps_psp_pnr.
CLEAR cobl-mat_pspnr.
ENDIF.
the Field cobl-kostl is correctly filled but the two fields wbs ar not clear .We used a program already used in an other project with the same logic,the only difference is the release : we are in 6.0
can you Help me ?
ThanksHi,
You can use these two badi's MB_MIGO_BADI, MB_MIGO_ITEM_BADI pick the proper one.
i think item_badi will suit for your purpose.
first create Z implementation for this definition and put break point in PBO detail method and chck which one is useful for you.
regards
Muthappan -
Converting Number into words while Display
Hello Sir,
I am working on Project System.
I am getting Field MAT_PSPNR(Valuated Sales Order Stock WBS Element) in MSEG Table.
In table the Corresponding field stored in Numbers while Display its converted into Some other Content Please Explain Me ?.
REPORT zdemo LINE-SIZE 600.
tables: mseg.
select-options: so_mblnr for mseg-mblnr. " Document No
start-of-selection.
select mat_pspnr from mseg into mseg-mat_pspnr " Valuated Sales Order Stock WBS Element
where mblnr in so_mblnr.
check sy-subrc = 0.
write:/01 mseg-mat_pspnr.
endselect.
Table Stored value for MAT_PSPNR = 00000293
Report Display: WSP/RAM/02/03.
Kindly Explain how the Contents has been changed ?.
Regards,
Venkat.Hi Venkat,
please check the Domain of the field you are trying to display .
it will have a conversion routine.
for field MAT_PSPNR domain is PS_POSNR
In the domain definition tab you will have a conversion routine .
because of this conversion routine your data is represented in internal format in the table and external format when displayed.
please read conversion routine documentation.
regards, -
Call transaction mb51 : performance issue
Hi,
I have written one report where I am calling Tcode mb51 and getting the records from it and displaying those in my report. Is there any way to have better performance in my report. Since its taking too much time if I select all materials for specific plant.?
rgds,
MadhuriMadhuri,
Just run this query to get all the required fields out as that of the MB51 List....ok
types : begin of stype_fields,
fieldname type name_feld,
end of stype_fields.
types : stab_fields type standard table
of stype_fields
with default key.
data : l_t_fields type stab_fields.
append 'MSEG~ANLN1' to l_t_fields.
append 'MSEG~ANLN2' to l_t_fields.
append 'MSEG~APLZL' to l_t_fields.
append 'MSEG~AUFNR' to l_t_fields.
append 'MSEG~AUFPL' to l_t_fields.
append 'MKPF~BKTXT' to l_t_fields.
append 'MKPF~BLDAT' to l_t_fields.
append 'MSEG~BPMNG' to l_t_fields.
append 'MSEG~BPRME' to l_t_fields.
append 'MSEG~BSTME' to l_t_fields.
append 'MSEG~BSTMG' to l_t_fields.
append 'MKPF~BUDAT' to l_t_fields.
append 'MSEG~BUKRS' to l_t_fields.
append 'MSEG~BWART' to l_t_fields.
append 'MSEG~BWTAR' to l_t_fields.
append 'MSEG~CHARG' to l_t_fields.
append 'MKPF~CPUDT' to l_t_fields.
append 'MKPF~CPUTM' to l_t_fields.
append 'MSEG~DMBTR' to l_t_fields.
append 'MSEG~EBELN' to l_t_fields.
append 'MSEG~EBELP' to l_t_fields.
append 'MSEG~ERFME' to l_t_fields.
append 'MSEG~ERFMG' to l_t_fields.
append 'MSEG~EXBWR' to l_t_fields.
append 'MSEG~EXVKW' to l_t_fields.
append 'MSEG~GRUND' to l_t_fields.
append 'MSEG~KDAUF' to l_t_fields.
append 'MSEG~KDEIN' to l_t_fields.
append 'MSEG~KDPOS' to l_t_fields.
append 'MSEG~KOSTL' to l_t_fields.
append 'MSEG~KUNNR' to l_t_fields.
append 'MSEG~KZBEW' to l_t_fields.
append 'MSEG~KZVBR' to l_t_fields.
append 'MSEG~KZZUG' to l_t_fields.
append 'MSEG~LGORT' to l_t_fields.
append 'MSEG~LIFNR' to l_t_fields.
append 'MSEG~MATNR' to l_t_fields.
append 'MKPF~MBLNR' to l_t_fields.
append 'MSEG~MEINS' to l_t_fields.
append 'MSEG~MENGE' to l_t_fields.
append 'MKPF~MJAHR' to l_t_fields.
append 'MSEG~NPLNR' to l_t_fields.
append 'MSEG~PS_PSP_PNR' to l_t_fields.
append 'MSEG~RSNUM' to l_t_fields.
append 'MSEG~RSPOS' to l_t_fields.
append 'MSEG~SHKZG' to l_t_fields.
append 'MSEG~SOBKZ' to l_t_fields.
append 'MKPF~USNAM' to l_t_fields.
append 'MKPF~VGART' to l_t_fields.
append 'MSEG~VKWRT' to l_t_fields.
append 'MSEG~WAERS' to l_t_fields.
append 'MSEG~WERKS' to l_t_fields.
append 'MKPF~XABLN' to l_t_fields.
append 'MSEG~XAUTO' to l_t_fields.
append 'MKPF~XBLNR' to l_t_fields.
append 'MSEG~ZEILE' to l_t_fields.
select (l_t_fields)
into corresponding fields of table itab
from mkpf inner join mseg
on mkpfmandt = msegmandt
and mkpfmblnr = msegmblnr
and mkpfmjahr = msegmjahr
WHERE MKPF~BUDAT in BUDAT
and MSEG~BWART in BWART
and MSEG~CHARG in CHARG
and MSEG~KUNNR in KUNNR
and MSEG~LGORT in LGORT
and MSEG~LIFNR in LIFNR
and MSEG~MATNR in MATNR
and MSEG~SOBKZ in SOBKZ
and MKPF~USNAM in USNAM
and MKPF~VGART in VGART
and MSEG~WERKS in WERKS
and MKPF~XBLNR in XBLNR.
If you run this above query in your report instead on calling MB51 in ur report, you will get the list as that of std. MB51, check this out.
Regards,
Chandan -
Update Consumption posting field of MSEG table control
Hi,
We have free goods Sales order type(ZKFC) and reture(ZKFR). We post
the free goods delivery update G/L is correct in FI document of MM
movement(601). We post the return free goods delivery update G/L is
incorrect in FI docuemt of MM movement(653). We checked the MSEG table
found the Consumption posting field(MSEG-KZVBR) is empty for free goods
delivery post. The Consumption posting field is 'V' for return free
goods delivery post. The other order delivery post and return delivery
post is OK.We want to know where configuration can control the
Consumption posting field((MSEG-KZVBR)) update at MSEG table? Could you
pls help us check it.Thanks.
Movement type(601) FI docuemnt
Dr: Sales Promo. Mat.
Cr:F/G-Trading
Movement type(653) FI docuemnt
Dr: F/G-Trading
Cr:Std.Cost-Trading
We expected the 653 FI docuemtn
Dr: F/G-Trading
Cr:Sales Promo. Mat.
Best Regards
Park HanHi,
You can use tcode OMJJ to check for movement type 653, then look at the Account Grouping.
There you should be able to identify the line that meets the posting, and since the Consumption is 'V', the Acct. modif should be VAY.
Then to assign the correct G/L in tcode OBYC, look for combination of
-event GBB
-acct mod VAY
-valuation class of the material
But before you replace the G/L, confirm that the line is the correct one by matching the GL in MSEG and this line's GL.
Thanks -
Well i m makin a report on material consumption which gets the opening stock, purchase, consumption & closing stock of all the materials in a particular month.
i m getting mblnr from mkpf table & then go to mseg table. but it is taking a lot of time. can i make it faster. how??hi,
can u paste ur code here to know the exact pblm. if u r using read table statement then use binary search option with it.
is u r using select in loop then avoid it and use for all entries to amke it faster.
it would be nice if u paste ur code to know the pblm clearly.
check tips in the run time analysis.
hope this helps u.
reward points if helpful. -
Extracting Movement type wise data(MSEG) based on posting date from 0IC_C03
Hi Experts,
I have implemented 0IC_C03 in devlopment client and preparing a Physical Inventory report.
I want to know if I can directly extract the fugures such as Process Loss, Sales, Sales Return, Transfer In and transfer out from the cube 0IC_C03 so, my question is ...
Is it possible to extract the movement type wise data as in MSEG from any KF of 0IC_C03 ?? If its possible which particular KF should I use from the cube ??
Please respond at the earliest.
Thanks,
RomilHi,
You can extract 0RECTOTSTCK & 0ISSTOTSTCK from 0IC_C03 but you need put corresponding Movment type for each
you can't put 0TOTALSTCK, it is Non-cumulative key fig,
even all key fig except Non-Cumulative key Fig like (0TOTALSTCK , 0VALSTCKQTY , 0VALSTCKVAL.....) can be extracted
Best Regards
Obaid -
How to match BSIM with MSEG (match FI entries to MM entries)
Hello,
I have to make a custom report calculating opening, closing stock - its value and quantities (with respect to begin and end date) however taking into consideration only certain movement types. I need to neglect those entries from BSIM which have other movement types than the ones specified as a parameter but there is no BWART field in BSIM.
How can I match FI document entries(BSIM / BSEG) to MM document entries(MSEG) ?
Thanks.Assuming its true ( 1MM doc = 1FI doc ), the question is how to match FI document item with MM document item ?
is it a rule that entries in fi docs are in the same order as entries in mm doc?
therefore a formula (MM_entry * 2) = FI_entry would work but I'm kinda sceptical to assume that
Edited by: Bartosz Bijak on Jan 18, 2010 1:31 PM -
Excise Duty Group not being populated during VL09 in MSEG-ROITAXGRPtable
Hi,
When we do the PGI (601 movement type), the data gets updated in MKPF & MSEG tables.During this process the details pertaining to ED group(field ROITAXGRP) are not updated in MSEG.
The above factor has the following connection to 602.
Subseqently when we do VL09 - the data pertaining to PGI (601) is imported from MSEG & hence ED group does not get populated as the system takes the material document of 601 to reverse the delivery document
We need to know the following things.
1. When we are doing delivery (Movt type 601) ,excise duty group gets updated in which field and table?
2. When we are reversing the document why in the MSEG table ROITAXGRP field (Excsie Duty Group) not getting updated.
3. Is there any User Exit which can be usd to populate this . We are using version 4.6c (IS-OIL) version ?
regards,Thanks,
K.Kiran -
I want to extract data from MSEG. Its becoming performance issue. Can anybody advice me regarding any view which i can use in place of MSEG
a view won't increase performance, have you tried to force the index or create an index for the fields you use for the mseg table
perhaps if you need specific data you can also check BSAK BSIK BSAD BSID tables which are related to BSEG .
kind regards
arthur de smidt
Edited by: A. de Smidt on Jul 30, 2008 1:03 PM -
SMBLN filed blank in case of service Purchase order for MSEG
Hi expert
SMBLN (Number of Material Document) filed blank in case of service Purchase order for MSEG.
if i check for normal po i get my number for which i have doing reverse.
Case example
when i check in mseg for Mvt 106 Material Docu No , in the field SMBLN i get for the Material Docu No of 105 for normal PO.
when i check in mseg for Mvt 102 Material Docu No , in the field SMBLN i dont get for the Material Docu No of 105 for Servicel PO
Regard
Nabil
Edited by: sayednabil on Apr 11, 2011 11:50 AMHello andrewjkasten,
It's good to hear from you again, although I truly wish it were to share a more pleasant experience than when we previously conversed. It is always great to keep an eye on sales however you can so you don't miss them! I'm sorry to hear a technical issue may have caused your order to not reach our systems and missing out on a great sale price!
Using the information you registered with the forum, I've sadly been unable to locate your computer order. With that said, I would like to look further into this and am sending you a private message to gather the necessary information. I look forward to your correspondence!
Respectfully,
Tasha|Social Media Specialist | Best Buy® Corporate
Private Message -
Problem in MSEG Table updation
Hello All,
The problem is related to MSEG table updation after Stock Transport Order (STO) is done between Manufacturing plant & Depot. The problem is described below with an example.
In case of STO the Supplying Plant or vendor is SP02 and the Receiving Plant or the customer is RP15.in the STO under the shipping tab for Customer the system is showing RP15 and under the Delivery address tab for Vendor the system is showing SP02.
While during PGI when the material document is generated when we check the MSEG table two line items have been generated where we found that the field WERKS contained SP02 & RP15 against which the feld XAUTO is showing blank space & X symbol respectively.But in case of both LIFNR & KUNNR fields it is showing blank space, which indicates that both the vendor & customer fields are not getting updated in the MSEG table.
Now I want the system to pick up the data for KUNNR field (in case of XAUTO is X) also in the MSEG table i.e. RP15 should also be displayed in the MSEG table.
Is there any configuration to attain my requirement?
Looking forward to some valuable suggestions.
Thanks & Regards
Priyanka Mitrathe ADRx tables are central tables that are used from various transactions in SAP.
e.g. from customizing, master data maintenance, transactional data, such as purchase orders and sales orders.
use the ADRNR from ADR6 table and then lookup an entry in table ADRC to find and hint to its origin field ADDR_GROUP -
User-exit /BADI to change mseg during migo
HI
Can someone tell me which user-exit/BADI to be used which lets one change mseg during MIGO. There are some user-exit/BADI during migo but everywhere mseg is an import param. Actually for certain cases I want
to change the amount in local currency field (dmbtr). I can always forcibly do it from an update-module called from MB_DOCUMENT_BADI but this would lead to inconsistency as the same won't be passed to
accounting document.
Regards
SauravHi,
i've also tried using the BAdI mentioned to change for some changes required for price during goods movement.
after discussion with developer, we found out that the when the program reach the BAdI mentioned, it is already too late as the standard program has already populated the accounting document structure to be posted.
to change the amounts to be posted to the accounting document can be managed with enhancement spots in inlcude program of LRWCLF01.
but requires heavy logic to restrict to specific scenarios and intensive testing, not recommended as it is not within the boundaries of standard SAP allowed changes.
Cheers,
Joaquin -
User exit or BADI for MIGO to Update a field in MSEG-KOSTL
Hi,
I want to update/change the KOSTL (Cost center) value before creating/posting the document.
Please let me know is there any user exits or BADI, which will export the MSEG structure.
Regards,
GaneshHi
I believe there isn't a BADI or EXIT allows to change item data, I usually use the exit to change the item text EXIT_SAPMM07M_001 (the BADI MB_MIGO_ITEM_BADI should be the same thing) where I change the data by field-symbols:
FIELD-SYMBOLS: <KOSTL> TYPE MSEG-KOSTL.
ASSIGN '(SAPMM07M)MSEG-KOSTL' TO <KOSTL>.
<KOSTL> = .......
Max
Maybe you are looking for
-
Best practices for approval of MRP generated PRs
Hi, all. I'd very much like to route our MRP generated purchase requisitions directly to the Purchasing department without the need for additional approvals, regardless of $ amount. PRs not generated by MRP (manual) will still need to pass through a
-
On my Mac Mini, I keep getting this error message: "iCloud encountered an error while trying to connect to the server". I don't have any problems with iCloud on my laptop / PC. It works fine... Does anyone know what the problem could be?
-
Hi, I have a Forms5.0 and Reports3.0 and Developer/2000 Reports server3.0 in a Client-Server Articture. My Question is: when I print a report(1 page), the reports server taking too much time to print and it is sitting for the long time9 sometime 12 h
-
Table name(s) to report on Sales Text
Hi, I am searching a way to get a report of the Sales Text related to the material master per sales org. Ran through a bunch of tables, but none of them provide info on the Sales Text. Could anyone help me on which tables I need to combine to get to
-
Multiplie logon message *every* time I try to logon?
Hello, I hope that someone can help me with this: before few weeks I had sudden failure in SAP and I was disconnected from the system and after that momment *every* time I logon I see this multiplie logon message: http://img255.imageshack.us/img255/7