CA01 create Routing - BDC

Hi,
I want to create BDC for transaction code CA01 -Create Routing BDC.
Can anybody suggest me the proper recording procedure and coding, As the scenario has many header data with each header many item data.
Thanks
naresh

Duplicate post

Similar Messages

  • Problem in creating a BDC program for transaction cj20n(project sytem)

    Hi all,
    I am trying to create project,WBS element ,network and activity using a BDC program,
      I am able to create to a recording for the transaction cj20n using tcode shdb but when i run the recording it doesnt run properly i am not able to create any thing.
    I get error saying that a particular field doesnt exist on the screen.
    Is possible to create a BDC program for transaction CJ20N ?
    Also is there any other alternative  apart from using a BAPI or a function module.
    Thanks,
    Nishant

    Hi,
        Check below link for BAPIs of transaction cj20n.
    [BAPI for cj20n|BAPI for CJ20N transaction]
    Thanks,
    Asit Purbey.

  • How to create a BDC program for given recording.

    i have to create a BDC program for uploading a file.
    currently i am using call function
      CALL FUNCTION 'F4_FILENAME'

    just check out the code below  it  is  for  updating two transactions
                           types Declaration                      *
    types: begin of t_tab1 ,
                vendor(10),
                material(18),
                pur_org(4),
                wglif(18),
          end of t_tab1.
                  Data Declaration                                 *
    data : begin of it_tab5 occurs 0,
              vendor(10),
              material(18),
             end of it_tab5.
    **DATA : BEGIN OF IT_TAB6 OCCURS 0,
             VENDOR(10),
             MATERIAL(18),
            END OF IT_TAB6.
    data: it_tab1 type standard table of t_tab1 with header line.
    data: wa_tab1 type t_tab1.
    data: wa_tab2 type t_tab1.
    data: it_tab3 like bdcdata occurs 0 with header line.
    data: it_tab4 like bdcdata occurs 0 with header line.
    data: it_tab2 type table of bdcmsgcoll with header line.
    data: d_file_name like ibipparms-path,
          d_file_name1 type string.
                       Start-of-selection                        *
    start-of-selection.
    FM for finding the flat file
      call function 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       importing
         file_name           = d_file_name.
      d_file_name1 = d_file_name.
    ******FM for uploading data from flat file into internal table
      call function 'GUI_UPLOAD'
        exporting
          filename                      = d_file_name1
         filetype                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        tables
          data_tab                      = it_tab5
    exceptions
       file_open_error               = 1
       file_read_error               = 2
       no_batch                      = 3
       gui_refuse_filetransfer       = 4
       invalid_type                  = 5
       no_authority                  = 6
       unknown_error                 = 7
       bad_data_format               = 8
       header_not_allowed            = 9
       separator_not_allowed         = 10
       header_too_long               = 11
       unknown_dp_error              = 12
       access_denied                 = 13
       dp_out_of_memory              = 14
       disk_full                     = 15
       dp_timeout                    = 16
       others                        = 17.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
                     End-of-selection                         *
    end-of-selection.
      sort it_tab5 by vendor.
      loop at it_tab5.
        perform bdc_dynpro using 'SAPLBG00'  0101 .
        perform bdc_field using 'BDC_OKCODE' '/00' .
        perform bdc_dynpro using 'SAPLBG00'  1000 .
        perform bdc_field using 'BDC_OKCODE' '=BUCH' .
        perform bdc_field using 'BDC_SUBSCR'
        'SAPLBG00                                1101KOPF_1000'.
        perform bdc_field using 'GBGMK-GAART' '2' .
        perform bdc_field using 'GBGMK-GAERB' 'X' .
        perform bdc_field using 'BDC_SUBSCR'
          'SAPLBG00                          1103TAB_SUB_1000'.
        perform bdc_field using 'BDC_CURSOR' 'GBGMP-LSTNR(01)' .
        perform bdc_field using 'GBGMP-LSTNR(01)' it_tab5-material .
       call transaction 'BGM1' using it_tab3 mode 'E' messages into it_tab2
        refresh it_tab3.
        wa_tab1-pur_org = 'ABCP'.
        loop at it_tab2.
        endloop.
        perform bdc_dynpro using 'SAPMM06I'  0100 .
        perform bdc_field using 'BDC_CURSOR' 'EINE-EKORG' .
        perform bdc_field using 'BDC_OKCODE' '/00' .
        perform bdc_field using 'EINA-LIFNR' it_tab5-vendor .
        perform bdc_field using 'EINA-MATNR' it_tab5-material .
        perform bdc_field using 'EINE-EKORG' wa_tab1-pur_org .
        perform bdc_field using 'RM06I-NORMB' 'X' .
        perform bdc_dynpro using 'SAPMM06I'  0101 .
        perform bdc_field using 'BDC_CURSOR' 'EINA-WGLIF' .
        perform bdc_field using 'BDC_OKCODE' '=BU' .
        perform bdc_field using 'EINA-WGLIF' it_tab2-msgv1 .
        call transaction 'ME12' using it_tab3 mode 'E'.
        refresh it_tab3.
        refresh it_tab2.
      endloop.
    *&      Form  BDC_DYNPRO
         Start new screen
         -->P_FNAM  text
         -->P_FVAL  text
    form bdc_dynpro  using   program
                             dynpro.
      clear it_tab3.
      it_tab3-program  = program.
      it_tab3-dynpro   = dynpro.
      it_tab3-dynbegin = 'X'.
      append it_tab3.
    endform.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
       Insert field
         -->P_FNAM  text
         -->P_FVAL  text
    form bdc_field  using    fnam
                             fval.
      clear it_tab3.
      it_tab3-fnam = fnam.
      it_tab3-fval = fval.
      append it_tab3.
    endform.                    " BDC_FIELD
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:20 PM

  • REGARDING CREATING ROUTING

    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

  • Creating to BDC's in one program

    Hi Experts,
    Can we create two BDC's in one program.

    Hi Lokesh Reddy,
    Ofcourse you can create more than 1 BDC in a single program
    I have myself created 4 BDCs in single program.
    Just remember to call the Transactions in correct order and also loop them properly, at times wrong looping messes up the BDC.
    If you feel all transactions calling in 1 loop are confusing you, then u can club 2 transactions in 1 loop.
    so that your 1st loop executes 2 transactions, once that loop is successfully over, the control moves onto the next loop, with same or different transactions. Dont worry the same data will be used by both the loops, as it'll be looping on the same internal table.
    If your BDCs are not using same data, some are using 1st few columns, some the rest one
    at such times wat u can do is take all data from flat file into 1 internal table and then individually move particular columns to another internal table.
    then the BDCs that require data from 1st internal table, so loop at that internal table
    the ones which need data from another internal table, so loop at the other internal table.
    Please note as many recordings / BDCs u call those many number of time u have to write the statement.
    CALL TRANSACTION.....
    Like I wrote 4 BDCs in single program, I had to write CALL TRANSACTION 4 times.
    Once u finish everything...put a break point and debug the whole program, u'll actually get to see the flow in which ur data is read, used by bdc, enters the data, how the control moves from 1 BDC to another, how the control goes from 1 LOOP to another, etc.
    debug it in foreground 1st mode 'A', once u feel its going fine, then change it to background mode 'N'.
    I hope this would help u All The Best.
    Regards,
    RadhikaS

  • 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.......

  • Error when creating a bdc for asset master upload

    I am getting a warning message (AA186), when changing the depreciation start date to capitalization date. It says,
    "Different Order Dep. start date in depreciation area 01. Check"
    This error is a problem in creating the BDC for asset master upload. We have only one depreciaton area 01 (book dep).
    Please help.

    This is normal message you get when you try to change depn start date. I think this should not be a problem for BDC posting. This message can always be bypassed.

  • 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,
    Ashok

    hi,
    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
    Mahen

    Hi 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

  • 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,
    Chetan

    Dear 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

  • Problem in creating routing

    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 & regards

    Hi
    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'.

  • Error while creating routing in CA01

    Hi,
    I'm trying to create a routing for a material using CA01 in dev environment. I have given the input of a material number and plant that exists in the system, but when i execute it throws an error saying "Material type ZPRD is not defined for task list type N"
    Message no. CT761
    it suggests with procedure :
    To create a task list with task list type N for a material with material type ZPRD, you must maintain the material type allocation under General data in Customizing for routings.
    I didn't understand this procedure. Can anyone please help me how to proceed to find the solution.
    Appreciated if you can answer.

    Hi Naveen,
    It means you have to assign  the task list type to  material type ZPRD. Then it will carry its job:
    The path is:
    Go To-> SPRO-> IMG Activity-> Production-> Basic Data-> Routing-> General Data---> Define Material Type Assignments. T-Code: OP50
    I hope it will work.
    Regards,
    Madhu.G

  • CA01 Routing BDC Recording

    I have done a BDC recording for CA01, in the Setup Time and Machine Time column there was a warning message saying "Enter the Setup Time", we press enter and enter a value for both these fields. But the OK Code for this ENTER is not being recorded, and when we run the BDC Program, it comes and halts at this field with the warning message. How to avoid this warning message (or) overcome this problem..?
    Your help is highly appreciated.
    Thanks
    Murugappa

    Hi,
    I suggest to use the BI program with following details for the creation step by CA01 tx.:
    Objekt               0170   Arbeitsplan
    Methode              0001   Batch Input
    Programmname         RCPTRA01          
    Programmtyp          B   Batch-Input   
    Since the Routings have a complex data dependency on other objects and screen sequence, this would be helpful.
    May be the problem you are facing also could be addressed in this standard object. I have not faced any such message problem as I have loaded Normal / Standard routings, Quality routings in above method.
    Hope this helps.
    Best Regards, Murugesh AS

Maybe you are looking for