BAPI / FM to create ROUTE
Hi ,
Is there any FM/ BAPI to create a route.
My client will give me the following details.
1. Seq number
2. Route Number
3. Stop Number
4. Customer number
5. Arrival time
6. Departure time
Sample data:
1 2 3 4 5 6
8 183 814 M51565 0824 0901
1 186 111 M57612 1540 1634
2 186 233 M57513 1652 1731
Using above information i need to create route. I tried BAPI 'BAPI_ROUTING_CREATE' ,but the above fields are not there in that BAPI.
Please Help me.
Thanks,
Soumya
Hi,
The Function module BAPI_ROUTING_CREATE is for creating Routing in PP module. Routing is a Template for Plant Production. I also worked with this function module to create Routing in PP. But the Inputs are Work center data, Sequences , Components like that.......
Similar Messages
-
hai all,
i am working on bapi and i creates routing using bapi, i created bapi and i tried to run it. but only header data is getting displayed in transaction and storing in database.
thanks & regardsHi
The link below is creat inspection Plan ...
But Check the data which passing through
BAPI1012_TSK_C, BAPI1012_MTK_C , BAPI1012_OPR_C structure ...
Which is same as in Bapi_routing_create.....
I Hope Ur Problem will be Solved..
Pls Check This Link
https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP%20Program%20to%20upload%20QM%20Inspection%20Plan%20Using%20BAPI -
Fail when creating routing through bapi.
what are the mandatrory steps to create routing using bapi fm ( bapi_routing_create )?
when i create routing using bapi it is showing the routing is created succesfull but it is not updating in the standard table plko .after bapi use commit
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'. -
BAPI_ROUTING_CREATE creates routing but no operations, without any errormsg
Hi Seniors,
I have following problem. I have to create a new routing from an existing routing.
So far it sounds easy, and it even works for the routing itself.
But whaever i export to the BAPI it wont create any Operations.
What i do is:
Reading the headdata of the existing routing.
Mapping the headdata to the BAPI-structure which i export to the function.
Reading the positiondata (operations) of the routing.
Mapping the positiondata to the BAPI-structure which i export to the function.
The real problem is that in the return table for the error-messages of the BAPI is only one record. This record is of the type state and tells me that the routing has been created sucessfully.
I have been searching this forum for quite some time to get an answer to this question, but failed.
It seems there are quite a LOT of people not knowing exactly how to use this function, since this question is widely spread throughout the forums.
BUT in most of the cases there is NO answer or well something not too useful.
Here comes my code example for those who want to have a closer look:
DATA: c_matnr TYPE mara_matnr,
wa_plpo TYPE plpo,
lt_plpo TYPE TABLE OF plpo,
wa_plko TYPE plko,
wa_mapl TYPE mapl,
lt_mapl TYPE TABLE OF mapl,
wa_cukn TYPE cukn,
wa_modify TYPE yic_gs_mod,
lt_modify TYPE yic_gs_mod,
wa_bapiplko TYPE bapi1012_tsk_c,
lt_bapiplko TYPE TABLE OF bapi1012_tsk_c,
wa_bapiplpo TYPE bapi1012_opr_c,
lt_bapiplpo TYPE TABLE OF bapi1012_opr_c,
wa_bapireturn TYPE bapiret2,
lt_bapireturn TYPE yic_tt_return,
wa_bapiplfl TYPE bapi1012_seq_c,
lt_bapiplfl TYPE TABLE OF bapi1012_seq_c,
wa_plfl TYPE plfl,
lt_plfl TYPE TABLE OF plfl.
DATA: lv_swap(60) TYPE c,
lv_ix(6) TYPE n,
lv_sttag TYPE char10,
lv_flag TYPE xfeld,
lv_mflag TYPE xfeld,
lv_plnty TYPE plko-plnty,
lv_plnnr TYPE plko-plnnr,
lv_knnum TYPE cukc-knnum,
lv_group TYPE plko-plnnr,
lv_groupcounter TYPE plko-plnal,
lv_subrc TYPE syst-subrc.
FIELD-SYMBOLS: TYPE ANY.
PERFORM get_headdata "just a simple select hiding behind this
USING i_plnty
i_plnnr
CHANGING wa_plko
lv_subrc.
PERFORM get_posdata "just a simple select hiding behind this
TABLES lt_plpo
USING i_plnty
i_plnnr
CHANGING lv_subrc.
SELECT *
FROM mapl
INTO TABLE lt_mapl
WHERE plnty = i_plnty
AND plnnr = i_plnnr.
Mappen der Arbeitsplankopfdaten in die BAPI-Struktur.
wa_bapiplko-change_no = wa_plko-aennr.
wa_bapiplko-valid_from = wa_plko-datuv.
wa_bapiplko-del_ind = wa_plko-loekz.
wa_bapiplko-task_list_usage = wa_plko-verwe.
wa_bapiplko-plant = wa_plko-werks.
wa_bapiplko-task_list_status = wa_plko-statu.
wa_bapiplko-task_measure_unit = wa_plko-plnme.
wa_bapiplko-lot_size_from = wa_plko-losvn.
wa_bapiplko-lot_size_to = wa_plko-losbs.
wa_bapiplko-resp_planner_group = wa_plko-vagrp.
wa_bapiplko-description = wa_plko-ktext.
wa_bapiplko-old_number_of_task_list = wa_plko-plnnr_alt.
wa_bapiplko-recalc_std_values = wa_plko-flg_capo.
wa_bapiplko-dyn_modif_level = wa_plko-qdynhead.
wa_bapiplko-dyn_modif_rule = wa_plko-qdynregel.
wa_bapiplko-sample_drawing_procedure = wa_plko-qprziehver.
wa_bapiplko-ind_units_ext_numbering = wa_plko-extnum.
wa_bapiplko-ident_key = wa_plko-slwbez.
wa_bapiplko-insppoint_partiallot_assgnmt = wa_plko-ppkztlzu.
wa_bapiplko-change_rule = wa_plko-chrule.
wa_bapiplko-object_change_type = wa_plko-ccoaa.
APPEND wa_bapiplko TO lt_bapiplko.
Mappen der Vorgänge (Arbeitsplanpositionsdaten) in die BAPI-Struktur
LOOP AT lt_plpo INTO wa_plpo.
lv_ix = sy-tabix.
CALL FUNCTION 'MAP2E_PLPO_TO_BAPI1012_OPR_C'
EXPORTING
plpo = wa_plpo
CHANGING
bapi1012_opr_c = wa_bapiplpo
EXCEPTIONS
error_converting_curr_amount = 1
OTHERS = 2.
IF sy-subrc <> 0.
e_subrc = sy-subrc.
rfc_exception lc_cant_map_to_bapi_structure.
ENDIF.
wa_bapiplpo-sequence_no = 0.
wa_bapiplpo-work_cntr = ''.
CONCATENATE 'VG' lv_ix INTO lv_swap.
wa_bapiplpo-operation_id = lv_swap.
APPEND wa_bapiplpo TO lt_bapiplpo.
ENDLOOP.
BAPI-Aufruf: lege Arbeitsplan an, mit untergeordneten Objekten
CALL FUNCTION 'BAPI_ROUTING_CREATE'
IMPORTING
group = lv_group
groupcounter = lv_groupcounter
TABLES
task = lt_bapiplko
operation = lt_bapiplpo
return = lt_bapireturn.When you are sending the operation details, the sequence no should be masked to the length of the field.
for example: Sequence no = 0.
it should be masked as '000000'. -
Find FM or BAPI to sales order routing (CA01) and sales order bom(CS61)
Hi Experts,
I just want to find a function module or bapi to create sales order routing.The related transaction is CA01.
For the created routing, it's releated with sales order number and sales order item.
And also need a FM or BAPI to create sales order bom.The related transaction is CS61.
For the created BOM, it's releated with sales order number and sales order item.
Watting for your response!!
Thanks a lot,
FrankHi Experts,
I just want to find a function module or bapi to create sales order routing.The related transaction is CA01.
For the created routing, it's releated with sales order number and sales order item.
And also need a FM or BAPI to create sales order bom.The related transaction is CS61.
For the created BOM, it's releated with sales order number and sales order item.
Watting for your response!!
Thanks a lot,
Frank -
Bapi's for creating Maintenance order in IW31 with notification
Hi All,
Is there any bapi's for creating Maintenance order with Notification number in the transaction iw31.
Also is there any bapi's for creating measurement document.
Points will be awarded.
Regards,
vinothRFC MeasDocument: Individual Processing, Create
MEASUREM_DOCUM_RFC_SINGLE_001
RFC MeasDocument: Individual Processing, Change/Display or Read
MEASUREM_DOCUM_RFC_SINGLE_002 -
TELL ME LINKS REGARDING CREATING ROUTING.
Hi,
Pl. follow the link which contains step by step methods to create a routing,
<a href="http://www.copacustomhelp.state.pa.us/infopak/nav/plant%20maintenance/highways/hy-101%20master%20data%20administrator%20-%20central%20office/file644/index.htm">Create Routing</a>
http://www.sap-img.com/production/splitting-in-routing.htm
http://www.geekinterview.com/question_details/37120
Regards,
Senthilkumar -
any Bapi / Fm to create DO
hi all,
i have did this coding:
append '0000010952' to wno.
CALL FUNCTION 'SHP_GET_SD_DATA'
EXPORTING
IT_VBAK_KEY = wno
IS_ORDER_VIEW =
IF_DO_DYNAMIC_CALC = 'X'
CHANGING
CX_SD_ORDER = worder
if sy-subrc = 0.
if_ledat = sy-datum.
CALL FUNCTION 'RV_DELIVERY_CREATE'
EXPORTING
selektionsdatum = if_ledat
vbsk_i = cs_vbsk
i_lieferart = space
if_no_enqueue = is_control-no_enqueue
if_no_deque = is_control-no_commit
if_no_commit = is_control-no_commit
if_synchron = is_control-synchron
it_vorgabe_daten = it_vorgabe_daten
if_vbls_pos_rueck = 'X'
if_nur_vorgabe_pos = if_nur_vorgabe_pos
is_delivery_extend = is_delivery_extend
if_check_spevi = 'X'
IMPORTING
vbsk_e = cs_vbsk
TABLES
lvbak = worder-vbak
lvbap = worder-vbap
lvbep = worder-vbep
lvbfa = worder-vbfa
lvbfs = ct_vbfs
lvbkd = worder-vbkd
lvbls = ct_vbls
lvbpa = worder-vbpa
lvbuk = worder-vbuk
lvbup = worder-vbup
EXCEPTIONS
error_message = 1
OTHERS = 2.
if sy-subrc = 0.
endif.
endif.
where can i get the DO no? -
BAPI/FM to create commitment item which can be commit/roll back externally
Hi experts,
Is there any BAPI/FM to create commitment item????
I can use BDC but problem is that it can't be roll back. In my requirement i want to roll back based on condition.
i am creating GL and commitment item, if GL creation is failed commitment item should be roll back.
Is there way to solve this issue ? please help me.
Thanks in advance.
Regards.Hi ,
There is no fm for commitment item, In BDC what you can do is create two recording with 'SAVE' button clicked & not clicked. For test run use the recording where save button is not clicked and for actual run the other.
You can also have a look into the program RFFMMDBI85 where the function FM_COM_ITEM_NO_SCREEN_CREATE is used. In that particular fm you have a parameter callsed i_flg_test
Edited by: Keshav.T on Feb 10, 2012 11:56 AM -
Is there any BAPI/FM to create a trasnport request and add objects into it?
Hi Experts,
Could anyone please assist me in finding a BAPI/FM to create a transport request and add objects to it.
I could find a BAPI BAPI_REQUEST_CREATE, it creates trasnport request but doesn't have option to add objects.
Thanks
Yogesh GuptaCreate a custom Function Module , in that write a BDC to create a transport request and add objects to it.
Thats it. -
How to create routed port in Cisco SF-300 Switch
I am trying to create routed ports in SF 300 small business 8 port switch.
I have 3 different LAN say 192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24
I have 3 unmanaged linsys switch where I have connected all these computers.
Now what I have to do is to create routed ports in SF300 and route this networks properly.
Can anybody help me on this? Thanks in advance.Dear Shereef,
Thank you for reaching Small Business Support Community.
In Layer 3 system mode, the device can have multiple IP addresses. Each IP address can be assigned to specified ports, LAGs, or VLANs. Operating in Layer 3 mode, the device routes traffic between the directly attached IP subnets configured on the device. In addition, you can manually define default routes.
Configuring the device to work in Layer 3 mode is performed in the Administration >System Settings page.
To define IP addresses on the ports:
IP Configuration > IPv4 Management and Interfaces > IPv4 Interface
To define an IP static route:
Click IP Configuration > IPv4 Management and Interfaces > IPv4 Routes
Just in case you can check on the admin guide, chapter 16 for a more detailed step by step description;
http://www.cisco.com/en/US/docs/switches/lan/csbms/sf30x_sg30x/administration_guide/78-19308-01.pdf
I hope you find this information useful and please do not hesitate to reach me back if there is any further assistance I may help you with.
Kind regards
Jeffrey Rodriguez S. .:|:.:|:.
Cisco Customer Support Engineer
*Please rate the Post so other will know when an answer has been found. -
Error in LSMW, when creating Routing - QP01
Hi All,
I am facing problem when executing LSMW, I am creating Routing through standard Batch input method, the problem is that on 13th step when system asks for creating batch input session, system by default takes filename.lsmw.conv, 'filename' is basically the name of file being converted internally by the system.
Error that I get is 'No profile with entry tool for task list / / / in session ROUTING_CREA', here ROUTING_CREA is the name of the session. I have given the value of field profile in 5th step when we map the fields and give some constants value for fields when required. I have given a constant value for field profile(BIPKO-PROFIDNETZ) in data maping. Profile basically contains some default values for routing when we create routing we can give the profile and routing will capture some default field values from the profile, under profile there is a check box which is 'entry tool' that must be in active mode if operation level data is required. I have done this setting going into SPRO. Now I do not know Whether the error that I got is due to the profile problem or am I missing something else. Kindly If someone before me has already been through this problem then suggest me how to fix this problem.
Regards,
Ashokhi,
i think, the error is due to file naming convention in SPECIFY FILE step.
There will be a set of types of files.
1. Presentation server file name.
2. Application server file name.
etc. just double clock on the application server file name & try to change & give some meaningfulname.
try & let us know.
Thanks,
Manjunath MS -
Error in LSMW, when creating Routing.
Hi All,
I am facing problem when executing LSMW, I am creating Routing through standard Batch input method, the problem is that on 13th step when system asks for creating batch input session, system by default takes filename.lsmw.conv, 'filename' is basically the name of file being converted internally by the system.
Error that I get is 'No profile with entry tool for task list / / / in session ROUTING_CREA', here ROUTING_CREA is the name of the session. I have given the value of field profile in 5th step when we map the fields and give some constants value for fields when required. I have given a constant value for field profile(BIPKO-PROFIDNETZ) in data maping. Profile basically contains some default values for routing when we create routing we can give the profile and routing will capture some default field values from the profile, under profile there is a check box which is 'entry tool' that must be in active mode if operation level data is required. I have done this setting going into SPRO. Now I do not know Whether the error that I got is due to the profile problem or am I missing something else. Kindly If someone before me has already been through this problem then suggest me how to fix this problem.
Thanks
MahenHi Mahendra,
check the following links:
http://www.sapgenie.com/saptech/lsmw.htm
http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
May be u can find some help.
Hope this helps you.
Regards,
Anuradha.B -
Is there any BAPI that can create assignment in workforce planning (CMP2)
Hello,
I want to implement a batch input program in order to create assignment in workforce planning. But the screen is not actually proper for batch input. Is there any Bapi that can create assignment for a given network, Operation/Activity, suboperation/Subactivity, personel Number and work hours.
Thanks in advance.Hi Aselsan,
Please have a look into the below link
[Link 1|Re: BAPI to create network (T-code CJ21)]
[Link 2|Example code for BAPI_NETWORK_MAINTAIN]
[Link 3|BAPI_NETWORK_COMP_ADD]
Hope they are useful,
Thanks
kalyan -
Error in Task List while creating routing
Dear Guru's
When I create routing ,i am using MIC in the routing.While saving the routing I get a messaae <b>Task List Contain Error , do you want to save</b> .
Can any one will guide how to remove this error ?
Thanks
Regards,
ChetanDear Chetan Chaskar,
Some of the reasons for this are
1.Check whether you have maintained formual keys,Cost centre,proper activity
types( for that cost centre )for your work centres which have mentioned in routing
details & assign control keys .
2.check whether you tried to change the time unit for the activity type ,when
alloting for an operation.
3.Always before saving routing just,test it by pressing check button Control+Shift
+F1,the system gives you Information,Error,Warning & termination messages.
4.Check the log and act accordingly.
Regards
Mangal
Maybe you are looking for
-
Export to excel loses formatting
I have a region whose source is a SQL query. My SQL query contains function calls that return a value. source of the region: select nvl(GETSRHR(:P253_STARTDATE,:P253_ENDDATE),0) as "REQUESTS", nvl(GETTBHR(:P253_STARTDATE,:P253_ENDDATE),0) as "BENEFIT
-
Multi ssid `s get no ip address
multi ssid `s get no ip address ip address two ssid get a third but I had to configure but received no ip address who can help me ?
-
Why can't I get Automator to open multiple files at once?
I'm trying to do something relatively simple with Automator: I want it to open (in Photoshop) all RAW files within a certain folder. Here is what I have: 1. Get folder contents 2. Filter Finder items: Name Extension Contains "RAW" 3. Open Finder item
-
Central custom css deklaration in Netweaver?
Hi, is it possible to apply a costum css file with styles for all elemtents in the Netweaver portal. Like jsp, webdynpro, etc. I know for this issue you should use a motive and the motive editor, but the options in this editor and the functions are s
-
Photo Library - Blank White Squares
I got my new iPhone 4 today and when I sync my phone a lot of my photos in the Photo Library just show up as blank white squares in the thumbnails. If I click on the individual squares it pulls up the photos and I can view them. Anyone else experienc