VIEW b/w MKPF, MSEG and VBAK
Hello Friends,
I have done some coading, thought to take ur opinion, if its right or not....
actually, I have following senario:
I have to select all document of TODAYS date ( MKPF-BLDAT) which are from some specific MSEG-LIFNR and the KUUNR is always e.g "123456" ( VBAK-KUNNR )
SO I made a VIEW with join condition...
MKPF-MANDT = MSEG-MANDT
MKPF-MANDT = VBAK-MANDT
MKPF-MBLNR = MSEG-MBLNR
MKPF-MJAHR = MSEG-MJAHR
MSEG-KDAUF = VBAK-VBELN
and make the select statement as:
SELECT * FROM /BAGCOI/MSVIEW
into CORRESPONDING FIELDS OF TABLE lt_msview
WHERE
BLDAT in p_sdate AND
LIFNR eq c_lifnr AND
KUNNR eq c_kunnr.
Do u guys think, it will work for me ?
Regards,
PLS ask, if my post is not clear enough
Message was edited by:
Shah H
Hi Rob,
Could you pls explain about index ?
Secondlly, I need to have all goods movement of todays date ?, then it would be the filed BLDAT or ?
Regards,
Message was edited by:
Shah H
Similar Messages
-
Link up b/w MKPF,MSEG and RBKP,RSEG
Hi,
I am working on a report in which i have to make up a link b/w above mentioned tanles. till now i am able to make link between MSEG and MKPF but the problem is that when i go for the RBKP and Rseg it gives a bit problem as RBKP is a Header Table and RSEG is a item table ,the flow of logic conatins data from field MSEG-LFBNR which is EQ to RSEG-LFBNR and from there i pick up the BELNR and proceed to the PBKP .Is it a right process for reteriving the data?
Please provide me guidelines to solve this problem.Plz SEARCH in SCN before posting.
Re: EKBE - the connection between Invoice Recipt to Good Recipt -
Select Query info req for ZMKPFMSEG: View of MSEG and MKPF table
Hi
I am fetching 7-8 records frm ZMKPFMSEG: View of MSEG and MKPF table,which based on matnr,werks & budut,which is taking a large time,there is no index in the table,so can nay one tell me how to fetch the data,to make code more effictient.
SELECT budat
matnr
menge
bwart
meins
bwtar
waers
dmbtr
shkzg
matkl
FROM zmkpfmseg
INTO CORRESPONDING FIELDS OF TABLE it_mseg
WHERE budat GE r_ytd-low
AND matnr IN so_matnr
AND werks = p_werks
AND lgort IN so_lgort
AND matkl IN so_matkl.
plz tell me what changes have to be done in where condtion to make it run fast.
regdsHi,
Try the alternate Methods,
ACCESS VIA SUBQUERY.
SELECT * FROM MKPF AS M INTO CORRESPONDING FIELDS OF SWAP
WHERE BUDAT IN BUDAT AND
MBLNR IN MBLNR AND
VGART = 'WA' AND
EXISTS ( SELECT * FROM MSEG
WHERE MBLNR = M~MBLNR
AND MJAHR = M~MJAHR
AND WERKS = P_WERKS
AND matnr IN so_matnr
AND lgort IN so_lgort
AND matkl IN so_matkl.
APPEND SWAP.CLEAR SWAP.
ENDSELECT.
LOOP AT SWAP.
SELECT * FROM MSEG
WHERE MBLNR = SWAP-MBLNR AND
MJAHR = SWAP-MJAHR AND
IF SY-SUBRC EQ 0.
MOVE-CORRESPONDING SWAP TO ITAB.
MOVE-CORRESPONDING MSEG TO ITAB.
APPEND ITAB.CLEAR ITAB.
CLEAR MSEG.
ENDIF.
ENDSELECT.
CLEAR : SWAP,ITAB.
ENDLOOP.
Try this,
SELECT budat
matnr
menge
bwart
meins
bwtar
waers
dmbtr
shkzg
matkl
FROM zmkpfmseg
INTO CORRESPONDING FIELDS OF TABLE it_mseg
WHERE budat GE r_ytd-low
AND matnr IN so_matnr
AND lgort IN so_lgort
AND matkl IN so_matkl.
delete it_mseg where WERKS NE p_WERKS .
Reward Points if helpful.
Regards,
Balakumar.G -
Are there any alternatives for mseg and mkpf
I had to display from table S032...following fields.
S032-LETZTABG --> Date: last (i.e. most recent) goods issue
S032-LETZTVER --> Date: last (i.e. most recent) consumption
However the data was not properly filled in s032 table. So I went for mseg and mkpf table to get budat based on moment types.
SELECT MSEG~MATNR
MSEG~WERKS
MSEG~LGORT
MSEG~BWART
MKPF~BUDAT
INTO TABLE IT_MSEG
FROM MKPF AS MKPF INNER JOIN MSEG AS MSEG
ON
MKPFMBLNR = MSEGMBLNR AND
MKPFMJAHR = MSEGMJAHR
FOR ALL ENTRIES IN T_OUT_TMP
WHERE MSEG~MATNR EQ T_OUT_TMP-MATNR
AND MSEG~WERKS EQ T_OUT_TMP-WERKS.
Are there any other alternative table for mseg and mkpf...
Because my above coding ( which includes above SELECT of mseg and mkpf )got performance issue...
Could you please suggest me anyu other alternative for mseg and mkpf ...Try to include the BUDAT in the selection of the MKPF.. if you don't have any restriction in MKPF than just pass an empty range.
RANGES: S_BUDAT FOR MKPF-BUDAT.
SELECT
MKPF~BUDAT "<<<
MSEG~MATNR
MSEG~WERKS
MSEG~LGORT
MSEG~BWART
INTO TABLE IT_MSEG
FROM MKPF AS MKPF INNER JOIN MSEG AS MSEG
ON
MKPF~MBLNR = MSEG~MBLNR AND
MKPF~MJAHR = MSEG~MJAHR
FOR ALL ENTRIES IN T_OUT_TMP
WHERE
MKPF~BUDAT IN S_BUDAT " <<<
MSEG~MATNR EQ T_OUT_TMP-MATNR
AND MSEG~WERKS EQ T_OUT_TMP-WERKS.
Regards,
Naimesh Patel -
LIS Info Structure with table MKPF/MSEG
Hi Gurus,
I have a view made up of table MKPF/MSEG (74 fields in totals). Based on my requirement (loading archived and non archived marerial movements data) I am looking to create an Info structure with the same 74 fields - to connect the LIS infostructures to BW.
I need to create a char. as KF fields catalog.
my issue is while doing that I am not able to have the 74 fields I am looking for (I am just getting around 50).
I know how to create an Infostructure/ Catalogue (Transaction MC21/MC18)
Any Idea how to Create an Info Structure that would have all the fields from table MKPF and MSEG?
Regards
Edited by: Blaiso on Jun 2, 2011 6:10 PMHi,
Steps in LIS EXTRACTION:
T.code u2013 :MC18 u2013 create field catalog
1. Characteristic Catalog
Application-01-Sales and Distribution, 02-Purchasing, 03-Inventory Controlling, etc..
Catalog category 1. Characteristic catalog, 2. Key figures catalog 3. Date catalog Select characteristic catalog and enter, click on characteristic select the source table and it will be display the relevant source field and select the source field, copy + close, copy.
Save, similarly create key figures catalog
T.code : MC21 u2013 create infostructure
Example u2013
Inforstructure : S789
Application u2013 01
Choose characteristic select the catalog, select the fields, copy + close Choose key figures catalog select the key figures ,copy + close, save and generate
T.code u2013 MC24 u2013 create updating
Infostructure : S789
Update group : 01- Sales document, delivery, billing document ,enter Select the key figures click on rules for key figures give suggest rules, copy save and generate Click on updating (activate updating) Select the infostructure set periodic split 1. Daily, 2. Week, 3. Month, 4. Posting period Updating u20131)No updating,2)Synchronous updating (V1), 3)As synchronous updating (V2), 4)As synchronous updating (V3),
T.code u2013 LBW0 u2013 Connection of LIS Information structures to SAPBW Information structure : S786 Select the radio button-Setup LIS environment and Execute.
Select the radio button-Generate data source and Execute.
For Delta update:
Select the radio button-Generate updating and Execute Select the radio button -Activate / deactivate and Execute.
T.code u2013 SBIW u2013 Display IMG (implementation guide) Setting for applications specific data source u2013 logistics u2013 Managing transfer information structure u2013 setup of statistical data u2013 applications specific setup of statistical data u2013perform statistical setup u2013 sales.
Choose activity
Setup u2013 Orders, deliveries, billing
Choose the activities enter the infostructure (S789), give name of the run, date of termination, time of termination, No. of tolerated faulty documents. Then execute
T.code u2013 RSA3 u2013 Extractor checker
Give the data source name eg. 2LIS 01S789 and execute, result will get some records Go to BW side replicate data source u2013 Assign infosource u2013 Create infocube u2013 Create update rules u2013 create infopackage and schedule the package with initialize delta process.
For delta update :
In R/3 side
T.code u2013 MC25, set update (V1) or (V2) or (V3)
T.code u2013 LBW0, choose generate updating and execute then choose activate / deactivate and execute
BW side u2013 create infopackage and schedule the package with delta update.
First time if your scheduling the infopackage -in R/3 side T.code :MC25 -Udating set to No update,insted of selecting the update V1,V2,V3.
If your doing the Delta update:in R/3 side T.code :MC25-Updating set to either V1 or V2 or V3. and the to T.code :LBW0 -Select the radio button Active/deactivate and Execute.
and schedule the infopackage with delta update.
Modules for LIS : SD,MM, PP,QM.
Deltas for LIS:
After setting up the LIS environment, 2 transparent tables and 1 extract structure is generated for this particular info structure. Within transaction SE11 you can view the tables u2018SnnnBIW1u2019, u2018SnnnBIW2u2019 and the structure u2018SnnnBIWSu2019 and the InfoStructure itself u201ASnnnu2018
The tables S5nnnBIW1 & SnnnnBIW2 are used to assist the delta update process within BW.
Extract structure u2018SnnnnBIWCu2019 is used as an interface structure between OLTP InfoStructure and BW
The OLTP system has automatically created an entry in the control table u2018TMCBIWu2019. Within transaction u2018SE16u2019 youu2019ll see, that for your particular InfoStructure the field u2018BIW activeu2019 has the value u2018Xu2019 and the field u2018BIW statusu2019 is filled with value u20181u2019 (refers to table SnnnBIW1).
The orgininal LIS update program u201ARMCX#### will be enhanced within the form routines u201Aform Snnnbiw1_update_u2026.u2018 and u201Aform Snnnbiw2_update
With the transaction u2018SE38u2019 youu2019ll see at the end of the program starting at line 870 / 1006, that the program is enhanced within a u2018BIW delta updateu2019 coding
Within the flag u201AActivate/Deactivateu2018 the update process into the delta tables (SnnnBIW1/Sn5nnBIW2) is swichted on/off. In the table u201ATMCBIWu2018 is defined, which table is active for delta update.
Regards,
Prakash -
Hello Experts,
I had a issue where we are executing one custom report in which i used inner join on table MKPF & MSEG, some time join statement took 9-10 min to excute and some time execute within 1-2 min with same test data .
i am not able to understand what the actaully happing .
please help.
code :
SELECT f~mblnr f~mjahr f~usnam f~bktxt p~bukrs
INTO TABLE itab
FROM mkpf AS f INNER JOIN mseg AS p
ON f~mblnr = p~mblnr AND f~mjahr = p~mjahr
WHERE f~vgart = 'WE'
AND f~budat IN p_budat
AND f~usnam IN p_sgtxt
AND p~bwart IN ('101','105')
AND p~werks IN p_werks
AND p~lgort IN p_lgort.
Regards,
Dipendra Panwar.Hi Dipendra,
if you call a report twice after another with the same test data for data selection, then the second run should be faster, because some data are remaining in memory and needn't to be caught from database. This will be also for the following third und further runs, until the data in the SAP memory will be removed by other programs.
For performance traces you should try to test with a first run.
Regards,
Klaus -
Create a Logical Database Based on Mseg and Bseg
Hi,
how can i create a Logical database using bkpf,bseg,mkpf,mseg. i need to know , which table is a root node ?
could any one help me?
ThanksHi Amit,
While I am Creating the Logical Database by selection MKPF as root node, i have one problem.
my selection-screen is,
Plant Bseg-werks,
G/Laccount Bseg-Hkont,
Fin year bseg-gjahr,
Grn Date Bkpf-Budat,
Vendor No Bseg-lifnr,
Po Bseg-ebeln,
MatNr Bseg-matnr.
My LDB structure is
MKPF
Mseg
BKPF
Bseg.
My Doubt is, how can I access the glaccount details from bseg and How can i fetch the data from Mseg and Mkpf
(Grn details) .
If you give the Source code it is very useful to me.
Thanks,
Neptune.M -
Linking tables MKPF MSEG MBEW EKKO EKBE EKBZ BSEG TCURR
Hello everyone, I need help with linking all these tables:
MKPF, MSEG, MBEW, EKKO, EKBE, EKBZ, BSEG, TCURR...
what is the best way to link them in order to run a report??
any ideas?Refer to this MM and FI tables flow, ths might help you
http://www.sapgenie.com/abap/tables_mm.htm
http://www.sapgenie.com/abap/tables_fi.htm
http://www.sapgenie.com/abap/tables_mm.htm#Purchasing%20Tables
Regds
Manohar -
I would like to set up my email on the apple tv as well as have my husband's email on there so we can view both sets of photos and videos - it is already set up in his name - how do i add my name so as to view my photo library and songs from MY phone ?
this is not a reply - i asked the question - still trying to learn how all this works - someone please HELP ME
-
I am having some huge problems with my colorspace settings. Every time I upload my raw files from my Canon 5D mark II or 6D the pics are perfect in color. That includes the back of my camera, the pic viewer on my macbook pro, and previews. They even look normal when I first open them in photoshop. I will edit, save, and then realize once i've sent it to myself to test the color is WAY off. This only happens in photoshop. I've read some forums and have tried different things, but it seems to be making it worse. PLEASE HELP! Even viewing the saved image on the mac's pic viewer is way off once i've edited in photoshop. I am having to adjust all my colors by emailing myself to test. Its just getting ridiculous.
Check the color space in camera raw, the options are in the link at the bottom of the dialog box. Then when saving make sure you save it to the srgb color space when sending to others. Not all programs understand color space and or will default to srgb. That won't necessarily mean it will be accurate, but it will put it in the ballpark. Using save for web will use the srgb color space.
-
Ever since the latest update, my task bar (if it's called that - it's the one with "file,edit,view, etc") will "grey out" and I won't be able to type into any websites I visit. Only way I can proceed is if either restart Firefox (very annoying) or reduce the window and open it again. Please help!
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
See also:
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
*http://kb.mozillazine.org/Corrupt_localstore.rdf -
How to maintain several views of the same data and update a tree
I have an object UiUser, which is displayed in my application in several different views. There are three different views which all have the User object i.e. search results, user tree and user table. Each of the views has the same menu items, so the user can be deleted from any of the views.
What I am trying to work out is how should I ensure the item is updated in all of the views?
I can fire a property change event with the UiUser and update two of the views i.e. search results and user table, but how do I update the tree?
I thought of overiding the equals/hashcode methods of the UserTreeNode to compare uiUser.getId () and I could then search the tree and find the tree node of the required UiUser. But I have reservations about this whole approach as it just seems wrong.
Any ideas of how to keep N views in sync, I really don't want all of the views to have tree nodes as this equally seems wrong. This should be a simple problem to solve and I'm sure lots of people have done it, I'm just not sure which is the best approach to take.
ThanksHi Jan,
This is so because each installer has a GUID that is used to check whether the application needs to be upgraded or not. (It's a Microsoft function).
What you can do is create a new installer with a different GUID (copy the installer in the projects), and check witha text editor whether this GUID has changed.
But any specific reason you need two seperate installs? You can run the application twice with a specific INI token:
allowmultipleinstances=True
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
How to create a public view for sharepoint list A and deploy this view to specific user personal view? Is that possible OOTB?
Views cannot be exported or moved. Can you elaborate your requirement?
--Cheers -
How do I view a movie I rented and downloaded to my computer on my apple TV. The ATV is not seeing the rented movie in my shared itunes library? I can't seem to transfer the rental to the ATV from the computer!
Dear friends,
Thank you for responding to my problem so promptly. Frankly, I did not expect to hear from people so soon! The fact is that as soon as I posted the question, I was shown a number of similar queries and managed to find the answer. I have to say it's not intuitive! I have an apple TV original version. Apparently I had the ATV on streaming and not syncing. Streaming does not allow you to stream a rental from your computer whereas you can sync and transfer the rental from the computer!
Thanks again.
Colin -
Cannot view video get error message and only sound.
cannot view video, get error message and sound only. Message Error Code:c000005, address:2568b7ab
I am just finally posting a reply. Looks as though the sound card went out. I was told that I could purchase a new open and install myself. I did not do that, but rather my step-dad just decided it was time to buy a new Mac Mini.
Maybe you are looking for
-
Retrieving images for a java game
i am currently trying to make a game whereby i have to retrieve images from a file and display it to the screen. I am able to do this using applets but the game i am implementing does not use applets - it only makes use of awt and swing components. a
-
Danger of running EmelFM2 as root: configuration blown away!
Say you have a customized EmelFM2 configuration in /home/user/.config/emelfm2/ running as an ordinary user. Close EmelFM2, open up a root terminal and issue the 'emelfm2' command. Then close EmelFM2 and you'll see that the files within /home/user/.co
-
Hi Can we do security in E-sourcing? Anyone has any document on it? Is the security in E-sourcing different from the standard R/3 Security? If yes how? Thanks in advance for your inputs?
-
The AUR needs a forum section (rather than visa versa)
The AUR needs everyone working together to suceed. We need the users to put their PKGBUILDs in, do their voting and get some feedback on the interface and processes from the users. To do this we have the tur-users mailing list, which is great for co
-
Javascript Syntax: Return the greater of summed range or "0"
I am using Windows 7 and Adobe Acrobat X. I have a field in which I want to show the sum of a range of fields. However, if that summed value is negative I want it to display a "0". I'm not sure of the syntax I need to use in order to get this result