After getting the bom ,find routing,workcenter,how to get component routing
hi experts.
the requirement is find the find the routing details of the given materials.
input is
material using select-options.
plant
out put
1.operator
2.material
3.material description
4.workcenter
5.vendor
6.operation description
7.uom
8.qty
9.uom
10.setuptime
11.processingtime
12.deliverytime
example.
materials t4595959----this materials bom is give below
3939393----
procurement type is f
3393939 -
procurement type is e
3939393------- procurement type is x
i explanied what i tried.
tables : marc,mapl,plpo,crhd,eord,eina,eine.
1. using cs_com_expl_mat_v2 to get the bom explosion
2. after got the materials with bom
<b>MARC </b> <b>MAPL</b> MATNR MATNR
WERKS 1 WERKS
BESKZ =======> E OR x PLNTY
PLNNR
2 3
<b>MAPL</b> =====> <b> PLPO</b> =====> CRHD
PLNTY OBJID
PLNNR ARBPL
VORNR
ARBID
LTXA1
VGE01
VGW01
VGW02
<b> 1 2 3
MARC</b> ==> <b>EORD</b> => <b>EINA</b> => EINE
BESKZ == 'F' MATNR MATNR INFNR
LIFNR LIFNR APLFZ
FLIFN = 'X' INFNR
followed this method to explode the bom and got the operation.
but its only fetch the header materials operation ,not component operaion
h we get the opeations of the component
thanks in advance
Regards
ds
hI,
Yes i checked the debugging mode ,its only fecthed the header materials
but not component materials,
i here give the query for ur review ,pl give me a solution
START-OF-SELECTION.
CLEAR ISTPO. REFRESH ISTPO.
LOOP AT ITAB.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
MEHRS = 'X'
MMAPS = ' '
MDMPS = ' '
BREMS = 'X'
DISMM = ' '
LIFNR = ' '
WEBAZ = ' '
DATUV = SY-DATUM
MTNRV = ITAB-MATNR
WERKS = P_WERKS
EMENG = '1'
STKKZ = ' '
FBSTP = ' '
FTREL = ' '
IMPORTING
TOPMAT = W_TOPMAT
DSTST = DSTST
TABLES
STB = ISTPO
MATCAT = MATCAT
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
OTHERS = 8.
WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
SELECT MATNR WERKS OBJID BESKZ FROM MARC INTO CORRESPONDING FIELDS OF TABLE IT_ITAB_IDEL
WHERE MATNR = ITAB-MATNR AND BESKZ = 'X' OR BESKZ = 'E' OR BESKZ = 'F'.
SELECT MATNR WERKS PLNTY PLNNR LIFNR FROM MAPL INTO CORRESPONDING FIELDS OF TABLE IT_MAPL_IDEL
WHERE MATNR = ITAB-MATNR AND
WERKS = 'IN01' .
SELECT PLNTY PLNNR ZAEHL VORNR ARBID OBJTY LTXA1 VGE01 VGW01 VGW02 PLIFZ FROM PLPO INTO CORRESPONDING FIELDS OF TABLE IT_PLPO_IDEL
FOR ALL ENTRIES IN IT_MAPL_IDEL
WHERE PLNTY = IT_MAPL_IDEL-PLNTY AND
PLNNR = IT_MAPL_IDEL-PLNNR AND
WERKS = 'IN01' AND ARBID <> 0.
SELECT OBJTY OBJID ARBPL FROM CRHD INTO CORRESPONDING FIELDS OF TABLE IT_CRHD_IDEL
FOR ALL ENTRIES IN IT_PLPO_IDEL
WHERE OBJID = IT_PLPO_IDEL-ARBID.
LOOP AT ISTPO.
IT_FINAL_IDEL-POSNR = ISTPO-POSNR.
IT_FINAL_IDEL-IDNRK = ISTPO-IDNRK.
IT_FINAL_IDEL-OJTXP = ISTPO-OJTXP.
IT_FINAL_IDEL-MENGE = ISTPO-MENGE.
IT_FINAL_IDEL-MEINS = ISTPO-MEINS.
LOOP AT IT_PLPO_IDEL.
IT_FINAL_IDEL-VORNR = IT_PLPO_IDEL-VORNR.
IT_FINAL_IDEL-ARBID = IT_PLPO_IDEL-ARBID.
IT_FINAL_IDEL-OBJTY = IT_PLPO_IDEL-OBJTY.
IT_FINAL_IDEL-LTXA1 = IT_PLPO_IDEL-LTXA1.
IT_FINAL_IDEL-VGE01 = IT_PLPO_IDEL-VGE01.
IT_FINAL_IDEL-VGW01 = IT_PLPO_IDEL-VGW01.
IT_FINAL_IDEL-VGW02 = IT_PLPO_IDEL-VGW02.
READ TABLE IT_CRHD_IDEL WITH KEY OBJID = IT_PLPO_IDEL-ARBID.
IT_FINAL_IDEL-ARBPL = IT_CRHD_IDEL-ARBPL.
APPEND IT_FINAL_IDEL.
CLEAR : IT_FINAL_IDEL,IT_PLPO_IDEL,IT_CRHD_IDEL,ISTPO.
ENDLOOP.
ENDLOOP.
Similar Messages
-
How to link between these tables and get the bom explosion
tables : mast,stpo,makt
SELECT AMATNR BMAKTX CIDNRK CMENGE C~MEINS INTO CORRESPONDING FIELDS OF TABLE IT_COMP_IDEL FROM
MAST AS A INNER JOIN MAKT AS B ON AMATNR = BMATNR
INNER JOIN STPO AS C ON ASTLNR = CSTLNR
WHERE AMATNR IN S_MATNR AND AWERKS IN S_WERKS.
using cs13 to get the bom summary
using these table to but i got only few materials only,
but cs13 got more materials
how can i solve that one
Regards
dsHi,
Just go through this program i think it will help u out.
TABLES: MARA, MARC.
TYPE-POOLS : fibs,stree.
TYPES: BEGIN OF STRUCT_BOM,
MATNR TYPE MATNR, " Material Number
WERKS TYPE WERKS_D, " Plant
IDNRK TYPE IDNRK, " BOM Item
STLAL TYPE STLAL, " Alternative BOM
STUFE TYPE HISTU, " BOM Level
OJTXB TYPE OJTXB, " Object description (assembly)
END OF STRUCT_BOM.
*- table types
types: t_bom type table of struct_bom.
*Internal Tables to hold the BOM data.
DATA: ITAB_BOM type table of STRUCT_BOM.
DATA: WA_BOM TYPE STRUCT_BOM,
wa_stb type stpox,
wa_matcat type stpox.
DATA: IT_STB type standard table of STPOX,
IT_STBC type standard table of STPOX,
IT_MATCAT type standard table of CSCMAT.
*-- to enter BOM DATA
*Selection Options
select-options: s_matnr for V_matnr, "BOM Material
s_plant for V_werks. "BOM Plant
*Input Parameters
parameters: p_alter type stko-stlal, "Alternate BOM
p_usage type stzu-stlan, "BOM usage
p_appli type tc04-capid, "BOM Application
P_CATE TYPE STKO-STLTY DEFAULT 'M'. "BOM Category
INITIALIZATION.
REFRESH ITAB_BOM.
CLEAR WA_BOM.
REFRESH IT_STB.
REFRESH IT_MATCAT.
START-OF-SELECTION.
SELECT matnr
werks
stlal
INTO CORRESPONDING FIELDS OF TABLE itab_bom
FROM mast
WHERE matnr IN s_matnr
AND werks IN s_plant
AND stlan = p_usage
AND stlal = p_alter.
CLEAR V_MATNR.
CLEAR V_WERKS.
DATA: WA_STB TYPE STPOX,
WA_MATCAT TYPE CSCMAT.
v_matnr = wa_bom-matnr.
v_werks = wa_bom-werks.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
capid = p_appli
datuv = sy-datum
mktls = 'X'
mehrs = 'X'
mtnrv = v_matnr
stlal = p_alter
stlan = p_usage
werks = v_werks
TABLES
stb = it_stb
matcat = it_matcat
EXCEPTIONS
alt_not_found = 1
call_invalid = 2
material_not_found = 3
missing_authorization = 4
no_bom_found = 5
no_plant_data = 6
no_suitable_bom_found = 7
conversion_error = 8
OTHERS = 9.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Then just print whatever data u want it_stb, it_matcat tables.
reward points if u find my answer helpfull. -
I just started getting the error message below, when I drag a file to TRASH, I get the message "Finder wants to make changes. Type in your password to allow this." Why ? and how to to stop this request ?
There should be nothing native to the OS X which would ask for a password
or other information on a restart, unless accompanied by the traditional login
box with your user name.
There are adware or marginal products that could be called malware (bad)
that would impose their presence and some items that could have been
downloaded by accident or through some corrupted free software site; of
those some could ask for and gain permission to go through your Mac
and maybe even run in the background to do other nefarious misdeeds.
You could see if startup in SafeBoot allows you access past that the Completer.
Since I don't have a pile of helpful article links on how to resolve various issues
I'd be looking them up one way or another.
There are some helpful items in the site http://thesafemac.com - see Tech Guides
listed (adware, malware, & performance) plus a link to the adwaremedic page.
Also, Apple support has a helpful page on how to remove adware and other bits:
•Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support
Hopefully this helps somewhat.
Good luck & happy computing! -
How do u get the location finder to work?
How do u get the location finder to work? It hasnt worked since i bought it which was b4 i had wifi in my house now that i have it i thought it would work but still says your location cannot be determined
The iPod Touch and iPhone uses SkyHook to triangulate your location. Since the Touch only has a Wi-Fi receiver it's not as accurate as the iPhone which uses Wi-Fi, GPS, and cell towers to find its location. You can submit your access point to Skyhook and it should then be discoverable.
http://www.skyhookwireless.com/howitworks/submit_ap.php -
Function module to get the BOM details for a material-plant combination
hi
Is there any function module to get the BOM details such as
BOM Usage -STLAN
Alternative BOM -STLAL
Items -POSNR
Required Quantity-EMENG
Resulting Quantity-MENGE
Unit of measure -BMEIN
Base unit of measure-MEINS
for a given material-plant combination
if so please suggest me some FMs.................
Awaiting for ur reply..............try the below fm it may be useful for you
DATA : BEGIN OF I_BOM OCCURS 0.
INCLUDE STRUCTURE STPOX.
DATA : END OF I_BOM.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
DATUV = SY-DATUM
MEHRS = 'X'
MTNRV = P_MATNR
WERKS = P_WERKS
TABLES
STB = I_BOM
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
just befor use it check your application area.for my case it is PP01. you can find it in CS12 when you are exploding the bom the value you are giving in BOM application that is the value for CAPID.
Just go to se37 and checkout the fm it has lot of options here I am using the minimum things.
regards
shiba dutta -
InDesign keeps shutting down, even after reinstall. I want to know how to get technical support so I can get this fix.
I feel your pain Robert. I do believe VZW and Apple knew all along the I6 Plus would not be available on 19 Sep and that it was a way to bolster new contracts, renewed contracts and apple sales stats. It's unfortunate the company wasn't more clairvoyant, most of us would have still pre-ordered but been a little less frustrated.
-
I tried to install an app from Channel 4 in the UK and got a message that my account would not allow that. Now I appear to be permanently connected to the UK ITunes Store. How to get back to the USA store?
Never mind, after about 20 minutes it switched back by itself.
-
i have a friend who was going to sync her phone with my computer to get the new update.. how do i add her phone with out her losing everything on her phone and not getting all my info on her phone..
First, create a separate login on your computer for your friend. Do this BEFORE you do anything else. Next, make sure iTunes is up to date. Then:
1. Disable auto sync when an iPod/iPhone is connected under Preferences>Devices in iTunes.
2. Make sure you have one contact & one event in the supported applications(Address Book, iCal) on your computer. These entries can be fake, doesn't matter, the important point is that these programs not be empty.
3. Connect her phone, iTunes running, do not sync at this point.
4. Store>Authorize this computer.
5. File>Transfer Purchases(To make sure all purchased content on her phone will be in her itunes library).
6. Right click in the device pane & select reset warnings.
7. Right click again and select backup.
8. Right click again & select restore from backup, select the backup you just made. When prompted to create another backup, decline.
9. This MUST be followed by a sync to restore her itunes content, which you select from the various tabs, You'll get a popup regarding her contacts & calendars asking to merge or replace, select merge.
You should be good to go. -
I have the mini display port cable to hdmi. When I connect I can get audio but on the video I get the display auro screen and can't get my actual display to show as that is not what shows on my display. How can I fix this?
System Preferences>Displays
There is a little white bar. When you have your TV connected, move the white bar to the other display. Your main desktop is now the TV screen -
I am trying to load iTunes and keep getting a error 126 and reinstall program. I have uninstalled and reinstalled twice and keep getting the same error message. How can this be resolved?
Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
Remove all of these items in the following order:
iTunes
Apple Software Update
Apple Mobile Device Support (if this won't uninstall move on to the next item)
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
Please note:
Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
HT1925: Removing and Reinstalling iTunes for Windows XP
HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
tt2 -
I HAVE A HP PSC 750. I'M TRYING TO GET THE TOOL BOX TO SEE HOW MUCH INK IN MY PRINTER.
I HAVE A HP 750. I'M TRYING TO GET THE TOOL BOX TO SEE HOW MUCH INK I HAVE IN MY PRINTER. IS THEIR A DOWNLOAD
I CAN USE TO GET IT BACKThe document here has a workaround for getting the ink levels.
Bob Headrick, HP Expert
I am not an employee of HP, I am a volunteer posting here on my own time.
If your problem is solved please click the "Accept as Solution" button ------------V
If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V -
I have lost my "Basic" panel in the Develop module and can't figure out how to get it back. My right panel goes from the Histogram straight to the Tone Curve panel. My Basic panel should be below the Histogram. Any ideas how to get it back. I have even uninstalled my lightroom and reinstalled it with same issue. Help!!!
Right click on or near one of the other headers and a pop-up will appear and you will be able to select the Basic Panel for viewing.
-
When I try to use spellcheck, I get the "Cannot find the User dictionary". It has always worked in the past and when I go to choose the main dictionary, it just goes back to the same line, cannot find user dictionary.
Have you ever created a user dictionary? You have to manually create one, AppleWorks won't do for you. The user dictionary & any other dictionaries belong in the AppleWorks Essentials folder which belongs in the AppleWorks 6 folder in Applications.
Deleting & reinstalling AppleWorks from the original disk will not delete your files unless you have saved them in the application folder. The Mac OS creates a separate Documents folder for your files & that is where the documents you created should be.
Unless all of your documents are AppleWorks 6 word processing documents, Pages alone is not sufficient. The iWork applications - Keynote, Pages & Numbers - can only open AppleWorks 6 presentation, word processing & spreadsheet documents, respectively. They will not open any other type of AppleWorks 6 files or any AppleWorks 5 or any version of ClarisWorks files. -
ipod 4.3.1 : after playing a video, i couldn't get the replay button, instead of that i get black screen fully
Have you tried resetting your iPod: Nothing will be lost:
Reset iPod touch: Press and hold the On/Off Sleep/Wake button and the Home
button at the same time for at least ten seconds, until the Apple logo appears. -
Trying to install the App - find my iPhone but keeps getting the message cannot download at this time.
Thx, I finally figure out what I had to do to get it to download, just don't like that it is taking so long to download on the iphone from computer. But thx again for that advice, so far it is working.
Maybe you are looking for
-
Had to buy a new computer, how do I transfer all data from my iphone4 to new computer?
-
Looking for App - Track roster, attendance, and availaility
I am looking for an iOS app that will allow me to put in my Teams Roster, put each players class schedule in, and then have the app automatically track who is available or not depending on practice time. This way when I go to take attendace for pract
-
Save As windows takes a long time to come up.
After selecting File > Save As the Save As window takes about 15 seconds to come up. This is a brand new computer and a new installation of Adobe Acrobat XI v. 11.0.6. Has anyone ran into an issue like this before?
-
my email address isnt showing up as an alert option....my husbands email is but not mine.....but both addresses are there in the prefereces
-
Debugging info req??
Hi I need to ask is there any way,so that in my debugging if the itab hv 500 records,& i just want to test for 2-3 records,i can delete rest from my itab,& go ahead with the 2-3 records. As i am facing a prob now,my itab is filled with 500 records,ev