CARO_ROUTING_READ
Hello,
I am trying to use CARO_ROUTING_READ FM to get the routing details related to PLNNR number.
I am providing the following input as
datuv : 01.01.2010
PLNNR :50093636
PLNTY: N
PLNAL : 1
When i call the FM using my sample report it is giving sy-subrc = 1 .
Through SE37 if i execute the FM using the above data i am getting the result. Any idea why it is not giving output.
I am i missing any include file or ?
I tried to debug it , when it tries to get the details from Task header table it is not retrieving any result.
Any idea ?
Thanks,
kevin.
Hello,
I have declared that data type as shown below
DATA : I_OPRTAB TYPE CAPP_OPR OCCURS 0.
DATA : I_TSKTAB TYPE CAPP_TSK OCCURS 0.
DATA : I_SEQTAB LIKE CAPP_SEQ OCCURS 0.
DATA : Z_PLNNR TYPE PLKO-PLNNR.
CALL FUNCTION 'CARO_ROUTING_READ'
EXPORTING
DATE_FROM = '20100101'
DATE_TO = '99991231'
PLNTY = 'N'
PLNNR = Z_PLNNR
PLNAL = '1'
MATNR =
BUFFER_DEL_FLG = 'X'
DELETE_ALL_CAL_FLG = 'X'
ADAPT_FLG = 'X'
IV_CREATE_ADD_CHANGE = ' '
TABLES
TSK_TAB = I_TSKTAB
SEQ_TAB = I_SEQTAB
OPR_TAB = I_OPRTAB
PHASE_TAB =
SUBOPR_TAB =
REL_TAB =
COM_TAB =
REFERR_TAB =
REFMIS_TAB =
IT_AENR =
EXCEPTIONS
NOT_FOUND = 1
REF_NOT_EXP = 2
NOT_VALID = 3
OTHERS = 4.
Is the data type correct ?
Thanks,
Kevin
Similar Messages
-
Problem with Updating of Routing Master data
Hi,
My requirement is I have to download Routing Master data into excel sheet. Once downloading is over, user can change some fields data in excel sheet. Again ull upload the changed excel sheet data to SAP. Finally these changes will effect to the Routing Master data.
I am downloaded routing master data using FM CARO_ROUTING_READ.
I changed some fields in excel sheet. I tried so many FMs for updating the routing master data, but system not allow to me to change the Master data.
I tried with CP_BD_DIRECT_INPUT_PLAN,
CP_BD_DIRECT_INPUT_PLAN_EXT,
CP_BT_PLPO_UPDATE, for updating Routing Master.
And Standard program RCPTRA02 also.
Please send me one function module which can update the Routing Master data. But that FM have the same structure of CARO_ROUTING_READ. Otherwise type conflicts will come.
System throws error YOU CANNOT EDIT TASK LIST OBJECTS WITH ACTIVITY TYPE&.
Regards
ShaikHi,
I have found in OSS the following programs to download and upload routings:
- Note 107242: You can create the sequential input file with report RCPDIRO1
- Note 106965: Direct input routings: reading datasets
Maybe this can help you to upload your routings in another way. Unfortunately I haven't figured out yet how the program exactly works. So if somebody can give me some info about that one, it would be great.
Thanks,
Steve -
Bomexplosion,workcenter with routing
Purpose
The purpose of this report is to show the summary of Routing details of a Finished component from Raw material via Semi-finished component in a single report.
Concept of BOM for finished components are defined in terms of semi finished goods. Hence, routing of a Finished component from raw materials can not be seen directly in system through standard report.
But users need to have the details of a routing of a Finished component from raw material in one report. To provide the details in single report, development is required.
<b>INPUT IS</b>
MATERIAL
PLANT
I tried this following method
1. <b>USING CS_BOM_EXPL_MAT_V2</b>
TO explode the bom with header materials- ISTPO-IDNRK
2. after I am using <b>MARC</b> table with the following fields
MATNR,WERKS,BESKZ---- HERE I CLASIFED THE MATERIAL procurement type
E OR X OR F.
3. IF BESKZ = E OR X --- CHECK <b>MAPL</b> with the following fields
MATNR,WERKS ,PLNTY,PLNNR. PLNTY = N
4. After that I am using the table PLPO with the following fields
PLNTY,PLNNR,VORNR,ARBID,LTXA1,VGE01,VGW01,VGW02,WERKS
5. After I am using the table<b> CRHD</b> with the following fields
OBJID,ARBPL
6. IF MARC BESKZ = F.
7. Using the following table with the fields <b>EORD</b>-MATNR,LIFNR,FLIFN = X
8. After using the <b>EINA</b> with the following fields MATNR,LIFNR,INFNR.
9. After using <b>EINE</b> with the following fields INFNR,APLFZ.
REQUIRED OUTPUT IS
1.material
2.materials description
3.workcenter
4.vendor
5.operation description
6.uom
7.qty
8.setuptime
9.processingtime
10.delivery time
PROBLEM
On executing the program, the out put contains some extra operations which is not there in the CA03 output of the component.
Please help us in solving this issue.
very urgent
Regards
dsThis is your 5th post about your abap program !
You never closed the other.
In a previous I advice you to check against the validity date of routing, I also suggest you to use FM CARO_ROUTING_READ.
Erwan -
Multilevel routing report (with planned price data)
Hi Experts,
Could any of You pls support me with a basic idea how to build a multilevel routing report?
I am not happy with the existing / standard reports related to routings, I actually need one with all subassemblies and also planned price included from CO.
So I have found out the following way:
1. I build a report, using standard FM CS_BOM_EXPL_MAT_V2, to get a hierarchical BOM all components,
2. only select top level and components which has subassemblies
3. run my own written FM to get routing data for subassemblies (using mapl, plas, plko, plpo, crhd, crco) already created
4. add planned price data (using CO-tables cssl, cost)
It is rather a by-pass; so does a better / nicer solution could be used for the purpose, possibly with some existing FMs (which I have not found up till now)?
Answers will be appreciatedWell it all depends on what this Z report which you're building should output at the end of it. Also the format in which it should be displayed.
Since there is no info on that in your query or what is the exact issue faced, just putting across some FM/Bapi which might be of interest
For routing you can use -
CARO_ROUTING_READ
Some BAPI's which are relevant for costing:
BAPI_COSTESTIMATE_GETEXPLOSION
BAPI_COSTESTIMATE_GETDETAIL
BAPI_COSTESTIMATE_ITEMIZATION -
Time taking for inner joins in select
Hi all,
I am using inner join on 3 tables ( PLKO,PLPO,PLAS) for the materials,
it is taking database time 20% and abap time 78 % and when i am using FM CARO_ROUTING_READ
database time 48% and abap 52%.
i am in confusion which is th ebest method to use inner join or FM.
when i am checking in the server for plant in the selection screen , it is running lot of time
This is first time i am working on the performance issue.
Can you please anbody help me how to solve this issue.
Regards,
MadhaviPercentages don't mean much, how does the overall runtime compare? Is there a problem at all?
Since you already used SE30, go a step further and study the hit list sorted by net time descending, only look at the top few items.
Also read this:
Please Read before Posting in the Performance and Tuning Forum
Thomas -
Duplicate Routing with dependencies
Hi all,
I'm trying to copy a Routing changing the Application (VERWE = 'C' instead of '1')
I'm using the FM CARO_ROUTING_READ to take the original Routing and then call FM BAPI_ROUTING_CREATE passing tables TASK, MATERIALTASKALLOCATION, SEQUENCE and OPERATION .
It works fine: duplicate all from the original but it doesn't copy the dependencies allocated in every single operation inside the routing.
Anyone have an Idea to copy these dependencies? maybe another FM, Bapi, or doing a select from a table? which one?
Thanks!
Best Regardscheck the post:
BOM and Routing with Dependencies
-Murugesh AS -
FM to read routing information
Hi experts,
My requirement is to copy routing , for that I am using BAPI_ROUTING_CREATE. I need to read routing details and populate the BAPI tables for new routing creation. I searched in SCN and i cud find a few FMs ,but all these FMs have status 'Not released'.
1. Is there any released FMs available to read routing data?
2. Is there any other way to copy routing / Any workaround for this?
PS: We are trying to replace a BDC on CA01 for routing copying.
Thanks in advance
SanuHi,
Check these
CP_DB_MAPL_READ
CARO_ROUTING_READ
CARO_ROUTING_REF_EXPLODE
CARO_S_ROUTING_USED
CCDC_ROUT_DATE_READ
CCLI_ROUT_LIST
CKBA_ROUTING_GET_LIST
CK50_ROUTING_DISPLAY
Maybe you are looking for
-
Which is better as UI technology among Flex and Oracle ADF for oracle SOA suit
We have one application which is using oracle's Service oriented Architecture (SoA) suite. Currently, there is a debate on the technology for UI in the new architecture that will be rich, easy to maintain, scalable and integrates well with SOA suite.
-
Documents - unable to view past page 2!
Any documents I try to view whether sent to me or on a site, do not progress past page 2, whether I scroll side to side or up and down.
-
Using Tubular(jquery plugin) on muse
I'm trying to put a full screen video as a background on a page that i'm building with muse. I found about Tubular...which seemed pretty simple to use. this is their website http://www.seanmccambridge.com/tubular/ so after i uploaded all of the scrip
-
Does the newest macbook pro with retina display have an ethernet connection port?
I am looking at getting a computer for college and am trying to decide between the newest version of the macbook pro and the one with the cd/dvd drive in it and the way i get internet connection in my dorm room is going to be by an ethernet cable so
-
Hi, Can I change at runtime a given definition in of a style ? In example, I have the following defined: Button paddingTop: 1; paddingBottom: 1; padding-left: 1; padding-right: 1; fillAlphas: 0.4, 0.8, 0.2, 1.0; fillColors: #F